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:

Parts List:
| Components | Values | Quantity |
|---|---|---|
| Resistors | 200k 1 watt, 5.6k 1/4 watt, 1M 1/4 watt | 1 each |
| Capacitor | Ceramic 0.1uF | 1 |
| Semiconductors | Transistor BC547 | 1 |
| Optocoupler IC 4N35 | 1 | |
| Diode 1N4001 | 1 | |
| Power Supply 5V DC | 1 |
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.
Leave a Reply