A small ESP32 kit for living through blackouts

The few cheap devices that make outages easier: knowing it happened, keeping the router up, light, and a record of what the grid really did.

You cannot fix the grid, but a handful of small things remove most of the stress. Start with what you will notice first.

1. Know that the power went, even when you are away

A battery-backed ESP32 that watches the mains and sends a message the moment it disappears, and another when it returns. See the blackout notifier idea.

2. Keep the internet alive

A router draws only a few watts, so a small 12 V battery can run it for hours. Add an ESP32 that reports the battery voltage, so a power cut does not also cut your connection unnoticed.

3. Light that comes on by itself

A 12 V LED lamp that turns on when the mains disappears saves hunting for a torch at night.

4. A journal of what happened

Record every outage with a time and duration. After a month you have a real schedule and proof to show the supplier.

5. A rough budget for the battery

Energy in watt-hours is voltage times capacity. A 12 V, 7 Ah battery holds about 84 Wh. If the load is 12 W and you use about 80 percent of the capacity, it runs around five hours. These numbers are an example, so measure your own load.

The calculators page on this site does this arithmetic for autonomy, battery size and cable.

Mind the safety

Mains parts must sit in closed boxes with a fuse, and a battery needs a fuse close to its terminals. If a task involves wiring into a house circuit, use a qualified electrician.

Tools that help

  • Calculators — Free planning calculators for blackouts and off-grid power: how long a battery lasts, what capacity and inverter you need, which cable cross-section and how big a generator to buy.
  • Battery calculator — Estimate how long an ESP32 runs on a battery: capacity, deep sleep current, Wi-Fi activity time and wake interval, with saving tips.

Projects related to this guide

⚠ Caution

Batteries: watch polarity, use protected cells and a charger with protection, never charge damaged cells unattended.

Mini-UPS monitor for the router

Watches the battery of a 12 V mini-UPS that powers the router, shows its voltage, load and estimated runtime, and warns before it runs flat.

  • Board ESP32-C3 SuperMini
  • Level ●○○ Beginner
  • Build time 1–2 h
Pick parts / kit
⛔ High risk

Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.

Power outage journal

Records every outage with start, end and duration, builds statistics per day and week, and shows how closely the real power matches the published schedule.

  • Board ESP32-C3 SuperMini
  • Level ●●○ Intermediate
  • Build time 2–3 h
Pick parts / kit
⛔ High risk

Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.

Power outage notifier

A battery-backed ESP32-C3 that detects when mains disappears and sends a message with the time of the blackout.

  • Board ESP32-C3 SuperMini
  • Level ●●○ Intermediate
  • Build time 2–3 h
Pick parts / kit
⛔ High risk

Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.

Automatic emergency light for outages

Turns on a 12 V LED light from a battery the moment the mains disappears, dimmed at night and switched off after a timeout.

  • Board ESP32-C3 SuperMini
  • Level ●●○ Intermediate
  • Build time 2–3 h
Pick parts / kit

Read next

← All guides

Comments

No comments yet. Share your experience or ask a question.

Comments are moderated.