Professional Documents
Culture Documents
INTRODUCTION TO
MOTORS, SERVOS
AND STEPPERS
Deepali Mittal
Harshad Sawhney
DC MOTORS
Designed to work on DC power.
DC MOTORS
These are simple motors used for
simple purpose.
Apply +12V (generally) and they
start rotating. Apply -12V and they
rotate in the opposite direction!
Speed can be reduced by
reducing the voltage supplied,
however thats not an efficient
way of doing things.
Torque and speed are interrelated. A 10rpm motor has
relatively high torque. Generally a
100rpm 300rpm
THEORY OF SERVOMECHANISMS
Closed loop control whose output is some mechanical
position or velocity set by a reference input(required
output).
A servomotor consists of an electric motor ,feedback
device, electronic controller.
The feedback device for servomotors is typically an
encoder or resolver built into motor frame
SERVO MOTORS
Servo motors have three wires: power, ground,
and signal.
The power wire is typically red, and should be
connected to the 5V pin on the Arduino board.
The ground wire is typically black or brown and
should be connected to a ground pin on the
Arduino board.
The signal pin is typically yellow, orange or white
and should be connected to a digital pin on the
Arduino board.
Note that servos draw considerable power, so if
you need to drive more than one or two, you'll
probably need to power them from a separate
supply (i.e. not the +5V pin on your Arduino). Be
sure to connect the grounds of the Arduino and
external power supply together.
SERVO MOTORS
They are used for specific purposes (for
instance, in grippers, etc.)
They have a restricted rotation of 180 or 360
degree. The least rotation angle possible is 1
degree.
They are driven through microcontrollers.
Power comes separately from a battery (12V,
generally).
Arduino has one line command for driving a
servo . Using an Atmega PWM needs to be
generated to drive a servo.
Speed can be reduced by sending the
commands at a delay. This doesnt reduce
the efficiency of the motor.
SERVO MOTORS
The basic behind Servo Control is Pulse Width
Modulation.
Pulse Parameters :
Minimum Pulse
Maximum Pulse
Repetition Rate
The general concept is to simply send an ordinary logic
square wave to your servo at a specific wave length,
and your servo goes to a particular angle (or velocity if
your servo is modified). The wavelength directly maps to
servo angle
MOTOR DRIVER
STEPPER MOTORS
Electromechanical device which
converts electrical pulses into discrete
mechanical movements.
The speed of the motor shafts rotation
is directly related to the frequency of
the input pulses
Length of rotation is directly related to
the number of input pulses applied.
Brushless motors.
Full torque at stand still.
Open loop control.
DISADVANTAGES
Not easy to operate a high speeds.
Open Loop Control so it could have errors.
Higher torque stepper motors are very
costly.
PHASES
Generally two phases.
But three or five phases also
exist
STEPPER DIAGRAMS
STEPPING MODES
Wave Drive (1 phase on): A -> B -> A -> B
Disadvantage:Unipolar use only 25% and bipolar only 50% of
the total motor winding. Hence not maximum torque used.
POWER DISSIPATION
A stepper motor rated at 6V and 1A per phase and
has two phases.
Then P= V X I
P=6 X 2 = 12 W
Select a motor driver suitably.
TORQUE VS SPEED
Maximum Holding Torque
Torque
Speed
ARDUINO CODE
MOTOR DRIVERS
H-bridge
L293/L293D
Timer
Pulse Width Modulation
H-BRIDGE
An electronic circuit that enables a voltage to be
applied across a load in either direction.
L293
Drivers are enabled in pairs, with drivers 1 and 2 being
enabled by the EN Pin. For EN=1 or +5V, the outputs
are active and in phase with their inputs.
When EN Pin is low, the output is low(disconnected),
irrespective of the input.
Asserting both logics to either high or low will stop the
motor.
L298 VS L293
L293 is a quadruple half-H driver while L298 is a dual
full-H driver
Output current per channel = 1A for L293 and 2A for
L298.
Protective Diodes against back EMF are provided
internally in L293D but must be provided externally in
L298.
SPEED CONTROL
To control motor speed, we can use pulse width
modulation or PWM, applied to Enable Pins of L293.