L298N | how to control dc motor with Arduino | Motor speed and direction control

  Рет қаралды 129,930

Project Weekend

Project Weekend

Күн бұрын

❤️ Hi friends, Welcome to Project Weekend
In this video, I will clearly explain, how to create a powerful motor speed and direction control using Arduino + L298N Motor driver.
Keywords: #l298n, l298n, l298n motor driver arduino, how to control dc motor with arduino, arduino motor shield, motor speed and direction control, h-bridge motor control, l298n motor driver arduino,arduino dc motor speed control,arduino dc motor control,l298n arduino, l298n motor driver,l298n motor driver price
If you like my video, please 👍 Like and share it.
Please 💬 Comment your ideas in the comment section. Your comment helps me a lot to produce more quality videos in the future.
Please 👆🏻 Subscribe to the Project Weekend channel to watch my future videos.
Click the bell icon to get notifications when I upload a new video.
Thank you.
❤️ 🧡 💛 💚 💙 💜
This video includes-
👉 L298N Powering up
👉 L298N + Arduino Connection Diagram
👉 L298N Change direction and speed of DC motor
👉 Arduino Source Code for L298N Motor Driver
👉 Sample code and modifications for various control methods
Gear motor link: bit.ly/3NIEn3A
12V DC motor link: bit.ly/3GTZdLe
775 Motor link: bit.ly/3tddvAV
L298N stepper motor driver link: bit.ly/3xohZHz
Arduino UNO link: bit.ly/3ma5N6v
My other videos -
🎬 BOOMBOX V2 - Multimedia Bluetooth speaker DIY/ Bluetooth boombox/ DIY boombox/ Multimedia system
• ❤️Portable bluetooth s...
🎬 How to build multimedia Boombox using a pipe: DIY homemade audio system
• How to build multimedi...
🎬 7 BRILLIANT WRENCH LIFE HACKS!/ WRENCH HACKS/ USING WRENCH/ SUPER WRENCH/ WRENCH TIPS/ WRENCH TOOL
• 7 BRILLIANT WRENCH LIF...
🎬 Unscrew any bolt using any available wrench!
• Unscrew any bolt using...
🎬 775 DC Motor repair rebuild with 150% power gain!
• 775 DC Motor repair re...
🎬 Mp3 USB KIT DIY boombox
• portable speaker | Bes...
🎬 How to fix Alternator battery charging problem, belt squeezing noise, belt alignment issue
• Alternator belt noise ...
🎬 DIY TOOL HOLDERS using PVC pipe parts
• NICE TOOL HOLDER | HO...
🎬 HOW HAIR CLIPPER WORKS/ hair clipper adjustments/ Best hair clippers/ Hair clipper tutorial
• HOW HAIR CLIPPER WORKS...
🎬 FULL TOOLBOX REVIEW - 40 pcs combination socket wrench set unboxing and full review
• FULL TOOLBOX REVIEW - ...
🎬 Knight Rider LED Keyboard hack!
• Knight rider led | kni...
🌴🌴 🌳 🌳🌴🌴🌴🌴🌴🎄🎄🎄🌴🌴🌴 🌳🌴🌴🌴🌴🌴🌴🌴🌴🌴🌴🌴🌴🎄 🌲 🌳
If you like my channel, then, please
👍 Like
💬 Comment
👆🏻 Subscribe
🛎 Click the bell icon on my channel.
Website: projectweekend...
Facebook group: / 645023196075453
Facebook Fan Page: / project-weekend-202139...
Thank you and have a great day!
❤️ 🧡 💛 💚 💙 💜 ❤️ 🧡 💛

