Simple test application for the STMicroelectronics X-NUCLEO-IHM02A1 Stepper Motor Control Expansion Board, built against mbed OS.

Dependencies:   X_NUCLEO_IHM02A1

Fork of HelloWorld_IHM02A1 by ST

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.

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Fri Nov 27 16:41:46 2015 +0000
Parent:
2:41eeee48951b
Child:
4:e6f9f02cbee9
Commit message:
+ Updated with SPI SCK on D3 by default, as required by the X_NUCLEO_IHM02A1 board.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Nov 26 16:24:52 2015 +0000
+++ b/main.cpp	Fri Nov 27 16:41:46 2015 +0000
@@ -77,7 +77,7 @@
     /*----- Initialization. -----*/
 
     /* Initializing SPI bus. */
-    DevSPI dev_spi(D11, D12, D13);
+    DevSPI dev_spi(D11, D12, D3);
 
     /* Initializing Motor Control Expansion Board.