ah- / anne-key

Firmware for Anne Pro Keyboard written in Rust
Apache License 2.0
567 stars 32 forks source link

[feature] battery indicator #36

Open hdhoang opened 6 years ago

hdhoang commented 6 years ago

ISTR #dev-chat said that there's no wire for the MCU to read the voltage level, so this might go into the README as not possible.

Otherwise, I suggest these feature levels:

ah- commented 6 years ago

I remember the same. According to https://github.com/hi-a/annepro-key#hardware there's a bq24075 charger, which doesn't seem to give us voltage: http://www.ti.com/lit/ds/symlink/bq24075-q1.pdf

I'm not sure if any of the other chips might help us, there's a tiny U5 that I'm not quite sure what it is?

The other bit to investigate would be wether PGOOD would let us at least do a low battery warning?

I haven't really looked into any of this yet, my dev keyboard runs without the battery attached.

JacobBennett commented 6 years ago

As a side note, here is a really cool project that details adding an on off switch as well as a hardware battery indicator.

https://imgur.com/r/AnnePro/KNNts

image