Measuring Heart Rate with Wireless Earphones and Bluemix

The Dash from Bragi are wireless smart earphones with a lot of sensors in them. Below is a quick example how to get data from the heart rate sensor and send it to IBM Bluemix. This functionality could be used, for example, to track the health of factory workers or patients in hospitals.

I open sourced the code on GitHub.

At this point the controller is running on a MacBook (when the device will expose more sensor data, I’d like to provide a sample mobile app). The controller talks to The Dash via Bluetooth Low Energy and to the Internet of Things Foundation on Bluemix via MQTT.

Here is a screenshot of the heart rate data visualized via another Bluemix service IoT Platform Analytics Real-Time Insights.

dash-2

This is a photo of The Dash.

dash-1

In order to visualize the data I defined a message schema with a data source and data points.

dash-3

I added a dashboard with a flow chart displaying the heart rate. The same service could be used, for example, to trigger certain actions if the heart rate is too high or too low.

dash-4