Arduino Tut#16 - DC Motor Drives, Voltage, Direction, H-Bridge, PWM

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

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

  • @etahir4204
    @etahir4204 8 ปีที่แล้ว

    I am big Fan of your work.. Hats off

  • @Quoit1
    @Quoit1 9 ปีที่แล้ว +1

    Greetings :) I love your tutorials on Arduino. Your explanation is very clear and easy to follow. Please keep making more tutorials - I am a huge fan!

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

      +Quoit1 Thank you for the kind comments!

  • @connorking7785
    @connorking7785 8 ปีที่แล้ว

    Thanks!!!! Very clear, answered a lot for me.

  • @IanBradleytheinventor
    @IanBradleytheinventor 8 ปีที่แล้ว

    Thanks for the tutorial. Exactly what I was looking for.

  • @faustobrusamolino6345
    @faustobrusamolino6345 9 ปีที่แล้ว

    Great tutorial, very clear.
    thank you

  • @jefffu3563
    @jefffu3563 9 ปีที่แล้ว

    Hi! Could you do a step by step guidance tutorial video of how 4X4 wheel connect to a motor shield, and possibly how every control method work with the Arduino program code! Let's say like independent wheel control, 2X2 wheel control and 4X4 wheel control. What's the difference between with the encoder and without the encoder! Possibly tell us more in depth difference of buying a 4X4 motor shield and a normal motor shield! Would it be any effect if you stack the motor shield on top of Arduino board first then the sensor shield second or in a reverse order! I know I got all sort of questions, just not so sure about how everything connect and work! Thank you and really love your tutorials!

  • @FrankLopezx
    @FrankLopezx 9 ปีที่แล้ว

    quick question Agent Romanov can a 3rd parameter be enter in analogWrite ? i will like to enter the speed via serial call but when i do i want to not just send that value of speed but direction as well as which motor

  • @CidaLunacorteecostura
    @CidaLunacorteecostura 8 ปีที่แล้ว

    Hello,
    for a line follower robot with 02 infrared sensors and 04 DC motors
    connected in L298N driver, how many amperes I need to robo do the curves correctly?

  • @tarasandeep1
    @tarasandeep1 8 ปีที่แล้ว

    Can I supply 24v using a DC voltage booster (9v to 24v) to L298 and drive a solenoid ? I need to change polarity. Secondly what if I use digital outputs for all 3 direction and enable signal as I do not need less than full volts at output?

  • @TravisFPV
    @TravisFPV 8 ปีที่แล้ว

    Would the L298N controller work with two 165 rpm 6~12V DC gearmotors? I'm planning on using an Arduino Uno and a bluetooth module connected to my phone, but I'm confused about what motor driver I need...

  • @ashiyamashraf4418
    @ashiyamashraf4418 6 ปีที่แล้ว

    How did you connected gear motor to bridge and also other connections

  • @MrNigel1340
    @MrNigel1340 9 ปีที่แล้ว

    An interesting and well made video. thank you

  • @TheCireMC
    @TheCireMC 9 ปีที่แล้ว

    great video! Im trying to do the same thing but in VHDL

  • @ghodd100
    @ghodd100 9 ปีที่แล้ว

    Thanks for this.. This is something I need, but ramped up to handle more power.... I am building a reciprocal engine where it uses 2 coils with a magnet on a shaft in between.. I am using an arduino to control timing with Hall sensors.. I have learned a great deal in the last month I have been messing with arduinos.. I have a Mega coming soon for my design.. That H bridge seems what I need.. But I am going to be needing to use one that can handle up to 300amps I predict.. I been trying to use RC Brushed ESC's.. It does good, but I worry about when the engine is in up or down stroke the 2 ESC's are wired on the same coil in series( and no I can not use a bifilar coil), so I got 4-300 amp plus industrial diodes to protect both circuits. I can see with your H bridge I could have it be controlled with my engine program much easier. Just I'd have to find one that can handle up to 300amps.. I am planing on putting up to 3600 watts thru this at 12 volts.. I may up the voltage and lower the amps later.. the coils are not wire coils.. They are Bitter plates with an iron core. My main question is this:
    Is there an H bridge that can handle 12 to 36 volts and up to 300amps continuous available to buy. Or would I just have to build one that can step up to the 300 amps, but takes in the pwm signal to control the throttle on it.. my ESC is a 11.1 volt max with 45amp continuous, 320amps 15 sec burst brushed ESC.. It has a soft start too.. And I can not change the program on it to eliminate the softstart.. I can't find anything on it for a ESC programmer that will work for it.. The soft start makes it where it dont think it will be useful for my circuit. They dont tell you when you buy these things sometimes. lol.. Lucky they are cheapish. Any help from anyone or you would be helpful.

    • @VladRomanov89
      @VladRomanov89  9 ปีที่แล้ว

      +ghodd100 That's a very interesting application. I'm afraid that off the shelf H-bridges won't cut it for 300A. That being said, you can easily build your own with power transistors which would be capable of driving that current. Here's a good document I found which explains the design of an H-bridge: www.engsoc.org/~bbarnes/project/reference/hbridge-reference-ualberta-arvp.pdf
      In a nutshell, you will need 4 power transistors, switching and protection circuitry. Keep in mind that at those currents, you will need to be careful to size wiring correctly as well. I know from experience that NEC calls out very large (500 kcml) conductors for 300A.

    • @ghodd100
      @ghodd100 9 ปีที่แล้ว

      +EEEnthusiast ya I found a MOSFET that will work for it maybe... I thought of the same thing as you.. I am using those bitter plates, so the resistance will be enough to draw alot of amperes.
      here is the ID number for the MOSFET I am talking about.
      STV300NH02L

  • @sridharthiagarajan479
    @sridharthiagarajan479 9 ปีที่แล้ว

    Nicee video!However..is it fine if we use those miniature ic which are also functional as a hbridge..or are there any other significant advantages if we use a one similar to the one in your video??

  • @inciato2588
    @inciato2588 8 ปีที่แล้ว

    would you need female jumper wires to connect to l298n's 4 input slots, but not the ena and enb pwm slots.

  • @marciokoko1
    @marciokoko1 9 ปีที่แล้ว

    So aside from the h-bridge functionality, the l298N also allows us to write variable voltages to the motor? Cant we do that directly from the arduino?

    • @barbasbandas6665
      @barbasbandas6665 7 ปีที่แล้ว

      Marcio Valenzuela no because it would push to much current from the arduino and frie it.

    • @marciokoko1
      @marciokoko1 7 ปีที่แล้ว +1

      BarbasBandas 666 oh OK so it also regulates current!

  • @sharvensolo7707
    @sharvensolo7707 8 ปีที่แล้ว

    mate can I use the a396 motor driver as well to change the direction of the DC motor?

  • @navjotsinghDhanoa
    @navjotsinghDhanoa 8 ปีที่แล้ว

    Helpful and informative.
    working with the L298 driver like yours and arduino.
    Any code for soft start dc motor on button press?
    Implementation for a camera slider maybe.
    Thanks

  • @kolban1
    @kolban1 9 ปีที่แล้ว

    Do you suggest running the motors on a chassis at 12v?

  • @redghost6386
    @redghost6386 6 ปีที่แล้ว

    If I want to control a 220w 24v industrial motor and have a 10a pwm frequency 21khz what else do I need to control the motor with the Arduino? Any links to sites would be great.

  • @Barc0d3
    @Barc0d3 7 ปีที่แล้ว

    3:30 will it actually fry the arduino? Does it not have voltage regulators and other protection to prevent this?

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

    Is there a tutorial to control two motors to rotate at same speed?

  • @rho35100
    @rho35100 7 ปีที่แล้ว

    how would you do that but wit limit switches...code wise to make it go back and forwards, and how do you make it decelerate gently?

  • @georges8408
    @georges8408 8 ปีที่แล้ว

    hey man, nice tutorial. Please can you make a tutorial of WIRELESS motor speed control (PWM) with potentiometer and ardruino ?

  • @jaytech7514
    @jaytech7514 8 ปีที่แล้ว

    until i encountered a noise from the dc motor and it affects greatly on my sensor like my MPU6050.. everything freezes.. would consider doing how to avoid noise or reduce them on a dc motor.. im doing a self balancing robot

  • @ashiyamashraf4418
    @ashiyamashraf4418 6 ปีที่แล้ว

    Sir, how can i delay time between the rotation of both sides

  • @antoine7788
    @antoine7788 8 ปีที่แล้ว

    Thank you very much! Very good Tutorial, it really helped me! I would like to ask you something:
    Is it possible to power separately the Arduino through USB or Barrel jack? I tried it but is not working, any Idea why? Otherwise, when i am powering both L298N board and Arduino the way you do it on the video, it is working fine!

  • @lindamuvic8110
    @lindamuvic8110 8 ปีที่แล้ว

    Doesn't the L289N have pulse width modulation built in.

  • @RovanRCTube
    @RovanRCTube 6 ปีที่แล้ว

    Awsome video, nicely explained. Subscribed. May I suggest posting your code in the comments.

  • @007TheMaaz
    @007TheMaaz 7 ปีที่แล้ว

    Can I use 12V 1200 rpm 1.5 A Brush motor for L293d drive shield ?

  • @himanshugautam3449
    @himanshugautam3449 9 ปีที่แล้ว

    hey, can please tell me which motor controller should i use to control a 500W motor....right now i am using l293d motor driver to control very small motors...but i want to replace that motor with a 500W motor so please tell me which motor controller will be the appropriate one
    one another thing is that i am using these motors with arduino so i have to change my coding if i replace l293d motor driver with any other controller for the same functionality? please help me out

  • @brahmmacharipurohit3157
    @brahmmacharipurohit3157 8 ปีที่แล้ว +1

    in this case can we program arduino without connecting to l298?

  • @arijitdas8228
    @arijitdas8228 7 ปีที่แล้ว

    May I use 9 volt by using 12volt to 9volt converter and 9volt use for both Arudino Uno board and for DC motor Power?

  • @GEhehloopf
    @GEhehloopf 7 ปีที่แล้ว

    Can the h bridge driver be used with peltier plate instead of motor?

  • @pasanmanula6758
    @pasanmanula6758 8 ปีที่แล้ว

    Hi, Could you please tell me how do i make this DC motor in order to rotate approximately 360 degrees and turned off?

  • @JohnSmith-td6dn
    @JohnSmith-td6dn 9 ปีที่แล้ว

    good video -- Thanks...

  • @Mehdidib
    @Mehdidib 8 ปีที่แล้ว

    Great video !! can i control a synchronous AC motor (48v) with this shield ?

    • @VladRomanov89
      @VladRomanov89  8 ปีที่แล้ว +1

      No, this would not work for a synchronous motor unfortunately.

    • @Mehdidib
      @Mehdidib 8 ปีที่แล้ว

      thanks a lot

  • @arijitdas8228
    @arijitdas8228 7 ปีที่แล้ว

    If I want to move my car very slowly then what will be minimum Analog value that I can put? Here you put 70. May I put lesser than that?

  • @kuukeldeideidara5944
    @kuukeldeideidara5944 9 ปีที่แล้ว

    Hello! First of all Thank you for the tutorial!
    My motor is working perfectly. But the issue is power wire which I connected to the 12V slot on L298n driver gets extremely hot.
    My arduino is connected via usb. And I connected GND from arduino to GND of L298n as shown in the video. My motor's rated voltage is 3.4 and 1.7 A(U). But I'm using 12V 5Ah battery. Could it be the reason why power wire is getting hot? Doesn't L298n control the voltage and current for the motor, even power source is higher? Last time my arduino's burned. Either one side outputs of L298 are. This time when it gets hot I plug it out quickly. If power supply was the problem what do you suggest? If not what could be the reason? Please answer for my questions one by one. Thank you again!

    • @VladRomanov89
      @VladRomanov89  9 ปีที่แล้ว +1

      +kuukeldei deidara A cable getting hot means that you are drawing too much current through it. L298n doesn't "control" voltage and current, all it does is create a PWM signal, if you are driving your motor at slow speeds, it will draw more current. Lastly, you should not be able to damage your Arduino with this circuit at all. You need to make sure 1. you are only connecting your Arduino output to the control bits on the L298N. 2. Measure currents you are drawing by the circuit with a multimeter and make sure that you are consuming what you would expect.

    • @kuukeldeideidara5944
      @kuukeldeideidara5944 9 ปีที่แล้ว


      It seems like heating up issue is solved. I used the 12v 2A dc adapter and it works better. Heatsink heats up slower. But I have a new issue.
      My arduino was powered by laptop USB. I used sample code "oneRevolution". My stepper rotates in both direction. When I use 5V pin on the L298n as power source stepper rotates in only one side. I don't understand what 's going on.. I just connected 5V pin of the arduino to 5V pin of L298 and Gnd of arduino to Gnd of L298. Where did I do wrong? Can you explain me please? I even changed the gnds' places of arduino and uploaded code. No change..

  • @tankalvin1444
    @tankalvin1444 7 ปีที่แล้ว

    so the screw on the board is the potentiometer?

  • @LifeExperience01
    @LifeExperience01 8 ปีที่แล้ว

    how to reverse the directin of rotation of motor
    after 30 seconds

  • @206LaKi
    @206LaKi 9 ปีที่แล้ว

    Please add ir sensors for closed loop speed control :D thanks

    • @VladRomanov89
      @VladRomanov89  9 ปีที่แล้ว

      206LaKi I ordered the sensor to implement this functionality. I'll try and release a video in about a month once I get the package.

  • @MehulRami
    @MehulRami 8 ปีที่แล้ว

    Hi, I am trying to connect and control 3 DC Motors using the arduino. Can you help me with this ?

  • @Dharmendrasavaliya012
    @Dharmendrasavaliya012 8 ปีที่แล้ว

    Hello sir,
    How can we digitally switch 3 phase AC motor?
    Is it possible by Arduino ?

  • @SonySurya
    @SonySurya 9 ปีที่แล้ว

    Hi, why my motor make a sound "tiiiit" when accelerating?

    • @VladRomanov89
      @VladRomanov89  9 ปีที่แล้ว

      +Sony Wijaya Because there is a certain threshold of PWM which needs to be met. Before that, the motor does not get enough current to start.

    • @floppdyboobdy1756
      @floppdyboobdy1756 9 ปีที่แล้ว

      +EEEnthusiast do I really need a voltage driver

    • @fardeenkhan-qo8lp
      @fardeenkhan-qo8lp 8 ปีที่แล้ว

      Hi, I have the same problem and i using 9v battery...So what should I do?

  • @dung10110
    @dung10110 7 ปีที่แล้ว

    very nice sir

  • @y.a.aditya7910
    @y.a.aditya7910 7 ปีที่แล้ว

    according to the connections shown in the video.
    if i give the voltage as 12V in the breadboard, will my arduino get damaged???

    • @apidaparty
      @apidaparty 7 ปีที่แล้ว

      Aurdino can take a max voltage of 12 v but you will need a heat sink

  • @SaeedAhmed-ix8nm
    @SaeedAhmed-ix8nm 7 ปีที่แล้ว

    What to use for AC motor?

  • @bespokebrisley3423
    @bespokebrisley3423 8 ปีที่แล้ว

    mine dose not reverse it just goes forward

  • @asmaadahab94
    @asmaadahab94 5 ปีที่แล้ว

    I need to know the current value of dc motor

  • @Sariel2030
    @Sariel2030 6 ปีที่แล้ว

    EEEnthusiast YOU SHOULD DEFINITELY MAKE A VIDEO EXPLAINING HOW TO BUILD A CIRCUIT, CODE, APP AND ZERO CROSSING CIRCUIT WHICH CAN CONTROL AT LEAST 5 AC LIGHT BULBS AND BE ABLE TO NOT ONLY TURN THEM ON/OFF BUT DIM EACH ONE OF THEM SEPARATELY VIA BLUETOOTH HC-06 AND ANDROID APP. THAT WILL BE A CHALLENGE!!!

  • @marciokoko1
    @marciokoko1 9 ปีที่แล้ว

    I have step up transformers and they don't have a control know. I guess it doesn't make much sense in a step down huh?

  • @MrLovetohavefun
    @MrLovetohavefun 9 ปีที่แล้ว

    pelese can show me that vidiow which make car robot

  • @banglacaterer8219
    @banglacaterer8219 6 ปีที่แล้ว

    pls show the code for downloading

  • @panditaradhyakmj358
    @panditaradhyakmj358 8 ปีที่แล้ว

    show L239D for Ardiuno Mega UNO Die

  • @panditaradhyakmj358
    @panditaradhyakmj358 8 ปีที่แล้ว

    instead of L298 N USE L 293D

  • @John-ti8jl
    @John-ti8jl 7 ปีที่แล้ว

    Here is a PWM motor controller that I can recommend
    Motor Speed Control 2000W 10-50V 40A MAX DC PWM HHO RC Controller 12V 24V 48V

  • @pacovasda5955
    @pacovasda5955 7 ปีที่แล้ว

    Your showing us what everybody can already guess on their own. What about two Motors? what about a motor that needs much more power than your tiny motor?
    You point out that it's an important subject and then you just avoid it.
    what about any of the questions that any of the people writing comments are asking?
    This is more like a show and tell that any type of demonstration or instruction is just kind of pointless

  • @patriciabrooks5838
    @patriciabrooks5838 7 ปีที่แล้ว

    unless you know the speed of the motor it is impossible to control the speed due to load variations. This video show that the creator has little understanding of how the real world works

  • @ss4552
    @ss4552 8 ปีที่แล้ว

    Thanks for the tutorial. Exactly what I was looking for.