Notifications
Clear all

Witty Pi 4 L3V7 - LIPO Charging status

3 Posts
2 Users
0 Reactions
21 Views
(@andrew-simpson17)
Posts: 110
Estimable Member Customer
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
(@admin)
Posts: 641
Member Admin
 

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
(@andrew-simpson17)
Posts: 110
Estimable Member Customer
Topic starter
 

Thank you!

 
Posted : 05/08/2025 8:32 am
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.