Click here to load reader
Upload
buidien
View
212
Download
0
Embed Size (px)
Citation preview
Stepper-Motor Operation and Interfacing FundamentalsPrepared by: P. David Fisher and Diane T. Rover
Ampere’s Law & Biot-Savart Law
An electrical current I in a ware causes (induces) a magnetic field B. The direction of B is given by the “right-hand rule”.
Magnetic Fields for a Long Thin Wire
For a long thin wire, the strength of the magnetic field B a distance R from the wire is
B = (U0I)/(2R) (1)
where 0 = permeability of vacuum, 0 = 4x10-7 henry/meter
The Solenoid
A coil of wire with N turns creates a magnetic field B in the direction illustrated, where
B = kNI, (2)
with k being a constant. Hence, B is proportional to N and I.
1 st_mot_3.doc
IBR
MagneticFieldLines
I
B
The Electromagnet
If you place a compass and in the vicinity of the iron core, you would discover that one end (say A) would be similar to the “South Magnetic Pole” of the earth, while the other end (say B) would be similar to the Earth’s “North Magnetic Pole”.
Two important properties of electromagnets are the following:
1. All Electromagnets are dipoles; i.e., they have a North Pole (N) and a South Pole (S).
2. The position of the Poles (at A or B) is determined by the direction of the current I and the direction of the winding.
2 st_mot_3.doc
Iron Core
(South) S N (North)
A B
Basic Model for a Stepper Motor
Consider the four electromagnets physically arranged as illustrated.
3 st_mot_3.doc
P1(L11,L12)
P4(L41,L42)
P3(L31,L32)
P2(L21,L22)
A
BA
A
A B
B
B
R11 L11
i11
L31 R31
i31
va
R12 L12
i12
L32 R32
i32
vb
R21 L211
i21
L41 R41
i41
vc
R22 L22
i22
L42 R42
i42
vd
WindingsforP1 & P3
WindingsforP2 & P4
where
Controlling Magnetic Polarities with Winding Voltages (va, vb, vc and vd)
The magnetic polarities of the electromagnets can be controlled by varying the winding voltages va, vb, vc and vd. Consider the following two cases.
Case I – P1 and P3
Note: Winding voltages va and vb control the polarities for electromagnets P1 and P3.
4 st_mot_3.doc
A
B
A
B
N
S
P1(L11,L12)ill > 0 va = 5V
il2 = 0 vb = 0V
A
B
A
B
S
N
P(L31,L32)i3l > 0 va = 5V
i32 = 0 vb = 0V
A
B
A
B
S
N
P1(L11,L12)ill = 0 va = 0V
il2 > 0 vb = 5V
A
B
A
B
N
S
P3(L31,L32)i3l = 0 va = 0V
i32 > 0 vb = 5V
Case II – P2 & P4
Note: Winding voltages vc and vd control the polarities of electromagnets P2 and P4.
5 st_mot_3.doc
A
B
A
B
N
S
P2(L21,L22)i2l > 0 vc = 5V
i22 = 0 vd = 0V
A
B
A
B
S
N
P4(L41,L42)i41 > 0 vc = 5V
i42 = 0 vd = 0V
A
B
A
B
S
N
P2(L21,L22)i2l = 0 vc = 0V
i22 > 0 vd = 5V
A
B
A
B
N
S
P4(L41,L42)i4l = 0 vc = 0V
i42 > 0 vd = 5V
Controlling Stepper-Motor State Transitions
The “state” of a stepper motor can be controlled by controlling the winding voltages of the electromagnets. Consider the following example.
Note: The polarities of electromagnets P1 and P3 can be reversed by simultaneously changing va from 0V to 5V and vb from 5V to 0V.
6 st_mot_3.doc
P4
P3
P2B
B
BN
P1
BN
S
S
C
P1 & P3
va = 0V
vb = 5V
P2 & P4
vc = 5V
vd = 0V
P4
P3
P2B
B
BN
P1
BS
N
S
C
P1 & P3
va = 5V
vb = 0V
P2 & P4
vc = 5V
vd = 0V
Next State
Present State
Important Questions and Conclusions
With respect to the previous example, answer the following questions.
1. Assume that the stepper motor is in its “initial state.” If a compass is positioned with the pivot point of its needle at point C, in what direction would the needle point?
2. Assume that the stepper motor is in its “next state.” If a compass is positioned with the pivot point of its needle at point C, in what direction would the needle point?
3. Did the compass needle move clockwise or counter clockwise?
4. What voltages do we need to change to have the compass needle rotate in the opposite direction?
5. How many “steps” does it take to make a 360 rotation?
6. How might you add the number of steps for a 360 rotation? Identify two distinct approaches.
7. Why might you want to add steps?
8. What are the engineering design considerations that must be addressed as a new stepper-motor assembly is designed for a new commercial application?
7 st_mot_3.doc
Stepper-Motor Interface Circuit Model
There are a number of significant challenges facing the computer engineer who must interface a stepper motor to a microcontroller. For example, consider the following transient circuit response problem.
Case 1: Switch closes at t = 0
i11(0-) = i11(0+) = VS/RS 0A (3)i11(t) = (VS/R11)e-t/, where = R11/L11 (4)VL11(t) = Vse-t/ (5)
Case 2: Switch Opens at t = 0
Because currents through an inductor cannot change discontinuously,
ill(0+) = i11(0-) = VS/R11 (6)
Applying Kirchhoff’s Voltage Law (KVL) around the loop at time t = 0+ yields:
-VS + VS1 + R11i11 + VL11 = 0 (7)
-VS + RS1i11 + R11i11 + VL11 = 0 (8)VL11 = VS – (RS1 + R11)i11 VS – (RS1/R11)VS, when RS1 >> R11 (9)VL11 -(RS1/R11)VS -(1M/0.1k)VS -104VS (10)
These large voltages will destroy the solid-state switch.
8 st_mot_3.doc
VS
RS1
+ VS1 -
R11
L11
+VL11
-i11
S1
RS1 = Shunt Resistance of Switch
RS1 >> R11
Diode Protection
There exists a very standard solution to the problems which arise due to the desire to rapidly switch electrical currents in circuits containing inductive loads. The following example illustrates the solution.
The winding of an electromagnet can be modeled as a resistance in series with an inductance, as illustrated in the figure. Under computer control, current i11 is to be controlled by controlling voltage v1. As we saw with the stepper-motor example, i11
will assume one of two steady-state values—i.e., i11 = 0A and i11 = VS/R11. In the circuit illustrated, diode D1 protects the interface logic from large transient voltages.
Case 1: v1 = 0V
The voltage drop across the diode is v1 = 0V, and the diode is turned off (an open circuit). Also, i11 = 0A.
Case 2: v1 = VS, where VS > 0V
The voltage drop across the diode is v1 = VS, and the diode is turned off (an open circuit). Also, i11 = VS/R11.
Case 3: At t = 0-, v1 = VS, where VS > 0V. Then at time t = 0, the interface logic switches and presents a high impedance to the rest of the circuit.
At time At t = 0+, the current i11 = VS/R11 and passes through the diode. The diode is forward biased with v1 = -0.7V. With time, i11 drops to 0A, v1 returns to 0V and the diode is turned off (an open circuit).
This is the solution to only one interfacing problem. Another common problem is the fact that actuators, such as the stepper motor, do not operate at standard “logic voltages.” This problem will be discussed as we investigate the electrical properties of a specific stepper motor and its computer-interface requirements.
9 st_mot_3.doc
ComputerInterface
Logic
v1 R11
L11D1 i11