Arduino DC Motor Control with L293D Motor Driver IC

preview_player
Показать описание
Dual H-Bridge Motor Driver for DC or Steppers - 600mA - L293D

This is a very useful chip. It can actually control one motor independently. We will use in its entirety the chip in this tutorial. Pins on the right hand side of the chip are for controlling a one motor. Pins on the left hand side of the chip are for controlling second motor.

You can run four solenoids, two DC motors or one bi-polar or uni-polar stepper with up to 600mA per channel using the L293D.

Required Hardware
Arduino Board :
L293D Motor Driver:
DC Motors :
Breadboard :
Jumper Wires :

Recommended Items:

Connections
Each chip contains two full H-bridges (four half H-bridges). That means you can drive four solenoids, two DC motors bi-directionally, or one stepper motor. Just make sure they're good for under 600 mA since that's the limit of this chip. They do handle a peak of 1.2A but that's just for a short amount of time.

There's a PWM input per driver so you can control motor speed. Runs at 5V logic. Good for motor voltages from 4.5V up to 36V! This wont work well for 3V motors. The motor voltage is separate from the logic voltage.

The L293D has two +V pins (8 and 16). The pin '+Vmotor (8) provides the power for the motors, and +V (16) for the chip's logic.

Normally we can connect both of these to the Arduino 5V pin. We used a powerful motor, or a higher voltage motor. So we provided the motor with a separate power supply using pin 8 connected to the positive power supply and the ground of the second power supply is connected to the ground of the Arduino.

Social Media:
Рекомендации по теме
Комментарии
Автор

i finally get it--with no words even! Bravo.

tonycarboni
Автор

And music is VERY repetitive and it's annoying. Sorry to nit pick because it's an amazing tutorial and it's very helpful.

liztippetts
Автор

Thanks you for absolutely brilliant video, I was able to run the circuit on the tinkerCad.

belvikram
Автор

I'm sorry, this is an AMAZING tutorial and it's very helpful, but I HATE how you do the wires, I don't know why it just ticks me off. I get having an excess wire but just buy shorter sizes as well. Other than that, amazing, helpful, and thumbs up.

liztippetts
Автор

The Arduino kit I bought says not to use the power supply from the uno board but use a 545043 to supply power to motors. It also mentions DC motors could damaged the uno board. However in your video you only use an uno board. Explain your self, thanks!

Aroundtheworld-ewrx
Автор

This is the most beautiful tutorial I've ever seen in my entire life :, ) everything is there

LairaAlmas
Автор

Thanks you. Just tested it and works perfectly.

victor
Автор

Which software did you use for demonstrating the connection?

rajshah
Автор

Thanks for this demo.

I'm looking for same with ESP32.
Also: how to do similar with larger motors. There are various shields out there, knowing what to choose is ....

LatinDanceVideos
Автор

Hicam süpersin tebrikler videolar çok iyi öğretici

seali
Автор

Why use the chip? Why not just connect the two dc motors normally? I'm confused on the chip's purpose.

bubbachubs
Автор

using the same setup can i make the motor rotate halfway and then stop there. If possible do tell me how!

lakshmik
Автор

i want to do this with 4 motors ? what should be the connections ?

Integrate-wisdom
Автор

Hi, in which programm did you the connections in video 0:30 - 1:25? It is very comfortable to see this ! Thanks

tubenutzer
Автор

I have followed all the steps and I also copy of your code but DC motor is not moving. Please help me

AcidBlackSnake
Автор

Can I use the L293D to power stepper motor like NEMA11? My project only requires it to move back and forth very fast ( like oscillation )

VimtoTaken
Автор

I'm looking for motors with a 90deg turn (and reduction gearing possibly), like the ones you are using here. What did these come from/for?

ethanblagg
Автор

Hi i need help was wondering if you can connect 6 motors? if so how? in addition these motors have rotary encoders in them as well wondering how i can use those as well

JTech_._
Автор

MErt arkadaşım videolar süper...tebrik ediyorum tekrar...Bende videoda ki motorları kullanrak çizgi izleyen bir robot geliştiriyorum..Yalnız bu tekerleklerde sıkıntılar var;ikisi tam olarak aynı hızda dönmüyor;ben ADafruit motor shield ile motorları sürüyorum....Acaba bu motorların aynı hızda dönmemesi hatta birinin torku sanki daha yüksek gibi; torklarının ve hızların eşit olmaması;çizgiyi tam olarak düzgün izleyememesine yol açıyor...acaba ne tavsiye edersiniz? birde besleme kaynağı olarak ne önerirsiniz? hem arduino hem motor shield için tek besleme kullanmak istiyorum;en uygun -güçlü sorunsuz kullanabileceğim pil marka -model-akım önerin ne olur?? duracelli zengin ettim yeterince :))...şimdiden teşekkürler...saygılar...iyi çalışmalar.

m.a.
Автор

if im using just one dc motor is the circuit the same? just removing the pins and connection od the second motor to the l293d RIGHT? what about the code everything the same but removing the commands for the other dc motor? pls help

NathaliaK.QuinteroGomez