Medium One Prototyping Sandbox with Nordic nRF52 and Raspberry Pi 3

Introduction

This Kit includes a Nordic nRF52 and Raspberry Pi 3 board. You will be connecting the Nordic nRF52 to the Raspberry Pi via Bluetooth, then the Raspberry Pi will send data from the Nordic nRF52 to the cloud over Ethernet or WiFi. You then can log in and visualize the data in the Medium One Sandbox, a cloud service we provide with built-in tools you can use with your data.

The Nordic nRF52 board is flashed with a Heart Rate Monitoring Demo and mimics a heart rate monitor, sending a generated RPM every couple of seconds.  Please note that this is not a real heart rate monitor.

 

Step 1: Connecting your Nordic nRF52 and Raspberry Pi 3 to the Medium One Sandbox using Ethernet

If you want to connect your Raspberry Pi to the cloud over WiFi, please refer to Step 4: Configuring WiFi on your RPI, at the end of this document. Otherwise, you will need an Ethernet cable to plug into your Raspberry Pi.

1.  Configure your Raspberry Pi to WiFi or plug in the Ethernet cable.

2.  Turn on the Raspberry Pi by plugging in one of the USB Mini’s in your Kit and connecting it to a power source. 

3.  Wait two minutes for the Pi to finishing booting up.

4.  Now, power on your Nordic nRF52 by plugging it in via USB mini port.

5. The green light under LED 1 should stay lit.  It may blink a few times while it is looking for something to pair with.  If it keeps blinking and does not stay solid, make sure your Raspberry Pi is still on.  Congratulations!  Your device is connected.

 

Step 2: Login to the Sandbox and Visualize the Nordic nRF52 data

1.  Navigate to https://www.medium.one/. Click “LOG IN”.

 

2.  LOG IN using the “username” and “password” on the postcard included in your Kit.  You will find them in the Your Medium One Sandbox Credentials box.

3.  After you LOGIN, you should see something like this.  A description of each section of this Dashboard follows.

 

This is the “Real Time Events Stream” widget.  Each of the lines, beginning with the date in blue on the left, is a piece of data coming in from the Nordic nRF52. You can see in the text, the mimicked heart rate sensor readings and the actual battery of the board.  You can also see device information like the ID and firmware version.

 

The Real Time Line Chart widget shows you the values of the heart rate over time.  You can see it change as time goes on.

 

The Real Time Gauges show you the most recent battery and heart rate readings from the Nordic nRF52.  The values will change on these gauges as new data comes in.

 

The Cross Filter chart shows the heart rate data over time in different ways.

You can drag a box with your mouse over an area in the Date Range box and see the graphs beneath it zoom in on the area you selected, as shown below.

 

Step 3: Now what?

Congratulations! You have connected your bluetooth Nordic nRF52 device to the cloud using Ethernet over a Raspberry Pi 3.  We have many more interesting projects you can try out.  Go to www.medium.one and SIGN UP for a free Medium One Sandbox account:

Then checkout our tutorials and see what else you can do using the Medium One Sandbox:

 

Step 4: Configuring WiFi on your RPI

Your Raspberry Pi can also connect to WiFi, but you will need to configure the SSID and password. You will need a USB mouse, keyboard, as well as, a monitor with an HDMI cable.

1.  Plug the monitor, keyboard, and mouse into the Raspberry Pi.  Power it on after they are plugged in and the monitor is on.

2.  After about 30 seconds, you will see the following display on your monitor. Click on the WiFi button in the upper right hand corner.

3.  Find the WiFi network you want to connect to and click it. Type the password in the pop up box.

4.  Your Raspberry Pi will now automatically connect to this network when it turns on!

 

Author: Rochelle Drenan