← back to journal

Learning to Rest in November Fog: Cutting a Solar LoRa Repeater's Idle Draw in Half

Target silicon & stack SenseCAP P1-Pro (nRF52840 + SX1262 + L76K)
Measured outcome 10.6 mA -> 5.2 mA idle · < 1 uA QSPI sleep
Bench principle Stop blaming the winter sky; witness the 5.4 mA leak on the desk.
On this page (3 sections)
  1. First Measurement: Meeting the 10.6 mA Reality
  2. Four Bottlenecks Where the Hardware Taught Us Humility
  3. Step-by-Step: Reproducing This on Your Own P1-Pro

In July, almost any solar firmware flatters your ego. You bolt the enclosure onto a mast, watch the battery hit 4.18 V before noon, and tell yourself you have built something resilient. Then November arrives in Bavaria. A low blanket of gray stratus settles over the valley for two straight weeks, night temperatures slip toward -10 °C, and our Seeed Studio SenseCAP Solar P1-Pro simply stopped answering.

Even more humbling: when a crisp, bright afternoon finally broke through the fog, the repeater stayed dead on the roof.

My first reaction was the usual restless urge to add more — a bigger solar panel, a second 18650 cell, heavier hardware. Instead, I brought the cold box down to the desk after dinner, put a current profiler in series with the battery lead, and tried to practice a simpler habit: drop the story about what the circuit should be doing, and just witness what is actually happening right here on the wire.

Measured idle current comparison and winter wake thresholds on the SenseCAP Solar P1-Pro
Measured idle current comparison and winter wake thresholds on the SenseCAP Solar P1-Pro (tap image to zoom)

First Measurement: Meeting the 10.6 mA Reality#

I had been sure the Wio-SX1262 radio was transmitting too often. Five minutes of quiet observation proved me wrong. With zero packets in the air, stock v1.18.0 was drawing 10.6 mA continuously (~254 mAh/day). Under heavy winter stratus where a compact panel gathers barely 45–80 mAh over an entire day, the node wasn't losing a radio battle — it was leaking its life away while pretending to rest.

Instead of fighting the whole codebase at once, we isolated one rail at a time and peeled away unnecessary effort stage by stage.

Four Bottlenecks Where the Hardware Taught Us Humility#

1. Forgetting to let the MCU exhale#

Inspecting the board definition showed SenseCapSolarBoard inheriting from NRF52Board (linear LDO mode) rather than NRF52BoardDCDC. The internal buck regulator was off, -D NRF52_POWER_MANAGEMENT=1 was missing, and the main loop spun with powersaving_enabled=0. Just letting the silicon use its own DC-DC converter and rest inside sd_app_evt_wait() between radio interrupts gave back over 3.5 mA without changing a single feature.

2. The 1.8 mA ghost feeding a "switched-off" GPS#

On the second evening, even with GPS_EN pulled low to power down the XIAO L76K GNSS module, 1.8 mA (~43 mAh/day) kept disappearing. Sitting with the schematic and probing each pin revealed a classic quiet leak: UART1 TX (P1.11) on the nRF52840 was still held high at 3.3 V. Current was flowing out of the data pin, through the unpowered GPS chip's internal ESD protection diode, and trying to power its dead rail from the side door.

When I rushed to turn off the GPS before closing the serial port (_location->stop() before Serial1.end()), the 0 V RX line triggered a UART break storm that locked NRF_UARTE0 solid. Order matters; you have to let go of the bus gently before cutting power.

Parasitic 1.8 mA ESD diode back-feed path when GPS_EN is pulled low while UART1 TX stays high
Parasitic 1.8 mA ESD diode back-feed path when GPS_EN is pulled low while UART1 TX stays high (tap image to zoom)

3. Pushing against Silicon Errata 122#

