Smart Home & Building Mechatronics · Intermediate · Low power
ESP8266 Deep-Sleep Mailbox Notifier
A battery node that reports only when a switch closes, and sleeps the rest of the time.
Firmware status: Generated from this project's own pin map and compiled with arduino-cli for esp8266:esp8266:nodemcuv2 before publication; bench validation on your hardware is still required..
Hardware scope
Deep sleep on ESP8266, GPIO16 wake, event-driven reporting. Pins assigned by the generator: sense → GPIOA0, status led → GPIO5.
Components
- ESP8266 board with RST wired to GPIO16 for deep sleep
- Reed switch and magnet
- 18650 cell with a protection board
- Jumper wire from GPIO16 to RST
Tools
- USB programming cable
- Multimeter
- Current-limited bench supply (for anything that switches a load)
- Small screwdriver and wire cutters
Build steps
- Wire GPIO16 to RST — without it the board cannot wake itself.
- Test the reed switch with a multimeter before trusting it.
- Flash, close the switch, and watch one report appear.
- Leave it overnight and count the reports against how many times the door actually opened.
Test and expected result
One report per event, no reports while the door is closed, and the board survives a week on the cell.
Acceptance checks
one report per event, no false reports, survives unattended
Safety and limits
The 3.7 V cell must go through a regulator to the board, and the board needs its deep-sleep wiring correct or it will never wake.
Guide source: Generated from this project's own pin map and compiled with arduino-cli for esp8266:esp8266:nodemcuv2 before publication; bench validation on your hardware is still required.
Download connection diagram SVG
Related projects
- ESP32 Air Quality Sentinel — Quiet Wi-Fi sensor node measuring indoor air quality and publishing a local dashboard.
- Occupancy-Aware Room Controller — Presence-aware lighting and ventilation controller with manual override.
- Motorized Blind Controller — Stepper or geared motor opening blinds from schedules and light level.
