Skip to content
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

Would BS440.py run on a ESP32 ? #43

Open
keptenkurk opened this issue Feb 23, 2017 · 5 comments
Open

Would BS440.py run on a ESP32 ? #43

keptenkurk opened this issue Feb 23, 2017 · 5 comments
Assignees

Comments

@keptenkurk
Copy link
Owner

keptenkurk commented Feb 23, 2017

Knowing that the ESP32 supports both Bluetooth and WiFi this could be a great low power device to interface between the scale and the home network.
The ESP32 is capable of running micropython and, by sheer coincidence [not!], i do own a Pycom LoPy. But for this purpose cheaper ESP32 boards are available which can be flashed with micropython. From the docs it looks like the Bluetooth BLE development has reached a state where is becomes usable for our purpose.

Well then, stop chatting and get on with it!

@keptenkurk keptenkurk self-assigned this Feb 23, 2017
@keptenkurk
Copy link
Owner Author

First tests show advertisements of the scale but connecting is not possible. Probably because the BTstack (not yet?) supports connecting with the 'random' parameter like in gatttool

@keptenkurk
Copy link
Owner Author

Left a note in the Pycom forum and got that confirmed. Just some more patience.
https://forum.pycom.io/topic/1036/connect-to-ble-device-using-random-adddress-type

@elRadix
Copy link

elRadix commented Oct 21, 2019

or you can use ESPHome firmware, I noted that they have managed to get Xiaomi Mi Scale working on a esp32 board

maybe some inspiration here, I'm not a dev ;-)
esphome/feature-requests#209

@keptenkurk
Copy link
Owner Author

It looks lik BLE support in micropython has improved lately: micropython/micropython#5171
Might be worth another go sometime during the long winternights...

@bwynants
Copy link

or you can use ESPHome firmware, I noted that they have managed to get Xiaomi Mi Scale working on a esp32 board

maybe some inspiration here, I'm not a dev ;-) esphome/feature-requests#209

https://github.com/bwynants/weegschaal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants