Академический Документы
Профессиональный Документы
Культура Документы
Motor
Construction (con’t)
❖ Center Tapped Common
Moving the Rotor
Unstable Stable
Step 1: 1-0-0-1
1
0
0
1
How It Works
Step 2: 1-1-0-0
1
1
0
0
How It Works
Step 3: 0-1-1-0
0
1
1
0
How It Works
Step 4: 0-0-1-1
0
0
1
1
A Little Code, Please
while (1)
{
PORTB = 0x66; // 1001 1001
MSDelay (100);
PORTB = 0xCC; // 1100 1100
MSDelay (100);
PORTB = 0x99; // 1001 1001
MSDelay (100);
PORTB = 0x33; // 0011 0011
MSDelay (100);
}
❖ NOTE: There’s no need to double the sequence, but you have to
send 4 bits at one time, so you lose the whole 8 bit port. Might as
well send something!
Half-Step 8-Step Sequence
Step # A B C D
1 1 0 0 1
CW
2 1 0 0 0
3 1 1 0 0
4 0 1 0 0
5 0 1 1 0
6 0 0 1 0
7 0 0 1 1
8 0 0 0 1 CCW
❖ Moves ½ step each time
Wave Drive 4-Step Sequence
CW # A B C D
1 1 0 0 0
2 0 1 0 0
CCW
3 0 0 1 0
4 0 0 0 1
– Darlington Arrays
– Can Build It Yourself
Using
Transistors
for Stepper
Motor
Driver
Wiring It Up
Controlling Stepper
Motor via Optoisolator
DC Motors
❖ Only One Winding
❖ Two Connections: + and –
❖ Reversing Polarity Reverses Motor
❖ Move Continuously
❖ Cannot Determine Position
Characteristics:
❖ RPM
– No Load: Maximum RPM With No Load on Shaft
◆ Given in Data Sheets
❖ Voltage Range
– Speed Increases With Voltage on a Given Motor
❖ Current Draw
– Data Sheet Rating Is With Nominal Voltage and No Load
– Increases With Load
❖ Speed Decreases With Load
DC Motor Rotation
(Permanent Magnet
Field)
Bi-Directional Control
❖ Can Change Polarity With a Little Work
❖ H-Bridge Is Simplest Method
– Uses Switches (Relays Will do)
Basic H-Bridge Motor
Configuration
Basic H-Bridge Motor
Clockwise Configuration
Basic H-Bridge Motor
Counterclockwise
Configuration
Basic H-Bridge OOPS
Another Way
❖ Use the L293 Chip
– Quadruple Half-H Driver Chip
– Gets HOT
– Need a Heat Sink for Continuous Operation!
– Two TI Versions
◆ L293: 4.5-36V, <= 1 A