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

Dependencies:   X_NUCLEO_IHM01A1 mbed

Fork of MotorControl_IHM01A1 by ST Expansion SW Team

Motor Control with the X-NUCLEO-IHM01A1 Expansion Board

This application provides a more complex example of usage of the X-NUCLEO-IHM01A1 Stepper Motor Control Expansion Board.
It shows how to use one stepper motor connected to the board, with an example of ISR and error handler, as well as an almost complete coverage of the available APIs, e.g.:

  • moving the rotor to a specific position;
  • moving the rotor for a certain amount of time;
  • setting the speed value;
  • setting the direction of rotation;
  • changing the stepper motor mode;
  • soft/hard stopping the rotor;
  • powering off the power bridge.

Revisions of main.cpp

Revision Date Message Actions
26:7a58cede28f7 2017-03-10 Aligned to ARM mbed coding style. File  Diff  Annotate
25:205b3d09e64e 2017-03-01 Attaching and enabling the user handler for the flag interrupt. File  Diff  Annotate
22:ce8a202d67ac 2016-09-08 Substituted steps/s with pps. File  Diff  Annotate
20:bec1eba352a5 2016-04-07 + Updated with the new version of the library. File  Diff  Annotate
15:4a1684b7252b 2016-01-15 + Updated with the new version of the library. File  Diff  Annotate
14:7264b1f6afec 2016-01-13 + Updated with the new version of the library. File  Diff  Annotate
12:fac478c7ea0b 2015-12-14 + Updated with no initialization structure passed by default. File  Diff  Annotate
7:eec0f9ec9719 2015-11-27 + Updated with the new version of the library. File  Diff  Annotate
6:ff72e3344fb1 2015-11-26 + Updated with the new version of the X_NUCLEO_IHM01A1 library. File  Diff  Annotate
5:dfec8da854e5 2015-11-25 + Updated with the new X_NUCLEO_IHM01A1 library. File  Diff  Annotate
4:43df256f26d9 2015-11-20 + Application updated to reflect addition of FLAG interrupt to the X_NUCLEO_IHM01A1 library. File  Diff  Annotate
3:82f4c46cccd0 2015-11-18 + Program updated to reflect the modifications to the "StepperMotor" abstract class. File  Diff  Annotate
2:d956260240b0 2015-11-13 Adaptation to the "StepperMotor" abstract class. File  Diff  Annotate
1:5171df1bf684 2015-10-16 Updated to fit the new X_NUCLEO_IHM01A1 library. File  Diff  Annotate
0:fedf3cf2324a 2015-10-14 mbed test application for the STMicrolectronics X-NUCLEO-IHM01A1 Motor Control Expansion Board: control of 1 motor.; ; This application mirrors the corresponding Stm32Cube's "IHM01A1_ExampleFor1Motor" example. File  Diff  Annotate