beaconWorkshop
Overview
Workshop intended for use in STEM activity. Does simple proximity tracking of two uriBeacon with a Raspberry Pi and displays status using a simple traffic light system.
There are a couple of videos with background information:
- Short demo (https://youtu.be/1Y7YITl1CVw)
- Background talk (https://youtu.be/IiIx1xnXw0M)
Hardware
- Raspberry Pi (Any model)
- Bluetooth 4.0 Dongle (e.g. http://www.adafruit.com/products/1327)
- uriBeacons (https://github.com/google/uribeacon)
- 2x PiStops Traffic Lights (http://4tronix.co.uk/store/index.php?rt=product/product&product_id=390)
Setup new Raspberry Pi
Install Bluez
sudo apt-get install bluetooth bluez-utils libbluetooth-dev
Install node.js
sudo wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
Install node.js packages
npm install uri-beacon-scanner
npm install onoff
npm install debug
Running the code
sudo node tracker.js "uri_for_beacon1" "uri_for_beacon2"
Task list Done
- Add code
- Add workshop manual
- Background print colour white
@ukBaz
- Test code works with variables at top
- New image of directory listing
- Write introduction presentation
- Move from uriBeacon to Eddystone Beacon
@soniacaldwell
- Review CLOSE/NEAR/FAR nomenclature => IMMEDIATE/NEAR/FAR
- Test code, typing from scratch - time test, debug tips
- ROLLING_AVERAGE to top level for third activity? Code done.
- Document third activity for changing rolling average. Not sure this will add a great deal.
- Test calcRangeAlt to see if that is a better candidate for the range algorithm. rssi1m tested and added.
unassigned
- Create image for all workshop machines