Arduino control dc motor l293d | arduino l293d motor driver
Вставка
- Опубліковано 25 сер 2024
- arduino control dc motor using l293d motor driver ic. L293d ic is used to control speed and direction of dc motor. The l293d motor driver ic is a 16-pin Motor Driver IC which is used to control two dc motor simultaneously in any direction. That means it can individually drive up to two dc motor making it ideal for building a two-wheel robot car. The l293d is designed to provide bidirectional drive currents of up to 600 mA (per channel) at voltages from 4.5 V to 36 V (at pin 8!).
Topic cover:
How to control dc motor using l293d motor driver.
arduino l293d motor driver code.
➖➖➖➖➖➖➖➖🔴Sponsor🔴➖➖➖➖➖➖➖➖
Buy cheap, quality electronic, and Arduino products.
checkout now:- botuniverse.in/
The coupon code is: ELECTROUINO50
The coupon will allow you to get Rs.50 off on a minimum spend of Rs.500.
They are also delivering items during the lockdown.
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
Visit my blog to download codes and circuit.
👀🔎Website:-DIY control 2 dc motor using L293D motor driver IC | Arduino Tutorial |Mr.ElectroUino mrelectrouino....
Arduino line follow robot and obstacle avoiding car 2in1
• Arduino obstacle avoid...
Components Required for arduino l293d motor driver.
1. Arduino Uno
2. 1 x l293d Motor driver IC
3. 2 x dc Motor
4. 9v battery
5. Breadboard
6. Jumper Wire
------------------------------------[ 🟧 BUSINESS 🟧 ]-----------------------------------
⭐️If you want me to do custom projects or need my help in your projects,
so you can contact me.
✅ Instagram: / _mr_electrouino_
✅ Email: mr.electrouino786@gmail.com
*-*-*-*-*-*-*-*-*-*-*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
😊About us:-
Mr. ElectroUino is an education platform where we believe “Knowledge increases by sharing but not by saving” and it a community where we showcase you the best easy to follow tutorial on Engineering projects, Electronics, Robotics, DIY stuff, Arduino projects, Raspberry Pi, IOT project and many more such things that can bring out the best maker within you and help in making the World little smarter and techy.
#like #Share #Subscribe
*-*-*-*-*-*-*-*-*-*-*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Follow me on👍 : )
❤Instagram: - / _mr_electro. .
❤Facebook: - / mr.electroui. .
❤contact us:- mr.electrouino786@gmail.com
❤website:- mrelectrouino....
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Songs🎵🎵🎵
Janji - Heroes Tonight (feat. Johnning) [NCS Release]
Source:- • Janji - Heroes Tonight...
Zaza - Be Together [NCS Release]
Source:- • Zaza - Be Together | E...
Elektronomia - Sky High [NCS Release]
Source:- • Elektronomia - Sky Hig...
Electro-Light - Symbolism [NCS Release]
Source:- • Electro-Light - Symbol...
-----------------------------------.😎😎😎😎😎------------------------------------------
© Mr.ElectroUino
#Arduino #arduinotutorial #controldcmotor #l293dmotordriveric
arduino for motor control
control dc motor with arduino
arduino dc motor control with l293d motor driver ic
l293d motor driver ic arduino
Control two dc motor using an l293d motor driver ic
arduino motor driver
arduino for motor control
arduino with stepper motor driver
arduino with motor driver
motor driver for arduino
motor driver in arduino
arduino motor control pwm
arduino motor control code
l298n motor driver arduino
arduino motor driver l298n
arduino stepper motor driver code
arduino motor driver shield
arduino motor driver l293d
arduino dc motor control h bridge
arduino motor control board
arduino motor driver board
arduino stepper motor easy driver
arduino stepper motor driver board
arduino motor control h-bridge
arduino motor driver code
arduino pid motor control example
arduino uno motor driver
arduino motor driver high current
arduino uno motor driver shield
arduino dual motor driver
arduino motor control program
arduino motor driver module
arduino nano motor driver
arduino nano stepper motor driver
arduino pwm motor control mosfet
arduino stepper motor control uln2003
arduino motor speed control encoder
arduino pwm motor control h bridge
arduino servo motor control joystick
arduino servo motor control joystick code
l293d motor driver interfacing with arduino
motor driver for arduino uno
stepper motor driver arduino 8825
arduino mosfet motor driver
arduino motor driver l9110
arduino motor control mosfet
arduino stepper motor driver drv8825
arduino motor driver shield l293d
arduino to motor driver
arduino motor rpm control
arduino ac motor driver
arduino stepper motor control acceleration
arduino motor driver schematic
arduino dc motor control h bridge code
arduino motor control projects
arduino motor driver circuit
arduino control motor brushless
arduino motor control tutorial
motor driver interfacing with arduino
//Code for Lasy Coders
//Motor 1
const int MotorPin1 = 5;
const int MotorPin2 = 6;
//Motor 2
const int MotorPin3 = 10;
const int MotorPin4 = 9;
void setup() {
// put your setup code here, to run once:
pinMode(MotorPin1, OUTPUT);
pinMode(MotorPin2, OUTPUT);
pinMode(MotorPin3, OUTPUT);
pinMode(MotorPin4, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
//Turn Motor1 in clockwise for 3 second
digitalWrite(MotorPin1, HIGH);
digitalWrite(MotorPin2, LOW);
digitalWrite(MotorPin3, LOW);
digitalWrite(MotorPin4, LOW);
delay(3000);
//Turn Motor1 in counterclockwise for 3 second
digitalWrite(MotorPin1, LOW);
digitalWrite(MotorPin2, HIGH);
digitalWrite(MotorPin3, LOW);
digitalWrite(MotorPin4, LOW);
delay(3000);
//Turn Motor2 in clockwise for 3 second
digitalWrite(MotorPin1, LOW);
digitalWrite(MotorPin2, LOW);
digitalWrite(MotorPin3, HIGH);
digitalWrite(MotorPin4, LOW);
delay(3000);
//Turn Motor2 in counterclockwise for 3 second
digitalWrite(MotorPin1, LOW);
digitalWrite(MotorPin2, LOW);
digitalWrite(MotorPin3, LOW);
digitalWrite(MotorPin4, HIGH);
delay(3000);
//Turn Motor1 and Motor2 in clockwise for 3 second
digitalWrite(MotorPin1, HIGH);
digitalWrite(MotorPin2, LOW);
digitalWrite(MotorPin3, HIGH);
digitalWrite(MotorPin4, LOW);
delay(3000);
//Turn Motor1 and Motor2 in counterclockwise for 3 second
digitalWrite(MotorPin1, LOW);
digitalWrite(MotorPin2, HIGH);
digitalWrite(MotorPin3, LOW);
digitalWrite(MotorPin4, HIGH);
delay(3000);
}
ty
I was strugling a lot cz only 1 of my motors were working and the other didnt, they are now both working, your video helped me
I am glad that my video helped you...
Please do subscribe to my channel for more content...
I watched another video that the guy left out the ARDUINO CODE so I was left hanging stuck in my project after 2 hours of trying to get it to work. I don't know if your video works here or not but your code works after I changed some pin numbers, so "THANK YOU VERY MUCH" for the code! I might try your video for a future project since I know your code works. Thanks Again!
😊😊💖
Tq, so much it required 10hrs for me to run my dc motor
Glad it helped
Simple explanation, straight to the point, easily adaptable code.
Do you have any video with this exercise using PWM to control motor speed?
Well done again!
No I don't have this video.
I will make a video on that and #THANKS FOR WATCH💖💖
Great video by the way. I have two question. If you could answer them, it would much appreciated. The first one is, let say i have a robot, how can we make it do a left or right turn? The other one is, how can we powered the two motor with a 9v battery and use another 9v battery to power the arduino alone?
hey there, 1. If your robot has two wheels so you have to turn off one wheel and others should be on and rotated it in clockwise or anti-clockwise for the left or right turn.
2. Connect a 9v battery to Arduino Vin and gnd pin. For motor watch this video👉 ua-cam.com/video/fD0TESgnnAI/v-deo.html
Thank you! This really helped me :)
Thanks for watching😊😊
1.Why did you connected
1,8 and 9,16 to +ve
4,5 and 11,12 pins to -ve
from L293d to bread board.what. is its use?
To get power supplied to l293d is the reason or anything else.
2.can we connected another two motors in the same bread board on the same pins i.e out1,out2
1. Pin16 is for logic connection to Arduino.
Pin8 is connected to the Voltage pin for running motors (4.5V to 36V).
Pin1 and 9 is used to enable the input pin and control the speed of a motor
Pin 4, 5, 12, 13 is a ground pin
9v battery is for extra power.
2. I didn't try it before. If you try, let me know.
In the diagram at 0:52; at the right side, you have the +9v from battery connecting to the +5v of the Arduino. Isn't this a problem?
So many viewers try it out and it works for them they not getting any problem but I think this might be a little problem.
For fixing that just remove the Arduino 5v supply don't remove the ground pin. I'm going to check and fix the circuit diagram.
Thanks for your suggestion.💖💙
Is there any way for this to turn and stop after 10 seconds not 6?
Yaa, Its possible but you have change a delay to 10000
I want to control both motor simultaneously how should i do it?
Cool info, thanks :)
Welcome 💖
Is it safe to directly use a 9v battery and an arduino with the 5v? I'm fairly new to robotics but I have heard that it could mess up the arduino. I have a power module that I could use but it seems to cut out a lot of the power. Is there any other way of using the battery or is it okay to just use the arduino?
Same doubt here. Why not Vin pin...
Hello. If I want to control two motors at the same time, but in opposite directions, could I connect both of them to one side of the L293D chip, and just reverse their polarities?
There are two method to doing this
1. by coding
2. just reverse the polarities of the motor
THANK YOU!
Welcome ❤️
Bro how can i install a pot with it
Please reply it's urgent🥺🥺
connect a pot 1 pin to arduino 5v pin.
connect a pot 2 pin to arduino analog pin.
connect a pot 3 pin to arduino GND pin.
why you want to connect a for speed controller?
@@MrElectroUino bro what code should i have to write for this. (in your code)
@@engineeringstuffbyhazik736 For speed controller you have to change circuit and code too.
@@MrElectroUino can u make a video on that but not with servo simple motors🥺🥺
@@engineeringstuffbyhazik736 okk
My chip gets really hot. I checked the data sheet and it's safe up to 600ma...I have measured the motor current draw during operation and it draws just half this around 300ma but it get hot really quick. Does it need a heat sink or is there something wrong?
In that process it will little bit hot maybe something wrong with your IC or you can use a heatsink to reduce some heat.
this is a demo code , there are some mistakes which makes it hot
Thank you
Welcome
#DoSubscribe😊💙
i connected it the way you did but nothing happened and the battery got really hot
You might connect something wrong. Please check the circuit diagram.
Can it be that when a place Arduino l293d with sheild on breadboard pins of motor sheild don't get placed on breadboard
i am not getting.
@@MrElectroUino I am asking that can it be that Arduino l293d motor shield when placed over breadboard then the pins don't go into the holes of bread board because pins don't fall over holes of bread board they just fall behind bread board
@@zebaakhter6082 You just have to attach a l293d with sheild upon the arduino, there is no use of breadboard.
Don't forget to *subscribe* ☑️
Can You help me out plz i am now going to mad ....
Our project is Obstacle avoidance robot in that we are using Arduino UNO ,IR sensor ,4 BO motors.
So can You plz tell me which motor driver should i use?Whether L293D OR L298N or L293D moto driver shield and why plz reply me fast.....
Because i read that L293D motor driver module can run only 2 motors of you want 4 then it will movie only one direction. So how can we turn vehicle?
@@Haileyg4352 Go for l293d motor driver shield with this you can control 4 bo motor and ir sensors. Watch this video it kind of your idea but a bit advance.
ua-cam.com/video/ZiqAyuLpS3o/v-deo.html
Do subscribe to my both channel and you can contact me on instagram too. _mr_electrouino_
@@MrElectroUino but they used Driver shield we want to use L293D Driver or L298N
@@Haileyg4352 l293d motor driver shield is going for 4 motor.
@@MrElectroUino and what about L293D driver module? Will it not work for 4 motors?
You not done speed control whyy????
ok will update the code onto my website.
يجب ان تكون هناك تغذية خاصة بالمحركات ؟؟؟؟؟
أنا لا أفهم.