0% found this document useful (0 votes)
95 views

Stepper Motor Arduino

This document discusses controlling a stepper motor using a microcontroller. It provides details on the stepper motor specifications and describes using an Arduino microcontroller with a 4015 driver chip to provide speed, position, and direction control of the stepper motor. It also shows some sample code for controlling the stepper motor's acceleration, constant speed, and deceleration profiles.

Uploaded by

Pragnesh Parekh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views

Stepper Motor Arduino

This document discusses controlling a stepper motor using a microcontroller. It provides details on the stepper motor specifications and describes using an Arduino microcontroller with a 4015 driver chip to provide speed, position, and direction control of the stepper motor. It also shows some sample code for controlling the stepper motor's acceleration, constant speed, and deceleration profiles.

Uploaded by

Pragnesh Parekh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

MICRO-CONTROLLER BASED STEPPER MOTOR

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/

You might also like