Elektrine lite

← Feed

@Shdwdrgn@tech.lgbt

Post #1989012

2026-04-19 18:02 UTC

@CriticalSilence Use a GPIO to control vcc to your I2C devices so they don't leach during sleep. Before deepsleep set WiFi.persistent, WiFi.disconnect, WiFi.forceSleepBegin, then WiFi.mode(WIFI_OFF). Anything to ensure the radio is completely off and the previous state was saved. When waking up you can resume the connection to speed it up -- may require the full WiFi.begin(SSID, PASS, config.channel, config.bssid, true) command, but newer libraries may have better memory of this state?

Replies (1)

  • @Shdwdrgn@tech.lgbt 2026-04-19 18:05

    @CriticalSilence On my weather stations, I can wake up, collect sensors, send over MQTT, and go back to sleep in about 2 seconds. Under solar power, speed is absolutely critical. I use the smaller 14500 LiPo batteries which fit in a standard AA socket, and collect data every 5 minutes. These batteries can run for nearly a week without recharging, so even cloudy days provide enough energy to keep them level.

    Open ##1989013