L293D Motor control Module Tutorial - Run motors off the Arduino
Ғылым және технология
I recommend this Arduino and sensors kit to get started with Arduino:
usa.banggood.com/custlink/GKD...
This is a reliable L293D board:
usa.banggood.com/custlink/DGm...
Recommended soldering iron: TS100:
usa.banggood.com/custlink/vv3...
This tutorial covers the L293D Module. The L293D is a motor control module or an l293 motor driver. It comes in various forms, this one is an expansion shield, which means it stacks on top of the arduino. This L293D module can run 4 DC motors at a time, conversely, it can run 2 Stepper and 2 servo motors at a time. The L293D is a very useful module for Arduino projects like robotics, rovers, cars, line follower robots, etc.
This video covers L293D connection to arduino, coding the L293D for running motors and servos, and running motors with external power supply with L293D motor shield.
Hope you liked the tutorial on L293D expansion module for Arduino.
Subscribe to Fungineers for more projects and tutorials!
Пікірлер: 404
just magic! I was trying to learn how to combine sketches, your modification of the script gave me a lot of information. thanks.
The only video on KZread to explain this clearly. I don't know how to thank you sir.🙏
Omg I’ve been searching for your vid for forever! Thank you for a true and basic knowledge on how to control and programme!
Great video, thank you, has helped me overcome a few issues I've been experiencing with a motorshield project 👍🏼
Great job of explaining how the code works. Most others just skip over it.
First time working with Arduino shields and downloading libraries, this was a great video!
Thank you for this tutorial it was very helpful for start playing with shield.
Thanks. Very useful. Afaik the shield can not only run 2 stepper motors and 2 servos it can run those servos just as well together with 4 dc motors. The servos are not controlled y the l293D but by pwm pins of the arduino so are completely separate from the amount of dc motors or stepper motors
A great explanation my friend. I just like to ask whether I need to remove the jumper clip from the motor shield while the motor shield and Arduino is run by only an external power source?
Thanks for this video man! You cured my headache!
Thanks man you explained everything in this video and answered all the questions that I had you're so cool
@Fungineers
4 жыл бұрын
Thank you
Great job. Can you please make a tutorial for 2 servo's and 2 ultrasonic sensors on the L293D?
Great and useful stuff and its presentation - I think i will be coming back to it many times in the future
PERFECTLY DONE .
May I please ask if it has the same functions with the module version of the L293D?
Thankyou for this Video. I have purchased one of these shields to run a large 12v motor. What is the best solution to power the motor? I want to handle approx. 100A at 12V. Can I run the program through an Arduino, to this Shield (powered at 12V) to a relay on each motor out line? Will a relay react fast enough to deal with the PWM of the Arduino?
thanks for the video. does this motor shield give the ability to control both motor to run in sync? I have problem getting my 2 dc motors to run in sync, my robot does not go straight. I am wondering if this thing is what I need to save me the task to look into PID control.
Hello! I was looking for this video! It is amazing. Question.... What Voltage did you use for those batteries. It may be 6volts?? Also, could I put 2 3volt battery packs together (2 positive wires into the + screw terminal, and 2 negative wires into the - screw terminal for the power (The 2 + and - wires from both the battery packs)) Thanks! I am asking this because I don’t have a 6 volt battery pack, so I was wondering if I could combine 2 3 volt battery packs.
Thank you so much for this video. Very thorough. One thing I’m still confused about is the Rx/Tx connection for this shied. I saw a video where someone connected their Bluetooth module to the servo pins, for power, ground, Tx, and Rx. The app I’m using as a GamePad controller is not recognizing the board, and I’m thinking I should just solder two wires to the Tx and Rx soldering that correspond to pins 1 and 2 on the arduino. I know these are used for serial communication with the arduino and that I would have to just disconnected the Bluetooth module before connecting to my computer. Any thoughts about the Servo pins serving as a connection point for the Bluetooth module?
Perfect explanation. Thank you
Awesome video. Very informative and to the point. Well Done !!!
best video so far on topic
Very nice video ! Thanks a lot ! May i ask. Can you explain how to connect this stepper motor controller with a switch
PERFECT! Just what I needed!
good explaination.but i want to know which pins of arduino send motor driving signals to the driver shield.
Very nice tutorial. I was wondering if a temperature sensor can be added in the scheme in order to change the rotation direction of the motors depending on the temperature read? Thank you.
@ExtantFrodo2
Жыл бұрын
You can use the 3x6 grid of connections to the +5, Ground and A0-A5 shown at 4:13 - 4:57 in the usual way.
Good knowledge 👌 Which is the best wifi module for this type of setup ? Can I connect Nodemcu ESP2866 with this setup ?
Hey, I had a doubt in our project we are using 6 motors so can you suggest whhich drivers should we use to connect all of them as L293D and L298N permits 4 and 2 motors to use
I appreciate you going in detail about every function
can we give power supply to the motor shield by using 12 v adapter plus minus to the point of motor shield
Another Question also. How can I attach these pins for the Digital and Analog pins without soldering iron?
Can I use 6 motors using this driver? 12 volt dc bo motor and connecting it to only the m1 & m2 terminals i.e. shorting the wires of left side on m1 and right side on m2 port?
In case I'm using external 12v power, should I power Arduino too? or Arduino will automatically get power from the shield?
Please correct me if I am wrong but I think the shield can run 4 dc motors OR 2 stepper motors OR 2 servos. I do like the presentation of the video.
Had a doubt about connection of HC-05 to motor driver when staggered the you showed in video
Can we use 2 external power sources at the same time, one source power for arduino and one source power for motor driver shield?
This might help me a lot for my presentation ♥️
@Fungineers
4 жыл бұрын
Good luck!
How to connect the stepping motor from the scanner so that he plays music like on the youtube channel floppotron?
Can you also control the motors via the arduino pin it is hooked up to? Example: analogWrite(9, 255); can this be done?
nice tutorial understand two dc motor and one servo motor function ....in one adafruit board tnx buddy...god bless you ..
If I'm going to attach a second servo, what should i put in x in servo2.attach(x)?
thank you very much, work 100% 👍
Great........I really liked the way you explained it
Nice description ! How can I operate 230 AC/DC 500W rating 4 numbers of motor by using Arduino ? Thank you !
thanks for sharing your valuble knoledge🙏
Can i use 36v battery on it. When I bought it from amazon it was saying that i can use up tu 36v?
Hello, I would like to make an inquiry. Is it possible to connect this L293d shield motor module to the WeMos D1 mini (WiFi) module? If so, what should the connections be like? Thank you.
Great video and explanation 👏👏👏 You have mentioned in the video about A0-A5 can be soldered! What about Digital pins? I need to connect D3-D6 for some other sensors! How to do that with L293D !
@Fungineers
4 жыл бұрын
Thanks. You can use analog pins as digital too.
Interesting driver motor, my question is this motor shield comlatible to solar pump 12V, 180W? tnx
is there a way to make the motors run in turns? thank you for this video btw
Hey ,Very useful video. Keep it up man. One quick question, can I use this motor shield for control 6 dc motor(forward/ backward) If not,what I can use instead.
@Fungineers
5 жыл бұрын
Thanks buddy. You can do up to 4 motors. You will have to stack another shield on top to control 8 motors. But battery voltage will also have to double.
@mayankdhameliya5931
5 жыл бұрын
@@Fungineers thank you🙂
Thankyou, it's very useful
Great tutorial 😁
Hey can we connect 4 dc motors and one servo motor to it at once?
Hi sir as same I want to connect 1.servo motor 2. Two stepper motors 3.hx711 which is connected with load cell where can I connect hx711 module to driver circuit
Great video !!!!! Hats off
How do I use the digital pins to connect sensors/modules? I want to connect an ultrasonic sensor, a bluetooth module, and 4 dc motors.
How can i randomise the intervals of a servo movement? Like lets say i want robot eyes to open and close at random times. And to keep doing that, until power is shut off.
You posted that library part a bit quickly. Got confused what to. Brilliant tutorial tho ♥
do you know how to connect 2 steppers instead of dc motors? I wish to build the collision avoidance car, but with steppers instead of DC motors. For that you need 3 libraries, NewPing; servo, and AFmotor. very new with arduino, and has been a very frustrating ride so far... a bunch of information out there, but of little use.
So I assume I’ll have to get another arduino because after I hook it up, I won’t be able to use the digital pins from 0 to 13 if I want to connect leds, or other sensors… am I right ?
what is the max external voltage that we can use with the shield?
I'm using an arduino mega in my project, can I connect the L293D motor shield with my arduino ?
Did you power the Arduino as well as the board while running
Great explanation! thanks! :)
Very well explained
Hi Fungineers, thanks for the great video. Just a quick question, can I run 2 small DC motors, 1 servo and 1 stepper motor at the same time with this shield? TIA
@Fungineers
5 жыл бұрын
No, I think that will draw too much current. But you can connect 2 shields on top of each other and do it. They are really cheap so why not.
@TankTurk
5 жыл бұрын
Hmmm...so what's that all about supplying 0.6A per channel? I would have thought that if you stayed withing that limit then it'd be ok as long as the power supply had enough amps. Cheap enough as you said but don't have the room to stick another on top so will have to think of another solution. Thanks for the reply
Great Great Great, it's very useful
are carbon zinc AA batteries fine to use? and can you still run it with 4 AA batteries if you add an ultrasonic sensor or do you need more power?
@Fungineers
5 жыл бұрын
No need for more power. As long as batteries have the required voltage you can use any battery :)
Which Arduino pin is used to connect or required the shield
THANKS SIR HELPED A LOT
Great Video!
Great work! Thanks.
what is maximum range of voltage in L293d
Hola q tal disculpa le quería poner unas 4 baterías 18650 de 4.7 volts y 8800mAh cada una mi pregunta era si el motor shield con el arduino lo soportan. PD. Estoy alimentando 4 motores, un servo y un ultrasonico
great video pls make tutorial for ultrasonic sensor with this
sir can I run 380 volts pump with this shield supplying currently from electricity directly as an external power supply???
Can I connect 6 dc motors with shield ?
Thank you.
can i use accelometer with it (GY-521).
I'm using an IR to run my step motor using pin #6 if I install this shield there is no place to connect this wire for the remote control device to this shield.
With the expansion shield, there is no pinmode function?
my motor was turning back and forth when i made a project and my control button is not working from when i downloaded the library from the website u have given
Great video! :)
How to control 4 dc motor with encoders by Arduino. Or which motor shield I go with . ?
What should be the external power max. Voltage and min. Voltage for motor driver shield please reply
May you explain how does internal circuit exactly work
the led didnt turn on when i connected the power supply. Does this mean its broken and i have to buy a new one?
thank you it's helpful
I want to control two 12v dc motors.Will this board handle 12 v?
Excellent ...keep it up sir..👏 👏 👏
Can we connect 5v leds to motor driver and also blinks them.
If I supply 12V to that board, can I run two DC motors rated at 12V and 1 servo rated at 7V ?
Another great video :) Got a request though can you make a tutorial like this, using DC motor and Servo motor with bluetooth
@tonibusljeta1325
4 жыл бұрын
i wuld like to see this turtorial, if you can share it :)
I have a problem to connect 4 DC motor,power pump,flame sensor ad servo...please please help me immediately
how to run 6-8 motors at a time ? which motor driver do we need to use.
Ooh it's really cool but make some tutorial on stepper motor. I've understand this now.
thank you,it is very helpful
Great video thank you so much
Can u run a nema 17 style bipolar stepper motor using this? Does it make any sounds? Wondering because i want to make a 3d printed clock an it has quite some gears inside so i need more touqe than that lil unipolar stepper that is usually used with arduino. I am looking for a Solution that doesnt require an extra power source for the stepper. If someone knows it would be really helpful cause I dont hace a lot of experience with electronics