Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Efficient 230 VAC Power‑Outage Sensor for Raspberry Pi – Low‑Cost, Compact, and Safe

Track the 230 VAC mains with a compact, low‑cost circuit that delivers a clean digital signal to any microcontroller.

While a 12 VAC approach works for low‑voltage monitoring, it is unsuitable for high‑voltage mains because of excessive power dissipation. The circuit below resolves that issue with a minimal component count and negligible energy draw.

There are three viable ways to detect a blackout:

All three methods are valid; the choice depends on your constraints. In my experience, the proposed design offers the best trade‑off between cost, size, and power consumption.

The Circuit

Explanation

For readers unfamiliar with electronics, here’s why the circuit works:

Compared with a transformer, this approach uses fewer parts, consumes less power, and offers intrinsic current limiting.

Note for 110 VAC 60 Hz Systems

To adapt the circuit for 110 VAC 60 Hz, replace the 100 nF capacitor with a 150 nF (or 220 nF) component. A 150 nF capacitor works well on both 230 VAC 50 Hz and 110 VAC 60 Hz mains, while the 100 nF version provides a slightly faster response on 230 VAC.

Practical Use

I integrate this sensor into my home‑automation stack. The Raspberry Pi is powered by a standard 5 V adapter and backed by a portable power bank. When mains power fails, the power bank keeps the Pi running, while the sensor detects the outage and triggers a notification via Domoticz. The notification can be sent over a router with a UPS or via the mobile network, allowing me to log blackout duration and automate actions (e.g., turning off Hue lights that would otherwise re‑enable on reboot).

Warning

High‑voltage mains can cause serious injury or death. Treat all components with care. Once the circuit is assembled, seal the enclosure (hot glue or a proper project box) to prevent accidental contact with live parts.

Safety Measures

Additional safeguards improve reliability:

With these precautions, the circuit remains safe, reliable, and easy to implement.

Source: Power Outage Sensor

Manufacturing process

  1. PWM Power Controller: Build a Pulse‑Width Modulated Lamp Driver
  2. Power Supply Circuits: Types, Design Principles, and Performance
  3. Understanding Power in Electric Circuits: Measurement & Significance
  4. Understanding Capacitor Transient Response: Charging Dynamics, Asymptotic Behavior, and SPICE Simulation
  5. AC Capacitor Circuits: Capacitive Reactance, Phase Shift, and Power Behavior
  6. Three‑Phase Power Systems: Fundamentals and Benefits
  7. Accurate Power Measurement in AC Circuits: From Electrodynamometers to Hall‑Effect Sensors
  8. Understanding Flicker: Impact on Power Quality and How Variable Speed Drives Help
  9. Step-by-Step Guide to Charging Capacitors Safely and Efficiently
  10. Overvoltage Explained: Causes, Risks, and Prevention