Commit Graph

8 Commits

Author SHA1 Message Date
cd4c99f125 Calibrate battery ADC and document LiPo curve
- Add BATTERY_CAL config and debug logging for raw ADC samples
- Use LiPo voltage curve (4.2V full, 2.9V empty) for % mapping
- Document battery calibration, curve, and debug output in README
2026-02-03 22:12:48 +01:00
b8a4c27daa Average battery ADC samples
- Read battery 5 times and average for a steadier voltage estimate
2026-02-02 23:28:54 +01:00
2199627a35 Fix OLED autosleep timing and battery sampling cadence
- Track last OLED activity to avoid double timeout; keep power gating on transitions
- Copy TZ before setenv() in timegm_fallback to avoid invalid pointer reuse
- Add BATTERY_SAMPLE_INTERVAL_MS and only refresh cache at batch start when due
- Keep battery sampling to a single ADC read (Arduino core lacks explicit ADC power gating)
2026-02-02 23:01:55 +01:00
8e6c64a18e Reduce sender power draw (RX windows + CPU/WiFi/ADC/pins)
- Add LoRa idle/sleep/receive-window helpers and use short RX windows for ACK/time sync

- Schedule sender time-sync windows (fast/slow) and track RX vs sleep time in debug

- Lower sender power (80 MHz CPU, WiFi/BT off, reduced ADC sampling, unused pins pulldown)

- Make SERIAL_DEBUG_MODE a build flag, add prod envs with debug off, and document changes
2026-02-02 21:44:04 +01:00
e480677b49 Add IEC62056 parsing, OLED timing, and batch LoRa send 2026-01-28 01:23:45 +01:00
460b6f86bb Improve power saving and payload safety 2026-01-23 17:32:40 +01:00
8c9520f7e5 feat(battery): round bat_v and derive bat_pct locally 2026-01-20 22:58:56 +01:00
6f308ad590 Initial commit 2026-01-20 01:39:06 +01:00