This was the evening that really slowed me down. The onboard P25Q16H 2 MB QSPI flash was sitting uninitialized at ~35 uA. I wrote what felt like textbook code: bring up the hardware NRF_QSPI peripheral, send 0xB9 Deep Power-Down, and deactivate it.

The meter jumped up by +1.2 mA.

For forty minutes I stared at my own code, convinced I had fat-fingered a pin number. Only when I stopped defending my approach and read Nordic's silicon errata did the truth land: nRF52840 Errata 122 leaves an internal QSPI clock/regulator path leaking over a milliamp even after deactivation. Working with the grain of the chip meant stepping around NRF_QSPI altogether — bit-banging four quiet bytes (0xAB wake, 0xB9 deep sleep) over plain GPIO and disconnecting P0.20..P0.24. Flash sleep current fell below 1 uA.

4. Why the node couldn't wake up at dawn#

Why had the repeater stayed dead even when the sun came back? Below 3.30 V, the board's 3.3 V regulator enters dropout, meaning VDD sags right alongside VBAT. Because the 1.00 MΩ / 510 kΩ battery divider is compared ratiometrically against VDD by LPCOMP, once both rails move together, the comparator goes blind until the solar charger pushes the cell all the way back to 3,664 mV (~42% charge) — marooning a cold node for a week of gray weather.

Rather than forcing an abrupt hard cutoff, we gave the firmware two calm resting states:

  • Stage 1 (3,150 mV rest -> 3,250 mV wake): Rests in SYSTEMON (~3 uA), waking briefly on an RTC tick to sample against the internal 0.6 V bandgap reference (which never sags with VDD). As soon as morning light nudges the cell to 12%, the repeater gently rejoins the mesh.
  • Stage 2 (< 3,050 mV deep stillness): Enters < 1 uA SYSTEMOFF so the lithium cell is never harmed.
SubsystemStock v1.18.0After Subtracting LeaksMeasured Change
MCU Regulator & IdleLDO mode, spin-loopNRF52BoardDCDC + sd_app_evt_wait()10.6 mA -> 5.2 mA (-130 mAh/day)
XIAO L76K GNSS Off-StateP1.11 TX high (1.8 mA leak)Serial1.end() -> tri-state -> cut rail-43 mAh/day saved
P25Q16H QSPI FlashUninitialized (35 uA)Bit-banged SPI 0xAB + 0xB9 (no Errata 122)< 1 uA sleep
Dawn Wake ThresholdMarooned until 3,664 mV (42%)Bandgap wake at 3,250 mV (12%)Recovers days earlier in fog

Step-by-Step: Reproducing This on Your Own P1-Pro#

All patches, host tests, and our zero-dependency USB flashing script (p1_tool.py) are open in sensecap-solar-p1-pro-unleashed.

Step 1: Clone and run the host seam tests first#

Verify the voltage hysteresis math and UART teardown sequence on your laptop before touching hardware:

bash
git clone https://github.com/TinkeringDao/sensecap-solar-p1-pro-unleashed.git
cd sensecap-solar-p1-pro-unleashed
g++ -std=c++17 -Wall -Wextra -I firmware test/test_power_and_rf.cpp -o /tmp/p1_tests
/tmp/p1_tests

Step 2: Compile the winter repeater image#

bash
pio run -e SenseCap_Solar_P1_Pro_Unleashed

Step 3: Flash over USB-C without opening the weatherproof seal#

Connect USB-C and let p1_tool.py trigger the 1200 bps bootloader touch and copy the UF2 image:

bash
python3 p1_tool.py dfu --port /dev/cu.usbmodem* --uf2 .pio/build/SenseCap_Solar_P1_Pro_Unleashed/firmware.uf2

Step 4: Check live rail voltage and SX1262 noise floor#

bash
python3 p1_tool.py status --port /dev/cu.usbmodem*

Most winter power engineering isn't heroic invention. It is simply noticing all the places where we left the lights on, and learning how to let the machine truly rest when there is nothing to do.