Motor Interface
Motor Interface
ORG 0000H
MOV A, #66H
MOV R0, #32
BACK: RR A
MOV P1, A
ACALL DELAY
DJNZ R0, BACK
END
Half-Step 8-Step Sequence
Looking at Example 3, one might wonder what happens if
we want to move 45 degrees, since the steps are 2 degrees
each.
To allow for finer resolutions, all stepper motors allow
what is called an 8-step switching sequence.
The 8-step sequence is also called half-stepping, since in the
8-step sequence each step is half of the normal step angle.
For example, a motor with a 2-degree step angle can be
used as a 1-degree step angle if the sequence of Table
given in the next slide is followed.
Half-Step 8-Step Sequence Table
DC Motor Interfacing
Introduction to DC Motor
A direct current (DC) motor is another widely used device that
translates electrical pulses into mechanical movement.
In the DC motor we have only + and – leads. Connecting them to a
DC voltage source moves the motor in one direction. By reversing
the polarity, the DC motor will move in the opposite direction.
One can easily experiment with the DC motor. For example, small
fans used in many motherboards to cool the CPU are run by DC
motors. By connecting their leads to the + and – voltage source,
the DC motor moves.
While a stepper motor moves in steps of 1 to 15 degrees, the DC
motor moves continuously.
In a stepper motor, if we know the starting position we can easily
count the number of steps the motor has moved and calculate the
final position of the motor. This is not possible in a DC motor.
Introduction to DC Motor Cont.
The maximum speed of a DC motor is indicated in rpm
and is given in the data sheet.
The DC motor has two rpms: no-load and loaded. The
manufacturer’s data sheet gives the no-load rpm.
The no-load rpm can be from a few thousand to tens of
thousands.
The rpm is reduced when moving a load and it decreases
as the load is increased. For example, a drill turning a
screw has a much lower rpm speed than when it is in the
no-load situation.
Introduction to DC Motor Cont.
DC motors also have voltage and current ratings.
The nominal voltage is the voltage for that motor under normal
conditions, and can be from 1 to 150V, depending on the motor.
As we increase the voltage, the rpm goes up.
The current rating is the current consumption when the nominal
voltage is applied with no load, and can be from 25mA to a few
amps.
As the load increases, the rpm is decreased, unless the current or
voltage provided to the motor is increased, which in turn increases
the torque.
With a fixed voltage, as the load increases, the current (power)
consumption of a DC motor is increased. If we overload the motor
it will stall, and that can damage the motor due to the heat
generated by high current consumption.
DC Motor Image
DC Motor Connection with 8051
Introduction to DC Motor Cont.
Bidirectional Control
With the help of relays or some specially designed chips
we can change the direction of the DC motor rotation.