helping children to learn about electrical energy in the home
Ross gave me back the wristband after a few months of testing. They'd made a nice case at DoES Liverpool (https://twitter.com/cheapjack/status/591216586276605952) that was based on some real energy data!
I made a little test house so people could try turning on and off various appliances and feel the wristband in action.
One of the problems I had at the start was very unreliable bluetooth communications. When I ran `hcitool lescan` I found hundreds of devices due to all the mobile phones nearby! Increasing the timeout used by `gattool` to 20 seconds improved reliability a lot.
Some photos of the wristband project at the UK Maker Faire 2015 (https://plus.google.com/u/0/photos/109869064118515349190/albums/6142516349786315393)
And I've updated the beta tester instructions with a nice picture of all the parts (https://github.com/mattvenn/energy-wristband/blob/master/docs/closed-beta.md)
The main issue with the system is that bluetooth low energy just doesn't seem to have the range. I've tried extending range by hacking the aerial, but it doesn't make much difference.
After putting the dongle on a usb extension cable at my parents the range got a lot better. I'm assuming that getting it further away from the wifi dongle (both at 2.4GHz) reduced interference and improved range.
Strangely, doing the same thing in my (much smaller) flat - it didn't make much difference.
So how to increase range. Well my laptop is on a fair amount, so while it's on why not use its bluetooth to pass the message on if the wristband is out of range from the pi?
If the daemon is started with
--udp_repeat then it will broadcast any wristband messages (default 192.168.0.255).
The udp repeater program can be started at boot, and will pass on messages received over UDP to the wristband if it's in range.
Older log posts are here https://github.com/mattvenn/energy-wristband/blob/master/docs/project_log.md