Gear Stepper Motor Driver Pack
The Gear Stepper Motor Driver Pack includes a stepper motor and a motor drive board. It's a four-phase eight-stepping stepper motor, and
you can easily control this stepper motor via the drive board.
You can use this pack for position control.
Features
Low noise
Large torque
Built-in gearbox
Specification
Item
Value
Operating Voltage
5V
Phase
4
Reduction ratio
1/64
Step Angle
5.625°/64
Diameter
28mm / Nema 11
Item
Idle In-traction Frequency
>500HZ
Idle Out-traction Frequency
>1000HZ
Resistance
21±7%
Noise
≤40dB
Drive mode
four-phase eight-stepping
Typical applications
Value
Desktop printers
Plotters
3d printers
CNC milling machines
Hardware Overview
Pin Out
Mechanical drawing
you can click it to see the original picture.
Platforms Supported
Arduino
Raspberry Pi
BeagleBone
Wio
LinkIt ONE
Caution
The platforms mentioned above as supported is/are an indication of the module's hardware or theoritical compatibility. We only provide
software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible
MCU platforms. Hence, users have to write their own software library.
Getting Started
Play With Arduino
Hardware
Materials required
Seeeduino V4.2
Gear Stepper Motor Driver
Pack
Female-Male jumpers
Note
1 Please plug the USB cable gently, otherwise you may damage the port. Please use the USB cable with 4 wires inside, the 2 wires cable
can't transfer data. If you are not sure about the wire you have, you can click here to buy
2 To make the Gear-Stepper-Motor-Driver-Pack work with your Arduino, several Female-Male jumpers is also required. In case you do not
have jumpers, you can click here to buy.
Step 1. Connect the Gear Stepper Motor Driver Board to your seeedunio via jumppers.
Seeeduino
Gear Stepper Motor Driver Board
Digital Pin 8
IN1
Digital Pin 9
IN2
Digital Pin 10
IN3
Digital Pin 11
IN4
GND
GND
Seeeduino
Gear Stepper Motor Driver Board
VCC_5V
VCC
VCC_5V
VM
Tip
You can connect the VM pin to VCC_5V or you can just do not use it as long as you choose the VCC in the switch.
Step 2. Plug the stepper motor into the Gear Stepper Motor Driver Board.
Step 3. Connect Seeeduino to PC via a USB cable.
Software
Attention
If this is the first time you work with Arduino, we strongly recommend you to see Getting Started with Arduino before the start.
Step 1. Click the icon
1 int
2 int
3 int
4 int
5 int
in upper right corner of the code block to copy the following code into a new sketch in the Arduino IDE.
pwm1=9;
pwm2=10;
ctr_a =9;
ctr_b =8;
ctr_c =11;
6 int ctr_d =10;
7 int sd =6;
8 int i=0;
9 int t=1500;
10
11 void setup()
12 {
13
//pinMode(sd,OUTPUT);
14
//pinMode(pwm1,OUTPUT);
15
//pinMode(pwm2,OUTPUT);
16
pinMode(ctr_a,OUTPUT);
17
pinMode(ctr_b,OUTPUT);
18
pinMode(ctr_c,OUTPUT);
19
pinMode(ctr_d,OUTPUT);
20
delay(1);
21
//digitalWrite(sd,HIGH);
22
//digitalWrite(pwm1,HIGH);
23
//digitalWrite(pwm2,HIGH);
24 //
digitalWrite(ctr_a,LOW);
25 //
digitalWrite(ctr_b,LOW);
26 //
digitalWrite(ctr_c,LOW);
27 //
digitalWrite(ctr_d,LOW);
28
29 }
30
31
32 void loop ()
33 {
34 //
for(i=1500;i>=1;i--)
35 //
{
36 //
digitalWrite(ctr_a,HIGH);//A
37 //
digitalWrite(ctr_b,LOW);
38 //
digitalWrite(ctr_c,LOW);
39 //
digitalWrite(ctr_d,LOW);
40 //
delay(t);
41 //
digitalWrite(ctr_a,HIGH);
42 //
digitalWrite(ctr_b,HIGH);//AB
43 //
digitalWrite(ctr_c,LOW);
44 //
digitalWrite(ctr_d,LOW);
45 //
delay(t);
46 //
digitalWrite(ctr_a,LOW);
47 //
digitalWrite(ctr_b,HIGH);//B
48 //
digitalWrite(ctr_c,LOW);
49 //
digitalWrite(ctr_d,LOW);
50 //
delay(t);
51 //
digitalWrite(ctr_a,LOW);
52 //
digitalWrite(ctr_b,HIGH);
53 //
digitalWrite(ctr_c,HIGH);//BC
54 //
digitalWrite(ctr_d,LOW);
55 //
delay(t);
56 //
digitalWrite(ctr_a,LOW);
57 //
digitalWrite(ctr_b,LOW);
58 //
digitalWrite(ctr_c,HIGH);//C
59 //
digitalWrite(ctr_d,LOW);
60 //
delay(t);
61 //
digitalWrite(ctr_a,LOW);
62 //
digitalWrite(ctr_b,LOW);
63 //
digitalWrite(ctr_c,HIGH);//CD
64 //
digitalWrite(ctr_d,HIGH);
65 //
delay(t);
66 //
digitalWrite(ctr_a,LOW);
67 //
digitalWrite(ctr_b,LOW);
68 //
digitalWrite(ctr_c,LOW);//D
69 //
digitalWrite(ctr_d,HIGH);
70 //
delay(t);
71 //
digitalWrite(ctr_a,HIGH);
72 //
digitalWrite(ctr_b,LOW);
73 //
digitalWrite(ctr_c,LOW);//DA
74 //
digitalWrite(ctr_d,HIGH);
75 //
delay(t);
76 //
77 //
}
78 //
digitalWrite(ctr_a,LOW);
79 //
digitalWrite(ctr_b,LOW);
80 //
digitalWrite(ctr_c,LOW);
81 //
digitalWrite(ctr_d,LOW);
82 //
83 //
84 //
85 //
for(i=1500;i>=1;i--)
86 //
{
87 //
88 //
digitalWrite(ctr_d,HIGH);//D
89 //
delay(t);
90 //
digitalWrite(ctr_c,HIGH);//DC
91 //
delay(t);
92 //
digitalWrite(ctr_d,LOW);//C
93 //
delay(t);
94 //
digitalWrite(ctr_b,HIGH);//CB
95 //
delay(t);
96 //
digitalWrite(ctr_c,LOW);//B
97 //
delay(t);
98 //
digitalWrite(ctr_a,HIGH);//BA
99 //
delay(t);
100 //
digitalWrite(ctr_b,LOW);//A
101 //
delay(t);
102 //
digitalWrite(ctr_d,HIGH);//AD
103 //
delay(t);
104 //
digitalWrite(ctr_a,LOW);
105 //
digitalWrite(ctr_d,LOW);
106 //
}
107
108
for(i=1500;i>=1;i--)
109
{
110
digitalWrite(ctr_a,LOW);//A
111
digitalWrite(ctr_b,HIGH);
112
digitalWrite(ctr_c,HIGH);
113
digitalWrite(ctr_d,HIGH);
114
delayMicroseconds(t);
115
digitalWrite(ctr_a,LOW);
116
digitalWrite(ctr_b,LOW);//AB
117
digitalWrite(ctr_c,HIGH);
118
digitalWrite(ctr_d,HIGH);
119
delayMicroseconds(t);
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
}
152 //
153 //
154 //
155 //
156 //
157
158
159 //
160 //
{
161 //
162 //
163 //
164 //
165 //
166 //
167 //
168 //
169 //
170 //
171 //
172 //
173 //
174 //
175 //
176 //
digitalWrite(ctr_a,HIGH);
digitalWrite(ctr_b,LOW);//B
digitalWrite(ctr_c,HIGH);
digitalWrite(ctr_d,HIGH);
delayMicroseconds(t);
digitalWrite(ctr_a,HIGH);
digitalWrite(ctr_b,LOW);
digitalWrite(ctr_c,LOW);//BC
digitalWrite(ctr_d,HIGH);
delayMicroseconds(t);
digitalWrite(ctr_a,HIGH);
digitalWrite(ctr_b,HIGH);
digitalWrite(ctr_c,LOW);//C
digitalWrite(ctr_d,HIGH);
delayMicroseconds(t);
digitalWrite(ctr_a,HIGH);
digitalWrite(ctr_b,HIGH);
digitalWrite(ctr_c,LOW);//CD
digitalWrite(ctr_d,LOW);
delayMicroseconds(t);
digitalWrite(ctr_a,HIGH);
digitalWrite(ctr_b,HIGH);
digitalWrite(ctr_c,HIGH);//D
digitalWrite(ctr_d,LOW);
delayMicroseconds(t);
digitalWrite(ctr_a,LOW);
digitalWrite(ctr_b,HIGH);
digitalWrite(ctr_c,HIGH);//DA
digitalWrite(ctr_d,LOW);
delayMicroseconds(t);
digitalWrite(ctr_a,HIGH);
digitalWrite(ctr_b,HIGH);
digitalWrite(ctr_c,HIGH);
digitalWrite(ctr_d,HIGH);
for(i=1500;i>=1;i--)
digitalWrite(ctr_d,HIGH);//D
delay(t);
digitalWrite(ctr_c,HIGH);//DC
delay(t);
digitalWrite(ctr_d,LOW);//C
delay(t);
digitalWrite(ctr_b,HIGH);//CB
delay(t);
digitalWrite(ctr_c,LOW);//B
delay(t);
digitalWrite(ctr_a,HIGH);//BA
delay(t);
digitalWrite(ctr_b,LOW);//A
delay(t);
digitalWrite(ctr_d,HIGH);//AD
177 //
178 //
179 //
180 //
181
182
183 }
delay(t);
digitalWrite(ctr_a,LOW);
digitalWrite(ctr_d,LOW);
}
Step 2. Upload the demo. If you do not know how to upload the code, please check How to upload code.
Success
If every thing goes well, you can see the motor run:
Tech Support
Please do not hesitate to submit the issue into our forum
http://wiki.seeedstudio.com/Gear_Stepper_Motor_Driver_Pack/12‐4‐18