The code and schematics provided here include some solid examples for monitoring a room environment, a humans heart rate, pushing data to different Apple devices and finally saving everything to What I should also dilvulge is how well it actually works.

Here are the hacks:

  • The light level goes to zero pretty fast. The difference between a pitch black room and a pretty dark room is not being picked up well by the TSL2561 sensor. It does a great job of distinguishing brightness levels during the day.
  • The heart rate strap provides excellent data, but you need to be within a few feet of the receiver. This means the sleep monitor hardware will need to be right beside your bed.
  • The sleep monitor has LEDs and a display so this could be a distracting. Some well placed electrical tape could resolve this.
  • The iOS Bluefruit App will easily catch the data and save it to CSV files. I've not been able to use the iOS Bluefruit App to forward the data directly
  • My macOS bluetooth catcher script likes to find reasons to exit so I always start it up with a: 
while true ; do python ; done

This guide was first published on Nov 19, 2016. It was last updated on Mar 08, 2024.

This page (Pure Hackery) was last updated on Oct 18, 2016.

Text editor powered by tinymce.