Demo GIF
" data-cpx-injected="1"> ESP8266 Deep-Sleep Mailbox Notifier — Arduino Mechatronics Build | CodeProven

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

  1. Wire GPIO16 to RST — without it the board cannot wake itself.
  2. Test the reed switch with a multimeter before trusting it.
  3. Flash, close the switch, and watch one report appear.
  4. 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 Arduino source code

Download connection diagram SVG

Related projects

Back to all project guides · Study the course