![](/media/cache/group/ST_logo_2020_blue_V_cmyk.jpg.50x50_q85.jpg)
Simple program featuring a few API functions usage of the X_NUCLEO_IHM04A1 library.
Dependencies: X_NUCLEO_IHM04A1 mbed
Fork of HelloWorld_IHM04A1 by
This application provides a simple example of usage of the X-NUCLEO-IHM04A1 Brush DC Motor Control Expansion Board.
It shows how to use four unidirectional brush DC motors connected to the board by running the four motor in parallel. At the beginning, no motor is running. Each time the user presses the user button, a new brush DC motor is activated. Motors run during one second, stop during one second and run again.
- motor 1 runs at 20% of maximum speed.
- motor 2 runs at 30% of maximum speed.
- motor 3 runs at 40% of maximum speed.
- motor 4 runs at 50% of maximum speed.
For the hardware configuration of the expansion board, please refer to the X_NUCLEO_IHM04A1 library web page.
X_NUCLEO_IHM04A1.lib
- Committer:
- Davidroid
- Date:
- 2017-08-03
- Revision:
- 9:be4faa697346
- Parent:
- 7:20ff5668f5fe
File content as of revision 9:be4faa697346:
https://developer.mbed.org/teams/ST/code/X_NUCLEO_IHM04A1/#d16ad1d58ea1