• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » 220V AC Live Detection and Interface Circuit

220V AC Live Detection and Interface Circuit

Last updated on 21 January 2026 by Admin-Lavi Leave a Comment

Handling 220V AC directly is very dangerous, but still we need to know mains is ON or OFF.

So, this 220V AC Live Detection and Interface Circuit is useful as it solves this safety problem easily.

This circuit senses mains voltage safely and it sends clean logic level signal.

Optocoupler is used for isolation, so user stays safe and low voltage circuit also stays safe.

Therefore, this circuit is good for automation work as it is also suitable for monitoring systems.

Circuit Working:

220V AC Live Detection and Interface Circuit Diagram

Parts List:

ComponentsValuesQuantity
Resistors200k 1 watt, 5.6k 1/4 watt, 1M 1/4 watt1 each
Capacitor Ceramic 0.1uF1
SemiconductorsTransistor BC5471
Optocoupler IC 4N351
Diode 1N40011
Power Supply 5V DC1

The main work of this circuit is to detect AC mains supply.

First, 220V AC is given to the input, and then this circuit converts high voltage AC into safe logic signal.

Resistor R1 limits the current and after that the diode D1 rectifies the AC voltage.

Now only half wave DC is available and this DC flows through optocoupler LED.

When mains power is present the optocoupler LED glows, so the internal phototransistor turns ON.

Because of this the current flows in low voltage side.

Next, capacitor C1 removes ripple and noise and then transistor Q1 gets base current.

So transistor Q1 turns ON fully.

Collector output becomes HIGH or LOW which depends on circuit connection.

Thus, clean logic level output is obtained.

When mains power is not present then optocoupler LED stays OFF, so phototransistor also stays OFF.

Transistor Q1 turns OFF and finally the output changes state by indicating the mains power failure.

How to Build:

To build a 220V AC Live Detection and Interface Circuit follow the below steps for connection:

  • First start the circuit by collecting all the circuit parts as shown in circuit diagram above.
  • Then start with optocoupler Input side pin 1 anode connect to R1 and D1 cathode.
  • Pin 2 cathode connect to anode of diode D1.
  • Optocoupler output side pin 4 emitter connect to base of transistor Q1 through capacitor C1.
  • Pin 5 collector connect to +5V DC through one end of resistor R2.
  • Transistor Q1 BC547 emitter pin connects to ground.
  • Base connect to optocoupler emitter pin 4 through capacitor C1.
  • Collector connect to output point and R2 resistor.
  • R1 connect between AC live and diode cathode.
  • R2 connect between +5V and output.
  • Lastly, R3 connect between transistor base and ground.

Conclusion:

This 220V AC Live Detection and Interface Circuit provides safe mains detection.

It uses simple components in which optocoupler ensures isolation and transistor provides strong output.

Therefore, it is reliable and cost effective and is ideal for microcontroller interfacing.

References:

Datasheet 4N35 Optocoupler

Filed Under: Power Supply Circuits, Sensors and Detectors

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Simple Drummer Sound Circuit using IC 555
Next Post: 5V Regulated Power Supply Circuit using Transistors »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • Alarm Circuits (47)
  • Amplifier Circuits (67)
  • Arduino Projects (100)
  • Audio Circuits (116)
  • Automobile Circuits (19)
  • Battery Charger Circuits (65)
  • Free Energy (13)
  • Heater and Temperature Controllers (13)
  • High Voltage (1)
  • Indicator Circuits (46)
  • Inverter Circuits (20)
  • IoT projects (1)
  • LDR Circuits (26)
  • LED and Lamps (150)
  • Meters and Testers (31)
  • Motor Controllers (22)
  • Oscillator Circuits (40)
  • Power Supply Circuits (108)
  • Remote Control Circuits (10)
  • Security and Protection (29)
  • Sensors and Detectors (127)
  • Solar Circuits (29)
  • Timer Circuits (41)
  • Transistor Circuits (92)
  • Transmitter Circuit (17)
  • Tutorials (8)
  • Water Level Controller (7)

Recent Posts

  • 5V 0.5A Regulated Power Supply Circuit
  • Transistor Based 5V Linear Power Supply Circuit
  • 5V Regulated Power Supply Circuit using Transistors
  • 220V AC Live Detection and Interface Circuit
  • Simple Drummer Sound Circuit using IC 555

Recent Comments

  1. TDHofstetter on DIY Variable Power Supply Circuit using Arduino
  2. feathbuff on Simple Micro Ampere Meter Circuit
  3. Admin-Lavi on Simple School Project Multimeter Circuit
  4. choke on Simple School Project Multimeter Circuit
  5. Admin-Lavi on Analog to Digital Converter Circuit using IC 555

Copyright © 2026 | New Circuit Ideas