Set-up to try the provided example
UM1964
12/24
DocID028481 Rev 1
3
Set-up to try the provided example
Follow this sequence to start your project with the board:
1.
Choose an STM32 Nucleo board from among NUCLEO-F401RE, NUCLEO-F302R8
and NUCLEO-F072RB.
2.
Get the right firmware from the X-CUBE-SPN2 (available on www.st.com) for the
chosen STM32 Nucleo board and program it properly.
–
X-CUBE-SPN2_F401.bin for NUCLEO-F401RE
–
X-CUBE-SPN2_F302.bin for NUCLEO-F302R8
–
X-CUBE-SPN2_F072.bin for NUCLEO-F072RB
3.
Disconnect the STM32 Nucleo board from the PC.
4.
Put a jumper between pin 2 and 3 of J1.
5.
Leave all J2 pins open.
6.
Check the solder bridges meet the default configuration (see
).
7.
Connect two stepper motors to ST1 and ST2.
8.
Stack the X-NUCLEO-IHM02A1 expansion board on an STM32 Nucleo board through
ST morpho or Arduino UNO R3 connectors.
9.
Supply the board through the pin 1 (GND) and 2 (VS) of the connector ST3 with 9.0 V
DC. The green LEDs D1 and D4 will turn on to show each L6470 VREG is on.
10. Connect the STM32 Nucleo board to the PC via USB type A to Mini-B USB cable. The
orange LED D9 will turn on to show the digital voltage is on.
11. The two connected stepper motors will perform a few movements.
Note:
The example is set to use motors such as the hybrid stepping motor 42BYGHM809 by
Wantai Motor. If your motors have different parameters, modify the array named
“MotorParameterInitData” in the “params.c” source file accordingly.
You can now proceed to develop your application using the examples provided with the
firmware library (X-CUBE-SPN2) with yourpreferred IDE among IAR EWARM, Keil MDK-
ARM and Open STM32 SW4STM32.
Note:
Further support material regarding L6470, X-NUCLEO-IHM02A1, X-CUBE-SPN2 and
STM32 Nucleo board is available on www.st.com.