HOW TO: control DC Motors with Arduino + L298N

แชร์
ฝัง

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

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

    Perfect. Learned in 10 minutes what I've been trying to figure out all week(plus I smoked one L298n). Thanks.

  • @Barbiegaitprop
    @Barbiegaitprop 8 ปีที่แล้ว +22

    this was so incredibly helpful.
    I'm a super beginner and you explain things very plainly.
    thank you hahah

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

      You can use this circuit as well, this is a powerful 30A design: th-cam.com/video/9UVxvpHyqMI/w-d-xo.html

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

      "super beginer" nice term , lol

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

    I fried a couple of L293's so I upgraded to L298 and you took all the mystery out of it. Thanks for sharing.

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

    Great, the only video quick, and straight to the point, showing change in direction

  • @JanHans
    @JanHans 8 ปีที่แล้ว +75

    I have the feeling that you are a very nice person, just from listening to your language and tone :)

    • @DonovanStudioMain
      @DonovanStudioMain  8 ปีที่แล้ว +29

      +Jan That is the coolest complement I have received; thank you for that!

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

      Does this work with a 9v battery? Because mine doesn't want to work. Am I using too low voltage? I am trying to make a 3v dvd motor run. If I can get that working, I can build my ev longboard

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

      Sound like Takumi from Initial explaining his techniques. Quite lovely to ear

    • @jorgee.davalosmelgar8123
      @jorgee.davalosmelgar8123 6 ปีที่แล้ว

      +boowonder888 motors draw quite a bit of current. assuming your motor is OK and properly connected it might be a regular 9v battery is not enough. have you tried with a external power supply?

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

      No because I'm afraid I will fry the Arduino or the ln28. hardky touched it since..... Also I need a good sketch!

  • @I_am_pradeep
    @I_am_pradeep 5 ปีที่แล้ว +1

    the best tutorial on the youtube for these electronic items.. The best teacher.Thanks! Keep it up!

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

    Thanks. I misunderstood a comment in amazon Q&A on how to run this controller. Your video explains this perfectly. Thanks!

  • @user-cf6pk1ew3d
    @user-cf6pk1ew3d 7 ปีที่แล้ว +3

    This is very helpful and makes everything so simple thank you so much!

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

    Great video thanks... nicely paced, clear, understandable, just what I needed. While I was watching it the courier delivered two L298N modules I was waiting for! Guess why I was watching!! :o)

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

    Very nice tutoring !! Exactly what I was looking for. Thank you.

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

    I just watched your video again. Definitely worth while. Very imformative. Im a newbie at this. I'm so so with Electronics..I know the basics but programming and the Arduino are totally new to me. Im going to visit your website to get the details. Thanks for sharing your time and knowledge.

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

    This video was well made and very helpful to my project. Thanks!

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

      Josh Tomada No problem. Suggest further videos if you are stuck somewhere.

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

    your website is a work of art sir! thank you for the tutorials. Safe journeys

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

    Excellent example. Thank you for your time and effort.

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

    Absolutely wonderful video. I will make a longer commend when I'm done with my project

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

    Great video! Thank you for making this.

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

    This video is very enlightening, thank you very much!

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

    Thank you so much for the tutorial. Really helped me a lot.

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

    Too clear to be true 😎Thank you dear man.

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

    one of the better videos good work brother it was a big help.
    simple necessary explanations

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

      +William Williams Thank you. When I am looking for things like this, I would rather simple to get started learning, than complex and comprehensive. Comprehensive can come later.

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

    Thankz a lot man this was very helpful! cheers.

  • @DonovanStudioMain
    @DonovanStudioMain  8 ปีที่แล้ว +6

    With a stepper you will be using digital 4 wires per motor(assuming a 4 wire stepper) so an uno could control 3 and a mega could control 13.
    But for that many motors there are other options depending upon the size of your motor. There is a A4988 module which only uses 2 pins for each motor. One is for direction and one for steps. These boards can also do 1/6th microsteps so very nice feature there.
    The A4988 is pretty much equally rated capacity-wise if you put a little heatsink on it along with paying attention to cooling.
    So with the A4988 you would halve the wires used and in theory double the number of motors under control.

    • @153SCORN
      @153SCORN 8 ปีที่แล้ว

      I'm testing this module which I bought last week...its unable to turn even the smallest motor (thumb size)...it just changes its hum. I don't know...Solution it needs a 12 volt power supply and a 5 volt at the same time.

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

      Hello at the 8:33 minute of the video that "analogwrite (9,50);" Where did that nine come from? I'm new to arduino!

    • @mark17022
      @mark17022 6 ปีที่แล้ว +1

      A bit late now, but 9 is the pin you are addressing.

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

    This was sooo helpful for me awesome work.

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

    brother, youve helped me so much! thank you

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

    very good explanation , clear voice , nice graphic quality ! thank you for all of that ! :)
    can you just explain more the idea about the capacitor , i'm trying to make a 12 V motor work on Low RPM ...
    thank you again :)

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

    being straightforward ,I liked this one..

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

    Nice and simple. Thanks.

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

    Well done. Thanks. One on the way to drive my actuator for sailboat autopilot. Solves problem of reversing relay and power transistor

  • @BradKwfc
    @BradKwfc 5 ปีที่แล้ว +1

    Great video thanks,
    How fast can this circuit switch from forward to reverse if the load is just resistive?

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

    This was incredibly helpful, thank you! I am building a robot with my son. I know software pretty well, but this hardware stuff is not my forte.

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

    thank u!!!! i got a geared wheel motor and 9 v battery to turn with this code! thank you :)

  • @PabloGnesutta
    @PabloGnesutta 5 ปีที่แล้ว +1

    Thank you very much bro! Your videos are great and very clean, thank you for sharing.
    I have a question. What is the formula or method to determine the capacitor to smooth the modulation as you said at the end of the video?
    Thankkk youuuu!

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

    Thanks
    this simple code helped me a lot

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

    Awesome video bro! Thank you!

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

    thanks a lot, great explanation!

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

    Thank you very much for this video..nice explanation! I would like to ask you: why do we need to connect the common ground from the L298N to Arduino GRD pin since you are powering arduino with USB? I tried it with no common ground and the motor doesn't work...why? This would really help me to clear a few things in my mind..

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

    I like the simple way that you explain this, May I ask you, I have seen lots of people feeding the power output of a motor "Out of a cheap servo.. on to the H-Bridge.. so my question is, Can one feed the signal directly out of the receiver on to the H-Bridge and bypass the servo pc board?

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

    Thanks Buddy for help.

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

    REALLY REALLY HELPFUL VIDEO BUDDY THNX SOO MUCH UR REALLY GUD :)

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

    This is very helpful

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

    The capacitor you mentioned to be used for very low rpms, where does it go? in between the motor terminals?

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

    its working , thank you very much

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

    Great video! I have a question. Can you use pwm on two motors connected to the L298N simultaneously. Could i have one motor doing it's thing and another doing it's thing, or will they both rely on the same pwm?

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

    thanks for upload this video. it very help me to do my assignment. thanks very much sir !!!!

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

    great stuff, thanks!

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

    Awesome tutorial. Totally understood. Thank you. How can I revise the code if I want to control the dc motor for only 3 seconds forward as I supply the required voltage and as soon as I stop supplying that voltage, this time 3 seconds reverse? Just like a park assist of a side mirror of a car. With reverse gear side mirros will move down for 3 seconds and with forward gear it will move back 3 seconds to its starting position. Maybe the scenario might be enriched.

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

    hello, that was a great help, but when i tried the motor didn't turn because there was 0 volt coming from out3 can you tell me why ?

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

    Hello, do I need to use all pins if I only want the motor to spin in one direction?

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

    Can you address, this issue that usually you need some sensing to start the motor in a specific direction (I am thinking of the 3 phase coil setups in for example ex electric bikes, aka "push to start when you do not have the hall sensors). Any comment on this ?, thanks in advance

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

    Can I connect four dc motors if I want them to spin only forwards? and one at the time. I mean each OUT from the driver to one wire of the motor, and just wiring all the gnd's together.

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

    sorry but would you put the smoothing capacitor in parallel with the motor or in series?

  • @engineered.mechanized
    @engineered.mechanized 4 ปีที่แล้ว

    Amazing demonstration. Very detailed. Have you stopped making videos?

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

    Great video, how can i put a joystick for speed control?

  • @user-qi6zo2fn7p
    @user-qi6zo2fn7p 7 ปีที่แล้ว

    Thanks you for such a nice video. If you had some time to spare I'd like to ask: How would I design a controller that does the following to a 2.5 to 3 rpm D.C. Motor, 4W, 11V: run clockwise for 2 minutes, pause for 2 minutes, run counter clock wise for 2 minute, pause and repeat. The other modes of operation would be clockwise only - as in, 2 minutes rotate clockwise, pause 2 minutes, repeat. Same thing for the counterclockwise scenario. Thanks in advance!

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

    can you tell me what capacitor will you add to make the motor's rotation smooth? thanks in advance...

  • @7PHILIPP_
    @7PHILIPP_ 8 ปีที่แล้ว

    Very nice video..helped me a lot! Thank you very much!

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

      +jdiephaus Glad to help. Feel free to suggest any future videos.

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

    thank u sir...it has helped me a lot

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

    nice job man

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

    Hi can you help explain how I would go about choosing the capacitor mentioned at the end of the video to smooth out the PWM voltage? I am trying to make my DC motor operate at a very low RPM, but when I decrease the pulse width, it whines and wont turn (as shown in your video).

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

      I'd like to see the math on this as well!

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

      I have not done this but I can put you near the answer. RC = Time in seconds. Therefore C = T/R where R is in ohms and C is in Farads, not microfarads. Plug in the time length of the ON pulse width and probably divide that by 2 or 3 so as to not flatten the entire width, and calculate R to be the voltage divided by the current drain through the motor. That R=volts/amps is not actually the DC resistance because motors are inductive, not resistors, but also measure the DC resistance of the winding anyway to approximate R in a second way and see if those two Rs are close. That will give you a starting idea of farads (example: 0.1s/2 divided by 50 ohms = 0.001 farads = 1000mF). You see capacitor size depends on how much current the motor draws and the pulse width; the smaller motor and smaller pulse width means the smaller the capacitor. I would experiment with values around that kind of calculation. To be more precise maybe you can measure inductance of your motor winding and plug that in for R using a reactance and frequency equation. But I think instead do this by experimentation after you get close with the easier estimate. You need diodes to flatten the flyback current of a motor; L298N spec sheet shows them. What about the polarity of a capacitor? AC capacitor, not DC electrolytic.

  • @albertborraspons498
    @albertborraspons498 8 ปีที่แล้ว +3

    Thank you so much! Here with a new robot project for beginners, so it helped a lot! Just wondering how to do it with the arduino not connected to the PC. Thank's!

    • @DonovanStudioMain
      @DonovanStudioMain  8 ปีที่แล้ว +3

      +Albert Borràs Pons Sorry for the delay. I suspect you figured this one out. There are a huge variety of ways to get power to the arduino once you have programmed it but one of the easiest is to buy a 5v USB battery pack and just plug the Arduino into that. One of those tiny cigarette lighter sized packs will power an arduino for pretty much forever.
      If you are using this LN298N then you can tap the 5v and the GND on this module to run into the VIN and GND to send power to the arduino. This module is excellent for robotics projects.

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

    Nice vid very informative. Just one question though, how do you stop the motor from turning and hold its position?

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

      +3D Printwiz With a DC motor, holding position is tricky. With a servo motor is is very easy, and with a stepper mostly easier. The key is that if you are putting power into a DC motor it will usually move. Thus to hold it in position would require that you are only putting enough power into the motor to prevent it from being forced in a different direction or to rapidly move it back to the desired position so rapidly that it appears still. Thus the first step is to identify that your motor is being moved. The easiest (but not only way) would be some kind of sensor that detects either movement or position of the DC motor. So effectively what you would end up doing is creating some kind of feedback to compensate for the movement of the motor. What you would be doing is to recreating a servo motor; which is a DC motor with a sensor and positional feedback.
      Thus the answer is probably to use a servo motor. There are servo motors that can rotate 360 degrees although most commodity servos are limited to around 180 degrees of motion.

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

    There is a quite big voltage drop trough the circuit so I recommend to use 15 v on input to get 12 on output

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

    Can we apply in this same model of connections a PID controller, changing just the code?

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

    Dear great teacher, I really need a help from you,I'm trying to figure out if it's possible to make some servo motors by using some Rotary encoders from an old ball mouse or from an old printer and a car wiper motor to use in a cnc project. I've seen homefaciens doing it but i really really don't understand a thing he is saying. Due to your charisma of explaining everything so well I beg you to help me in this matter.

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

    I have 2 motors coming out of each set of outputs of the chip (4 motors total). One side doesn't seem to accelerate as quickly as the other using the PWM. One side of the vehicle starts at the correct speed while the other side takes a while to get up to that speed. Do you know what could be causing this issue?

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

    Thanks for nice video. I would like to see the schematic for L298N explained.

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

    Theoretically you could also use 4 PWM pins, instead of 4 Digital 2 PWM.

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

    Bundle of thanks

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

    Can I control motor direction with a pot as position sensor, I think the wiper would go to an analogue pin on Arduino. Can you advise, please.

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

    hi ,gud explaination.can b use for a drone.i have been using a l293d ic but cant get enough power..

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

    thank you sir, i find it very useful. i can understand the concept, im still new with these stuffs. you explained this well
    but sir, for the codes, why did you use "analogwrite" meanwhile its in digital pin? i still cant get it

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

    is it possible to use this setup to control a micro dc motor in a way that it would only turn 180 degrees then go back in a loop?

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

    How do you calculate the proper-size capacitor to attach to the circuit to allow the motor to run at small PWM signals?

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

    Nice 👍. Can you make a video for larger motors pl ?! I mean of the motors with stepper or servo with drives . Thx for this video 🙏

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

    Do you know is it possible to control not speed but position (angle) with this driver from arduino? Lets say i would like to turn 10 degrees from current position clock wise or 15 counter clock wise? If so, could you do the demo please?
    Thanks

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

    Help, how can I synchronise two dc motors.
    I am building a biped and each leg is a windscreen motor, I want to make sure the left motor does not get out of step position with the right leg.
    Any ideas gratefully received.

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

    do i have to upload the code after making the connections or can i make the connections later?.. and can you please do a video on how to control 2 motors with bluetooth using arduino uno?

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

    How would you modify the code to make the motor spin in one direction at a controlled speed? My son has a science project of Mars and I would like to make it rotate at a slow rate.

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

    I always fold the exposed metal over the cable and clamp them both in. Then I don't need to worry about it coming loose later because it's not gripping that very thin cable.

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

    can I control dual 500w motors with this? I need to make one go forward and the other backward

  • @megaredemption8051
    @megaredemption8051 5 ปีที่แล้ว +1

    Would this work with any other motor controller? Specifically a roboclaw?

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

    thanks for the video but i have a problem my motors run without the the l298n driver but i connect them to the driver they don't rub anymore and yet my code is very ok what could be the problem

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

    Thanks for making this helpful tutorial. I got one question; what is the point of having a common ground with the arduino since the arduino has its own power supply from the USB?

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

      +brusk qadir A common ground is generally how electronic work. The main occasion where you isolate things is when those things might be naughty and feed current back through the ground. This common ground is so standard that you will find many circuit diagrams that don't actually show the entirety of the wiring style circuit but every time something goes to the common ground there will be a line terminating at the GND symbol even though all of those grounds are actually connected.
      Check out many circuit boards. They will do all kinds of things such as a ground plane and whatnot where the ground sort of makes up a huge proportion of the board's copper. When looking at a circuit board that is usually the giveaway that you are looking at the ground, it connects to pretty much everything.

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

    Is it possible to have your computer USB connected to the arduino to read from the serial monitor While the L298N is hooked up to the arduino and the motors actively running.

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

    Is there any way to add current sensing to shut off a motor that is stalled?

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

    If you have multiple motor drivers, the common grounds to the Arduino must be connected in parallel, right?

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

    what wires are you connecting to the L298N? are they female connectors on the wire end?

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

    Where should I place the capacitor? I have two dc motors .. should it by o the line from H bridge to the motor? One capacitor for each motor?

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

    Excuse me sir, can you tell me, that is enable pin important for two wheels?

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

    My motor driver l298n is burning when connecting 12v 1.3 ah lead acid battery directly..! How to fix? Will using a mt3608 dc dc step up will work? So that I can reduce the current from battery.! Please help.!

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

    hi Im using this driver to control cd rom microstepper motor with arduino. motor indicates 4-9v and 500mA current. Even though the code works correctly and motor is functioning, motor is heating very much in few seconds. can you tell me what could be the reason?

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

    hi buddy awesome work on the video

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

    Hi, thank you so much for the tutorial, it really clears things up in terms of what goes where on a motor controler. Just one question, since the L298N can be powered by a 12 volt power supply can it have an output voltage of 12 volts right to a motor or is there a limited voltage it can output. Sorry if the answer is really obvious I'm new to the whole motor control and arduino world.

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

      +TangoBravoCheesecake It can actually take in about 35v at two amps per motor.
      But those numbers are the theoretical maximum. Generally you don't want to run right up against the maximum. With motors I like to stay as low as 50% of rated maximum and start getting uncomfortable if it is going to sustain anything over 80% of rated maximum.
      Also there are slight losses which you can check the charts for but experimentation is usually easier. These losses mean that if you put in 15 volts that you won't quite get 15volts going to the motor; maybe 13.5? The same goes with the part that can feed back 5volts to your arduino. If you don't put in around at least 7 volts into the controller then it can't put 5volts back out.
      I have never tried it but I suspect at very low voltages much below 5volts that the L298N would just not work properly.
      At those low voltages there are alternatives that would probably be cheaper and work better.
      If you need to go beyond the specs of this module there are other modules that pretty much work identically yet can handle far larger loads. For about $10 you can start to crack 50 amps.
      The key to this module is that it generally can control most motors that people are using for homebrew robotics type projects and is really cheap for what you get.
      Good luck.

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

    Very nice video. could you explain how to add trigger and countdown timer in this dc motor controller. I want to make a motor work by trigger (water level sensor) and will be stop after lets say 10 second. Can we only add some code? thanks

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

    hi can we control the motor, if arduino is connected to a ultrasonic sensor that is motor has to stop if obstacle is below 15cms

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

    I have a question how to use mq 9 sensor detect the gas,then the dc motor moves. Do you know how to coding like that? Pls Help Me

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

    could this also work for changing the polarity on an electromagnet?

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

    Thank you so much for the video! It clearly explains what the L298N module does. Could I quickly ask, what is the benefit you get over using this L298N module as oppose to just using a L298 chip and wiring everything manually? Does this module simply offer convenience or is there something more? Again, thanks for being so informative and clear! Regards.

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

      the ln298n controls higher current/voltage. you shouldnt be able to ffeed 12v into the motor directly from arduino with higher current. So this module is required.

    • @mr.optimistic2807
      @mr.optimistic2807 6 ปีที่แล้ว

      Now Controll anything in adrunio via keyboard{makeAnyprojects}
      th-cam.com/video/jAHLtRmgRiI/w-d-xo.html

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

    what is the name of the wire you used to connect to ENB? Please let me know as soon as you can! I have a deadline next week. Thank you

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

    hello .. i want to use 6 motors of 12 volt and 60 rpm so it is possible to run 6 motors using this motor controller ?