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

Dependencies:   X_NUCLEO_IHM01A1 mbed

Fork of HelloWorld_IHM01A1_2Motors by ST Expansion SW Team

Motor Control with the X-NUCLEO-IHM01A1 Expansion Board

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

Revision:
16:810667a9f31f
Parent:
14:fcd452b03d1a
Child:
17:aae1446c67f4
--- a/main.cpp	Mon Jan 04 16:02:39 2016 +0000
+++ b/main.cpp	Wed Jan 13 15:12:12 2016 +0000
@@ -73,9 +73,9 @@
 
     /* Initializing Motor Control Components. */
     motor1 = new L6474(D2, D8, D7, D9, D10, dev_spi);
+    motor2 = new L6474(D2, D8, D4, D3, D10, dev_spi);
     if (motor1->Init() != COMPONENT_OK)
         exit(EXIT_FAILURE);
-    motor2 = new L6474(D2, D8, D4, D3, D10, dev_spi);
     if (motor2->Init() != COMPONENT_OK)
         exit(EXIT_FAILURE);