"Stepper Motor Control Using Arduino": Minor Project
"Stepper Motor Control Using Arduino": Minor Project
"Stepper Motor Control Using Arduino": Minor Project
Group 15
Members
Ankit Kumar (1602015) Project Guide
Gautam Verma (1602052) Dr. Ramesh Kumar
Aditya Kumar Shrivastava (1602063)
Abstract
Stepper motor can be varied from a normal motor only from stepwise
rotation. Different kinds of stepper motors are used for step wise
rotation for various applications. Stepper motor can be used only for
the application based on stepwise rotation. Direction of the motor can
be controlled by using the microcontroller. These 4 wired stepper
motor which has 2 north poles and 2 south poles. Based on triggering
the circuit, the motor can be rotated either in clock wise or counter
clock wise direction. The motor can be rotated by connecting the motor
with the microcontroller.
1. ARDUINO - Microcontroller:
Stepper motor drive is used to rotate the stepper motor with particular
input and also it protects the motor from the back Emf. It amplifies the
input provided by the microcontroller and further it passes the
amplified signal to the stepper motor. It provides the sufficient signal to
drive the stepper motor. It acts as an interface between the arduino
microcontrollers to the stepper motor.
3.Stepper Motor:
There are different types of stepper motor such as unipolar and bipolar
stepper motor. It is a four wired stepper motor. It rotates in a stepwise
manner. Each two wires represent the north and south poles of a
magnet. It consist of two elements namely stator and rotor. Stator
represents the magnets in stationary movement and the rotor which
represents the magnets in rotatory movement. Stationary part of the
magnet can be wounded with the coil. When the copper coil receives
the current supply, the magnet gets energised and then it acts like a
magnet. By applying the power supply in the circuit, the rotor may
rotate either in forward or in a reverse direction. The speed of the
stepper motor can be controlled by arduino microcontroller. By varying
the program parameters, the speed, torque and the direction of the
stepper motor can be controlled. These stepper motor can be used for
many industrial applications and also for the general purpose
applications.
Types of Stepper Motors
Permanent Magnet (PM):
Also called “tin can” or “can stock,” these are a cheap, low resolution
type of stepper motors having step angles of typically 7.5 to 15
degrees (48 to 24 steps per revolution.)
The working concept of a PM stepper motor can be understood
through the illustration provided below. The type utilizes permanent
magnets and eliminates the employment of rotor teeth or steps
normally associated with the other more sophisticated types of
stepper motors. Instead the rotational effect is produced through
alternate magnetization of the rotor plate. The electrical pulses
applied to the windings generate induced magnetic flux alternately
which influence the permanent magnets of the rotor. The effect of
these interacting magnetic fluxes produces the high torque levels
responsible for the required rotations.
1. wave –mode
2. full-step mode
3. half-step mode
4. micro-step mode
Wave -mode
In this drive method only single phase is activated at a time.It has same
number of steps as full step drive.
Full-Step
Half-Step
In half-step operation the stepper motor rotates at four hundred steps
every revolution. One winding is energizing after the other which
makes the motor rotate halfway (point nine degrees). While half-step
operation offers smoother rotation than full-step, it provides roughly
thirty percent less torque.
Microstep
Microstep operation divides each step into two hundred fifty-six
discrete microsteps which allow fifty-one thousand two hundred steps
for each revolution (point zero zero seven degrees per step).
Microstepping is generally used in situations where one needs highly
accurate positioning and fluid motion throughout a larger range of
speeds. As with half-step operation microstepping improves motion
control at the cost of reduced torque.
A stepper motor’s windings are connected in either series or parallel:
series connections offer more torque at low speeds whereas parallel
connections lower the inductance, allowing more torque at faster
speeds. The stepper motor’s torque versus its speed is dependant on
the driver output voltage. The drive should be current-limited in
relation to the stepper motor rating because the driver’s output can be
rated as much as twenty times higher than the motor’s voltage.
Advantages
• low cost,
• high reliability,
Disadvantages
• Low efficiency
// create an instance of the stepper class, specifying the number of steps of the motor and the pins it's
attached to
void setup()
{
pinMode(button, INPUT_PULLUP);
}
void loop()
{
if ( digitalRead(button) == 0 ) // if button is pressed
if ( debounce() ) // debounce button signal
{
direction_ *= -1; // reverse direction variable
while ( debounce() ) ; // wait for button release
}
}
bool debounce()
{
byte count = 0;
for(byte i = 0; i < 5; i++) {
if (digitalRead(button) == 0)
count++;
delay(10);
}
if(count > 2) return 1;
else return 0;
}
Applications
Stepper motors are used for operation control in
robotics devices
typewriters,
line printers,