-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposal: add package to allow controlling BuWizz batteries #49
Comments
The situation remains difficult here. There continues to be very little communication from the manufacturer, even commented on at the kickstarter comments page. I have started working on reverse engineering the protocol. |
The BuWizz provides three GATT services, two standard and one that appears to do the work that we want. Quick scan with nRF:
Writing to handle The written value looks like this:
Where The first bit in the value always appears to be set and I have seen no non-zero states for all the bits marked Reading from |
I can confirm the above with experiments using
These are demonstrated here:
A guess at the notification's second byte's significance would be voltage drop over the battery since it spikes downwards with turning on the motor and does not vary depending on the sign of the 7-bit value (which does change the motor direction as expected). A guess at the fourth to seventh bytes' significances would be power draw since they peak on start and then stay low but non-zero if the battery is repeatedly written to to keep a motor running. The eigth byte appears to indicate temperature - placing the battery next to the fan output of the laptop increases the value and chilling the battery briefly in the fridge reduces it. (This explains the near monotonic increase observed previously since that survey was just starting the use the battery and so it was warming). The first byte (and second) change when a USB cable is plugged into the battery, in the case above to The third, ninth and tenth bytes remain a mystery.
|
The BuWizz battery is a promising device that allows control of LEGO motors and other power functions by Bluetooth. It can be controlled (currently) via an app available for ios and android.
The developers claim that the communication protocol will be opened. However, there is little indication that this is happening. When it does, add a package that allows a BT-enabled EV3 device to control paired BuWizz bricks.
The text was updated successfully, but these errors were encountered: