Xinyuan-LilyGO / LilyGo-LoRa-Series

LILYGO LoRa Series examples
646 stars 178 forks source link

0% equivalent voltage #6

Closed SeungRyeol closed 4 years ago

SeungRyeol commented 4 years ago

I am measuring the voltage of Li-ion battery as calculated by axp.getBattVoltage () / 1000.0.

When the battery is not charging, how much mV should I expect to drop to 0% ?

Tell me the mV equivalent to 0% that the lithium-ion battery will not damage.

lewisxhe commented 4 years ago

AXP192 has a register for shutdown voltage. The default setting is 2.9V. If it is lower than 2.9V, it will automatically shut down.

SeungRyeol commented 4 years ago

@lewisxhe Can I do mapping 4.2V to 100% and 2.9V to 0%? Is this appropriate?

lewisxhe commented 4 years ago

You can do this, but this will not calculate the battery capacity very accurately

SeungRyeol commented 4 years ago

@lewisxhe Okay! Thank you!!