R1 Neo - Added OCV_ARRAY from measured discharge curve testing + update ADC multiplier (#8716) (#8840)

* Added OCV_ARRAY from measured discharge curve testing and update ADC multiplier

The ADC resistor divider ratio is 0.6 -> multiplier should be 1/0.6 ~=1.667

We data logged a full discharge curve at constant 100mA draw over 15hours to get a realistic voltage curve for battery SoC measurements.

* Remove power.h in favor of variant.h

---------

Co-authored-by: simon-muzi <simon@muzi.works>
Co-authored-by: Jason P <applewiz@mac.com>
This commit is contained in:
Jonathan Bennett
2025-12-02 09:49:19 -06:00
committed by GitHub
parent d2539956a9
commit 42e56ae926
2 changed files with 2 additions and 3 deletions

View File

@@ -132,7 +132,8 @@ static const uint8_t SCK = PIN_SPI_SCK;
#undef AREF_VOLTAGE
#define AREF_VOLTAGE 3.0
#define VBAT_AR_INTERNAL AR_INTERNAL_3_0
#define ADC_MULTIPLIER 1.73
#define ADC_MULTIPLIER 1.667
#define OCV_ARRAY 4200, 4020, 4000, 3940, 3870, 3820, 3750, 3630, 3550, 3450, 3100
#define HAS_RTC 1