Demo of a "Stress Display" using Chrome Bluetooth. Reads Heart-rate data, and displays "stress" colors to a smart bulb. (Uses a SBT5007 smart bulb)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bluetoothlog
css
tools
2017_10_30_QLTechTalk.pdf
2018_03_28_CodePaLOUsa.pdf
IndiannaJones.mp3
LICENSE.md
README.md
battery.js
demo.html
deviceInfo.js
heartRate.details.js
heartRate.js
index.html
leapMotion.html
leapMotionLight.html
lightBulb.js
microbit.js
microbit.originalWorks.js
microbit_info.txt
puck.html
puck.js
puckAll.html
stressDisplay.js
temperature.js

README.md

Screenshot

ChromeBluetooth

Demo to show how to use Chrome to connect to a heart rate monitor, as well as a Bluetooth smart bulb. The ultimate goal creates a "Stress Display" that uses the heart rate value, to display a "traffic light" stress meter. This consists of various shades of green, yellow or red depending on the heart rate value. Screenshot

This will demonstrate how to use Chromes' bluetooth capabilities to:

  • Read battery status
  • Read heart rate information
  • Hacking into a smart bulb (Sharper Image LED Bulb Bluetooth Speaker - SBT5007)

Runs on Chrome browsers on:

  • Mac
  • PC
  • Smartphones
    • Android
    • IPhone (Not working currently)
    • Windows (Not tested)

Requirements:

  • Chrome version 56+

To try it out! (Live Demo):

If you do not have a Bluetooth Heart-Rate monitor:

  • You can use on android: "BLE Peripheral Simulator" Screenshot

File summary:

  • index.html
    • the main page.
  • deviceInfo.js
    • get device information.
  • battery.js
    • get battery information.
  • heartRate.js
    • get heart rate information.
  • temperature.js
    • get temperature information.
  • lightBulb.js
    • set the colors of the lightbulb.
  • stressDisplay.js
    • base on the heartrate of the heartrate monitor, set the color of the bulb to differenct shades of green, yellow or red.

Tools used:

  • Get Bluetooth information using Chrome:
    • chrome://bluetooth-internals
  • Wireshark (to analyze packets)
  • Bluetooth Simulator App:
    • "BLE Peripherals" App, for Android devices

Where to buy:

  • Sharper Image LED Bulb Bluetooth Speaker (SBT5007)
    • Ace Hardware: $22.99
    • Menards: Online ($11) Screenshot
  • Crane Heart Rate Monitor
    • About $15 at Aldi
    • Just about anywhere ($20+)

Other helpful links:

Other Hardware for Bluetooth:

  • Micro:bit
  • Raspberry PI
  • BB-8 (Star Wars)
  • Drone (Parrot Mini Drone Rolling Spider)
  • Thermometers

Images:

  • Title Screenshot
  • Screenshot: Screenshot
  • On Desktop Screenshot
  • On Android Screenshot
  • Show stress Screenshot
  • Hacking Overview Screenshot
  • Test Bulb: Screenshot
  • Stress Display Screenshot
  • Bulb Screenshot
  • Androit App Screenshot