IdleLoop Notes

← journal

Making a tiny weather station survive its first winter

The station worked beautifully from May to October. Then November arrived, and batteries die in November, and condensation happens inside the enclosure because enclosures are optimistic objects.

Three fixes, in order of how long they took to figure out:

1. The vent hole goes down, not up. A breadboard-grade "weatherproof" box is only weatherproof until rain runs into the cable gland. Drill the drip loop, face the vent down, put desiccant — the cheap silica kind, 2 euros — inside where you can see it turn pink.

2. Li-ion is a summer battery. Below −5 °C it shrinks to a third of its capacity and refuses to charge at all. A LiFePO4 cell charges fine at zero degrees and lost only 20% capacity all January. The charge controller had to be swapped for a chemistry-aware one.

3. Send less, sleep more. The radio was on 24/7. Now the MCU wakes once every 10 minutes, posts one packet, and sleeps. Same 10-minute resolution data, battery life multiplied by five.

deep_sleep(600);           // 10 minutes
read_sensors();            // one burst
radio_send(compact_frame); // 41 bytes, no headers I don't need
// that's the whole firmware. boring on purpose.

Snow load claimed the anemometer in February, which is not a bug but a feature of living somewhere with weather. Rebuilt smaller. It is currently holding at −0.4 °C accuracy against the official station eleven kilometres away, which I consider a win.