Hello!
Welcome to DPV Technology.
In this video, we will learn how to interface
L293D motor shield with Arduino.
Here is our L293D motor driver board.
You can buy it from the website www.dpvtechnology.com
at best price.
Most of the cases, Motors require more current.
the output current from the Arduino pin is
very low and it can not run motors those require
high current.
To solve this problem, a motor shield is used.
With the help of this L293D motor shield,
we can run 4 normal DC motors, 2 unipolar
or bipolar stepper motors, and two Servo motors.
In this video, we will learn how to run DC
motors with this shield using Arduino microcontroller.
This motor shield has two 5 pin screw terminals.
The first two pins are marked as M1 where
we can connect a DC motor, then these last
two pins are marked as M2 where we can connect
another DC motors.
The pin in between M1 and M2 is the ground
pin.
Similarly, in this side, we have M3 and M4
for another two DC motors.
In this side also, the pin in between m3 and
m4 is the GND pin and we use these two ground
pins when we use a stepper motor with this
shield.
One stepper motor can be connected to this
5 pin screw terminals and the second stepper
motor can be connected to this 5 pin screw
terminals of this side.
These header pins are used to connect two
servo motors.
Now we can connect a maximum of 4 Dc motors
having voltages between 4.5 to 25v and maximum
current to a single motor 0.6 ampere from
the shield.
We can directly insert this shield into the
arduino pins.
The module has an external power supply pin.
The motor controllers on this shield are designed
to run from 4.5V to 25V.
This may be different for different manufacturers.
Check the details from where you bought the
shield.
If we use this external power supply pins,
then we have to strictly follow anyone of
the following three rules:
First, if we want to use a single DC power
supply for both Arduino and motor shield,
then we can use a DC jack on the Arduino or
we can use a Dc source to the external power
supply pin. we can use a 9V or 12V battery
to connect to External power supply pin.
But don't use both DC jack to Arduino and
an external battery to motor shield at the
same time to power.
In this case, don't use a battery more than
12V to the external power supply pin of the
motor shield.
Secondly, we can power up Arduino through
USB and motor shield through a DC power supply
at the same time.
That means we can use both USB to Arduino
and External power to the shield.
But in this case, we have to remove the jumper
from the shield.
In the third case, if we would like to have
2 separate DC power supplies for the Arduino
and motor shield.we can power up Arduino through
DC Jack and motor shield through a DC power
supply at the same time.in this case also,
we have to remove the jumper from the shield.
The RESET button is nothing but Arduino’s
reset button.
It just brought up top for convenience.
These are external header pins that we have
connected for different purpose.
Now let us connect four DC motors quickly.
You can use a single motor or more than that
according to your requirement.
Now to use this shield, we have to download
the adafruit motor shield library from GITHUB.
The link is given in the description of this
video.
After downloading the zip library, you have
to unzip it and place it into the Arduino
library folder.
Now open the Arduino IDE and copy and paste
the code.
Link is given in the description of this video.
Now upload the code.
Here we can see, the motors are running forward
and backward direction.
The video link of the explanation of the code
is given in the description of this video.you
can go and watch the explanation in that video.
Thank you.
Don't forget to like and subscribe.
You can buy electronics components, projects,
modules, boards, sensors from the official
website www.dpvtechnology.com.
Thank you.
