You are viewing an older revision! See the latest version

Program3_BLEHeartRate

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

X-NUCLEO-IDB05A1 Datasheet

First, attach the X-NUCLEO-IDB05A1 to the STM32 Nucleo platform as shown here:

/media/uploads/Maggie17/ble1.jpg

Steps:

  1. Import Program3_BLEHeartRate to your online compiler.
  2. Update the BLE_API library if it is outdated.
  3. Compile the example with flag: -DIDB0XA1_D13_PATCH or add the line #define IDB0XA1_D13_PATCH to X_NUCLEO_IDB0XA1/x_nucleo_idb0xa1/x_nucleo_idb0xa1_targets.h
  4. Remove all instances of LED1 in main.cpp as the shield’s LED is on the same line as SPI CLK which will prevent the board from working
  5. Now press Compile. A file downloads (BLE_HeartRate_IDB0XA1_NUCLEO_F429ZI.bin).
  6. Drag the file to the 'NODE_F429ZI' disk. The LED on the board will flash.
  7. After flashing, hit the 'Reset' button to start the program.
  8. Now open the BLE scanner on your phone. Start a scan.
  9. Find your device; it should be named `bluenrg!`.
  10. Click the connect to establish the connection with your device.
  11. Click the Heart Rate Measurement. If you can see some notification from the device, congratulations!

All wikipages