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.
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
6:a67d7d9f5528 | 2017-07-28 | Davidroid | Updating with new libraries. |
5:8c0802d9a345 | 2017-03-24 | Davidroid | With the new version of the library. |
4:0e50964ff610 | 2017-03-24 | davide.aliprandi@st.com | Aligning to ARM mbed coding style. |
3:f9e259625e54 | 2016-07-29 | nikapov | Updated library link. |
2:3ed7a06bf1ef | 2016-07-29 | nikapov | Lib updated. |
1:4f2d29e724e5 | 2016-07-27 | nucleosam | Updated libs. |
0:9ebe3081c641 | 2016-05-26 | nucleosam | Initial version. |