How to connect your “L298N Dual H-Bridge Motor Controller” to “Arduino Uno”

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

Комментарии • 282

  • @barbasbandas6665
    @barbasbandas6665 7 лет назад +51

    very very nice video. Apreciate the effort

    • @teampsi6771
      @teampsi6771  7 лет назад +4

      Thanks

    • @pravinchavhan8890
      @pravinchavhan8890 3 года назад

      @@teampsi6771
      hi , i tried to controll my motor with L298N and arduino nano , but my motor was not running . why it happened cause i checked the pins and program was also correct according with pin . but it doesn't work Can you help me please

    • @nitinsampathi
      @nitinsampathi 3 года назад

      @@teampsi6771 Yes, the effort put into this video from the editing to the graphics is amazing

  • @GaneshHosur97
    @GaneshHosur97 5 лет назад +6

    Concise and straight to the point explanation. Very well written description .. Hats off.. Great work!!

  • @everetteworley1333
    @everetteworley1333 4 года назад +7

    Dude you helped me with a school project that I've been stuck on for so long. Thank you so much!!!

  • @Ripsticker45
    @Ripsticker45 6 лет назад +115

    he didn't put the code in so I did.
    //CODE:
    int In1 = 7;
    int In2 = 8;
    int ENA = 5;
    int SPEED = 210;
    void setup(){
    pinMode(In1,OUTPUT);
    pinMode(In2,OUTPUT);
    pinMode(ENA, OUTPUT);
    digitalWrite(In1,HIGH);
    digitalWrite(In2, LOW);

    //ENA 255 means high speed and 0 means low speed
    analogWrite(ENA, SPEED);
    }
    void loop(){

    }

  • @oskargajewski5904
    @oskargajewski5904 4 года назад +3

    Finally i found somebody who explained me this connection. Thank you

  • @reganclare5622
    @reganclare5622 2 года назад +3

    Pure genius. What a clean demonstration. Thank you good sir.

  • @guybenami7387
    @guybenami7387 7 лет назад +1

    Wow I searched so so much for helpful tutorials on the Internet and this one is maybe the best!!!

  • @shayanv3337
    @shayanv3337 Год назад +1

    NEATEST DC MOTOR ARDUINO INTEGRATION VIDEO IN RUclips ,THANK YOU

  • @yakshbhola8916
    @yakshbhola8916 6 лет назад

    THE BEST video available on L298N Dual H-Bridge Motor Controller , along with the explanation ...effort appreciated

  • @encryptal
    @encryptal 2 года назад

    why is this video so perfect in every way

  • @saadatkhan2791
    @saadatkhan2791 5 лет назад +4

    Wow! a really good video. Great explanation, great editing; the effort put in the video is exceptional.

  • @vivekios2423
    @vivekios2423 3 года назад

    that was so perfectly to the point
    Realy appreciate your effort mann

  • @ranjansarkar3620
    @ranjansarkar3620 5 лет назад +4

    I like the way he explains it! Good!

  • @mohdkhairulbinmohdarhirudd3039
    @mohdkhairulbinmohdarhirudd3039 3 года назад

    i hve been searching this kind of video for a long time. thanks!

  • @samyount2546
    @samyount2546 4 года назад +2

    For anyone whose motor just pulses without rotating (which was happening to me) you just need to use an independent power supply for your Arduino so that the 9v battery's current doesn't get overcharged when trying to start the motor and power the Arduino at the same time.

    • @BongChoch
      @BongChoch 3 года назад

      still not working broo can you please help

    • @livinglivelike
      @livinglivelike Год назад

      @@BongChoch do you still need help?

    • @AmeyaPradhan
      @AmeyaPradhan Год назад

      How? can you explain the schematic

  • @boowonder888
    @boowonder888 7 лет назад +1

    Thanks 4 letting me know about pwm and it's sinus sign on next to the pin, that's important info!

  • @TheAutospkr
    @TheAutospkr 4 года назад

    nice - was looking for a practical of this specific board variant of the l298n. thank you!

  • @richardsherman1685
    @richardsherman1685 7 лет назад

    thank you for sharing this topic clearly and concisely. I have wanted a CNC device since my first awareness. The possibility of this 65th anniversary gift is closing! thanks

    • @teampsi6771
      @teampsi6771  7 лет назад

      I am glad to hear this, Sherman.

    • @nurjamahashiabdulle1711
      @nurjamahashiabdulle1711 4 года назад

      @@teampsi6771 can i use L298N DUAL FULL BRIDGE MOTOR DRIVER FOR CONTINUOUS SERVO MOTOR?
      KINDLY REQUESTED,

  • @hcsh36
    @hcsh36 6 лет назад +3

    Wow very clear instructions!

  • @dolanyisk8
    @dolanyisk8 6 лет назад

    great video, i was having issues making the l928 circuit work, but this video cleared my doubts. Thanks!

  • @aizukhalid9776
    @aizukhalid9776 4 года назад

    the best and simple explanation ever. May Allah bless you and ease your life my friend.

  • @thepredator1943
    @thepredator1943 5 лет назад +11

    always wanted a pair of talking hands,wonderful

  • @jaimeherrera2510
    @jaimeherrera2510 7 лет назад +4

    Thank you very much. You explain so clear.

  • @jeranrai645
    @jeranrai645 5 лет назад +1

    7:33, is it necessary to pull out the Vin and GND connection before connecting the data cable to computer ?

  • @saidabdallah1995
    @saidabdallah1995 3 года назад

    The best explanation about this part !
    Thanks

  • @shantanusingh6699
    @shantanusingh6699 5 лет назад +3

    4:33
    Please explain the use of that 5v terminal, is it for enabling or powering Arduino?
    Is it 5v output or 5v input??
    Also
    Can we use l293 with configuration?

    • @bigfilsing
      @bigfilsing 5 лет назад

      as it goes to the VIN pin on the arduino its an output on the L298N

    • @hetshah7490
      @hetshah7490 5 лет назад

      Bro it's for to power motor driver

    • @utoothheartyeight
      @utoothheartyeight Год назад

      Out

  • @MakersMic
    @MakersMic 5 лет назад +2

    great info that helped me out on my project!

  • @kartikkashyap7595
    @kartikkashyap7595 7 лет назад +5

    Good work !!!!! And please upload such informative videos

  • @TheTotalGeek
    @TheTotalGeek 3 года назад

    You did a great tutorial here. Thank you :)

  • @henrikborjeson8264
    @henrikborjeson8264 5 лет назад

    Very nice video , a comprehensive and useful example.

  • @manishpanchal8689
    @manishpanchal8689 7 лет назад +6

    Nice Explanation.

  • @jumbo999614
    @jumbo999614 5 лет назад +3

    So you're saying that motor voltage must always be equal or higher than power supply. In this video, you're using 9v Battery then your motor must be 9v or more right?
    Also what will happen if you don't remove Vin and GND while connecting it to PC?

    • @lelandclayton5462
      @lelandclayton5462 4 года назад +2

      At lower voltages depending on the Motor it will work but turn slower and with enough current it could have more torque. However if you pump in more voltage then the Motor is rated for say 15 Volts into a 12 Volt motor it could hurt it after a while. If you pump in say 24 Volts into the 12 volt motor it will die quickly.
      It's just a good rule of thumb to disable the power source such as a battery when plugging it into a PC. The PC itself will pump in 5 Volts into the device in this case the Arduino and could cause issues when trying to write code to it if you have the battery plugged in and the USB. Some MCUs such as the Arduino will do a reset when it's finished getting code written to it and depending on the Power Source it won't let it reset.

  • @ApisitH-i3u
    @ApisitH-i3u 4 года назад

    Thank you. This is very useful for my project and it make me understand about L298n.

  •  6 лет назад

    Thank you, great video. Greetings from Colombia

  • @carzycults6119
    @carzycults6119 4 года назад +1

    Bro I have done the same stuff wid two 5 volt dc motors but they are not rotating can suggest me anything I powered the bridge with 9 volts dc like you sir?

  • @tinkertom3683
    @tinkertom3683 Год назад

    I connect the the l298n to a stepper motor nema17 my DC power supply shows no current being drawn when I send a signal to move the stepper one revolution and then stops I notice it's still continuously drawing max amps and it's in CC mode an till I reset the Arduino then it goes back to normal again it's like the pins 8,9,10,11 are causing it to still run some how also after about 30mins the rc522 RFID scanner stops working any ideas what this could be?

  • @LilLon-Lee
    @LilLon-Lee 5 лет назад

    Easy to understand,very helpful for the beginners.

  • @atabak7912
    @atabak7912 7 месяцев назад

    hi. If I have a 9V 2A adapter instead of a battery, how should I transfer the power to L298N Dual H-Bridge Motor Controller ??

  • @othmanmirizi6465
    @othmanmirizi6465 4 года назад +1

    Sir im using 3-6v motor dc and 9v batteries. But my motor won't move. Is my power source too weak?

    • @rcarduitrix9504
      @rcarduitrix9504 4 года назад

      Hey your power supply is weak make sure to use 18650 batteries and don't use 9 volt battery.....
      If you are having trouble using l298n motor driver then you can also use l293d ic ...
      You can go through my channel there i have made a separate controller to wirelessly control dc motor and servo motor...
      Hope this helped you :)

  • @febochestbox5507
    @febochestbox5507 4 года назад

    What about sample wiring connection for 24Vpower supply to drive two 24V DCmotor, using Arduino Uno along a breadboard. Assuming Arduino Board is powered by 9V Battery, ENA and ENB enable.

  • @jonaslapukas4182
    @jonaslapukas4182 2 года назад

    Apreciate the effort, thanks for the video!

  • @sanjaysami4315
    @sanjaysami4315 4 года назад

    Excellent video ! Super helpful. Thank you!

  • @wusong108
    @wusong108 3 года назад

    get in there holmes! keep it going on

  • @सर्वांसाठीइलेक्ट्रोनिक्स

    Perfect, thanks for that. I am just beginning to learn Arduino and it is very daunting. Appreciate you sharing your knowledge.
    3

  • @bhartiya_nagrik
    @bhartiya_nagrik 4 года назад

    Can I connect 5v of arudino to the 5v of motor driver? ....
    Please reply fast 🙏🙏🙏🙏

  • @JekPorkbricks
    @JekPorkbricks 3 года назад

    Can this also work with a 9V 5A DC motor? As long as I have a power supply of 9V that also has a current of at least 5A? The only L298N that I could find has a value of 25W though, and the motor has 9*5=45W power. I don't know if that'll work.

  • @raifhanna131
    @raifhanna131 3 года назад

    can we use steps of any Axis"x,y,z" out of cnc controller to control the speed of a Dc motor or stepper motor while running G-Code???

  • @hervemarie966
    @hervemarie966 6 лет назад

    Very clear and useful. Thanks a lot

  • @Ryuisdragon
    @Ryuisdragon Год назад

    Could i connect two different Motor in the same motor driver using the In 3&4 and the Enb to control it, without changing the power source?

  • @DeveloperJunaid
    @DeveloperJunaid 6 лет назад

    Sir If We use 9v battery to 12v dc motor and if Its clip which fits the power supply terminal of arduino, then will it damage the motor?

  • @kiran_k8502
    @kiran_k8502 2 года назад

    Explained very well

  • @user-irb
    @user-irb 3 года назад

    Hi can you fix N20motor connect adurino noisy?

  • @Mememeister
    @Mememeister 7 лет назад +1

    Thank you very much. Really good video!

  • @thefuzzman9833
    @thefuzzman9833 6 лет назад +4

    Perfect, thanks for that. I am just beginning to learn Arduino and it is very daunting. Appreciate you sharing your knowledge.

  • @gamecity7265
    @gamecity7265 7 лет назад

    I programed a stepper motor that stop 24 time in one loop.
    Would you know how to turn on an led for each stop ? So 24 blink.
    LED on while motors stops. LED off while motor rotates. Thanx for your great help

  • @sukanyabharti6704
    @sukanyabharti6704 2 года назад

    sir is there any extra component required like resistor or any more? or by using this much only it will work...i m little bit confused..please help

  • @16.minato
    @16.minato 10 месяцев назад

    If i am using power from my latop, can i power the motor driver with arduinos 5v pin ?

  • @11Rising_Wood11
    @11Rising_Wood11 5 лет назад

    Beutifull video one of a kind type tutorials - keep it up with this chill sound in background. For me personally it helps me focus way better on what u saying with the track lol

  • @MARK-qk5qu
    @MARK-qk5qu 5 лет назад

    Hi, i need the same mechanic but i need to put a rain drop sensor to trigger the motor, how will i do it, please help me.

  • @hemayetkabir1331
    @hemayetkabir1331 4 года назад

    Excellent teacher. Thank you so very much

  • @berk530
    @berk530 4 года назад

    I have 3 TB6612FNG motor driver. I am trying to connect 3 motor drivers to arduino. Which arduino should i use?

  • @mihirbarnwal2820
    @mihirbarnwal2820 5 лет назад

    To much easy. Great work

  • @milosp.551
    @milosp.551 2 года назад

    Can you connect battery on arduino and via 5v pin it delivery power to driver?

  • @ayushsinha7416
    @ayushsinha7416 4 года назад

    Bro I have made a wifi control car using node mcu esp8266,l298n motor driver and a 5v battery but the motor is not moving and making beeping sound.

  • @shivamganmote3847
    @shivamganmote3847 4 года назад

    Can we use dc dc power booster instead of motor driver ??
    Plz ans ...

  • @Vikijangir
    @Vikijangir 5 лет назад

    Really appreciable, keep it up 👌👍👏👏👏

  • @MuhammadAwais-jh2dy
    @MuhammadAwais-jh2dy Год назад

    Do u have video about linear actuator with arduino

  • @freemanfreed1581
    @freemanfreed1581 5 лет назад

    we can separately give power to arduino right? connecting arduino to external power source instead of connecting the 5v from the motor driver with the arduino power pin is also possible??

  • @jdstudios1912
    @jdstudios1912 2 года назад

    Very helpful thank you so much, i do have a follow up question. How would one co about scaling this up to two motors?

  • @sahilkamble240
    @sahilkamble240 5 лет назад

    Hi my l298 motor driver ni 12 volt not supported but + supply attach to 5 volt out put it has worked but but way problem of 12 Volt is not supported

  • @sanjunamathews-robotechietips
    @sanjunamathews-robotechietips 4 года назад

    Nice video.. I have a doubt.. I am using Ros serial for varying speed from robot operating system and I am having 12v power supply.. In that case is it safe to connect gpio pins while Arduino is connected to laptop.. ?

  • @Msopasniful
    @Msopasniful 4 года назад

    Hello, can i connect 4 motors to L298N?
    I connected two motors to the L298N and they work normally but while I connect the third it slows down and only one motor works. I am using a 9V battery. Do they need two batteries or is it something else?

  • @RMCMC_AmitNikhade
    @RMCMC_AmitNikhade 4 года назад

    How can I use separate batteries for the Arduino and the motors. Please help.

  • @foodies4140
    @foodies4140 5 лет назад +1

    can we connect 4 motors to the same arduino

  • @croydon21H
    @croydon21H 5 лет назад

    is it not possible to attach 9v battery connected to motor driver and still use usb to upload code?

  • @amoghnivas6624
    @amoghnivas6624 5 лет назад +1

    Sir, when i followed the same procedure as above, the motor rotated stepwise. Please help.

  • @mochastellar
    @mochastellar 5 лет назад

    Can someone explain why arduino is not plugged to the laptop? Is that enough the voltage source only from the battery?

  • @MIHAI0410
    @MIHAI0410 3 года назад

    Hi community.
    I need some advice regarding H Bridge guy's. What I am looking for is just H Bridge which can change the polarity of the around 100 times per second.
    Must work between 5 Volt to 12 Volt.
    What you recommend ?
    Many thanks

  • @saihariprakashtalluri
    @saihariprakashtalluri 3 года назад

    Well explained and good knowledge

  • @seanlyon2870
    @seanlyon2870 2 года назад

    Nice video! What should I change if I use a 24 power to power a 24V motor? Thanks

  • @thehypothesisxplorer4449
    @thehypothesisxplorer4449 4 года назад

    I have a 3V DC motor. Can I run it with this motor drive?

  • @varshamahajan7285
    @varshamahajan7285 5 лет назад +2

    How to download arduino uno programming on the laptop can you help us and fast too

  • @emryscass7327
    @emryscass7327 4 года назад

    My motor spins in 'ticks'. So it spins maybe 1/8 of an inch, stops, spins an 1/8 of an inch, stops - this repeats until I power down the arduino. Why isn't it a consistent smooth spin?

  • @PCsolution56
    @PCsolution56 Год назад

    Bro my +ve wire of the 9v battery gets only light up by 5v of the driver

  • @racingmotorsfr238
    @racingmotorsfr238 5 лет назад

    hello.
    problem at home.
    exit statut expected initializer before pinmode. an idea ?? thanks

    • @spynderMK
      @spynderMK 5 лет назад +1

      please give us code, so that we can help.

    • @racingmotorsfr238
      @racingmotorsfr238 5 лет назад

      ​@@spynderMK it is all good. thank you

  • @Skyonly_22
    @Skyonly_22 3 года назад

    Hello can i ask.. What battery that u use ?

  • @saivenkatesh4730
    @saivenkatesh4730 6 лет назад

    Sir if we need to control 6 12v DC 300ma motor ..which motor shield sould we use and how to connect ...

  • @MerkSteeZe
    @MerkSteeZe 4 года назад

    This was excellent. Can I use an 2.4ghz Tx to control the pwm value of the motor like an Rc car?

    • @lelandclayton5462
      @lelandclayton5462 4 года назад

      Sounds like you got some stuff confused. 2.4GHz is a Radio Frequency. PWM runs in the Hz range for Arduino. Higher the Frequency the faster the pulses known as Dutycycle.
      In the past I have used RF to control a MCU such as the Arduino to toggle on/off and set the duty cycle "speed" of a Motor for my CNC Machine Spindle.

  • @jamesdumancas9597
    @jamesdumancas9597 5 лет назад

    hi sir just wanna ask why do i need to connect the +5v terminal to the Vin of the arduino? thanks.

    • @srajesh2166
      @srajesh2166 5 лет назад

      To supply power to driver IC bro

  • @Anton-sz6ef
    @Anton-sz6ef 5 лет назад

    Please someone answer : can I use it for a physics project where I need a high frequency current of like 3.3V meaning low and 5V meaning high. Can I like use it by changing it really fast with the Arduino commands and create the signal I want to create ?
    Thank you!

    • @genbot7207
      @genbot7207 5 лет назад

      it dependes on your motor . if u use a motor that doesnt want to exceed the power limit of 3.3v ,then u can reduce the speed in the programing which will produce a less amount of power supply. so u r motor could run. but make sure u program perfectly so that ur motor reaches correct 3-3.5v .

    • @Anton-sz6ef
      @Anton-sz6ef 5 лет назад

      @@genbot7207 Noo not for a motor. I use it for an experiment with electromagnetic radiation. Basically i just send 3.3V then 5V repeatedly very very fast to create 0 and 1 and stuff like that. The thing is it might be too fast for the driver to handle. I am talking about GHz here.

  • @themiraclelab9774
    @themiraclelab9774 4 года назад +1

    where can i get the code

  • @sourabhgayake7015
    @sourabhgayake7015 4 года назад

    Can i use it for 24V DC, 1440RPM, 5A Motor....

  • @relaxingandrefreshingvideo801
    @relaxingandrefreshingvideo801 6 лет назад

    Can u suggest which battery is used for Bo mortors??

  • @bhabishygaming7229
    @bhabishygaming7229 4 года назад

    Bro which wire you is use

  • @saliben3695
    @saliben3695 2 года назад

    Good explanation

  • @kuldeeprane1469
    @kuldeeprane1469 3 года назад

    Can I do the same thing to my Arduino nano

  • @maheshgond1106
    @maheshgond1106 5 лет назад

    Why you disconnected the Arduino to motor driver Vin and Gnd connection after send the code in Arduino board

  • @subhayansinha4417
    @subhayansinha4417 6 лет назад

    well explained sir!

  • @RixtronixLAB
    @RixtronixLAB 2 года назад

    Creative video, thanks for sharing, like it :)

  • @NagashreeKMGMEC
    @NagashreeKMGMEC 2 года назад

    Sir can we use 1000kV motor with 5V battery