Re:Lighting controlled by a OralB Bluetooth toothbrush
by imduffy15 on Sunday May 03, 2020 @10:21AM
(#23059142)
Can help fill in some of the blanks for you. The toothbrush has bluetooth. Its bluetooth advertisement contains information about its operating state (running, idle, etc.), mode (brush, daily clean, etc.), pressure and some other things.
The ESP32 chip scans bluetooth, detectes these advertisements, parses them and extras the data. It then sends it over to home-assistant.io which can use the data to trigger actions on any other connected device.
Re:Lighting controlled by a OralB Bluetooth toothbrush
by imduffy15 on Sunday May 03, 2020 @10:27AM
(#23059183)
Code can be seen on this commit https://github.com/imduffy15/esphome/commit/90c3cb62b37e9ce3... there are likely bugs :D
Re:Lighting controlled by a OralB Bluetooth toothbrush
by RyJones on Sunday May 03, 2020 @12:30PM
(#23060028)
We had some great demos of AllJoyn[0] at CES doing stuff like this. It would have been great, had it lived. As I recall, Philips had a smart toothbrush that gamified brushing for kids. We had it integrated with Xbox and a home grown smart mirror.
Re:Lighting controlled by a OralB Bluetooth toothbrush
by SlowRobotAhead on Sunday May 03, 2020 @04:39PM
(#23061686)
Right, he didn’t modify the toothbrush to do anything. Just picked up the BLE message going out and used that to trigger his lights which itself is just sending out a different BLE message as I understood it.
"I made lighting controlled by a ESP32, then put it inside the brush and connected the button to it."
But reading the twitter replies further down the chain, it seems the toothbrush sends data to the charging base, and the ESP resides there and analyzes the signals sent to the base? Much more interesting. Twitter's character limit really killed this post.
Unrelated, all the hashtags and @s make Twitter quite hard to read. The @ and # characters should be hidden for readers.