Hi, welcome to DPV TECHNOLOGY.
In this video, we will learn how to connect
Bipolar stepper motor with L293d Motor driver
Board and Arduino. we will use NEMA 17 series
bipolar motor with L293d.
you can use another bipolar stepper also.
So lets get started.
You can buy all types of electronic components,
modules, sensors at best price from www.dpvtechnology.com
at best price.
Here is our NEMA 17 series bipolar stepper
motor.
It has 4 wires from two coils inside it.
We can connect two Bipolar stepper motor in
L293d motor driver shield.
But keep it mind that the shield can provide
a maximum of 0.6 Amp current for each motor.
If your motor requires more current then you
can solder one or more L293d IC on the top
of existing one or you can use other stepper
motor driver that provides high current.
Otherwise, you won't be able to get the full
speed of the motor or motor shield may get
damaged.
As I have already told, this motor has two
coils inside it.
From each coil, two wires are coming out for
connections.
So at first, we have to find out the two pairs
from these four wires.
If you have a datasheet with you, then no
problem.
But if you don't know, then just bring your
multimeter.
keep the multimeter knob in Continuity Test
mode.
Then connect one terminal of the multimeter
to any one of the wires of the motor.
Then connect another terminal of the multimeter
to any one of the other three wires.
If there is a beep, then those two wires belong
to the same pair.
So here we can see these two wires red and
blue belongs to the same pair and green and
black belongs to another pair.
Now we have to Connect any pair of it to M1
channel and then another pair to M2 channel
in the shield.
Here in the shield, we can see the first two
pins are marked as m1 and last two pins are
marked as m2.
Similarly, in this side M3 and M4 Channel
are present where we can connect another stepper.
Okay here is our connection - RED-BLUE-GREEN-BLACK.
Then 
we have to use an external supply for this
shield.
I am just using a 9 volt battery.
When we use external supply to this shield,
remove this jumper from it.
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 YOUR Arduino IDE.
Go to file, then example, Adafruit motor shield
library, Stepper test.
Change this 48 to 200 and instead of 2, write
1 here.
Now upload the code.
Now we can see, the motor is running in forwarding
and backward directions.
If you want the explanation of this code,
you can go the description of this video and
you will get the link to watch explanation
of this code.
You can buy all types of electronic components,
modules, sensors at the best price from www.dpvtechnology.com
at best price.
Thanks for watching.
Please don't forget to like and subscribe
for more videos.
