Control Speed and Direction of rotation of DC motor using L293B L293D motor driver with Aarduino PWM
HTML-код
- Опубликовано: 14 июл 2024
- This video shows you how to control a DC motor using a L293D motor driver with Arduino PWM.
You will learn how to change the direction of rotation of the motor, change the speed and start or stop it. We learn how to control the speed and direction. You can contgrol the DC motor over WiF from anywhere in the world, watch this video • ESP32 Tutorial 49 - Co...
The best thank you for me is to not skip ads and Subscribe 🔔 to my channel, like 👍 the video and do not skip the ads.. It is greatly appreciated. 🔔 😊.
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .
00:00 introduction
02:29 A look at the datasheet of L293D motor driver
04:38 Wiring is explained
07:03 Arduino code is explained
11:05 Demonstration of controlling motor
Get the code for this video: robojax.com/L/?id=315
Control DC motor with CW and CCW without speed control:
• Introduction to L293D ...
What is PWM Frequency of Arduino (Video): • What is Arduino Uno PW...
Tutorial by Ahmad Shamshiri form Canada
****************************
Arduino Step by Step Course (over 150 lectures) Starts here • Lesson 00 What is Ardu...
****************************
If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
Follow me on Facebook robojaxTV
Follow me on Twitter: / robojaxtv
Follow me on Instagram: / robojax
Rotojbax on Ticktok: / robojaxtv
Tutorial by Robojax.com
Get other projects code and learn Arduino
robojax.com/learn/arduino
*** AFFILIATE PROGRAM ***
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
#robojax #robojax_motor #robojaxL293D - Наука
Thank you ,nice job I learned and understood a lot from this 👍
Great to hear!
Thank you so much for this, really appreciate
You are welcome. The best thank you for me is to Subscribe 🔔 to my channel and like 👍 the video. It is greatly appreciated. 🔔 😊.
Nice job. Now I’m going to implement this logic on the MSP430
thanks. Good luck.
nice work. very clear to understand
Thank you.
thanks man!
No problem!
Very helpful video
Glad it was helpful!
hey , how are you giving the input to change the direction , i tried giving character input( L / R) via serial monitor but it didn't work
at 11:43 (click on 11:43) I have explained it. It would be very simple. I have not provided code to control the direction via serial monitor. I will try to make a video on that too if time permits.
Thank you for your valuable sharing, dude!
How can I control 20 step motors using Arduino or even the PC?
Thank you in advance!
Hi, I am glad you found it useful. I am not sure about 20 step motor but here we can is my video on stepper ruclips.net/video/TQ7R2bY-MWU/видео.html motor and tones of other tutorials on stepper you can search and find.
You didn’t reply? I searched for the video and provided a link. A simply acknowledgment is appreciated.
@@robojaxI'm really so sorry. For now, I only managed to say thank you with a like as a reply. I work traveling and haven't had time to catch that up on this yet. Billions of thank you!
Sir in the for loop can you explain how you fixed the end value of 255...How to determine the PWM values...
It can't be explained better than video in the text. please watch it 2 ore 3 times. to understand it.
Hey robojax im designing a a laser cat tower and im not sure to use this as my motor for complete 360 degrees and speed control or should i use a 360 degree micro servo please help! and keep making videos!
Hi Ivan, Thank you. I have lot of videos for servo motors and here is the search result ruclips.net/channel/UCkcBSig_Iu4ZnAIeCeG1TVgsearch?query=servo
I thought speed control wasn't possible with the L293 drivers. Thank you for sharing. Why do I need the diodes if I have an L293?
I have explained it in the video. Motor is inductive and when it turns OFF or ON, it generates reverse voltage that can damage components to the chip. So the diode absorbs that spike of voltage.
@@robojax Thank you. I'm sorry for missing that part.
No problem. You are welcome.
Thanks man for this video. You've mentioned the L293B-Driver in the video title. But in the video itself, you have not mentioned it at all, so, with which driver is this similar, the L293 or the L293D ??? I'm asking because of usage of diodes. I also could ask you: do we need diodes for L293B too ?
D means diode.
@@robojax I know, but I asked you for the L293B Driver. You have not mentioned the L293B driver at all. Is L293B similar to L293 or is it similar to L293D ?
@@robojax Does the L293B needs Diodes too ?
@@robojax Hi again. Does the L293B needs diodes too ? If yes: which kind of diodes do you use ? I'm a geginner, sorry :D
I remember I opened the datasheet and explained it. That's why I remember the D but for the rest watch the video and get it from there.
hey i love the video, but can you explain the wiring a bit better because i dont understand it!
Thank you. for all my videos I provide the wiring diagram. The wiring diagram is available for my students at my Arduino course at Udemy.com robojax.com/L/?id=153
Your videos are very clear to understand. Do you have a tutorial where you use a l293d, potentiometer, breadboard,push buttons ( up down right left ) directions, dc motors, leds for a line following robots please ?
not. I have for L298N module ruclips.net/user/robojaxTVsearch?query=L298N
Does the speed controll part works also on raspberry pi?
Im also using a l293d for my project, but didnt know yet how to controll speed of motors...
Hope you can help my
Yes it does. As long as you send PWM signal to this, it works.
Can you may explain on which pin to send the PWM signal...? That would be very helpful
*May you explain
It has been explained in the video. This is for Arduino and not raspberry Pi.
How do i determine motor current draw if no data sheet is available. Is there a way to test them?
Hi, a simple google searched showed this www.eaelec.com/ea_hobby/tips1.htm
Sir how to rotate dc motor in required angualr displscement. And how to repeat this motion clockwise and counterclockwise.
Hi, angular displacement depends on what is attached to the shaft and diameter of wheel or piece attached to the shaft. You will also need something called ENCODER where you can precisely know the speed of motor. I can't explain it in a few line but that is the basic idea.
Sir can you provide mail id so I can send you our problem in project. It will help us in completing our project
How can I attach four motors? Will I need two ic’s?
If you want just to rotate them in one direction then one I c is good otherwise yes you need two chip
where are u connecting the external power supply of 9 V?
I have a power supply that produces 0 to 30V. But have explained it in the video. please watch it without escaping.
nice video but i have a question, why can't you just connect the motor in the arduino?
thanks. Arduino's output pins can output only 30mA max. this motor needs 1000mA so we use the IC as driver.
Here I found your question in one of my videos ruclips.net/video/EaoB6lfnS7g/видео.html
sir i have a doubt, can i use this chip for arduino nano? if i can how many motors can control?
you can use any Arduino. just define pins and go.
@@robojax thank you somuch sir!!
how did you change the direction in your code ?
watch the video and do not escape. It has been explained.
@@robojax do i have to change from L to R in the code to change the direction? I wanna do that automatically in one code
u should add a schematic to your video!
Schematic is provided with my Arduino course at Udemy.com. If you purchase the course, you will see the schematic. here is the link to my course at Udemy bit.ly/rj-udemy
Where can i find this code?
perhaps you missed it and skipped. All videos on RUclips have decryption which is under the video and there are links for the video. The same is true for my videos.
sir i have 4 questions
1. how may chips can i use at the same time?
2. how many motors can run using the same chip?
3. can i run 4 motors using a single chip?
4. can i use 1 chip for 4 motors?
Hello Random K
Answers
1-As many as your Arduino board allows
2-Watch the video as I have not skipped such important thing
3-refer to answer 2
4-Yes you can as long as the chip can handle the current. I've explained how much current this chip can handle. I've shown datasheet and there is link for the datasheet so you can view
Good luck and be nice to reply back when you got this replay. Thank you
@@robojax Thank you so much sir!!!, but i have another question, instead of four dc motors can i run four coreless motors?
this is for DC motor.
@@robojax is there a chip for coreless motors for drones?