D
DIY Electronics
— Building circuits, programming microcontrollers, and making things blink49 members Created Jun 2026
Rust embedded on the STM32F4 — first impressions after a month
STM32 vs ESP32 for Battery-Powered Sensor Node
I need to build a sensor node that wakes every 5 minutes, reads a BME280 and a soil moisture sensor, and transmits over LoRa. Budget is tight and the node needs to last 12 months on two AA batteries.
My initial instinct was ESP32 for the library ecosystem and cheap dev boards, but after measuring sleep current I'm leaning toward the STM32L series. The STM32L053 can hit sub-1uA in Stop mode, which on a 3000mAh cell gives enormous headroom even accounting for wake cycles.
Has anyone done a direct comparison with real measurement data? I'm particularly interested in how the LoRa transmission current interacts with each platform — I've seen wide variation in how efficiently the MCU wakes and puts the SX1276 to sleep.
Sort by Hot Top New Controversial