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.
History
Update with the new version of the motor library
2018-08-09, by Davidroid [Thu, 09 Aug 2018 15:01:16 +0000] rev 9
Update with the new version of the motor library
Adding support for Nucleo F429ZI.
2017-08-22, by Davidroid [Tue, 22 Aug 2017 11:59:32 +0000] rev 8
Adding support for Nucleo F429ZI.
Updating with the new version of the library.
2017-05-08, by Davidroid [Mon, 08 May 2017 15:51:35 +0000] rev 7
Updating with the new version of the library.
With the new version of the library.
2017-03-24, by Davidroid [Fri, 24 Mar 2017 14:13:53 +0000] rev 6
With the new version of the library.
Aligning to ARM mbed coding style.
2017-03-24, by davide.aliprandi@st.com [Fri, 24 Mar 2017 11:01:02 +0100] rev 5
Aligning to ARM mbed coding style.
Updated lib.
2016-11-23, by nikapov [Wed, 23 Nov 2016 09:19:34 +0000] rev 4
Updated lib.
Updates to ST_INTERFACES
2016-11-22, by Manu_L [Tue, 22 Nov 2016 13:21:50 +0000] rev 3
Updates to ST_INTERFACES
Replace SetDualFullBridgeconfig by SetDualFullBridgeConfig
2016-11-17, by Manu_L [Thu, 17 Nov 2016 16:45:33 +0000] rev 2
Replace SetDualFullBridgeconfig by SetDualFullBridgeConfig
HelloWorld_IHM12A1 creation
2016-04-28, by Manu_L [Thu, 28 Apr 2016 14:08:19 +0000] rev 1
HelloWorld_IHM12A1 creation
HelloWorld_IHM12A1 creation
2016-04-28, by Manu_L [Thu, 28 Apr 2016 14:03:58 +0000] rev 0
HelloWorld_IHM12A1 creation