Notifications
Clear all
Technial Support / Discussion
3
Posts
2
Users
0
Reactions
21
Views
Topic starter
Hi
I know during the charging the battery is disconnected from Vin and the voltage on Vin is actually the voltage from USB-C connector.
i also can see in the menu options when I call wittyPi.sh that the LIPO has a status if charging. How does it know this? I looked in yoru Python source files and cannot see how it works out whether it is charging or not?
Thanks
Posted : 03/08/2025 9:23 pm
Raspberry Pi's GPIO-5 is used to detect the charging status, while GPIO-6 is used to detect standby status. They are connected to the TP4056 chip.
This is how wittyPi.sh uses them:
https://github.com/uugear/Witty-Pi-4/blob/main/Software/wittypi/wittyPi.sh#L585-L586
Posted : 05/08/2025 7:47 am
Topic starter
Thank you!
Posted : 05/08/2025 8:32 am