How to control DC motor with L298N driver and Arduino

  Рет қаралды 429,690

Circuit Magic

Circuit Magic

6 жыл бұрын

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-Aliexpress
Visit project page for wiring and Arduino code.
bit.ly/L298NDriver
bit.ly/L293D_Arduino_Project

Пікірлер: 321
@Shakeelnawaz1
@Shakeelnawaz1 5 жыл бұрын
No need to request for like.......It's perfectly good video..... thankyou
@almurphy5433
@almurphy5433 5 жыл бұрын
You can't go wrong with this thorough instruction...Thank You!
@tauqeerahmed8736
@tauqeerahmed8736 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!
@fancii_status6813
@fancii_status6813 2 жыл бұрын
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
@mayurmhatre9925
@mayurmhatre9925 4 жыл бұрын
"Ground Should Be Common For 2 Power Supplies" this solved my biggest problem!!! ThankYou So Much 🎀
@adnanjamilhashmi3679
@adnanjamilhashmi3679 4 жыл бұрын
Hahha very funny
@devgilmore
@devgilmore 3 жыл бұрын
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
@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!!!!!!!!!!!!!!!!!!!!!.
@erikschmidt2571
@erikschmidt2571 2 жыл бұрын
Thank you very much! I got all the information I was searching for quick and simple. Amazing video!
@mariogokart
@mariogokart 6 жыл бұрын
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?
@parshuramjadhav2467
@parshuramjadhav2467 9 ай бұрын
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...
@henrikborjeson8264
@henrikborjeson8264 4 жыл бұрын
Great, simple, easy to get and short..great work.
@Irshu
@Irshu 3 жыл бұрын
Thank you so much, i'm a total newbie to electronics, never heard of this bords before.
@thehardeasy9801
@thehardeasy9801 4 жыл бұрын
OMG you make this so easy to understand. Thanks!!!
@daniyalintisar7183
@daniyalintisar7183 5 жыл бұрын
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
@honeybansal8665
@honeybansal8665 5 жыл бұрын
please tell me ur circuit diagram
@svee6904
@svee6904 4 жыл бұрын
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
@anthonyinabo2382
@anthonyinabo2382 3 жыл бұрын
best dc motor controller tutotial video so far
@seanlyon2870
@seanlyon2870 Жыл бұрын
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!
@neerajgoyal1949
@neerajgoyal1949 4 жыл бұрын
Thanks mam you helped us to find the problem for controlling the speed of motors.
@dihiaidrici5098
@dihiaidrici5098 2 жыл бұрын
Girl! This was so clear. Thank you so much.
@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 👍
@Hale444
@Hale444 3 жыл бұрын
Just found this video, its super helpful!
@arezoomotlagh
@arezoomotlagh 5 жыл бұрын
thank you so much...you can't imagin how much i needed it
@NazmulHasan-bw6kv
@NazmulHasan-bw6kv 5 жыл бұрын
When should I ground both GNDs of Driver and arduino? before or after burning code?
@chandiprasadpaul2437
@chandiprasadpaul2437 2 жыл бұрын
very nice explanation ,easy to understand for a newcomer.
@vinothdharmaraj7510
@vinothdharmaraj7510 3 жыл бұрын
Wow!! Very clear. Thanks and one more thing I have a doubt with power supply. May I use single source of power supply through arduino Vin pin.
@bharatpatidar7618
@bharatpatidar7618 2 жыл бұрын
It is a great video with clear explaination and background music as well. Thanks.
@chawaisumar
@chawaisumar 5 жыл бұрын
thanks for sharing the video, if i want to run 10 motors 12v then how does it work, please tell me.
@vishaldesai8355
@vishaldesai8355 4 жыл бұрын
thank you very much for indairectly help in my collage project through your vedio we make the project
@sayedanowar9106
@sayedanowar9106 6 жыл бұрын
" 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)
@highschoolotaku4187
@highschoolotaku4187 4 жыл бұрын
this video is helpful. it helped my to solve my issue with motor driver
@bitacoranonewtoniana7121
@bitacoranonewtoniana7121 Жыл бұрын
THANKS A LOT, I HAD NO IDEA OF HOW TO REMOVE THE JUMPERS
@omkarkhade4602
@omkarkhade4602 5 жыл бұрын
Can I use 3S (2200mah) lithium Ion battery pack as my input to the motor driver..?
@roshanantony64
@roshanantony64 4 жыл бұрын
Extremely amazing video. Keep it up!!
@Circuitmagic
@Circuitmagic 4 жыл бұрын
Thanks
@misty_1139
@misty_1139 3 жыл бұрын
I love this channel. Recommended. 10/10. Outstanding.
@funnymancostumehouse6688
@funnymancostumehouse6688 2 жыл бұрын
so not true:p
@ItsMeRishi
@ItsMeRishi 5 жыл бұрын
Maam please tell are u using an transmitter or remote how are u controlling it
@shantanupandey5174
@shantanupandey5174 3 ай бұрын
Your explanation is very high class
@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
@VaibhavSNaik-nc9qt
@VaibhavSNaik-nc9qt 5 жыл бұрын
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
@Swastikash
@Swastikash 4 жыл бұрын
Umm we have to connect the enabling wire with pwm? Or the input wires?
@ibrahimadesanya3564
@ibrahimadesanya3564 28 күн бұрын
What about the 5v on the l298 where is it connected to on the arduino
@mixme8655
@mixme8655 2 ай бұрын
thank you for speaking english well understand always watching
@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
@satyapasupuleti8164
@satyapasupuleti8164 2 жыл бұрын
are BO geared motors necessary ? or we can connect toy car DC motors directly ?
@dreamesport3806
@dreamesport3806 5 ай бұрын
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
@sachitkumar4913
@sachitkumar4913 5 жыл бұрын
Nice explanation best of luck for next video
@baby_robot
@baby_robot 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
@catknip6545
@catknip6545 4 жыл бұрын
Thanks for the clear explanation.
@shahzadaslam384
@shahzadaslam384 5 жыл бұрын
lady is so sweet her voice is like melody and you understand everything
@user-nz8sh3ep8y
@user-nz8sh3ep8y 3 жыл бұрын
What if we used a motor driver shield. Do we still have to power the Arduino separately?
@ighosilva5589
@ighosilva5589 5 жыл бұрын
how to control dc motor speed via bluetooth range? meaning if distance is beyond the certain distance motor speed will speed up? it is possible?
@berk530
@berk530 4 жыл бұрын
I have 3 TB6612FNG motor driver. I am trying to connect 3 motor drivers to arduino. Which arduino should i use?
@tomiwadairo761
@tomiwadairo761 2 жыл бұрын
awesome and precise!!! thanks, ma'am
@drakuliangamer3836
@drakuliangamer3836 6 ай бұрын
can we activate the motors alternatively by using this circuit but different code?
@siddhantindave6391
@siddhantindave6391 5 жыл бұрын
Thanks a lot. Very easy demonstration
@crjdreams1991
@crjdreams1991 4 жыл бұрын
Mam, what is the maximum input current that could be given to L298n
@himanshigupta8961
@himanshigupta8961 2 жыл бұрын
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
@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
@sjrohan4042
@sjrohan4042 3 жыл бұрын
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?
@mohammedjunedjazri3243
@mohammedjunedjazri3243 4 жыл бұрын
Hey ma'am . Can we control two l298n drive using node mcu board ? Please help
@timothyhassett9342
@timothyhassett9342 4 жыл бұрын
Perfect, thank you
@bodapatisaikumar9035
@bodapatisaikumar9035 6 жыл бұрын
We can use for 24v dc motor 250w
@PrashantKumar-ew7ji
@PrashantKumar-ew7ji 5 жыл бұрын
Mam, can u please provide the code for the project.The link given is not working
@akhileshwagh7186
@akhileshwagh7186 4 жыл бұрын
Thank you sooo much, it helped me a lot
@wrightkevin9000
@wrightkevin9000 4 жыл бұрын
Really helpful - thank you!
@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!!!!
@RamachandraBabushi
@RamachandraBabushi Жыл бұрын
Does the testing method only work if the jumpers are there?
@youarecreators369
@youarecreators369 3 жыл бұрын
Motor rotates with power of battery connected to driver or usb cable?
@emadabuhagag222
@emadabuhagag222 3 жыл бұрын
thank you, very clear and helpful شكرا حزيلا
@lakshmisuri3873
@lakshmisuri3873 4 жыл бұрын
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 4 жыл бұрын
l293d and l298n are same if u want to use it just search how to make a motordriver with l293d
@dipakpatil3529
@dipakpatil3529 4 жыл бұрын
Can I use 10A current with l298n?
@limofiaza4544
@limofiaza4544 4 жыл бұрын
Can i ask, can i use powerbank thank power supply? Please reply
@CodeOs5
@CodeOs5 3 жыл бұрын
Thank you ma'am it's very useful
@SamirKhan-mq6ib
@SamirKhan-mq6ib 2 жыл бұрын
Thanks for this video I am stuck with self balancing robot motors not working kindly help.
@ElochukwuClarenceAkagu
@ElochukwuClarenceAkagu 6 жыл бұрын
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...
@batkotivalio
@batkotivalio 2 жыл бұрын
You didnt show bidirectional mevement. Is it possible to run motors in opposit directions?
@diliprathod4668
@diliprathod4668 5 жыл бұрын
Vo bhi diffrent speed par or anlog input se 4motor ki speed up kar sakte he
@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?
@dirtydangler99
@dirtydangler99 3 жыл бұрын
Probably not
@jay-tbl
@jay-tbl 5 жыл бұрын
Does the 12 volt input on the driver need to have 12 volts for the motors to work? If I have less than 12 volts will the motors run slower or will the arduino not receive 5 volts?
@Circuitmagic
@Circuitmagic 5 жыл бұрын
Minimum 6v is required for the driver.
@karpelitgroup
@karpelitgroup 4 жыл бұрын
Should I still use a common ground if my motor voltage is different than my 5v logic circuit?
@conorstewart2214
@conorstewart2214 4 жыл бұрын
yes connecting them both to the same ground means that the reference voltages should be the same, so the 5 volt output from the motor driver will be the same as the 5 volt output from the arduino so the logic levels are taken from the same reference point
@ismailhossainrifat3264
@ismailhossainrifat3264 3 жыл бұрын
I am using 3*18650(12.6) volt Do I have to open the jumper wire?
@abbasalameer7770
@abbasalameer7770 8 ай бұрын
Great teaching ,thanks alot
@NitinRNtini
@NitinRNtini 3 жыл бұрын
Whats the average voltage drop in this driver?
@komalvaja-xk6fi
@komalvaja-xk6fi Жыл бұрын
hi does anyone have idea what motor and tyer is she using
@amrzakaria5290
@amrzakaria5290 6 жыл бұрын
Thanks for your Tot, It was very good.
@shailendrasingh4727
@shailendrasingh4727 6 жыл бұрын
amr zakaria yea you are corect amr sir
@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.
@dipakpatil3529
@dipakpatil3529 4 жыл бұрын
If my motor is working on 12 v then 5v is necessary or not?
@dipmalik693
@dipmalik693 4 жыл бұрын
How can I use same time 50motor in using one sirkit
@dixit-rohit
@dixit-rohit 5 жыл бұрын
Thanks its best totorial for testing l298n and arduino..
@COSMO8843
@COSMO8843 3 жыл бұрын
can i use standard 9v battery reply fast pls......
@AnwarCreations.
@AnwarCreations. 5 жыл бұрын
Which code u applied
@gauravpant5154
@gauravpant5154 3 жыл бұрын
Can we use 4 motor on it for motor car
@crjdreams1991
@crjdreams1991 4 жыл бұрын
Can I use 2200mAh, 11.1v, 3c lipo battery
@vedantugale2646
@vedantugale2646 2 жыл бұрын
Can we use dc motor instead of a gear motor
@vitnapramod3853
@vitnapramod3853 4 жыл бұрын
Can you show how to make obstacle avoiding car with two IR module sensor
@abhishekmaurya1170
@abhishekmaurya1170 4 жыл бұрын
its amazing explanation thanku
@nithinsai2250
@nithinsai2250 3 жыл бұрын
What DC motors did u use
@lionelsavary9813
@lionelsavary9813 4 жыл бұрын
thanks! very nice tutorial
@jaanvii30
@jaanvii30 5 жыл бұрын
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.
@shan_singh
@shan_singh 4 жыл бұрын
please make one video on bldc motor control
@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
@fansofcoc795
@fansofcoc795 5 жыл бұрын
from where we buy cheapest ardiuno
How to control a DC motor with L298N driver and Arduino Uno
9:50
Arduino Tutorial 37: Understanding How to Control DC Motors in Projects
31:25
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 97 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 12 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 15 МЛН
L298N: Building and Controlling 4WD Arduino Robot
5:01
Nudge Me
Рет қаралды 116 М.
How to control DC Motor using Arduino and L298N in Hindi
7:17
SwapnilNimbalkar
Рет қаралды 51 М.
Stepper Motors and Arduino - The Ultimate Guide
29:57
How To Mechatronics
Рет қаралды 1,1 МЛН
How to use L298 motor driver module
9:26
Nepaltronics
Рет қаралды 82 М.
How To Make A DIY Arduino Obstacle Avoiding Car At Home
6:09
DIY Builder
Рет қаралды 4,8 МЛН
L298N Motor Driver | Control DC Motor using Arduino and Joystick 🕹
5:23
hash include electronics
Рет қаралды 20 М.
How to test L298N motor driver board - Tutorial
4:06
RoboCircuits
Рет қаралды 207 М.
Самый дорогой кабель Apple
0:37
Romancev768
Рет қаралды 216 М.
GamePad İle Bisiklet Yönetmek #shorts
0:26
Osman Kabadayı
Рет қаралды 622 М.