Reference Design
Control a Microstepper Motor
with the Z8F1680 MCU
RD000403-0814
Overview
Zilog’s Z8F1680 MCU-based Microstepper Motor Reference Design is a complete and
easy-to-use platform that demonstrates the features set of the Z8F1680 Microcontroller,
which is optimized for microstepper motor control. This Microstepper Motor Reference
Design drives a unipolar stepper motor using the Z8F1680 MCU’s onboard analog comparators for one-shot feedback current limiting. It also uses the Z8F1680 MCU’s multichannel timer as a microstepper sine/cosine current generator. The Microstepper Motor
Reference Design, shown in Figure 1, is designed to be operated by either any battery or
an external power supply of 5V DC to 12V DC.
Figure 1. Zilog’s Microstepper Motor Reference Design
Features
The key features of the Microstepper Motor Reference Design are:
•
Stepper motor
•
Sine/cosine microstepping
•
Current limiting
•
Speed control
•
Directional control of the motor
•
One-step advancing of the motor
•
Current generator for each coil
RD000403-0814
Page 1 of 9
Control a Microstepper Motor with the Z8F1680 MCU
Reference Design
Potential Applications
The Microstepper Motor Reference Design can be used to develop a number of applications; a number of potential applications are listed below.
•
Precision surgical procedures
•
Motorized position camera
•
HVAC coolant control
•
Robotic arms for a factory production line
•
Robot controls
•
Valve control for a fluid control system
•
Motorized curtains or window cover controls
•
Laser or optical precision positioning equipment
– Linear actuators
– Linear stages
– Goniometers
– Mirror mounts
•
Packaging machinery
•
CD/DVD disk drives
•
Flatbed/image scanners
•
Computer printers
•
Plotters
•
Slot machines
•
Intelligent lighting
•
Retrieval or exploration/drilling machinery
Discussion
The Microstepper Motor Reference Design employs Zilog’s full-featured Z8F1680 MCU
to receive user commands to drive a unipolar stepper motor. The Z8F1680 MCU’s multichannel timer is used as a microstepper sine/cosine current generator.
Microstepping, or sine/cosine microstepping, is a stepper motor drive technique in which
the current in the motor windings is controlled to approximate a sinusoidal waveform.
Microstepping produces a much smoother rotation than that of a full step drive, plus it provides greater resolution and freedom from resonance problems because it involves more
steps per revolution.
RD000403-0814
Page 2 of 9
Control a Microstepper Motor with the Z8F1680 MCU
Reference Design
In a conventional full step drive, an equal amount of current is applied to each of a motor’s
stator coils. The magnetic rotor aligns itself in the coil’s magnetic field. With each motor
step, current is reversed in one of the coils, and the rotor realigns to the new magnetic field
to move the rotor one motor step (i.e., 90 degrees).
With microstepping, varying amounts of current are applied to a motor’s coils so that the
magnetic field smoothly transitions from one polarity to the next. Each full step is divided
into several microsteps of varying current to produce a larger number of magnetic fields
that the rotor can align with. The result is a smoother motor rotation, quieter operation,
and greater motor resolution. This reference design is a physical demonstration of this theory. To learn more, see the Z8 Encore! XP F1680 Microstepping Controller Application
Note (AN0272), which is available free for download from the Zilog website.
Principles of Operation
The Microstepper Motor Reference Design offers the following control switches and buttons, which demonstrate the microstepping functions of a unipolar microstepper motor.
ON/OFF Switch (SW4). This switch turns the power to the Microstepper Motor Reference
Design Board either ON or OFF.
SPEED Knob (R1). Rotate this knob counterclockwise to slow rotation, and clockwise to
speed rotation if the motor is operating in Run Mode.
RUN/STOP Button (SW1). A pushbutton toggle switch to allow a motor to run or to stop
a motor from running.
DIRECTION Button (SW2). A pushbutton toggle switch that allows a motor to rotate
clockwise or counterclockwise if the motor is operating in Run Mode.
STEP Button (SW3). A single push and release of this pushbutton switch allows the
motor, when in Stop Mode, to take a single step in whichever direction the motor is currently rotating.
Caution: The motor must first be stopped prior to using the STEP button; otherwise, damage may
occur to the motor.
Power Connector Jack (J5). A single 5VDC to 12VDC power supply can be connected
to this jack to power the Microstepper Motor Reference Design.
Power Terminal Block Connector (J1). An external 5VDC to 12VDC power supply can
be connected to this terminal block to power the Microstepper Motor Reference Design.
Terminal Block Connectors (J2, J3, J4). The microstepper motor’s wires are connected
to the Microstepper Motor Reference Design through these terminal block connectors, as
follows:
•
Connect the brown wire to J2-1
•
Connect the green wire to J2-2
RD000403-0814
Page 3 of 9
Control a Microstepper Motor with the Z8F1680 MCU
Reference Design
•
Connect the black wire to J3-1
•
Connect the orange wire to J3-2
•
Connect the red wire to J4-1
•
Connect the yellow wire to J4-2
Testing Procedure
Observe the following procedure to become familiar with the features of the Microstepper
Motor Reference Design.
1. Switch ON/OFF SW4 to the OFF position.
2. Connect the 5V DC to 12V DC power supply to either Power Jack J5 or to Terminal
Block J1. Ensure that the positive and negative connections from the power supply are
connected to their corresponding terminal block connectors , both positive and negative.
3. Switch ON/OFF SW4 to the ON position.
4. Push the RUN/STOP button once. The microstepper motor will start to rotate.
5. Rotate the SPEED knob counterclockwise to slow the motor’s rotation.
6. Rotate the SPEED knob clockwise to accelerate the motor’s rotation.
7. Push the DIRECTION button once. The microstepper motor will immediately change
the direction of its rotation.
8. Push the RUN/STOP button once. The microstepper motor will stop its rotation.
9. Push the STEP button once. The microstepper motor will advance one microstep in
the direction in which it last rotated. Repeat this step a few times to observe this
microstepping function.
10. Push the DIRECTION button once. The microstepper motor will change the direction
of its rotation.
11. Push the STEP button once. The microstepper motor will advance one microstep in
the new direction. Repeat this step a few times to observe this microstepping function.
12. Switch ON/OFF SW4 to the OFF position to conclude this test procedure.
Electrical Specifications
Table 1 presents the electrical specifications for the Microstepper Motor Reference
Design. These specifications reflect all available data as a result of testing prior to qualification and characterization. Therefore, the data presented in this table are subject to
change.
Stresses greater than those listed in Table 1 may cause permanent damage to the device.
These ratings are stress ratings only. Operation of the device at any condition outside
RD000403-0814
Page 4 of 9
Control a Microstepper Motor with the Z8F1680 MCU
Reference Design
those indicated in the operational sections of these specifications is not implied. Exposure
to absolute maximum rating conditions for extended periods affects device reliability. For
improved reliability, unused inputs must be tied to one of the supply voltages (VDD or
VSS).
Table 1. Electrical Specifications for the Microstepper Motor Reference Design
Parameter
Min
Max
Units
Notes
Input power supply
5
12
Volts
Applied on J1 or J5 connector
Max voltage range, all
other pins
-0.3
5.5
Volts
For Z8F1680: GPIO I/O pins and
Reset.
External Pull-ups are not enabled.
Storage temperature
20
30
Degrees Celsius
Ambient temperature
20
30
Degrees Celsius
Packaging
Figure 2 shows an assembly diagram of the Microstepper Motor Reference Design Board.
Figure 2. Microstepper Motor Reference Design Board Assembly Diagram
RD000403-0814
Page 5 of 9
Control a Microstepper Motor with the Z8F1680 MCU
Reference Design
Mechanical Profile
Figure 3 shows top- and side-view dimensions of the Microstepper Motor Reference
Design Board.
Figure 3. Microstepper Motor Reference Design Board Dimensions
Ordering Information
The Microstepper Motor Reference Design is available as an individual board and as part
of a kit, as shown in the Kit Contents section that follows. Both products can be ordered
from the Zilog Store using the part numbers listed in Table 2.
Table 2. Microstepper Motor Reference Design Ordering Information
Part Number
Description
Store Product ID
Z8F1680MM00MODG
Microstepper Motor Design Board
RD10031
Z8F1680MM00KITG
Microstepper Motor Design Kit
RD10032
Kit Contents
The Microstepper Motor Reference Design Kit contains the following items:
•
Microstepper Motor Reference Design Board
•
Stepper Motor PF35T-48L4
•
AC-5VDC Power Adapter
RD000403-0814
Page 6 of 9
Control a Microstepper Motor with the Z8F1680 MCU
Reference Design
Related Documentation
The documents associated with the Microstepper Motor Reference Design are listed in
Table 3. Each of these documents can be obtained from the Zilog website by clicking the
link associated with its document number.
Table 3. Microstepper Motor Reference Design Documentation
Document
Number
Description
RD0004
This Microstepper Motor Reference Design document
PS0250
Z8F1680 Series Product Specification
UM0188
eZ8 CPU Core User Manual
UM0181
USB SmartCable User Manual
AN0272
Z8 Encore! XP F1680 Microstepping Controller Application Note
AN0272-SC01 Source code for Z8 Encore! XP Z8F1680 Microstepping Controller Application Note
RD000403-0814
Page 7 of 9
Control a Microstepper Motor with the Z8F1680 MCU
Reference Design
Appendix A. Schematic Diagrams
Figure 4 presents a schematic diagram of the Microstepper Motor Reference Design.
J1
VIN
5-12V
2
1
5V
VR1
REG1117-3.3
3
D1
1N4004
1
+
C9
.1uF
Vin
C8
10uF 10V
3.3V
GND
SW4
POWER
2
Vout
Vout
C1
.1uF
+
C2
10uF 10V
TP1
GND
J5
1
3
2
C3
6V
3.3V
SPEED
.1uF
R5
1K
R4
11K
1K
C4
10nF
PWMB
R7
11K
1K
PA2/DE0/X2IN
PA3/CTS0/X2OUT
PE3/T4CHA
PD6/DE1
PA4/RXD0/IRRX0
PA5/TXD0/IRTX0
PD5/TXD1/IRTX1
PA6/T1IN/T1OUT
PC4/MOSI/LED
PC5/SCK/LED
PA7/T1OUT
C5
10nF
PE5/T4CHC
PB3/CLKIN/ANA3
PB5/VREF
PB4/ANA7
PB2/AMPINP/ANA2
PB1/AMPINN/ANA1
PB0/AMPOUT/ANA0
PD1/C1INN
PD2/C1INP
PC3/MISO/LED
PC2/SS/ANA6/LED
1K
RUN/STOP
DIRECTION
STEP
P/B
P/B
P/B
SW1
SW2
R9
10K
R10
1K
10K
R11
R12
3.3V
FDV303N
Q1
FDV303N
Q2
1.0 1W
R13
10K
1
3
5
P1
3.3V RST
GND DBG
GND
NC
DEBUG CONN
2
4
6
R16
10K
D2
1N4002
D3
1N4002
FDV303N
Q3
R14
R15
10K
5V
PHASE A
C6
10nF
3.3V
SW3
33
32
31
30
29
28
27
26
25
24
23
12
13
14
15
16
17
18
19
20
21
22
R8
1K
R6
1
2
3
4
5
6
7
8
9
10
11
PD7/COUT0
PE2/SDA
PE1/SCL
AVSS
VSS2
PA1/T0OUT/XOUT
PA0/T0IN/T0OUT/XIN
VDD2
AVDD
PE0/T4IN
PE6/T4CHD
R3
R1
10K
R2
PD4/RXD1/IRRX1
PC6/T2IN/T2OUT/LED
PC7/T2OUT/LED
VDD1
PD0/RESET
DBG
PD3/CTS1/COUT1
VSS1
PE4/T4CHB
PC0/ANA4/C0INP/LED
PC1/ANA5/C0INN/LED
PWMA
44
43
42
41
40
39
38
37
36
35
34
U1
Z8F1680AN020SG
3.3V
D4
1N4002
1.0 1W
C7
10nF
R17
10K
R18
1K
FDV303N
Q4
STEPPER MOTOR
1
2
3
4
5
6
2
1
2
1
2
1
J2
J3
J4
D5
1N4002
PHASE B
Figure 4. A Schematic Diagram of the Microstepper Motor Reference Design
RD000403-0814
Page 8 of 9
Control a Microstepper Motor with the Z8F1680 MCU
Reference Design
Customer Support
To share comments, get your technical questions answered, or report issues you may be
experiencing with our products, please visit Zilog’s Technical Support page at
http://support.zilog.com.
To learn more about this product, find additional documentation, or to discover other facets about Zilog product offerings, please visit the Zilog Knowledge Base at http://
zilog.com/kb or consider participating in the Zilog Forum at http://zilog.com/forum.
This publication is subject to replacement by a later edition. To determine whether a later
edition exists, please visit the Zilog website at http://www.zilog.com.
Warning: DO NOT USE THIS PRODUCT IN LIFE SUPPORT SYSTEMS.
LIFE SUPPORT POLICY
ZILOG’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE
SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF
THE PRESIDENT AND GENERAL COUNSEL OF ZILOG CORPORATION.
As used herein
Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b)
support or sustain life and whose failure to perform when properly used in accordance with instructions for
use provided in the labeling can be reasonably expected to result in a significant injury to the user. A
critical component is any component in a life support device or system whose failure to perform can be
reasonably expected to cause the failure of the life support device or system or to affect its safety or
effectiveness.
Document Disclaimer
©2014 Zilog, Inc. All rights reserved. Information in this publication concerning the devices, applications,
or technology described is intended to suggest possible uses and may be superseded. ZILOG, INC. DOES
NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE
INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT. ZILOG ALSO
DOES NOT ASSUME LIABILITY FOR INTELLECTUAL PROPERTY INFRINGEMENT RELATED
IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED
HEREIN OR OTHERWISE. The information contained within this document has been verified according
to the general principles of electrical and mechanical engineering.
Z8 Encore! XP is a trademark or registered trademark of Zilog, Inc. All other product or service names are
the property of their respective owners.
RD000403-0814
Page 9 of 9
很抱歉,暂时无法提供与“Z8F1680MM00MODG”相匹配的价格&库存,您可以联系我们找货
免费人工找货