Automatic Lamp Circuit

Automatic Mains Lamp Circuit Diagram Diy

Warning!, This circuit is not isolated from mains! Touching any parts of the circuit while connected to mains may cause to pass high voltage through your body and may kill you!
First published at

This circuit will turn on an AC Lamp when the sun sets, and can turn off it when sun rises.

The working of the circuit is simple and the heart of this circuit is an LDR (Light Dependent Resistor) that is wired as a light sensor, so when the ambient light falls on the LDR, the circuit will not work and when no light falls on the (when the sun sets)

LDR the circuit will turn on a 230V ac bulb or CFL

Circuit diagram of automatic lamp

How it works?

A TRIAC is used here instead of a relay, a triac can switch high voltage AC. The voltage to trigger the triac gets from the emitter of T1 so since resistance of the LDR is low as it is in day light the T1 will not get sufficient positive voltage to trigger the triac, but in darkness the resistance of LDR is very low – this causes to turn the T1 on so the triac will get triggered and the bulb will glow.

D1 and R1 are used to rectify AC Mains and lower the voltage, C1,R1 used to pass 6V DC for T1. the R3 can be set to a desired level (sensitivity) to turn the light on as the level of sunlight.

Related Posts

How to Make a Drill Machine with 12V DC Motor

Here is How to Make your Own Drill Machine with 12V 775 Motor You can now create your own 12 volts drill machine by following this post….

What is a PCB and the importance of PCBs

The PCB stands for printed circuit board. PCBs are used  everywhere in almost every part of life. The PCBs are used in almost all the electronics equipments…

Best Bluetooth Module for your Audio Amplifier

Stereo Audio Bluetooth Module with no China Lady Sound for DIY Audio Amplifiers Looking for a good Bluetooth Module for your Audio Amplifier? Here i got one…

Make USB Lamps Last Longer

The USB lamps are very useful, they are easy to connect to USB ports such as laptop, chargers, power banks etc providing light for keyboards at night,…

How to Make a Bluetooth Wireless Speaker Yourself

Here is How to Build a DIY Bluetooth Wireless Speaker System Want to build a high quality and yet, simple Bluetooth speaker system yourself? This tutorial is…

Heat Shrink Tubes Sleeves Uses

How to Use Heat Shrink Tubes and Sleeves The heat shrink tubes are some kind of tubes that is constricted when heat is applied to it. Heat…