L9110 with Arduino Code - Part 1: How to Control DC motor Speed and Direction

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

ความคิดเห็น • 81

  • @SuperOtter
    @SuperOtter ปีที่แล้ว +2

    I had these drivers in my school project without being explained how they work. This video cleared it up so quickly, thank you.

  • @klausnielsen1537
    @klausnielsen1537 3 ปีที่แล้ว +6

    After watching a few of your videos I just want to tell you that you do a super job. Well explained and shown. Pleasant voice and clearly spoken. Thumbs up and thank you.

  • @explosifiy
    @explosifiy 3 ปีที่แล้ว +2

    this video was a lifesaver, you would not believe how many of those boards I burnt out (and subsequently burnt myself on)

  • @superkaboose1066
    @superkaboose1066 3 ปีที่แล้ว +7

    I love how simple you make everything and take your time to explain, thank you!

  • @Patyx42
    @Patyx42 4 ปีที่แล้ว +4

    Thanks for the video! These drivers are awesome for their price

  • @perinoveriza1658
    @perinoveriza1658 4 ปีที่แล้ว +2

    Very nice explanation 👍👍, i much learn from your video

  • @azrhynichol
    @azrhynichol 4 ปีที่แล้ว +1

    How similar is this board to a BTS7960? If not much, any possibility you could do a tutorial on the BTS 7960?

    • @ScienceFunInnovations
      @ScienceFunInnovations  4 ปีที่แล้ว +1

      Looks similar in function, but much more powerful. Also, looks like it will only control 1 motor vs 2 (and would not work for stepper motors). I just ordered one from China (so it should be here in a month or so). Looks like a great board. I'll check it out and likely make a video. Thanks for watching!

    • @azrhynichol
      @azrhynichol 3 ปีที่แล้ว

      Is there a resource that you're getting this info from? I'd love to read up more about them.

  • @MucitPilot
    @MucitPilot 4 ปีที่แล้ว

    Thanks for the video. I’m using one of these motor driver boards to drive 2 dc gear motors (yellow plastic ones) but the problem is the left motor is always stronger (more torque ) than the right one when using pwm speed control. And even if I change the motors it does not change the left motor stronger situation. Do you have any idea?

    • @ScienceFunInnovations
      @ScienceFunInnovations  4 ปีที่แล้ว

      That is pretty weird. Do you have another L9110 board to test out? It could also be a loose wire or a bad pin on the Arduino. Perhaps try a different PWM pin? Let me know if you figure it out. Best of luck!

    • @Patyx42
      @Patyx42 4 ปีที่แล้ว +1

      I use the same motors, and they're always a bit different. You need to trim them, i.e. adjust the PWM signal so that for example one is getting 240, the other 250, but their actual speed is the same. It's a common problem in RC cars

    • @MucitPilot
      @MucitPilot 4 ปีที่แล้ว +1

      @@Patyx42 you are totally right. Thanks for the respond

  • @skwarucha2
    @skwarucha2 6 วันที่ผ่านมา

    Will connecting 12V from L9110S to the outputs burn the IC?

    • @ScienceFunInnovations
      @ScienceFunInnovations  6 วันที่ผ่านมา

      It works with voltages between 2.5 and 12.

    • @skwarucha2
      @skwarucha2 6 วันที่ผ่านมา

      @@ScienceFunInnovations ESP32 works to 3.6V

  • @mohammedalsaeedi9417
    @mohammedalsaeedi9417 4 ปีที่แล้ว +1

    hello, sir thank you for the video.... I want to control 2 of 5 v dc motors so is it ok to connect the motor driver to Arduino?

    • @ScienceFunInnovations
      @ScienceFunInnovations  4 ปีที่แล้ว

      The Arduino power supply is very limited, so depending on the motor sizes you would probably want to use an external power supply.

  • @shabbydabbydoo
    @shabbydabbydoo 3 ปีที่แล้ว +2

    This is so well explained! :D

  • @leader4005
    @leader4005 2 หลายเดือนก่อน

    Hi, I liked the video. Is it possible to have a code for a stepper motor that works very quickly, as I have a motor consisting of 6 wires?

    • @leader4005
      @leader4005 2 หลายเดือนก่อน

      Power capacity 24V

    • @ScienceFunInnovations
      @ScienceFunInnovations  2 หลายเดือนก่อน

      Yes. I just did a video on high-speed stepper motors. You can wire a 6-wire motor as a 4-wire motor (two wires do not get used) but it should still work fine.

    • @leader4005
      @leader4005 2 หลายเดือนก่อน

      @@ScienceFunInnovations Can I get the link?

  • @Halocn.
    @Halocn. ปีที่แล้ว

    This worked for me, dude thanks for the nice video.

  • @janimarnogueira8700
    @janimarnogueira8700 ปีที่แล้ว

    hey. could help?
    I need an arduino code for motor with encoder to control the position. thanks

    • @ScienceFunInnovations
      @ScienceFunInnovations  ปีที่แล้ว

      Check out my 4-wire fan videos. Those use encoders, but that code is for measuring speed. To measure position, use encoder channel A to trigger an interrupt code. In the interupt, increment the counter if channel B is HIGH and decrement the counter if channel B is LOW. That way you can always know your position.

  • @moathnaji2763
    @moathnaji2763 4 ปีที่แล้ว +1

    Hi …I want to control a dc motor making it rotate 10 times forward then pause for 3 seconds and rotate 10 times backward…. this rotation cycle back and forth will be repeated automatically 20 times exactly like the washing machine. What I need to do that?

    • @ScienceFunInnovations
      @ScienceFunInnovations  4 ปีที่แล้ว

      You could use a stepper motor with the L9110 th-cam.com/video/aKxi7B4-d2U/w-d-xo.html or with the EasyDriver th-cam.com/video/nafoHAhz8Ys/w-d-xo.html . Otherwise, you could use a motor with a position feedback such as an encoder and interrupts.

  • @gelatinskeleton8745
    @gelatinskeleton8745 2 ปีที่แล้ว

    Yes, but how do you stop the motor at the exact same place each time???

    • @ScienceFunInnovations
      @ScienceFunInnovations  2 ปีที่แล้ว +1

      Use a stepper motor or a motor with an encoder if you want to control the position.

  • @spenzr6920
    @spenzr6920 ปีที่แล้ว

    Hey i ordered one but i didnt with pcb. i only got the microcontroller

  • @VinhPham-td1wm
    @VinhPham-td1wm 3 ปีที่แล้ว

    Hi sir, the video is great but i was wondering if i could control coreless motor, these motors are complicated to control and i used to try to control the motor using L298N motor driver and the circuit vaporized, i can see this one has a much lower current and
    i just want to ask if there is any chance this circuit can be able to do that

    • @ScienceFunInnovations
      @ScienceFunInnovations  3 ปีที่แล้ว +1

      What type of motor exactly are you using? Brushless? Stepper? The L298N is essentially the same as the L9110, but the L298 can do 2 amps vs 0.8 from the L9110. I have another video on stepper motor control, but not on brushless (RC) motors.

    • @VinhPham-td1wm
      @VinhPham-td1wm 3 ปีที่แล้ว

      @@ScienceFunInnovations Coreless motor

    • @VinhPham-td1wm
      @VinhPham-td1wm 3 ปีที่แล้ว

      @@ScienceFunInnovations It is a brushed motor, (the product's name to be exact is Coreless 720)

  • @carlob2409
    @carlob2409 4 ปีที่แล้ว +1

    looking forward to using this to control a 3V aquarium water pump to water my plants!

    • @ScienceFunInnovations
      @ScienceFunInnovations  4 ปีที่แล้ว

      Let me know how it turns out!

    • @joejacko1587
      @joejacko1587 3 ปีที่แล้ว

      @@ScienceFunInnovations hey the code worked great but the problem i have is after i use PWN to set the speed i can't control the direction anymore I am confused as to why the direction pin doesn't seem to matter if you set the speed
      and the only way to change the direction is to change the wires to the direction and speed pin

  • @llama_stone
    @llama_stone 3 ปีที่แล้ว

    How do u make the dc motor where u click a button and it rotate but u can repeat it by keep clicking the button

    • @ScienceFunInnovations
      @ScienceFunInnovations  3 ปีที่แล้ว

      What exactly are you trying to do? Rotate just once per button push?

  • @Randy2747
    @Randy2747 3 ปีที่แล้ว

    What's that screaming on background of your video? At Mark 4:48?

    • @ScienceFunInnovations
      @ScienceFunInnovations  3 ปีที่แล้ว +1

      Sounds like one of my neighbor kids... :-)

    • @Randy2747
      @Randy2747 3 ปีที่แล้ว

      @@ScienceFunInnovations made me laugh whan I heard the kids...reminded me when my kids was young and seemed like every time I turn on a camera they always yelling and screaming. Turn off the camera and never hear a peep out of them 🤣
      Great content my friend! Keep the vids coming 😉

  • @fatihsonmez
    @fatihsonmez 2 ปีที่แล้ว

    my l9110 is not working with 4.5 volts(3x1.5volt battery), do you have any idea why?

    • @ScienceFunInnovations
      @ScienceFunInnovations  2 ปีที่แล้ว +2

      It should work between 2.5 and 12V. Are the lights coming on when it is connected to power?

    • @fatihsonmez
      @fatihsonmez 2 ปีที่แล้ว

      @@ScienceFunInnovations only the c1 is turning on red, if it's two batteries, it's working btw

  • @olimail7179
    @olimail7179 3 ปีที่แล้ว

    Can i controll Direction and speed on one Motor?

    • @ScienceFunInnovations
      @ScienceFunInnovations  3 ปีที่แล้ว

      Yes. You can control 1 or two motors with both direction and speed.

  • @tonyjohnson4572
    @tonyjohnson4572 3 ปีที่แล้ว

    Nice video, but is code published anywhere?

    • @ScienceFunInnovations
      @ScienceFunInnovations  3 ปีที่แล้ว

      const int A1A = 3;
      const int A1B = 2;
      const int B1A = 10;
      const int B1B = 11;
      int speed = 51;
      void setup() {
      pinMode(A1A,OUTPUT);
      pinMode(A1B,OUTPUT);
      pinMode(B1A,OUTPUT);
      pinMode(B1B,OUTPUT);
      }
      void loop() {
      analogWrite(B1B,0);
      analogWrite(B1A, speed);
      digitalWrite(A1A,LOW);
      digitalWrite(A1B,HIGH);
      delay(2000);
      digitalWrite(A1A,HIGH);
      digitalWrite(A1B,LOW);
      delay(2000);
      speed = speed + 51;
      if (speed > 255) speed = 51;
      }

  • @mahaksharma4247
    @mahaksharma4247 4 ปีที่แล้ว

    How to use one input and Chang motor rotation ????.one video share with me excellence work

  • @Shasquell
    @Shasquell 2 ปีที่แล้ว

    thank you it was helpfull

  • @Profsonyk
    @Profsonyk 4 ปีที่แล้ว +1

    Thanks a lot

  • @sultanrasul2794
    @sultanrasul2794 3 ปีที่แล้ว

    Don't stop making videos

    • @ScienceFunInnovations
      @ScienceFunInnovations  3 ปีที่แล้ว

      Glad you like them. I am overdue for another video... hopefully soon.

  • @bishoysalama4833
    @bishoysalama4833 2 ปีที่แล้ว

    Can you give us the code?
    Also greaaaaaaaatttt explanation ❤️

    • @ScienceFunInnovations
      @ScienceFunInnovations  2 ปีที่แล้ว

      I would, but I don't have it anymore unfortunately. But I will provide the code for future videos. Thanks for watching!

  • @varshanmunsami5428
    @varshanmunsami5428 9 หลายเดือนก่อน

    Hi Please can you assist if possible

    • @ScienceFunInnovations
      @ScienceFunInnovations  9 หลายเดือนก่อน

      If you have a business inquiry, please send an email with specifics. Thanks!

  • @PabloEmiloPuenteEsquivel
    @PabloEmiloPuenteEsquivel 6 หลายเดือนก่อน

    This video is funny.

  • @Snekithi
    @Snekithi 4 ปีที่แล้ว

    your videos are great but its annoying to hear you say, like share subscribe all the time. If you say once people will understand. so pls avoid it in your future videos