Twitter

Follow leybzon on Twitter

Wednesday, January 15, 2014

Developing Google Glass application showing the Heart Beat Rate


Wearable Sensors + Google Glass

Wearable sensors  are a lot of fun! I played with them for some time by now, both professionally (at work), and for the coding pleasure. This post is about my latest weekend project - native google glasses app showing heart rate. The idea is to continuously measure hear rate using the sensor and to show pulse rate in real time, for example, while running or exercising. Honestly, I did not find running with Google Glasses to be much fun (as they tend to fell off when I am running), but to see what makes my heart beat faster is an interesting and educational experience.

Google Glass (GG)

Turns out to be a nice piece of hardware that is a fun to work with: reasonably fast processor, Android 4.0.1, wide range of sensors, WiFi, and Bluetooth interface!

Ingredients


Preparation

First step is to set up GDK from Google: https://developers.google.com/glass/develop/gdk/quick-start

Next step to learn how to use GG screen factor and set up glass emulation. It's very straightforward and described in http://stackoverflow.com/questions/18490150/what-is-the-correct-device-definition-for-google-glass-for-a-simulator-in-eclip
  

Cooking

I uploaded google glass gode to GitHub:
https://github.com/leybzon/GlassHeart-master

Serving

I like adding nice graphics on top of my code. For this project, I found a nice heart image on http://wbom.wordpress.com/2012/02/07/a-change-of-heart-that-matters/