Пікірлер: 1 100
@ProjectWeekend
@ProjectWeekend 2 жыл бұрын
Gear motor link: bit.ly/3NIEn3A 12V DC motor link: bit.ly/3GTZdLe 775 Motor link: bit.ly/3tddvAV L298N stepper motor driver link: bit.ly/3xohZHz Control two DC motors using L298N motor controller: kzbin.info/www/bejne/iJipgKOJoa6jrKM
@Artur1959
@Artur1959 3 ай бұрын
Thank you. In spite of the ugly music I had to endure, the topic was very well explained.
@levin8291
@levin8291 Жыл бұрын
interesting choice of bgm
@divinechijindu7465
@divinechijindu7465 Жыл бұрын
I’m saying 😂😂😂
@PerilNotion
@PerilNotion 11 ай бұрын
It's like we're about to go F some stuff up
@lohikarhu734
@lohikarhu734 3 ай бұрын
"retribution" drives me f'n into deep irritation with the Creator of the channel!
@learnwithlsm5595
@learnwithlsm5595 Жыл бұрын
Thank You for your time and effort.. Simply awesome code. 🖐️
@AmirHamza-wi7os
@AmirHamza-wi7os 5 ай бұрын
for those who are thinking will it work with L298n (Green) ? YES it does works..Congrats
@amanagarwal3682
@amanagarwal3682 Жыл бұрын
Hi, Amazing video, Could you guide us on using a remote control for controlling the motor too?
@ProjectWeekend
@ProjectWeekend Жыл бұрын
Sure I will post another video with RF remote module
@indralaljayathilaka645
@indralaljayathilaka645 Ай бұрын
keep up the good work. the motor control is superb
@CleonMusicOfficial
@CleonMusicOfficial 22 күн бұрын
Thank You for your time and effort.
@JOY-x3y
@JOY-x3y 4 ай бұрын
superb work. keep up the great work. 🎉🎉🎉🎉
@AbigailFernando-bs9dm
@AbigailFernando-bs9dm 4 күн бұрын
Nice speed controller. ❤️👏👏👏👏
@scstrend
@scstrend Жыл бұрын
Cool motor control!
@06_කමරේ-23
@06_කමරේ-23 4 ай бұрын
🎈🎈 Really appreciate this video. Great speed controller
@slbuspodda7283
@slbuspodda7283 24 күн бұрын
Really appreciate this video. Great motor control
@Rise_and_Thrive1111
@Rise_and_Thrive1111 3 ай бұрын
Thank you for sharing the speed controller. 🖤🖤🖤
@Gleaming_Goals
@Gleaming_Goals 9 сағат бұрын
Thank you for sharing the motor control
@CricMagazine
@CricMagazine 5 ай бұрын
I'm impressed.. Thank you for sharing the coding
@neumannvon2051
@neumannvon2051 Жыл бұрын
Thank you for sharing the KZbin video and what will happen when “IN1”, “IN2” and “ENA” are equal to Logic ‘1’ or HIGH ? Will it damage the H-Bridge L298N or the DC motor. kindly advise. Thanks
@garyhalsey7693
@garyhalsey7693 Жыл бұрын
If you set both IN1 and IN2 to “HIGH” there is a very good chance you will blow the H-Bridge, yes.
@ProjectWeekend
@ProjectWeekend 9 ай бұрын
No it will not damage L298N driver anyway. It's designed to handle all logic states without any problem. If all pins are set high, the motor will simply not run.
@football_fans-89f
@football_fans-89f 15 күн бұрын
Thank you for sharing the project
@starkitchen5752
@starkitchen5752 2 ай бұрын
Thank you for sharing the speed controller
@joshtechjunction7041
@joshtechjunction7041 Ай бұрын
Want make auto Reverse Forward rotating circuit working on high Torque gear DC motor.... Can you please share hardware and arduino program details
@ARTBYSAMINTHA
@ARTBYSAMINTHA 3 ай бұрын
nice motor control. Thank You for your time and effort.
@NadunVideoTeamKotugoda
@NadunVideoTeamKotugoda Жыл бұрын
Hi! Thank you for the video.
@viaggio19
@viaggio19 Жыл бұрын
wow that's fantastic driver. 💗💗💗
@Laguhitsaiori
@Laguhitsaiori Ай бұрын
excellent work. nice motor control
@Laguhitsaiori
@Laguhitsaiori 2 ай бұрын
💛💛💛🔥🔥🔥 Like it. very nice motor controller
@PlantRoomRadio
@PlantRoomRadio Жыл бұрын
🎈🎈🎈🔥🔥🔥🔥 Really appreciate this video. Great work. keep it up
@ChaMa432
@ChaMa432 4 ай бұрын
thanks for sharing the speed controller. you made my day!. 💗🖤🖤🖤
@MindBlownFacts1.0
@MindBlownFacts1.0 6 ай бұрын
Thank you for sharing this motor control. I'm impressed.
@thegodofbinary
@thegodofbinary Жыл бұрын
Awesome video my friend
@zionministriessrilanka7108
@zionministriessrilanka7108 Жыл бұрын
💪🏻 the work is superb
@ARTBYSAMINTHA
@ARTBYSAMINTHA 4 ай бұрын
Congratulations!. Nice speed controller
@Sakura89968
@Sakura89968 Жыл бұрын
Simply awesome motor driver. you made my day!
@harmonyorigins15
@harmonyorigins15 Ай бұрын
Simply awesome motor control
@vandawtceu1289
@vandawtceu1289 6 ай бұрын
can i put the programs into if sentences and put it together with a distance sensor? For example, if the distance sensor detects something, then could it make the motors stop ?
@ProjectWeekend
@ProjectWeekend 5 ай бұрын
Yes, you can integrate a distance sensor with your L298N motor driver. You can use if statements in your program to make the motors stop when the distance sensor detects an obstacle. For example, with an ultrasonic sensor like the HC-SR04, you can measure the distance and if it is below a certain threshold, you can stop the motors by controlling the L298N driver pins accordingly. This way, the motors will stop whenever an obstacle is detected within a specified range.
@GihanRathnayaka-po5qc
@GihanRathnayaka-po5qc Жыл бұрын
💪💪⭐️ very nice project
@ganeshpingle.8423
@ganeshpingle.8423 Жыл бұрын
very good video. thank you. but i have a queshion . i like to connect a potentiometer to control the direction of this moter so how i do this. plz help..
@ProjectWeekend
@ProjectWeekend Жыл бұрын
Thanks. Yes you can. You need to connect potentiometer middle pin to Arduino, as a analog input, and one pin to ground, and the other pin to 5V line with resistor in series. Then you need to read the value of analog input pin you used, and adjust the potentiometer to it's middle position. Read the value, and set that value as 0 position that stops the motor. Considering the value of potentiometer reading, you can change the direction and set speed with some simple calculations.
@Echo-Wisdom
@Echo-Wisdom Жыл бұрын
😍😍😍😍 speed controller is good. Congratulations!
@thecity-zo2xe
@thecity-zo2xe 5 ай бұрын
I'm trying this using a 5v pc fan. I followed the directions, so why does the fan only twitch? Should I have connected a battery where it says 12v? If so, what kind of battery?
@ProjectWeekend
@ProjectWeekend 5 ай бұрын
If you are using brushless DC fan with L298N, it wont work as you expected because the fan is controlled by the fan's internal circuit. First check the driver with normal brush type DC motor, and it should work as you expected.
@thecity-zo2xe
@thecity-zo2xe 5 ай бұрын
I own an Elegoo Ultimate Starter Kit, so I tried using its breadboard power supply module and... the fan didn't even twitch this time . I have seen that there are "brush" type and "brushless" dc motors. I didn't think that would be important here. I will have to read up on that. Thank you.
@thecity-zo2xe
@thecity-zo2xe 5 ай бұрын
@@ProjectWeekend I read that again. Yes. My pc fan is, in fact, a DC BRUSHLESS fan. 05V | 0.25A.
@mr.d-fbtrainer5466
@mr.d-fbtrainer5466 Жыл бұрын
Thank you for sharing the driver. 🙌🏼🙌🏼🙌🏼🙌🏼🖤🖤🖤
@Cheniru_Official_Bus
@Cheniru_Official_Bus 7 ай бұрын
I'm impressed.. motor controller is awesome!
@cyberhublk
@cyberhublk 21 күн бұрын
very useful speed controller. 🙌🏼🙌🏼😘😘😘😘
@timbaldes3054
@timbaldes3054 Жыл бұрын
Hi, so I‘m looking to build a motor that drives a lynx for back and forth several meters along a linear axis to test out wildlife cameras for a scientific study. Your video was very helpful since I have exactly no ER background. But I’d there any way to tell the motor when it has reached the end of the track, wait there for one minute and then reverse? This process would have to be repeated several hundreds if not thousand of times. I‘d be so glad if you could help!
@komplikuotas1691
@komplikuotas1691 Жыл бұрын
You would need some sort of button that the lynx would push when it gets to the end, and in the code write that if it is pushed, delay for ... and change direction. Another way you could do that is measure the time the lynx takes to get to the end, and delay the code for that time and once its over stop the motor, then delay for ... and change direction
@ProjectWeekend
@ProjectWeekend Жыл бұрын
You can use limit switches and attach them on both ends, and connect to Arduino ground and to input pin. Then in the code, set the pin to input mode and stop motor and add delay before direction change.
@umadiaries1
@umadiaries1 2 ай бұрын
so nice!. 💓💓👍👍👍👍
@Raaj0612
@Raaj0612 Жыл бұрын
Thank you for sharing this speed controller. 💖💖💖💖
@Exotic_Car_World
@Exotic_Car_World Жыл бұрын
Awesome!. 🖤👏🏼👏🏼👏🏼
@anu8798
@anu8798 11 күн бұрын
thanks for sharing the speed controller
@ZenfluenceJuntion
@ZenfluenceJuntion Жыл бұрын
🍦 Hats off. motor controller is awesome!
@lekafinance
@lekafinance Ай бұрын
😎😎😎😎 Awesome work
@ILLANDMENTAL
@ILLANDMENTAL Жыл бұрын
you made my day!. Really appreciate this video. Great motor control
@olumuyiwasiyanbola8093
@olumuyiwasiyanbola8093 Жыл бұрын
Is it possible to connect motors with different voltages on the same motor driver?
@ProjectWeekend
@ProjectWeekend Жыл бұрын
I don't think it's easy than using separate driver's for two motors
@Sikabroo
@Sikabroo Жыл бұрын
Really appreciate this video. Great speed controller. 💗💗🖐️🖐️🖐️🖐️
@harithawahinisrilanka1459
@harithawahinisrilanka1459 Жыл бұрын
😇😇😇😇 I'm impressed.. motor controller is awesome!
@scriptureworldsinhala
@scriptureworldsinhala 6 ай бұрын
😘😘🖤 Great job and appreciate it
@slvocationalacademy.
@slvocationalacademy. Жыл бұрын
I liked it!. 💛🖐️🖐️🖐️
@thebartender371
@thebartender371 3 ай бұрын
keep it up. very nice motor driver
@DanulSenadeera
@DanulSenadeera Жыл бұрын
Really appreciate this video. Great work
@candyeatandtravel
@candyeatandtravel Жыл бұрын
excellent work. nice speed controller
@shameeratechinfo
@shameeratechinfo Жыл бұрын
Thank you for sharing the driver. 💪💪💪
@MehboobStudio133
@MehboobStudio133 9 ай бұрын
wow nice motor controller!. Genius!. 😇💚💚💚
@drfixit9619
@drfixit9619 Жыл бұрын
Hi! Thank you for the video.. 😽😽😽👏🏼👏🏼👏🏼
@Aroundthecountry
@Aroundthecountry Жыл бұрын
💙💙💙 very nice arduino code. keep up the great work
@AkarshaChess
@AkarshaChess Жыл бұрын
💙💙💙 Thank you for sharing this driver
@charizard664
@charizard664 Жыл бұрын
💓👏 the motor control is superb
@VImukthiDissanayake-yj4so
@VImukthiDissanayake-yj4so 5 ай бұрын
Really appreciate this video. 😻😻😻😻🖤🖤🖤🖤
@worldgaming0Q
@worldgaming0Q Жыл бұрын
💖💖🌈🌈🌈🌈 Awesome video my friend
@voiceofrythemvoiceof-vor
@voiceofrythemvoiceof-vor Жыл бұрын
Simply awesome project. 😎😎😎💛💛
@NKcreation1995
@NKcreation1995 5 ай бұрын
wow that's fantastic work. 💖💖💖👍🏽👍🏽
@6x9ineRemix
@6x9ineRemix Жыл бұрын
Simply awesome speed controller. 🤟🤟🤟
@slideamaster9043
@slideamaster9043 Жыл бұрын
💓💓💓 Very well done
@athularohan3092
@athularohan3092 Жыл бұрын
Good job. 💙💙💙💖
@BinuriKarunarathna
@BinuriKarunarathna Жыл бұрын
Thank you for sharing this driver. 😍😍😍
@Hashan-Edirisinghe
@Hashan-Edirisinghe Жыл бұрын
very useful motor control. 😘😘✌️✌️✌️✌️✌️
@AmaniNimthara_YT
@AmaniNimthara_YT 9 ай бұрын
🌈 Awesome video my friend
@InpersonaVyvo
@InpersonaVyvo 6 ай бұрын
Cool speed controller!. I liked it!
@rjzone3453
@rjzone3453 Жыл бұрын
thanks for sharing the motor controller. 🔥🔥🔥🔥
@productsreviewer-xx4cw
@productsreviewer-xx4cw 5 ай бұрын
very useful motor driver. well done. 🍦🍦🍦🍦
@FixitEasyDIY
@FixitEasyDIY Жыл бұрын
Nice videos my friend ! Keep up!
@sadassarupasadas8277
@sadassarupasadas8277 4 ай бұрын
🎈😘😘 keep up the good work
@DeeDesignGraphic
@DeeDesignGraphic Жыл бұрын
wow that's fantastic motor driver. 🍦🍦🍦🍦
@SLMUSICHUBS
@SLMUSICHUBS 2 ай бұрын
keep up the good work. super driver
@AmericanandBangladeshiDreams
@AmericanandBangladeshiDreams Ай бұрын
wow that's fantastic motor control
@bhisajighadigaonkar8069
@bhisajighadigaonkar8069 7 ай бұрын
i want to use this programm for LP Payer motor for speed of RPM 33.1/2 RPM 45 and RPM 78 please suggest what to modify thanks
@ProjectWeekend
@ProjectWeekend 5 ай бұрын
To modify the program for an LP player motor to run at specific speeds (33 1/3 RPM, 45 RPM, and 78 RPM), adjust the PWM (Pulse Width Modulation) values in your code. Determine the correct PWM values that correspond to each speed through experimentation and then set these values in your Arduino program to control the motor speed. Use different PWM duty cycles to achieve and switch between the desired RPMs.
@slfuntune6640
@slfuntune6640 8 ай бұрын
great motor control. Genius!. 💪🏻💪🏻💪🏻💪🏻😽😽
@QuizBullet1803
@QuizBullet1803 8 ай бұрын
Cool speed controller!. 😻👏🏼👏🏼👏🏼
@FunkeyMonkeyCartoons
@FunkeyMonkeyCartoons 7 ай бұрын
keep up the good work. great work!
@bingo27brigomi
@bingo27brigomi 7 ай бұрын
I'm impressed.. very nice motor controller
@CookcraftTD
@CookcraftTD 7 ай бұрын
superb speed controller. I liked it!
@longlivesoothingmusic2286
@longlivesoothingmusic2286 Жыл бұрын
✌️✌️✌️✌️💙💙💙 Nice motor controller
@JibinRajuart7
@JibinRajuart7 Жыл бұрын
Really appreciate this video. Great driver. I like it
@Englishsb24
@Englishsb24 7 ай бұрын
amazing driver. Genius!
@frendziponlinesocialnetwork
@frendziponlinesocialnetwork Жыл бұрын
💗💗💗❤️❤️❤️ Congratulation
@NaweendraLanka
@NaweendraLanka Жыл бұрын
Respect. Simply awesome motor controller
@dilshancreations413
@dilshancreations413 Ай бұрын
😻😻😻😻😎😎😎😎 Great job and appreciate it
@MERDMusic
@MERDMusic Жыл бұрын
🤟😘😘😘😘😘 Thank you for sharing the motor driver
@anushbro1987
@anushbro1987 Жыл бұрын
Simply awesome code. Hats off. 😘😘😘😘🍓🍓🍓🍓
@Hubbyskitchen94
@Hubbyskitchen94 Жыл бұрын
Nice work. 👏👏👏👏👏👏👏
@roshanwishwajith8404
@roshanwishwajith8404 19 күн бұрын
keep up the great work
@slideamaster9043
@slideamaster9043 Жыл бұрын
Genius!. very nice project. 🍺🍺
@travelwithabisheka
@travelwithabisheka 10 ай бұрын
the driver is superb. you made my day!
@kavijohn1972
@kavijohn1972 Жыл бұрын
Hi sir, I have one arudino uno, 3 gread 12v motor, 2 joystick & 2 L298n. I want run this 3 motor forward & backward with joystick. Can you share the code pls
@kavijohn1972
@kavijohn1972 Жыл бұрын
With speed control & limit switch
Arduino Tutorial 37: Understanding How to Control DC Motors in Projects
31:25
How PWM works | Controlling a DC motor with a homemade circuit
10:01
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 38 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 18 МЛН
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 29 МЛН
ARDUINO ve L298N Motor Sürücü Kartı
24:20
Lezzetli Robot Tarifleri
Рет қаралды 261 М.
How to control a DC motor with L298N driver and Arduino Uno
9:50
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 206 М.
DC motor PID speed control
15:29
Curio Res
Рет қаралды 240 М.
Arduino Tutorial 30- Control DC Motor Speed and Direction using a Joystick
14:30
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Рет қаралды 671 М.
How to test L298N motor driver board - Tutorial
4:06
RoboCircuits
Рет қаралды 219 М.
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 38 МЛН