Heart Rate Monitor example for the BLE API using ST BlueNRG native drivers

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 mbed

Getting started with X-NUCLEO-IDB05A1

This example demonstrates how to use the X-NUCLEO-IDB05A1 component with one of the STM32 Nucleo platforms tested with the to obtain heart rate information:

First, attach the X-NUCLEO-IDB05A1 to the STM32 Nucleo platform as shown here: /media/uploads/apalmieri/nucleoble.jpg

Next, connect the STM32 Nucleo platform to your PC with a USB-mini USB cable.

Now return to the BLE_HeartRate_IDB0XA1 project homepage and import the project into your mbed compiler:

/media/uploads/apalmieri/homepage.jpg

Click “Import” button on the pop up window shown below

/media/uploads/apalmieri/import.jpg

Compile and load the image onto the STM32 Nucleo platform

Upon a successful compilation, a binary image will be created and a dialog box will ask you where to save it.

/media/uploads/apalmieri/xsaveimage.jpg

Now you can load the compiled code onto your Nucleo platform by saving the newly created binary file to your STM32 Nucleo drive.

Open a terminal window to display the status of your Bluetooth stack. For this example, set the terminal BAUD rate to 9600

Note

Included within the USB interface of the STM32 Nucleo platform is a Virtual COM port that can be used to send back messages to your PC within your embedded code.
You need a terminal emulator installed on your PC to perform serial communications with your STM32 Nucleo platform. If you do not have a terminal emulation program on your PC we recommend you download and install one of the following terminal emulation programs:

Upon a successful serial connection, you should now see the various Bluetooth stack status displayed on your console output.

/media/uploads/apalmieri/xteraterm.png

Test your application with an Android or iOS device

/media/uploads/apalmieri/1.splashscreen_800x1280.png

  • On the STM32 BLE Profiles app select HeartRateSensor

/media/uploads/apalmieri/2.scanningdevice_800x1280.png

  • Select Heart Rate

/media/uploads/apalmieri/3.profileselection_800x1280.png /media/uploads/apalmieri/7.heartrate_800x1280.png

History

Update mbed lib. default tip

2018-08-09, by nikapov [Thu, 09 Aug 2018 14:07:14 +0000] rev 22

Update mbed lib.


Minor change (bps values range)

2016-10-05, by apalmieri [Wed, 05 Oct 2016 09:16:58 +0000] rev 21

Minor change (bps values range)


Sync w/ X_NUCLEO_IDB0XA1 (rev307) lib

2016-09-16, by apalmieri [Fri, 16 Sep 2016 10:21:57 +0000] rev 20

Sync w/ X_NUCLEO_IDB0XA1 (rev307) lib


Sync w/ X_NUCLEO_IDB0XA1 (rev306) lib

2016-09-16, by apalmieri [Fri, 16 Sep 2016 07:05:25 +0000] rev 19

Sync w/ X_NUCLEO_IDB0XA1 (rev306) lib


Sync w/ mbed (rev125) BLE_API (rev1208) and X_NUCLEO_IDB0XA1 (rev305) libs

2016-09-15, by apalmieri [Thu, 15 Sep 2016 12:24:43 +0000] rev 18

Sync w/ mbed (rev125) BLE_API (rev1208) and X_NUCLEO_IDB0XA1 (rev305) libs


Sync w/ X_NUCLEO_IDB0XA1 (rev250) lib

2016-06-21, by apalmieri [Tue, 21 Jun 2016 15:50:03 +0000] rev 17

Sync w/ X_NUCLEO_IDB0XA1 (rev250) lib


Sync w/ mbed (rev121) BLE_API (rev1200) and X_NUCLEO_IDB0XA1 (rev248) libs

2016-06-21, by apalmieri [Tue, 21 Jun 2016 09:00:18 +0000] rev 16

Sync w/ mbed (rev121) BLE_API (rev1200) and X_NUCLEO_IDB0XA1 (rev248) libs


Sync w/ rev215 of X_NUCLEO_IDB0XA1 lib and rev116 of mbed lib

2016-03-22, by apalmieri [Tue, 22 Mar 2016 08:33:06 +0000] rev 15

Sync w/ rev215 of X_NUCLEO_IDB0XA1 lib and rev116 of mbed lib


Sync w/ rev115 of mbed lib

2016-03-09, by apalmieri [Wed, 09 Mar 2016 13:21:44 +0000] rev 14

Sync w/ rev115 of mbed lib


Code cleaning

2016-02-25, by apalmieri [Thu, 25 Feb 2016 10:05:05 +0000] rev 13

Code cleaning