![](/media/cache/group/ST_logo_2020_blue_V_cmyk.jpg.50x50_q85.jpg)
Example program for library X-NUCLEO-IHM12A1 using two low voltage dual brush DC motors
Dependencies: X_NUCLEO_IHM12A1 mbed
Fork of HelloWorld_IHM12A1 by
This application provides a simple example of usage of the X-NUCLEO-IHM12A1 Dual Brush DC Motor Control Expansion Board.
It shows how to use 2 bidirectional brush DC motors connected to the board by executing a 13 steps loop:
- Step 0) Motor 0 runs in forward at 100% of max speed, Motor 1 is inactive
- Step 1) Motor 0 runs in forward at 75% of max speed, Motor 1 runs in backward at 100% of max speed
- Step 2) Motor 0 runs in forward at 50% of max speed, Motor 1 runs in backward at 75% of max speed
- Step 3) Motor 0 runs in forward at 25% of max speed, Motor 1 runs in backward at 50% of max speed
- Step 4) Motor 0 is stopped, Motor 1 runs in backward at 25% of max speed
- Step 5) Motor 0 runs in backward at 25% of max speed, Motor 1 is stopped
- Step 6) Motor 0 runs in backward at 50% of max speed, Motor 1 runs in forward at 25% of max speed
- Step 7) Motor 0 runs in backward at 75% of max speed, Motor 1 runs in forward at 50% of max speed
- Step 8) Motor 0 runs in backward at 100% of max speed, Motor 1 runs in forward at 75% of max speed
- Step 9) Motor 0 runs in backward at 100% of max speed, Motor 1 runs in forward at 100% of max speed
- Step 10) Stop both motors and disable bridges
- Step 11) Motor 0 runs in forward at 100% of max speed, Motor 1 runs in forward at 100% of max speed
- Step 12) Stop both motors and enter standby mode
For the hardware configuration of the expansion board, please refer to the X_NUCLEO_IHM12A1 library web page.
Revisions of X-NUCLEO-IHM12A1.lib
Revision | Date | Message | Actions |
---|---|---|---|
9:371f9bb009e0 | 2018-08-09 | Update with the new version of the motor library | File Diff Annotate |
8:7dccd03ea2bc | 2017-08-22 | Adding support for Nucleo F429ZI. | File Diff Annotate |
7:500c397c7dba | 2017-05-08 | Updating with the new version of the library. | File Diff Annotate |
6:bd2fa888c101 | 2017-03-24 | With the new version of the library. | File Diff Annotate |
4:d6077c2bfddd | 2016-11-23 | Updated lib. | File Diff Annotate |
3:47c365b699b5 | 2016-11-22 | Updates to ST_INTERFACES | File Diff Annotate |
2:1e4061cedf1d | 2016-11-17 | Replace SetDualFullBridgeconfig by SetDualFullBridgeConfig | File Diff Annotate |
1:c06b4ac7132b | 2016-04-28 | HelloWorld_IHM12A1 creation | File Diff Annotate |
0:773e2a2be16f | 2016-04-28 | HelloWorld_IHM12A1 creation | File Diff Annotate |