Simple program featuring a few API functions usage of the X_NUCLEO_IHM04A1 library.

Dependencies:   X_NUCLEO_IHM04A1 mbed

Dependents:   SimplePIDBot

Fork of HelloWorld_IHM04A1 by ST Expansion SW Team

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.

History

Updating with new version of the libraries. default tip

2017-08-03, by Davidroid [Thu, 03 Aug 2017 16:33:35 +0000] rev 9

Updating with new version of the libraries.


Reformatting output messages; reducing the speed of motors.

2017-05-24, by Davidroid [Wed, 24 May 2017 15:36:18 +0000] rev 8

Reformatting output messages; reducing the speed of motors.


With the new version of the library.

2017-03-24, by Davidroid [Fri, 24 Mar 2017 13:09:02 +0000] rev 7

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:00:26 +0100] rev 6

Aligning to ARM mbed coding style.


Update of main.cpp after X_NUCLEO_IHM04A1 library update

2016-06-15, by brdirais [Wed, 15 Jun 2016 12:51:03 +0000] rev 5

Update of main.cpp after X_NUCLEO_IHM04A1 library update


Hello world example with 4 brush DC motors

2016-05-17, by brdirais [Tue, 17 May 2016 12:56:07 +0000] rev 4

Hello world example with 4 brush DC motors


Change library X-NUCLEO-IHM04A1 by X_NUCLEO_IHM04A1

2016-05-17, by brdirais [Tue, 17 May 2016 12:35:20 +0000] rev 3

Change library X-NUCLEO-IHM04A1 by X_NUCLEO_IHM04A1


Minor change;

2016-05-17, by brdirais [Tue, 17 May 2016 12:19:08 +0000] rev 2

Minor change;


- Update of comment in source code.

2016-05-17, by brdirais [Tue, 17 May 2016 09:45:43 +0000] rev 1

- Update of comment in source code.


Hello World example using IHM04A1 Nucleo expansion board

2016-05-03, by brdirais [Tue, 03 May 2016 11:46:15 +0000] rev 0

Hello World example using IHM04A1 Nucleo expansion board