L298N | how to control dc motor with Arduino | Motor speed and direction control
Вставка
- Опубліковано 16 жов 2024
- ❤️ 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!
❤️ 🧡 💛 💚 💙 💜 ❤️ 🧡 💛
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: ua-cam.com/video/RgFOpSlIpvA/v-deo.html
Thank you. In spite of the ugly music I had to endure, the topic was very well explained.
interesting choice of bgm
I’m saying 😂😂😂
It's like we're about to go F some stuff up
"retribution" drives me f'n into deep irritation with the Creator of the channel!
Thank You for your time and effort.. Simply awesome code. 🖐️
🎈🎈🎈🔥🔥🔥🔥 Really appreciate this video. Great work. keep it up
keep up the good work. the motor control is superb
Hi, Amazing video, Could you guide us on using a remote control for controlling the motor too?
Sure I will post another video with RF remote module
Thank you for sharing the UA-cam 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
If you set both IN1 and IN2 to “HIGH” there is a very good chance you will blow the H-Bridge, yes.
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.
for those who are thinking will it work with L298n (Green) ? YES it does works..Congrats
🎈🎈 Really appreciate this video. Great speed controller
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
With speed control & limit switch
Thank you for sharing the speed controller. 🖤🖤🖤
🌈 Awesome video my friend
Really appreciate this video. Great motor control
you made my day!. Really appreciate this video. Great motor control
💛💛💛🔥🔥🔥 Like it. very nice motor controller
Thank You for your time and effort.
I'm impressed.. Thank you for sharing the coding
superb work. keep up the great work. 🎉🎉🎉🎉
thanks for sharing the speed controller. you made my day!. 💗🖤🖤🖤
Nice videos my friend ! Keep up!
Really appreciate this video. Great speed controller. 💗💗🖐️🖐️🖐️🖐️
💙💙💙 very nice arduino code. keep up the great work
Thank you for sharing this motor control. I'm impressed.
hlo sir, I am trying to make a controller of self made train with motors attached I am so confused how to give the connections of four motors into arduino uno can you pls let me know about it
Hi, if you need to control 4 DC motors individually, you can use two L298n drivers. one L298N driver can control two DC motors.
Here is the video for two DC motors using L298N : ua-cam.com/video/RgFOpSlIpvA/v-deo.html
😍😍😍😍 speed controller is good. Congratulations!
Want make auto Reverse Forward rotating circuit working on high Torque gear DC motor.... Can you please share hardware and arduino program details
Thank you for sharing the motor control
Congratulations!. Nice speed controller
Nice speed controller. ❤️👏👏👏👏
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..
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.
Awesome video my friend
HELLO I LOVED THE VIDEO AND WANT TO KNOW HOW TO US RF TO CONTROL MOTOR SPEED IN 4 DIFFERENT PRESET SPEED
Hi, You will need RF module with 4 channels, or if you have only one channel then it needs a bit of extra work. I will explain in a future video.
Thank you for sharing the driver. 🙌🏼🙌🏼🙌🏼🙌🏼🖤🖤🖤
Simply awesome motor driver. you made my day!
Thank you for sharing this speed controller. 💖💖💖💖
nice motor control. Thank You for your time and effort.
💖💖🌈🌈🌈🌈 Awesome video my friend
I'm impressed.. excellent work. nice speed controller. 💛💛💛
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!
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
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.
I'm impressed.. motor controller is awesome!
Thank you for sharing the project
Cool motor control!
👍💫 Very good coding
👍🏽👍🏽 amazing motor control. I'm impressed.
the driver is superb. you made my day!
Thank you for sharing the speed controller
Nice motor driver. keep up the good work. ⭐️⭐️✌️✌️✌️
Really appreciate this video. Great motor controller. 👏🏼👏🏼👏🏼👏🏼
❤️❤️👍👍👍 Loved it
Really appreciate this video. Great work
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 ?
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.
Is it possible to connect motors with different voltages on the same motor driver?
I don't think it's easy than using separate driver's for two motors
keep it up. Really appreciate this video. Great motor control
wow that's fantastic driver. 💗💗💗
Really appreciate this video. Great driver. I like it
Simply awesome project. 😎😎😎💛💛
excellent work. nice motor control
💚💚💚💚🖐️🖐️ super work. I'm impressed.
💓💓💓😍😍 Thank you for sharing this coding. Thank You for your time and effort.
😇😇😇😇 I'm impressed.. motor controller is awesome!
Really appreciate this video. Great project. Hats off
😘😘🖤 Great job and appreciate it
Hi! Thank you for the video.
wow that's fantastic work. 💖💖💖👍🏽👍🏽
keep up the good work. great work!
wow nice motor controller!. Genius!. 😇💚💚💚
💪🏻 the work is superb
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?
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.
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.
@@ProjectWeekend I read that again.
Yes. My pc fan is, in fact, a DC BRUSHLESS fan. 05V | 0.25A.
Nice work. Like it. 🍦👏🏼👏🏼👏🏼
💪💪⭐️ very nice project
🍦 Hats off. motor controller is awesome!
Genius!. very nice project. 🍺🍺
excellent work. nice motor controller. 🙏🙏💛💛💛
very useful speed controller. 🙌🏼🙌🏼😘😘😘😘
💗💗💗👍👍 this helped a lot. thanks
Congratulations!. very useful speed controller
Thank You for your time and effort.. wonderful coding
Simply awesome code. Hats off. 😘😘😘😘🍓🍓🍓🍓
😎😎😎😎 Awesome work
keep up the great work. Thank you for sharing the speed controller
😻😻😻😻😎😎😎😎 Great job and appreciate it
Thank you for sharing this motor driver. Keep going
💗💗💗❤️❤️❤️ Congratulation
🍦🍦🍦🍦🌈🌈🌈 Awesome video my friend
💓👏 the motor control is superb
Hi! Thank you for the video.. 🍦🍦❤️
🍟😍😍 very useful work
Thank you for sharing the project. 🖤🖤🖤🖤
Really appreciate this video. Great work. you made my day!
superb speed controller. Thank You for your time and effort.
Really appreciate this video. 😻😻😻😻🖤🖤🖤🖤
😍😍😍😽😽 Keep going
Hi! Thank you for the video.. 😇😇😇😇👏👏👏👏
🥰🥰🥰🥰😽😽 Hats off. Thank you for sharing this arduino code
Awesome!. 🖤👏🏼👏🏼👏🏼
Thank you for sharing this driver. 😍😍😍
Cool speed controller!. I liked it!
I already built same as this and i put potientiometer as the variable to control the motor rotate clockwise or counterclockwise, but can i put the limit ?
Yes, you can add limits to the potentiometer values to control the rotation of the motor within a specific range using something like
if (potValue < 500) {
potValue =500
}
if (potValue > 1000) {
potValue =1000
}
Thank you for sharing this project. I'm impressed.