![](/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.
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
9:be4faa697346 | 2017-08-03 | Davidroid | Updating with new version of the libraries. |
8:05340e740644 | 2017-05-24 | Davidroid | Reformatting output messages; reducing the speed of motors. |
7:20ff5668f5fe | 2017-03-24 | Davidroid | With the new version of the library. |
6:b9b32d6c2b40 | 2017-03-24 | davide.aliprandi@st.com | Aligning to ARM mbed coding style. |
5:4c1e581bbb8b | 2016-06-15 | brdirais | Update of main.cpp after X_NUCLEO_IHM04A1 library update |
4:dae3d62ad7b4 | 2016-05-17 | brdirais | Hello world example with 4 brush DC motors |
3:7c216a2584d8 | 2016-05-17 | brdirais | Change library X-NUCLEO-IHM04A1 by X_NUCLEO_IHM04A1 |
2:f0f8e652ec34 | 2016-05-17 | brdirais | Minor change; |
1:4d9b9123d9e1 | 2016-05-17 | brdirais | - Update of comment in source code. |
0:dcc35ef6effc | 2016-05-03 | brdirais | Hello World example using IHM04A1 Nucleo expansion board |