aydinakcasu / ChromeBluetooth

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)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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)

License:MIT License


Languages

Language:JavaScript 69.1%Language:HTML 26.8%Language:CSS 4.1%