How to control DC motor with L298N driver and Arduino

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • This is the Arduino tutorial video to explain how you can run two DC motors and control the speed and direction using L298N Driver module with Arduino.
    Buy L298n Driver module
    bit.ly/L298N-Al...
    Visit project page for wiring and Arduino code.
    bit.ly/L298NDriver
    bit.ly/L293D_A...

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

  • @Shakeelnawaz1
    @Shakeelnawaz1 6 лет назад +22

    No need to request for like.......It's perfectly good video..... thankyou

  • @tauqeerahmed8736
    @tauqeerahmed8736 4 года назад +4

    I LOVE YOU SOOOOOOOOOOOOO MUCH, thank you sooo much!!!!!! I was trying to control stepper motor using L298n with nodumcu, my input was more than 12v and I forgot to remove the jumper your one tip made my day thank you soo, by the way your explanation was perfectly good you walk through every simple steps and I appreciate that. Thanks once again!

  • @mayurmhatre9925
    @mayurmhatre9925 4 года назад +52

    "Ground Should Be Common For 2 Power Supplies" this solved my biggest problem!!! ThankYou So Much 🎀

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

      Hahha very funny

    • @devgilmore
      @devgilmore 3 года назад +8

      OMG. Your comment just saved my ass on this project I'm working on thank you so much! Also ofc the video was great too it's just I was being way too impatient and skipping through!

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

      Brroo pls explain what you have commented here

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

      @@kaviprakashv3241 the negative terminals of both devices should be connected to a single power source, such that the Arduino can send signals to motor driver.
      If the negative of Arduino is not connected to motor driver then it's circuit would be called as an 'open circuit' in which no current travels.

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

      Same problem,now solved

  • @mixme8655
    @mixme8655 5 месяцев назад +1

    thank you for speaking english well understand always watching

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

    Great, simple, easy to get and short..great work.

  • @almurphy5433
    @almurphy5433 6 лет назад +13

    You can't go wrong with this thorough instruction...Thank You!

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

    Hi, tnx for your awesome vid, I got a question, what is the minimum current required? I'm using two 9v batteries that are paralleled and yet it doesn't work (hardly moves)

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

      Put the pins ,that he told in the video, back where it saya N1 N2 etc

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

    Girl! This was so clear. Thank you so much.

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

    Very nice video! In your video you used lower voltage to drive the motors. In my case, I want to use arduino+ L298N to control a 24V motor (full speed). How can I set up the connection to power the motor (preferably not using a breadboard)? Thanks!

  • @tomiwadairo761
    @tomiwadairo761 3 года назад +1

    awesome and precise!!! thanks, ma'am

  • @sakshambhatia5868
    @sakshambhatia5868 Месяц назад

    thank you so much this actually helped a ton!!

  • @dreamesport3806
    @dreamesport3806 8 месяцев назад +1

    Mam can I use this driver with 5v DC motors are they compatible with it please reply fast I need to do that for my project

  • @dixit-rohit
    @dixit-rohit 5 лет назад +2

    Thanks its best totorial for testing l298n and arduino..

  • @Techbymas
    @Techbymas 3 года назад +1

    Thank you 💓,
    LOVE FROM PAKISTAN 💕

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

    Hi Fox 🦊

  • @ibrahimadesanya001
    @ibrahimadesanya001 3 месяца назад +1

    What about the 5v on the l298 where is it connected to on the arduino

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

    Was struggling to do a project with motor drivers! and BOOM ....
    Now iam able to complete my project as if it was a magic😉
    Thank You soo much for ur fantastic video....
    Really grateful to have ur video

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

    you are mistaken at min-1.00, do correct it

  • @VaibhavSNaik-nc9qt
    @VaibhavSNaik-nc9qt 5 лет назад +1

    Well Explained, nice video, I m using a 5v power bank as power supply, can I use it to power the motors, if yes where should I connect the +5v, the 7-35v pin or the 5v output pin

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

      Power Bank => (+ve) terminal to lm298n's 12v (+ve) terminal and
      Ground (-ve) should be common for both arduino and the shield you are using.
      Lm298n => (+5v) terminal i.e Output 5V to (Vin) pin which is beside A0 pin on arduino.
      Gnd Should be common on both power supply and arduino,
      So just connect the power supply's GND to Shiels's GND and Arduino's GND pins

  • @serujeru567
    @serujeru567 Год назад +2

    Nice Video ^^

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

    " Whenever you use two power supply you have to make sure ground should be common for both "
    I wanna marry you for this line.
    Thanks a lot specially for this.
    (I had a problem like touching the heat sink (that black metal) increases the power of motor)

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

    honestly a great video i missed to connect arduinos GND to modules GND cause u i corrected my mistake now its working fine thank you mam for great video...

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

    Hie mam it was wonderful tutorial I am using 2 batteries 9 volts but it is not following the programm it doesn't run anti clockwise

  • @svee6904
    @svee6904 5 лет назад +8

    I LOVE YOU SO MUCH PLEASE UPLOAD MORE!!!! This Video was such a brilliant and perfect explanation without any fancy words and simple to follow instructions! Once again thank you so much :D

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

    Thank you very much! I got all the information I was searching for quick and simple. Amazing video!

  • @sjrohan4042
    @sjrohan4042 3 года назад +1

    With the same motor driver i can only operate one motor...whenever i connect both motors it stops working....is it because i am using a 9 volt battery with the driver?cause individually they work with full power...what should i do?

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

    Very good video ... But 1 question .....
    I have L293D Motor driver ic instead of module.... And I don't know how to use it in the same way...
    Can you please suggest me.?

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

      l293d and l298n are same if u want to use it just search how to make a motordriver with l293d

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

    Hello sister please explain with the code

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

    thank you, very clear and helpful شكرا حزيلا

  • @phoenixkepo2743
    @phoenixkepo2743 2 года назад +1

    G8 instruction and project.

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

    please make one video on bldc motor control

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

    thank you for this video but If i want to run 4 wheel with L298N motor driver and arduino mega 2560 then how will i do connections

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

    Maam please tell are u using an transmitter or remote how are u controlling it

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

    Dear respected brother,
    I am beginniner to use Arduino, sir i upload built-in led blink example sketch to Arduino uno and pro mini, both are blinking well, then I upload empty sketch to clear example code, system shows message that sketch upload done 100 %, but both boards runs previously blink example code. I tried to different systems (PC, Laptop,mobile) to clean an upload new sketch, but results are same, where I mistaken i don't understand. Pls help me to solve if you interested.

  • @ElochukwuClarenceAkagu
    @ElochukwuClarenceAkagu 6 лет назад +1

    Interesting video. However, I noticed one motor was rotating from the code in the link, how can this be fixed so that both motors can rotate simultaneously ? Thank you!

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

      I'm also stuck at the same thing...
      I'm trying to verify the prob... nd one thing I noticed... the pin config of one of the motors is wrong in the given code....
      The first two lines of the given code doesn't match with the description...

  • @حسن-ل7س3ج
    @حسن-ل7س3ج 4 года назад

    What if we used a motor driver shield. Do we still have to power the Arduino separately?

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

    hia...if I were connecting 2 X 12V @ 0.1A brushless DC (PC) fans to this board, to power the fans and account for the 1.4V loss of power to the L298N transistors, would I be right in thinking I need to use a 13.4V (let's say) @ 2A power supply?
    If I'm correct, will I then also have to remove the 5V output jumper as it's > 12V?
    Never knew that was a stipulation regards the usage of the 5V output...is it documented anywhere?
    Thanks for your vid and any feedback you may have 👍

  • @keshavkakde1034
    @keshavkakde1034 3 года назад +1

    I didn't liked but loved it

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

    Thank you so much mam

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

    Can i use 9volt battery to power this module with four motors?

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

    THANKS A LOT, I HAD NO IDEA OF HOW TO REMOVE THE JUMPERS

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

    Vo bhi diffrent speed par or anlog input se 4motor ki speed up kar sakte he

  • @Blink-ut7uh
    @Blink-ut7uh 4 года назад

    I desperately need help, both motors are connected to PWM pins but one motor spins faster than the other. I've tried many things and nothing works. Please help

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

    I am using 9V battery to test the module the motors are running fine without the module but as soon as I give the Input pins (1,2,3,4) high then nothing happens so Is my L298 defective. Please help me out!!!!

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

    My system is not working properly.I am using 9V battery and rf-500tb-12560 motor.Both motors are not starting simultaneously and one of the motor is not changing the direction of rotation.somebody please suggest remedy.

  • @polizeimunchen5742
    @polizeimunchen5742 2 года назад +1

    Thank you

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

    My left ear enjoyed this video more than my right

  • @sachinkulkarni8109
    @sachinkulkarni8109 3 года назад +1

    Nice

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

    You

  • @SamirKhan-mq6ib
    @SamirKhan-mq6ib 2 года назад

    Thanks for this video
    I am stuck with self balancing robot motors not working kindly help.

  • @Spidijutiube
    @Spidijutiube Месяц назад

    i love speak hindi :D . Restart your computier :D

  • @Irshu
    @Irshu 3 года назад +1

    Thank you so much, i'm a total newbie to electronics, never heard of this bords before.

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

    The end of my wires won’t fit in the power supply

  • @ap-fg2jh
    @ap-fg2jh 4 года назад +1

    Ma'am how to operate a higher rating motor to this driver module. As this support only 2 amp current and my requirement is to operate upto 10 amp. How to connect it with 10 amp relay.

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

      @arun pal my requirement is same. Have you got any idea?

  • @chandiprasadpaul2437
    @chandiprasadpaul2437 3 года назад +1

    very nice explanation ,easy to understand for a newcomer.

  • @Joseph-xs2mo
    @Joseph-xs2mo 3 года назад

    Mine does not light up when i plug in positive negative but lights up from 5 volts of arduino pls help
    (Im new and i have no idea what im doing pls help)

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

    You didnt show bidirectional mevement. Is it possible to run motors in opposit directions?

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

    What an awesome video.... Thanks a lot . you made my day. I was working on till 6 hours and i was just skipping but when i see your tutorial i got the thing❤️❤️❤️.... Thank you

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

    link in description is not working. can you semd the proper link?

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

    What happens if we don't use common ground?

  • @komalvaja-xk6fi
    @komalvaja-xk6fi Год назад

    hi does anyone have idea what motor and tyer is she using

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

    Can I use 10A current with l298n?

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

    can i use standard 9v battery reply fast pls......

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

    Awesome video

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

    can i use this module with a pwm ouput for positional accuracy? basically, can i turn my gearbox DC motor into a servo?

  • @kitonepluswong7889
    @kitonepluswong7889 8 месяцев назад

    Please show me connect picture.....

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

    Please show us how r u sending signal to the motor,
    I mean it's through some mobile application or from
    Laptop .
    Please clear my dought

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

      Signal is send by the Arduino after you upload the code to the board. You have a loop function (C++) usually where you call what motors should do.

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

    Suddenly lost her voice just as I was paying attention to the next important part.

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

    Plzz chare the same thing for other composent

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

    Extremely amazing video. Keep it up!!

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

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

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

    Also, can you help me out with something ? What power supply should I get ? Like what's the min and max voltage of the power supply ? Note : I want something powerful, if that matters!

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

      if you are using more no. of motors , or a powerful motor , you should increase the voltage

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

    How many voltage are u using? I tried mine but speed of the wheel is pretty slow and somehow only one wheel is working. Btw im using 6V connect both Arduino and driver

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

    Can you help us for project

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

    Why the second link cant be open ?

  • @abbasalameer7770
    @abbasalameer7770 11 месяцев назад

    Great teaching ,thanks alot

  • @vell546
    @vell546 2 месяца назад

    did you use switch?

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

    Can we use 4 motor on it for motor car

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

    What l298n motor driver boost ampere

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

    the code cant be accessed anymore

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

    your website is not opening

  • @drakuliangamer3836
    @drakuliangamer3836 8 месяцев назад

    can we activate the motors alternatively by using this circuit but different code?

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

    Even after removing the jumper from the driver module it is not powering up I don't know what to do can anyone please help me out of this?

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

    Hi ma’am, I have a doubt . I have a pump of 3.7v,0.1 A and can I connect that to this L298N .If so what are the changes or additional components required
    Pump is - kamoer 3.7v 0.1A

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

    Perfect, thank you

  • @muhammadarafath5537
    @muhammadarafath5537 8 месяцев назад

    Motor are not working

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

    I am using 3*18650(12.6) volt Do I have to open the jumper wire?

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

    this is so confusing to me...

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

    7.4 v lipo? is it shared between arduino board and motor driver?

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

      yes, there is a 5v output on the board so im pretty sure... anyways do u know how to disconnect the jumper?

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

    when i do same with 9v battery,sound is coming from motors but not rotating. help me with that

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

      Coulter Mulvihill not sure

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

      @Coulter Mulvihill if I had 2 X 12V @ 0.1A DC brushless PC fans to power, would I need to connect a 13.4V power supply to the L298N board?
      I figure it would need to be 12V + (2 x 0.7V loss to the transistors on the L298N board)...although I'm by no means electronic literate and am therefore unsure as to what I'd need to do.
      I'm guessing the Amperage would be largely irrelevant as as long as there were 2A provided it should all be ok, yah?
      😅
      Cheers for any help you may have

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

    Hi. If i put the code on my arduino uno se directly, will the 2 wheels successfully move on forward and backward?

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

      I just need the 2 wheels to control together with the arduino. TIA

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

    Well explained

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

    website is not working

  • @mariogokart
    @mariogokart 6 лет назад +1

    Was very easy to follow.good instructions
    Can you also do a tutorial on how to replicate a garage door operation with a single push button,that is forward,stop reverse?

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

    Hard to understand her

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

    What's the meaning of "ground should be common for both"?

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

    Can i connect the motor directly to the 9v battery to test it?

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

      You CAN connect, but DON'T, especially if your dc motor only needs 3.7V up to 6V. It will destroy your motor.

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

    Can I use 2200mAh, 11.1v, 3c lipo battery

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

    Please make 4WD ardiuno base car.. With bluetooth.. Please

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

    I saw many videos but I did not understand a thing, but when I saw your video everything was clear. Thank you so much!!!!!!!!!!!!!!!!!!!!!.