EdgeWake 如何在 115 µA 下維持深度睡眠
How EdgeWake sleeps at 115 µA
Parth Arsid 團隊為 Smart India Hackathon 2026 開發森林威脅探測器 EdgeWake,採用五級按需喚醒架構,深度睡眠時電流約 115 µA。
EdgeWake is the forest-threat detector my team built for Smart India Hackathon 2026. It listens for chainsaws and watches for fire, and it has to do that somewhere nobody will ever come to change a battery.
That constraint shaped everything. The interesting engineering isn't the classifier. It's the decision about when the classifier is allowed to run at all.
Why always-on doesn't work
The obvious design is an ESP32-CAM with the camera, microphone and WiFi running continuously, streaming whatever it sees. It works on a desk. In a forest it's dead in days, because a camera and a radio are the two most expensive things you can leave switched on.
Satellites and drones don't fix it either. Satellite imagery arrives hours late and clouds block it. Drones fly for 20 to 40 minutes and need a person holding the controller.
Five tiers, each one earning the next
EdgeWake stacks its hardware from cheapest to most expensive and only climbs a step when the step below says yes:
| Tier | What runs | Current | For |
|---|---|---|---|
| 1. Deep sleep | Flame + vibration sensors only | ~115 µA | almost always |
| 2. Interrupt | ESP32 wakes, checks the trigger | < 5 mA | < 100 ms |
| 3. Listen | INMP441 mic, audio features | ~40 mA | ~2 s |
| 4. Look | OV2640 captures a JPEG | ~120 mA | ~1 s |
| 5. Send | WiFi posts the alert | ~160 mA | ~3 s |
Any tier can decide it was a false alarm and put the node straight back to sleep. A falling branch trips the vibration sensor, the ESP32 wakes for a fraction of a second, decides it's noise, and never touches the mic or the camera.
Classifying sound without a big model
Tier 3 records two seconds of audio and computes two cheap features: the zero-crossing rate (how often the waveform changes sign) and the RMS loudness.
- High zero-crossing rate and high loudness looks like a chainsaw.
- Low zero-crossing rate at medium loudness looks like fire.
- Anything else is a false alarm, and the node goes back to sleep.
It's deliberately simple. Two arithmetic passes over a buffer cost almost nothing, and the camera in tier 4 exists precisely so a human can confirm what the audio thought it heard. The beginner edition of the firmware swaps in a small 1D CNN trained with Edge Impulse for people who want to experiment with a real model.
Hardware details that matter more than they look
- The microphone is power-gated. The INMP441 sits behind a MOSFET, so in tiers 1 and 2 it draws nothing, not "a little".
- Only interrupt-capable pins wake the chip. The KY-026 flame sensor and SW-420 vibration sensor are wired to GPIOs that can pull the ESP32 out of deep sleep.
- One 18650 cell and a TP4056 charger. No exotic power parts.
The numbers
In deep sleep the node averages roughly 1 mAh a day, which is where the two-year battery estimate comes from. A complete node costs ₹1,140, about $15. For comparison, Dryad's gas-sensing nodes are around $500 and Pyronear's camera setup around $200, and EdgeWake still keeps a photo of every confirmed event.
The firmware is on GitHub, and there's a beginner edition that replaces the cloud pipeline with a single Telegram bot, so you can build one with a board and a phone.
The smartest sensor is the one that knows when not to work.
Originally published on partharsid.dev. More of my work: partharsid.dev.
來源:DEV Community · dev.to