emfcamp / badge-2024-software

46 stars 29 forks source link

Increase VBATMIN to 3 volts #176

Closed TBExtent closed 3 months ago

TBExtent commented 3 months ago

Increases the minimum battery voltage to the 3 volt minimum specified in its datasheet, as discussed in issue #175

kliment commented 3 months ago

This does not change the battery voltage. It only changes the reported voltage from the battery state of charge measurement.

TBExtent commented 3 months ago

Serves me right for assuming it would be simple. Having gone back and done a little more digging it looks like I'll need to edit bq25895.c/h? I'll have a poke and redo the pull request once I've worked out what's going on

ChrisDick commented 3 months ago

I've commented on the issue about this, but I'm happy for this to go in as it does improve the Batterylevel() while I'm giving it an overhaul. maybe increase it to 3.5V to match the PMIC min voltage.

TBExtent commented 3 months ago

I've increased it to 3.5V. Thanks!