Simple test application for the STMicroelectronics X-NUCLEO-IHM02A1 Stepper Motor Control Expansion Board.

Dependencies:   X_NUCLEO_IHM02A1 mbed

Fork of HelloWorld_IHM02A1 by ST Expansion SW Team

Motor Control with the X-NUCLEO-IHM02A1 Expansion Board

This application provides a simple example of usage of the X-NUCLEO-IHM02A1 Stepper Motor Control Expansion Board.
It shows how to use two stepper motors connected in daisy chain configuration to the board, moving the rotors to specific positions, with given speed values, direction of rotations, etc.

Revision:
23:073b26366d03
Parent:
22:e81ccf73bc5d
Child:
24:d1f487cb02ba
--- a/main.cpp	Wed Mar 01 17:53:04 2017 +0000
+++ b/main.cpp	Thu Mar 09 15:35:35 2017 +0000
@@ -136,7 +136,11 @@
     /*----- Initialization. -----*/
 
     /* Initializing SPI bus. */
+#ifdef TARGET_STM32F429
+    DevSPI dev_spi(D11, D12, D13);
+#else
     DevSPI dev_spi(D11, D12, D3);
+#endif
 
     /* Initializing Motor Control Expansion Board. */
     x_nucleo_ihm02a1 = new X_NUCLEO_IHM02A1(&init[0], &init[1], A4, A5, D4, A2, &dev_spi);