Skip to content

"IoT Made Easy!" - This application demonstrates how to add the RNBD451 Add-on Board to an existing application via UART and to implement a BLE heart rate sensor using HEART RATE 9 CLICK.

Notifications You must be signed in to change notification settings

MicrochipTech/RNBD451_BLE_HEART_RATE_SENSOR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RNBD451 BLE HEART RATE SENSOR

"IoT Made Easy!"

Devices: | RNBD451 |
Features: | BLE | HEART RATE |

⚠ Disclaimer

THE SOFTWARE ARE PROVIDED "AS IS" AND GIVE A PATH FOR SELF-SUPPORT AND SELF-MAINTENANCE. This repository contains example code intended to help accelerate client product development.

For additional Microchip repos, see: https://github.com/Microchip-MPLAB-Harmony

Checkout the Technical support portal to access our knowledge base, community forums or submit support ticket requests.

Contents

  1. Introduction
  2. Bill of materials
  3. Hardware Setup
  4. Software Setup
  5. Harmony MCC Configuration
  6. Board Programming
  7. Run the demo

1. Introduction

Getting started with RNBD451 Plug and Play Heart rate Sensor

This application demonstrates how to add the BLE to an existing non wireless application and to implement a BLE heart rate sensor using HEART RATE 9 CLICK. Here we have taken an existing Heart Rate application with SAME51 and added the RNBD451 Add-on Board to make it wireless. The RN commands are sent from the SAM E51 CURIOSITY NANO BOARD to establish the heart rate BLE sensor application, which can be viewed in the MBD application.

2. Bill of materials

TOOLS QUANTITY
SAM E51 CURIOSITY NANO BOARD 1
CURIOSITY NANO BASE FOR CLICK BOARDS 1
RNBD451 Add-on Board 1
HEART RATE 9 CLICK 1

3. Hardware Setup

  • Connect the HEART RATE 9 Click Board to the Mikro Bus 1 and RNBD451 Add-on Board to the Mikro Bus 2 and connect the SAM E51 CURIOSITY BOARD as shown below.

4. Software Setup

5. Harmony MCC Configuration

Updating the SAME51 Heart Rate application with RNBD451.

Tip New users of MPLAB Code Configurator are recommended to go through the overview

Step 1 - Connect the SAM E51 CURIOSITY NANO BOARD to the device/system using a micro-USB cable.

Step 2 - Clone or Download the Heart Rate application with SAME51 and open it in MPLAB X IDE.

Step 3 - Open MCC project graph and the project graph for heart rate application is shown below.

Step 4 - In MCC harmony project graph, Add the RNBD component under Libraries->Harmony->wireless->drivers->BLE->RNBD and to add the satisfiers as shown below right click on the "⬦" in DEPENDENCY->UART and click "SERCOM0" to add the component.

  • Configure the RNBD as Shown below.

  • Configure the SERCOM0 as Shown below.

  • Now the project graph will look like the one shown below.

Step 5 - In project graph, go to Plugins->Pin configurations->Pin settings and set the pin configuration as shown below.

  • For PA6 set the pin functionality as GPIO, Pin name as BT_RST, Direction as OUT as shown below.

  • For SERCOM0 use PA8 and PA9 pin as shown below.

Step 6 - Generate the code.

Step 7 - Change the following Code as mentioned below.

  • Copy the mentioned folder/file from this repository by navigating to the location linked below and paste it your project folder.

    • Copy the folder rnbd and replace it.

    • Copy the file heartrate9_example.c and replace it.

      • In this file the Void function is changed to return function which returns the heart rate value
    • Copy the file main_sam_e51_cnano.c and replace it.

      • In this file the RNBD_heartrate_example() function initializes the RNBD451 Module and sends the heart rate value to the BLE Heart Rate Profile.

Step 8 - Clean and build the project. To run the project, select "Make and program device" button.

Step 9 - The Application Serial logs can be viewed in TERA TERM COM PORT.

6. Board Programming

Programming hex file:

Program the precompiled hex file using MPLAB X IPE

  • The Precompiled hex file is given in the hex folder.

Follow the steps provided in the link to program the precompiled hex file using MPLABX IPE to program the pre-compiled hex image.

Build and program the application using MPLAB X IDE

The application folder can be found by navigating to the following path:

  • "firmware/heartrate9_click_sam_e51_cnano.X"

Follow the steps provided in the link to Build and program the application.

7. Run the demo

  • After programming the board, the expected application behavior is shown in the below video.

Alt Text

About

"IoT Made Easy!" - This application demonstrates how to add the RNBD451 Add-on Board to an existing application via UART and to implement a BLE heart rate sensor using HEART RATE 9 CLICK.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published