Simple program featuring a few API functions usage of the X_NUCLEO_IHM06A1 library.
Dependencies: X_NUCLEO_IHM06A1 mbed
Fork of HelloWorld_IHM06A1 by
This application provides a simple example of usage of the X-NUCLEO-IHM06A1 Bipolar Stepper Motor Control Expansion Board.
It shows how to use a stepper motor connected to the board by:
- Running the motor;
- Monitoring the speed and the motor state;
- Setting/Getting the speed;
- Setting/Getting the step mode;
- Setting/Getting the acceleration and deceleration;
- Moving a defined number of steps or microsteps;
- Disabling the power bridges;
- Setting/Getting the torque;
- Going to home position
It also shows how to monitor the step clock handler duration in order to evaluate the maximum achievable motor speed for a given MCU.
For the hardware configuration of the expansion board, please refer to the X_NUCLEO_IHM06A1 library web page.
Revision 1:4f2d29e724e5, committed 2016-07-27
- Comitter:
- nucleosam
- Date:
- Wed Jul 27 12:08:08 2016 +0000
- Parent:
- 0:9ebe3081c641
- Child:
- 2:3ed7a06bf1ef
- Commit message:
- Updated libs.
Changed in this revision
| X-NUCLEO-IHM06A1.lib | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- a/X-NUCLEO-IHM06A1.lib Thu May 26 15:54:22 2016 +0000 +++ b/X-NUCLEO-IHM06A1.lib Wed Jul 27 12:08:08 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/ST-Expansion-SW-Team/code/X-NUCLEO-IHM06A1/#0ccd34c56c66 +https://developer.mbed.org/teams/ST-Expansion-SW-Team/code/X-NUCLEO-IHM06A1/#2ba230b24f25
--- a/mbed.bld Thu May 26 15:54:22 2016 +0000 +++ b/mbed.bld Wed Jul 27 12:08:08 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/6c34061e7c34 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/f9eeca106725 \ No newline at end of file

X-NUCLEO-IHM06A1 Low Voltage Stepper Motor Driver