Wearable Sensors + Google GlassWearable 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!
- GG (http://www.google.com/glass/start/)
- Google glass SDK (https://developers.google.com/glass/gdk)
- Android SDK (http://developer.android.com/sdk/index.html)
- Zephyr Sensor (http://www.zephyranywhere.com/products/hxm-bluetooth-heart-rate-monitor/)
- Stream11 sensor connectivity library (http://www.stream11.com)
- PubNub publish-subscribe service (http://www.pubnub.com)
- Free time
PreparationFirst 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
CookingI uploaded google glass gode to GitHub:
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/