Stepper Motor Arduino
Stepper Motor Arduino
CONTROL
Block Diagram
Control Device to provide Speed/
Position/ Direction Input- Micro-
controller (ARDUINO)
Driver- 4015
Micro Microstepping Driver
Stepper
Motor
Pin Diagram Stepper Motor
Specifications
Model: 17H-48-10-4A
Bipolar
Step angle- 1.8
Rated Voltage- 2.4- 24 V
Current/phase- 1 A
Resistance/phase- 3.5 ohm
Inductance/phase- 3.8 ohm
Holding Torque- 4.2kg cm
Rotor Inertia- 68
Weight- 0.35 kg
Number of wires 4
Different Profiles
Time
S
p
e
e
d
20% 20% 40% 15% 5%
A
c
c
e
le
ra
tio
n
Constant Speed 1
Constant Speed 2
D
e
c
e
le
ra
tio
n
1
D
e
c
e
le
ra
tio
n
2
Time
S
p
e
e
d20% 20% 40% 20%
20% 20% 40% 20%
A
cceleration (FW
D
)
Constant Speed 1 (FWD)
Deceleration (FWD)
A
cceleration (R
E
V
.)
Constant Speed 1 (REV.)
Deceleration (REV.)
Constant Speed 2 (FWD)
Constant Speed 2 (REV.)
Time
S
te
p
s
50
50
M
O
V
E
1
M
O
V
E
2
M
O
V
E
3
M
O
V
E
4
HALT 1
HALT 2
Time
S
te
p
s
M
O
V
E
1
HALT 1
M
O
V
E
2
M
O
V
E
3
M
O
V
E
4
M
O
V
E
5
M
O
V
E
6
HALT 2
HALT 3
HALT 4
Time
S
te
p
s
20
200
100
Sample Codes
LCD
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("MODE=");
lcd.setCursor(0, 1);
lcd.print("Acceleration");
Constant Speed
for (i=1; i<=40; i++)
{
digitalWrite(pulse,HIGH);
delay(2);
digitalWrite(pulse,LOW);
delay(130);
}
Deceleration
for (i=1; i<=40; i++)
{
digitalWrite(pulse,HIGH);
delay(2);
digitalWrite(pulse,LOW);
delay(130+2*i);
}
Body
#include <LiquidCrystal.h>
int pulse= 22;
void setup()
{ pinMode(pulse,OUTPUT);
}
void loop()
{}
Acceleration
for (i=1; i<=40; i++)
{
digitalWrite(pulse,HIGH);
delay(2);
digitalWrite(pulse,LOW);
delay(130-2*i);
}
References- 1) http://www.arduino.cc/ 2) http://www.excellaelectronics.com/