Improve Seeed Solar Node low-battery protection

This commit is contained in:
Ben Meadors committed 2026-11-06 08:35:50 -06:00
1 parent 58fe0cdea3
commit 8147ea6fcf
1 file changed
+8 -1
+8 -1
View File
@@ -102,11 +102,18 @@ static const uint8_t SCL = PIN_WIRE_SCL;
#define BAT_READ \
D19 // P0_14 = 14 Reads battery voltage from divider on signal board. (PIN_VBAT is reading voltage divider on XIAO and is
// program pin 32 / or P0.31)
#define ADC_CTRL BAT_READ
#define ADC_CTRL_ENABLED LOW
#define BATTERY_SENSE_RESOLUTION_BITS 12
#define ADC_MULTIPLIER 3.3
#define BATTERY_PIN PIN_VBAT // PIN_A7
#define AREF_VOLTAGE 3.3
#define OCV_ARRAY 4200, 3986, 3922, 3812, 3734, 3645, 3527, 3420, 3281, 3087, 2786
#define OCV_ARRAY 4200, 3986, 3922, 3812, 3734, 3645, 3527, 3420, 3281, 3150, 2986
#define NRF_APM
// The divided battery voltage is on AIN7; wake from System OFF as it recharges.
#define BATTERY_LPCOMP_INPUT NRF_LPCOMP_INPUT_7
#define BATTERY_LPCOMP_THRESHOLD NRF_LPCOMP_REF_SUPPLY_3_8
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// GPS L76KB
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━