diff --git a/docs/power.md b/docs/power.md index 0994352c..9d95252c 100644 --- a/docs/power.md +++ b/docs/power.md @@ -278,8 +278,12 @@ is decided at boot. - **SenseCAP Solar battery divider (`VBAT_ENABLE`)**: held `HIGH` (off) at boot and set back to `HIGH` right after `getBattMilliVolts()`, instead of staying `LOW`. `initiateShutdown()` still drives it `LOW` when it arms the LPCOMP - wake. Open question: with the divider off, the ADC pin may sit near VDD + - 0.3 V on a full cell. This is yet to be checked with a meter on the board. + wake. It saves ~2.8 µA (4.2 V over 1.5 MOhm). With the old 10 ms settle the + reading came out 110-150 mV high (mast-three and second-mast after the OTA of + 26.-27. 11. 2026, both at night, remote-mast without the change flat): the ADC + node starts high with the divider off. The settle is 100 ms now; still to be + checked against a meter, and whether the ADC pin sits near VDD + 0.3 V on a + full cell. **Runtime knobs from the same night**, for comparison (paired deltas): diff --git a/variants/sensecap_solar/SenseCapSolarBoard.h b/variants/sensecap_solar/SenseCapSolarBoard.h index 856349de..4d6d6772 100644 --- a/variants/sensecap_solar/SenseCapSolarBoard.h +++ b/variants/sensecap_solar/SenseCapSolarBoard.h @@ -57,7 +57,10 @@ public: int adcvalue = 0; analogReadResolution(12); analogReference(AR_INTERNAL_3_0); - delay(10); + // CUSTOM (TeTeHacko): the divider is off (VBAT_ENABLE HIGH) between reads + // since #27, so the ADC node starts high. 10 ms left ~+110..150 mV on the + // reading (mast-three and second-mast, 26.-27. 11. 2026); 100 ms settles it. + delay(100); adcvalue = analogRead(BATTERY_PIN); digitalWrite(VBAT_ENABLE, HIGH); return (adcvalue * ADC_MULTIPLIER * AREF_VOLTAGE) / 4.096;