KTFRDM17C724UG, Rev. 1.0
12
Freescale Semiconductor, Inc.
Installing the Software and Setting up the Hardware
5.2 Configuring the Hardware
Figure 4
shows the configuration diagram for FRDM-17C724-EVB.
Figure 4. FRDM-17C724-EVB plus FRDM-KL25Z Board Setup
5.2.1
Step-by-step Instructions for Setting Up the Hardware Using Motor
Control GUI
When using the FRDM-17C724-EVB make sure that the following operating parameters are followed or damage may occur.
•
The maximum motor supply voltage (VM) cannot exceed 5.5 V, and must be at least 3.3 V
•
The nominal operating current of the stepper motor cannot exceed 0.4 A (0.8 A peak)
In order to perform the demonstration example, first set up the evaluation board hardware and software as follows:
1. Setup the FRDM-KL25Z to accept code from the mbed online compiler. mbed is a developer site for ARM based
microcontrollers. The instructions are at
mbed.org
(https://mbed.org/handbook/mbed-FRDM-KL25Z-Upgrade) (you will need
to switch to the other USB port on the FRDM-KL25Z, and back after you load the project).
2. Go to the Freescale page on mbed.org and look for the repository named "LVHB DC Motor Drive".
(http://developer.mbed.org/teams/Freescale/code/LVHB-Stepper-Motor-Drive/) Save the compiled code on your local drive,
and then drag and drop it onto the mbed drive (which is the FRDM-KL25Z). Move the USB connector back to the other USB
port on the FRDM-KL25Z.
Note: You may be asked to create a user before you can download the code.
3. Connect the FRDM-17C724-EVB to the FRDM-KL25Z. This is best accomplished by soldering the female connectors to the
FRDM-KL25Z, and then connecting to the male pins provided on the FRDM-17C724-EVB.
4. Ready the computer, install the "Stepper Motor Driver GUI Software" (See
Section 5.1
).
5. Attach DC power supply (without turning on the power) to the VM and GND terminals.
6. Attach one set of coils of the stepper motor to the OUT 1A and OUT 1B output terminals. Attach the other phase coil of the
stepper motor to terminals OUT2A and OUT2B. Launch the "Stepper Motor Driver GUI Software".
7. Make sure the GUI recognizes the FRDM-KL25Z. This is determined by seeing the hex Vendor ID (0x15A2), and Part ID
(0x138) under USB connection in the upper left hand corner of the GUI. If the GUI does not recognize the FRDM-KL25Z, you
need to disconnect and reconnect the USB cable to the FRDM-KL25Z.
8. Turn on the DC power supply.
Computer
USB Cable
FRDM-KL25Z
Use this USB Port
Stepper Motor
FRDM-17C724-EVB
Mounted on Top
DC Power Supply