Instructables
loading
loading
Picture of Control your motors with L293D and Arduino
After long research and trial and error, I have came up to a new walkthrough regarding this nice chip, the L293D.

Each project is one project and each one has its own unique power configurations, so you must be aware of the best battery choice and how to distribute voltage through your robot.

I strongly advice you to read the following articles:

Picking Batteries for your Robot
Once you've decided on batteries, how do you regulate the voltage

************************************************

L293D gives you the possibility to control two motors in both directions - datasheet
 
Remove these adsRemove these ads by Signing Up

Step 1: Basic implementation

Picture of Basic implementation
3262168342_ae12307934.jpg
This is the most basic implementation of the chip.

As you can see, a 5V Voltage Regulator is between the battery and pins 1, 9, 16.

Pin 8 gets power before the VReg, if your motor needs for example 6V you should put 6V directly in this pin, all the other pins should not get more than 5V.

This will work with no problem at all, but if you want to do the right implementation take a look at the next example:

Step 2: Advanced implementation

Picture of Advanced implementation
3252941552_2f4919475f.jpg
3234563157_780312a389.jpg
3451483356_2fdf26be19.jpg
This is the correct Implementation (with the capacitors), and note that pin 8 is feeded by unregulated voltage. This means that if your motors need more than 5V, you should power this pin with that amount of voltage, and the rest of the circuit with 5V.

1-40 of 94Next »
TarekT22 days ago

Hey ,

I have one qst , can i use this H Bridge with a Linear acutator (Motor) , who needs 24 V, if yeah , did i just need to feed pin 8 with 24 V source ?

Thanks

My L293D chip is getting heating up and after a few seconds the motors are stopping. please help.

I think your motor is drawing too much current. The max continuous current output of L293D is 600mA(Refer the data sheet). L293 has thermal shutdown protection that automatically shut off motor outputs when over heat. Use 298N that can allow 2A continuously. What motor you are driving with this IC?

I am using small ordinary 6v motors which come in the cheap rc cars.
mgarg51 year ago
Sir just 2 questions, Can i use this setup for a robotic arm. I have 2 L293D chips i need to inetrface. Is it posible? If yes then how? & also can i use Dc motors with just power and ground for this setup instead of a motor with a feedback?

i think you can. but it my be a bit difvult

AdithyaA212 days ago

i luv drones

alys523 days ago

can I connect 3 of these setups with 3 l293d on the arduino uno rev3 but will I have enough pins beacause I am connecting a nrf24l0 on the same arduino I need 3 l293d to work on so will there be enough pins for this

tysweat25 days ago

If you want simpler code, I wrote an Arduino library for the L293D motor controller. You can find it at https://github.com/tysweat/arduino-L293D

how can I control 4 motors

Use 2 L293D chips

thanks tys5
davast26 days ago
Hello
Can this driver used in line follower
alee751 month ago

Thanks for making this. I'm totally new to this, but it will give me a good place to start. It worked well .

guibot (author)  alee751 month ago

Hi! I'm glad to know it worked for you!! ;)

Great project! I have made it and it is working properly but I want to control motor speed also with arduino. How can I do it
guibot (author)  aditya jindal1 month ago

Hi! if you want to control speed you should use analogWrite(pin, value), where value is a number between 0 and 255.

for mor info check the PWM tutorial on the Arduino page:
http://www.arduino.cc/en/Tutorial/PWM

kamhagh2 months ago

my motors don't move when on the ground, i found out its giving 3.3v for 2 motors connected and 5v for 1 motor, im using 4 AA batteries, it works when connected directly, my motors draw 600MAX when moving hardly! 300mah normally!

what should i do? i already ordered a 2200mah 3s (11.1v) battery hopping it woul work!

great tuts here is another tuts

sagund7 months ago

hello there...i am building a robot using arduino and L293D.....and i want to use bluetooth module on the same to control the robot using android app...i wonder if you could help me with the codes to be written on the arduino....thankyou :))

https://alselectro.wordpress.com/2014/10/21/bluetooth-hc05-how-to-pair-two-modules/

It didn't work at all!!!!

Any tips?????

guibot (author)  Haythem Kenway5 months ago

more details please..

yhdesai5 months ago

make it a shield

DanM59 months ago

Thanks for the post. I made this circuit and it worked well. The photo was taken before I found the error on only hooking the unregulated power to one pin.

robot-v1.JPG
JenniferR4 DanM57 months ago

Hello,

Do you have a code for that car? I have the same exact one.

skadd4life1 year ago

Hello!
I want to use a 5v motor, and use a 5v DC powersource (not battery, wall plug). Do I still need to regulate my voltage? Can my 5V source be used for Vs pin of the L293D and microcontroller Vcc? Or, do I somehow need to isolate the 5v between those inputs? Thanks!

BTW, I plan to use ATtiny to provide PWM to L293D.

How did I go with the Attiny? I want to try as well

jamestav ccarpio210 months ago

You can see how to use an ATtiny on my blog. It shows how to program it and everything.

http://jamestav.com/programming-an-attiny85-with-an-arduino/

jamestav10 months ago

I like it! You are very detailed and specific. There is also an Adafruit Shield that uses 2 of those chips and is very good. They're cheap as well, like 5 or 6 bucks. I have a tutorial on how to use them http://jamestav.com/l293d-motor-shield/

supershwa1 year ago
Good instructable - to clarify, the [battery] in this example powers the motors separate from the Arduino power source: the Arduino controlling this circuit has a separate power source (an additional 7-12v source plugged into the Arduino.) You should be able to use a 9v battery for the motors, and a separate 9v for the Arduino (the motors can run faster this way.)
By the way - L293D chips aren't at RadioShack...I waited 3 weeks to get them from China.

Wow that sucks a month. You know you can get free samples from Texas Instruments right??The Company who makes them!

oddWires has lots of L293Ds at the link below in the San Francisco bay area shipping world-wide. Also look for special offer of 10% discount in November for instructables members. Use SAVE10 as coupon code. Disclaimer: I work for oddWires.

http://www.oddwires.com/l293d-stepper-motor-controller-driver-ic/
Kante Tech12 months ago

Do you have a pcb layout to show how you would etch this or a schematic because im confused with the wiring for the gnd pins

Hi thanks for this article, it's very help full for me. Here is my video where i used L293d driver ic, arduino and mpu6050

https://www.youtube.com/watch?v=D5HY_tjW1lc

pradipta031 year ago
Thanks for the great cheap solution. I was trying this using PWM. and for lower duty cycle it doesn't response very well. Say for example if i use analogWrite(40) it doesn't response but if I go around 128 or above it responses. What do you think about that?Any one had an issue with it?

guibot (author)  pradipta031 year ago
That is very normal to happen, normally DC motors have a minimum required voltage to operate.
Aha. Thank you.
1-40 of 94Next »