Skip to content

How is battery shutdown handled? #1124

Answered by dlech
Novakasa asked this question in Q&A
Discussion options

You must be logged in to vote

Is a voltage of 7V enough to trigger a battery shutdown on a cityhub?

No, it doesn't shut down until 4.8V. https://github.com/pybricks/pybricks-micropython/blob/master/lib/pbio/sys/battery.c

Is there an easy way to detect impending battery shutdown so I can notify the user?

If you have a Bluetooth connection, the status events include a low battery voltage warning flag.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Novakasa
Comment options

Novakasa Jun 22, 2023
Author Sponsor

Answer selected by Novakasa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants