Тёмный
No video :(

Arduino Motor Control and PWM Signal with L298N H-bridge Motor Driver 

Maker 101
Подписаться 166 тыс.
Просмотров 298 тыс.
50% 1

In this tutorial we will learn how to use the L298N H-Bridge Motor Controller. We will control the dual DC motor with using the PWM Signals via L298N. This allows you to control the speed and direction of two DC motors, or control one bipolar stepper motor with ease.
2019 Banggood 11.11 Glaobal Shopping Festival 🤩 👉 bit.ly/2Cx7Nz6
Required Hardware:
Arduino Board :
goo.gl/Rqc5w2
amzn.to/2LZr6t4
L298N H-Bridge :
goo.gl/Ucvx6J
amzn.to/3diatT1
DC Motor Wheel:
goo.gl/iDy7ep
amzn.to/3djj9Zp
F to F Jumper :
goo.gl/TdGrkk
amzn.to/3waMuOd
M to M Jumper :
goo.gl/VRzUN4
amzn.to/3waMuOd
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
Download Source Code: create.arduino...
Social Media:
/ mertarduino
/ mertarduino

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 292   
@maker101io
@maker101io 3 года назад
Source Code: create.arduino.cc/editor/mertarduinotech/7ce04954-82e2-48ea-87ee-26f530c3fcf0/preview Recommended Items: Use Your Muscles in Project - amzn.to/3wdL45C​ 37 Sensor & Module Packages - amzn.to/3m66WeQ​ Try this Robot Arm - amzn.to/3fq8DCl​ Best Resin 3D Printer - amzn.to/39tY8KB​ Arduino Compatible Kits - bit.ly/2J2AFF7​ Banggood Spring Sale - bit.ly/3slMbOn
@enejjarimehdi7305
@enejjarimehdi7305 2 месяца назад
what is the name of arduino simulator that you used?
@michaelspahn3675
@michaelspahn3675 3 года назад
This is the best tutorial for the simple use of this H-Bridge I have found. Very well done, without crazy music and even without a spoken text. Nice!
@oOcitizenOo
@oOcitizenOo 5 лет назад
What i really like in your videos is that you show lots of details regarding the topic whilst many other makers just covers basics without giving a brief explanation of how everything works
@ToninFightsEntropy
@ToninFightsEntropy 6 лет назад
For a video without voice, this is surprisingly informative.
@engrare
@engrare 6 лет назад
ilk defa arduinodan anlayan bir türk başıma meteoar yağabilir korkuyorum seni sonuna kadar destekliyorum mert adamsın
@engrare
@engrare 6 лет назад
çok saçma bir yorum olmuş şu anda fark ettim :D
@abdullahsohail9473
@abdullahsohail9473 4 года назад
That was the most clean tutorial on youtube.
@mrdspgaming4663
@mrdspgaming4663 5 лет назад
You doing a nice job and put the video to make a wall follower robot........😊😊😊😊
@emadabuhagag222
@emadabuhagag222 Год назад
Great tutorial, i thank you from the bottom of my life
@mangaart3366
@mangaart3366 5 лет назад
Thank you so much! It's hard to find tutorial like this. Keep up the good work!
@calvinbarajas5144
@calvinbarajas5144 5 лет назад
Awesome, you even cover the humming noise and the depleted battery only actuating one motor.
@jacheto
@jacheto 7 лет назад
BEST TUTORIAL EVER ABOUT THIS, THANK YOU
@moeshickenyay
@moeshickenyay 6 лет назад
Great tutorial, well demonstrated and easy to follow, code was clear and straight forward.
@ujjvalverma6169
@ujjvalverma6169 7 лет назад
thanx sir your tutorials are my favourite
@KogoGaming
@KogoGaming 4 года назад
If you are unable to change the speed of the motors via the analogWrite code with the arduino, it's probably because your ENA or ENB is connected to a non PWM pin on the arduino. The PWM pins are the ones with a squiggle next to the number, like 11,10,9..ect. So ENA and ENB must be connected to a number on the arduino uno that has a squiggle.
@ych7064
@ych7064 5 лет назад
The diagram at 0:44 (top right of video), there seems to be an error in the locations of "+12V Power" and "+5V power" - there are swapped.
@philippeclair4017
@philippeclair4017 4 года назад
I own this module, I confirm this diagram is wrong, +12V and +5V are swapped. Thank You Mr Chor Hon Yong, You save my day ! I found this diagram in several places of the net, and I was about to use it to wire my project.
@RiBurek
@RiBurek 7 лет назад
This is just what I needed! Thanks! Can you do line following maze sloving robot maybe? Where the robots follows the line and finds the closest path in the second run using "left hand on the wall" rule?
@boowonder888
@boowonder888 7 лет назад
Hi, I'm new to Arduino but I have made some project work. I like motor projects, so I want to buy either this motor driver board or the other on you can stick on your Arduino, L28. Which one should I buy do you think?
@darryltaylor7890
@darryltaylor7890 Год назад
Fantastic video...simple, informative. Many thanks!
@johnwilliam9650
@johnwilliam9650 3 года назад
Thanks man you answered LOTS of questions
@vijaymane8993
@vijaymane8993 6 лет назад
Thanx for this great tutorial sir, still can I vary speed automatically instead of adjusting output bits of arduino everytime?
@thomasalexander1563
@thomasalexander1563 7 лет назад
I'm waiting for L298N motor driver tutorial,, And today got it.. Really clear explanation.. I agree, make more L298N tutorial,, How to add more, 9 volt battery not really fast, battery drain fast,, If use adaptor 9 volt the speed is really different.. How about add with serial battery configuration.. Is that twice faster ??
@thomasalexander1563
@thomasalexander1563 7 лет назад
Okay thank you for your advice,, Keep make more videos..
@TheGoldAppleTGA
@TheGoldAppleTGA 7 лет назад
can you make videos every weeks? that can help a lot.
@my-jorney
@my-jorney 2 года назад
Nice music and well tutorial)
@amvnerds5879
@amvnerds5879 7 лет назад
Awesome job!! Biggest fan here :)..Can you do a video on a UNO motor shield for 4 motors.
@kenchurchill6019
@kenchurchill6019 6 лет назад
Thank you for such a well made film.
@kvlpnd
@kvlpnd 7 лет назад
I just made a project like this yesterday. I used Joystick to move robot with L293D.
@kvlpnd
@kvlpnd 7 лет назад
Welcome as always.
@Paladimhandmade
@Paladimhandmade 2 года назад
Wonderful and helpful tutorial! Maybe you already answered this but I wasn’t able to find the answer (lots of comments haha) - what is the app you use to design the circuit diagram (with the red and yellow and green lines)? Much appreciated!
@narendrakajla77
@narendrakajla77 4 года назад
hey...what is the software u r using for showing us the connections... from 2.15 to 2.50 around u r using a software ... what is the name for this one???😃😃
@dannyyeoh2340
@dannyyeoh2340 6 лет назад
As for the quick sapping power from the 9V battery. Try using a lipo battery 7.4V 1300mAh to power the motor and Arduino instead.
@tinkeringlabplus2516
@tinkeringlabplus2516 5 лет назад
Thank for wonderful tutorial. Great!
@soumiahm7318
@soumiahm7318 7 лет назад
Great video and easy to understand. Thank you!
@stevanvas6747
@stevanvas6747 3 года назад
Thank you for your video, I've finally found why did mine only spin one wheel... 😁👍
@yolandaceballos1417
@yolandaceballos1417 Год назад
why was it? I can not make both work
@grahamtech
@grahamtech 7 лет назад
u have the best tutorials sir =)
@grahamtech
@grahamtech 7 лет назад
so mert i have a very big question is there any way possible that you could make a tutorial on controlling worm gear motors/torque motors or dc motors to move to a certain degree essentially like a servo ,home made servo sort of speak using dc motors with the l298n module ,im working on an exo skeleton project in wich i need to learn how to position my motors via joystick analog if you know how to do this then i will be so happy xD lol
@greatdaddy4710
@greatdaddy4710 5 лет назад
MERT ARDUINO 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!!!
@Techonlineunboxing
@Techonlineunboxing 5 лет назад
Use mobile phone battery of two it will do the work and connect it in series connection
@alexandrumargan3840
@alexandrumargan3840 7 лет назад
Hello! I found this tutorial very helpful, thank you! I have a question about the automatic control for the PWM of the motors... What do you recommend to do in order to make this happen, in order to make a PID?
@shehanvidanapathirana1292
@shehanvidanapathirana1292 7 лет назад
Thank you so much i was so helpful..and clear enough..i appriciate this attempt of sharing knowledge..!
@georges8408
@georges8408 7 лет назад
nice!!!... tell me something. If you have a stepper motor do you also have to unplug the 2 jumpers in order to control the speed ?
5 лет назад
thanks, this is useful. But I can´t control the motors for slow rotation... it starts making noise with values around 55. But for a robot it rotates too fast. Any ideas?
@seenivasaneee759
@seenivasaneee759 6 лет назад
Great explanation about L298N I can't find more detailed version other than this..:) Thank you...Is there any way to control speed using RF 434 MHz module?
@md.rabiulislam5190
@md.rabiulislam5190 6 лет назад
Thanks, I learn from this video...
@joachimschmitz2782
@joachimschmitz2782 3 года назад
Hello, Joachim is my Name. in your Video i have found a Mistake it begin in second 0:44 the Picture what comes from the H-Bridge is wrong the 12 V input and 5 V output are exchanged , in your Video your Explanation is Right but the Picture NOT and i only looked at your Picture and Killed my L298H please change it that Nobody more Kill his H-Bridge. Big Thanks for the Tutorial. Top
@abhishekgoel9465
@abhishekgoel9465 5 лет назад
sir i'll connect 6 dc motor in l298n motor drive it is working or not ????
@jaykadu8745
@jaykadu8745 5 лет назад
hello i am setting up speed of 60 for both motors but one motor is speedy and other motor is slow ?? what is the reason behind this??
@akudia6953
@akudia6953 3 года назад
Genius..Sir,this part & wiring scematic can use for run a DC 24V motor?
@muvahid1990
@muvahid1990 4 года назад
Cok güzel Mert, Almanya'dan selamlar :)
@Aaron-ix7rp
@Aaron-ix7rp 7 лет назад
really great video bro ... keep it up ... 24/7 support ... 😉😉
@tessistavrou1214
@tessistavrou1214 5 лет назад
Thanks Bro You Save Me Nice Video By The Way
@SaifulIslam-gs9gm
@SaifulIslam-gs9gm 7 лет назад
Thank you . can you make a video about potentiometer control dc motor
@shrutiambre3065
@shrutiambre3065 7 лет назад
This was a very informative video and I finally got the darn thing. Thank you very much! +1 subscribe
@muhammadawais1487
@muhammadawais1487 4 года назад
very well explained bro...thank you very much
@x_emraah
@x_emraah 7 лет назад
Best tutorial... Thanks man ;)
@GaryMcKinnonUFO
@GaryMcKinnonUFO 5 лет назад
I've been trying this for hours today and when i connect the Uno ground to the ground of the h-bridge, or take it off a breadboard rail, i get current that's very high, it even shows 26mA when voltage is at zero (i'm using a DC bench PSU at 12V). I've tried it using other ground pins on the Uno but no joy, i've checked everything multiple times, what could cause high current like that ?
@muhammadhafidzulihsan4056
@muhammadhafidzulihsan4056 6 лет назад
Nice sir! It was very helpful!
@freemanfreed1581
@freemanfreed1581 5 лет назад
first @0:59,what is the difference between the power supply pin and the 5V power pin on the driver ? does it mean we use the 5 V output when we have no separate power supply for the controller arduino ?? second when you changed the pins @6:11-6:13 , should't you changed the connection also on the arduino ?? why don't you just change the HIGH and LOW status of the pin instead ??
@taylergates2484
@taylergates2484 7 лет назад
me gusta tu canal sigue asi eres el progreso
@moeshickenyay
@moeshickenyay 6 лет назад
Really nice done tutorial, Thanks.
@hassanjawad7156
@hassanjawad7156 Год назад
thanks for the help
@Voquevo
@Voquevo 7 лет назад
awesome video bro , is it possible to connect 4 dc motors to the Dc motor module ?
@erikschmidt2571
@erikschmidt2571 2 года назад
Awsome, thanks!!
@febochestbox5507
@febochestbox5507 3 года назад
Can we show a sample wiring for 24V power supply to drive the 2 24V DC motors, assuming 9V power supply from battery to power Arduino to include a breadboard.
@toothless22
@toothless22 5 лет назад
amazing tutorial good teacher!
@abdullahtahir2738
@abdullahtahir2738 4 года назад
thank you it was very helpful
@hidayaturrahmanrahman2253
@hidayaturrahmanrahman2253 5 лет назад
thanks . your tutorial very help us
@pavi-rv1mp
@pavi-rv1mp 3 года назад
Many many thanks
@193
@193 3 года назад
Can you power the arduino itself with the same battery used for the driver? So if I were to connect a bluetooth module i wouldnt need the power from the pc and could power the arduino without being connected to the pc?
@ngoclinh5609
@ngoclinh5609 3 года назад
Very good, thank you !
@2496rama
@2496rama 6 лет назад
if I dont want to use a 9 Volt adapter, would a battery of greater value works well for a 7Volt motor? and how can i determine the appropriate battery (Power Supply) to my motors?
@Essaycom
@Essaycom 2 года назад
I did exactly what you did but my motors are not working , Servo motor is working but bo motor is not working . Please help .
@ahmedmutalemwa311
@ahmedmutalemwa311 6 лет назад
What is the difference in their codes between L298n and L9110s? I need your help?
@ysl989
@ysl989 2 года назад
What would happen if there is no battery involved, I would just connect 5v from arduino to the dc motor?
@hectorlopez-dg8ri
@hectorlopez-dg8ri 7 лет назад
hi, can i use the 5V output of the L298N to give energy to the arduino or i have to user another battery for the arduino?. Best Regards
@francescolillo6034
@francescolillo6034 7 лет назад
+Mert Arduino and Tech Hi, I used an l298n , 2 dc motor like yours and a 9v battery(new), but it does not function, even using your code....can you help me??thanks!!
@ismaeeeeeeel05
@ismaeeeeeeel05 6 лет назад
Me Too
@pvsmouli7727
@pvsmouli7727 5 лет назад
Thanks dude u clarified my doubt about enable pin does anyone know about the syntax of the enable pin in python because i am using raspbery pi for controlling my motors
@damithsm1980
@damithsm1980 5 лет назад
Thanks for sharing your knowledge... :-)
@yaqubshuaib5060
@yaqubshuaib5060 7 лет назад
thank you sir, your tutorials are so helpful. please make a tutorial for large robot controlling as power distribution in arduino. because we know more than 15 v arduino will burn out. so please help me.
@ahmedsaman3070
@ahmedsaman3070 7 лет назад
❤️❤️❤️❤️❤️ amazing video ❤️ thank you
@lupulalbastru8117
@lupulalbastru8117 7 лет назад
Hi, I have something like this with some driver and some motors, but my robot doesn't go straight. Why my robot doesn't go straight? How I can do my robot to go straight?
@debarsisadhukhan4238
@debarsisadhukhan4238 7 лет назад
well explained...good job
@akshayn3926
@akshayn3926 7 лет назад
thanks sir, it was just awesome..
@momskitchen8641
@momskitchen8641 4 года назад
Well Explained!
@PirkeiAgrowth
@PirkeiAgrowth 7 лет назад
Where does the 9v adapter come in and go, i am losing power fast? and I am using a duracell
@eveshkunwor1057
@eveshkunwor1057 7 лет назад
what could be the reason for non synchronization of two motors
@elvinvalette9928
@elvinvalette9928 6 лет назад
excellent video!
@CharmVibe24
@CharmVibe24 6 лет назад
Thanks sir, This tutorial is really excellent. What kind of software do you use to draw the circuit connection of the components?
@philippeclair4017
@philippeclair4017 4 года назад
Fritzing, it's a free software.
@nirveshnava1920
@nirveshnava1920 7 лет назад
Hi...I have done the clap light project...followed all as in the tutorial....but when i turn on the 240v switch , it light ups even before i clap.....do i need to supply the arduino with 9v battery?
@MrHomyachek
@MrHomyachek 5 лет назад
How to connect the scanner engine to play hired music like on the floppotron RU-vid channel?
@demofilm
@demofilm 6 лет назад
Say if i want to control speed and direction with a remote control That output the same signal servos use? How can i Connect That to the Arduino ?
@parthaprateempatra4278
@parthaprateempatra4278 5 лет назад
Best explanation
@rakesh14041987
@rakesh14041987 6 лет назад
Hi, I have the battery problem which you explained. But my 9v battery drains very fast everytime. Say in just 5 min when I run this tutorial. Is it a problem with my L298N module? And this is the same problem which Vishal is facing. Please help
@ayushsinha7416
@ayushsinha7416 4 года назад
Solved my problem 👍👍
@jonyjohan8958
@jonyjohan8958 5 лет назад
Best tutorial
@veyselaksoy6558
@veyselaksoy6558 6 лет назад
Hello , i have used l298N with powersupply which could generate 1000mA and 5V however my project's wheels could not work.Can you explaim this why it was not worked?Can you help me?
@saudadel2082
@saudadel2082 5 лет назад
Thank you for the video . How can I add PID controller to this code ?
@justfaction1068
@justfaction1068 5 лет назад
Hi mert .My motor is not rotating but the l298n's red light is working . Please reply fast because this is my exhibit project.
@emadaldeen6006
@emadaldeen6006 4 года назад
Can i connect the motor directly to the 9v battery to test it?
@vishupatil172
@vishupatil172 Год назад
Which software do you use for making circuit diagram
@fazlulkarim8724
@fazlulkarim8724 3 года назад
Can u please tell which simulator u used in this video?
@b1ngb0ngk1m
@b1ngb0ngk1m 6 лет назад
8:47 you didn't connect jumpers to VCC and GND from batttery, right?
@marilynstuart1546
@marilynstuart1546 5 лет назад
your source code does not display on the website shown
@vamshikrishna_vk1341
@vamshikrishna_vk1341 4 года назад
bro what about 5v pin....??should it be connected to arduino 5v pin...
Далее
The Fan’s Fang Skin🔥 | Brawl Stars Sneak Peek
00:16
How to control a DC motor with an encoder
9:30
Просмотров 434 тыс.
How to control DC motor with L298N driver and Arduino
5:48
The L298N H-bridge motor controller module - basics
14:24
How DC GEAR MOTOR Works with ARDUINO and L298N
10:04
Просмотров 238 тыс.
The Fan’s Fang Skin🔥 | Brawl Stars Sneak Peek
00:16