Raspberry Pi 5 UPS-DFRobot wrong battery level

userHead Raf.el 2025-11-19 00:00:43 18 Views1 Replies

Hello! I'm using the Raspberry Pi 5 UPS-DFRobot and it works great. However, I can't properly get the battery level. Using the official script shows a completely different battery level than the leds on the board. For example, at this exact moment, all the four leds are on, but the script shows a battery of just 18%. The batteries are brand-new.

 

Is there something I shold be doing differently?

2025-11-19 01:46:33

The script assumes the battery has already been through a charge-discharge cycle.

Li-ion batteries have a non-linear voltage-to-charge curve. Voltage rises quickly in the first 20%, then slowly from 20–80%, and then quickly near 100%.

So a brand-new battery at 4.0 V may actually be almost fully charged, even though the script thinks it’s low.

userHeadPic ahsrab.rifat