Skip to content

update battery voltages to match readout of inkplate library#25

Merged
lanrat merged 1 commit intolanrat:mainfrom
elratt0r:update_battery_voltages
Apr 4, 2023
Merged

update battery voltages to match readout of inkplate library#25
lanrat merged 1 commit intolanrat:mainfrom
elratt0r:update_battery_voltages

Conversation

@elratt0r
Copy link
Copy Markdown
Contributor

@elratt0r elratt0r commented Apr 2, 2023

The inkplate library v6.0.0 has updated the battery voltage readout, now giving correct readouts using the calibrated adc. This patch reflects the recommended voltages for a 3.7V battery.

@lanrat
Copy link
Copy Markdown
Owner

lanrat commented Apr 3, 2023

The values I used in this library were taken from testing to see exactly where the cutoffs were for when the bettery reached a level preventing the inkplate from no longer booting.

Have you tested that these new values still reflect that?

Aka, the inkplate should still be able to boot and work on 5%, but not 0%, etc...

@elratt0r
Copy link
Copy Markdown
Contributor Author

elratt0r commented Apr 4, 2023

I based those values on the related measurement of the ADC (with the new code from my PR at SolderedElectronics/Inkplate-Arduino-library/pull/171) compared to your BATTERY_ values. See attached graph.

I am sure, the _LOW could be even at 3.1V and the _WARNING_SLEEP at 3.05V, but from what I read about LiPo: The deeper you discharge, the less cycles you get. I think we're better off here with a little less overall runtime but better battery live.

homeplate_bat_adc

@lanrat lanrat merged commit 565d737 into lanrat:main Apr 4, 2023
elratt0r pushed a commit to elratt0r/homeplate that referenced this pull request Apr 13, 2023
update battery voltages to match readout of inkplate library
@elratt0r elratt0r deleted the update_battery_voltages branch April 28, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants