joushx / python-sonicare Goto Github PK
View Code? Open in Web Editor NEWPython library to communicate with a Phillips Sonicare toothbrush via Bluetooth Low Energy
License: MIT License
Python library to communicate with a Phillips Sonicare toothbrush via Bluetooth Low Energy
License: MIT License
I was experimenting a bit, especially the gyro characteristics. I own a sonicare HX991W which should be identical to the HX992B.
I could not get any gyro data out of it, but I was able to find some other useful values:
You have to write a value to 4120 to enable output on 4130. Depending on what you write to 4210, you get different outputs:
0: no output on 4130
1: pressure data
2: unknown values. They change sometimes, but I cannot find when or how, or any meaning
8: grip strength
Combinations are possible (so, write '9' to 4120 to get pressure and grip data).
The first byte of the received value on 4130 indicates the kind of data in the rest of the string:
1: pressure data: 5th and 6th byte output a signed integer, positive if you press on the brush (the normal force when you brush your teeth), negative it you pull the brush up. 7th byte has a value of '2' if you exceed the recommended pressure. Only streams this when the brushing is active.
8: grip strength: 5th byte indicated how strong you hold the body. Around 100 if you don't touch it, around 160 is you squeeze it. Other bytes seem to be some kind of moving average, and other related values I cannot identify. These values regardless of brushing active of inactive.
Do you know how to enable streaming of the accelerometer/gyroscope data?
I would love to see this make its way into a Home Assistant integration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.