Building a Year-Long Battery-Powered Wi-Fi Temperature Sensor
medium.com·3h·
Discuss: Hacker News
💾Microcontrollers
Preview
Report Post

6 min read1 hour ago

TL;DR:* I built a battery-powered WiFi temperature sensor using ESP32-C3 that samples every 10 seconds, batches 30 readings, and transmits via UDP every 5 minutes. Aggressive power optimization (deep sleep, light sleep during sensor conversion, static IP caching) achieves ~139 mAh/month consumption. A 2500mAh 18650 battery should last well over a year. Code at github.com/mlhpdx/xiao-esp32c3-wifi-temp-sensor.*

I’ve been working on a side project that involves deploying temperature sensors at multiple sites where running power isn’t practical and where the only reliable connectivity is WiFi (no LoRa gateways, no Bluetooth hubs, just WiFi networks). As an unpaid project the constraints ar…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help