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.

Power & batteries Board: ESP32-C3 SuperMini Level: ●●○ ⏱ 2–3 h

⛔ 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.

Turn complaints into a dataset

"The power goes off all the time" is hard to argue with. A table with the start, the end and the duration of every outage is easy to argue with, and it helps with your own decisions too: the longest outage of the last three months tells you how big the battery or the generator should be.

What to record and how

A mains detector with an optocoupler drives one GPIO, and a small battery keeps the C3 alive. Store only a start time and a duration per event, a few bytes each, and a year fits easily in flash. Take the time from NTP when Wi-Fi returns, and count the seconds in RTC memory in between.

  • Separate a blip of a couple of seconds from a real outage, and count them in different columns; blips damage electronics too.
  • Compute the uptime percent per week and the longest outage, and send them as a summary once a week.
  • If you also have the published schedule, compare it: hours promised against hours delivered is a useful number.
  • Keep the journal as a file you can download. Your own record is worth more than a memory.

Components

  • ESP32-C3 SuperMini
  • AC 220V optocoupler detection module
  • TP4056 USB-C Li-ion charger with protection
  • 18650 Li-ion cell + holder
  • Plastic project enclosure

What you need

Buy the parts kit · Estimated total: $12.30

ESP32-C3 SuperMini × 1
$2.50
Buy at AliExpress Buy at Amazon.com
AC 220V optocoupler detection module × 1
$2.00
Buy at AliExpress Buy at Amazon.com
TP4056 USB-C Li-ion charger with protection × 1
$0.80
Buy at AliExpress Buy at Amazon.com
18650 Li-ion cell + holder × 1
$4.00
Buy at AliExpress Buy at Amazon.com
Plastic project enclosure × 1
$3.00
Buy at AliExpress Buy at Amazon.com
🇺🇦 Ukraine🌍 Other countries

Ukraine: we buy and sell these parts ourselves, order them on this site.

Some links are affiliate links: we may earn a commission at no extra cost to you.

Related ideas

⛔ 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
⚠ Caution

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

Orchard and greenhouse frost alert

A battery sensor that wakes up rarely and sends an alert when the temperature falls toward freezing.

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

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

Solar-powered weather node

A small outdoor station on a Li-ion cell and a solar panel that reports temperature, humidity and pressure trend every few minutes.

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

← All module ideas →

Comments

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

Comments are moderated.