• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Lamps and Lights / Transformerless Automatic Night Lamp Circuit

DIY Circuits | Learn Basics | Arduino Coding




Transformerless Automatic Night Lamp Circuit

Last Updated on January 3, 2024 by Swagatam 89 Comments

This transformerless solid-state automatic night lamp operates without using bulky transformer, and automatically switches ON some LEDs during night, and switches them OFF during day.

In this post I have explained how to make a transformerless automatic darkness activated LED lamp circuit, using a couple of transistors and capacitive based power supply, eliminating the use of any bulky transformer.

Compact Transformerless Design

Although the concept may look pretty familiar and common, the main feature of the circuit is its low current consumption and compactness.

The power supply used here is a capacitive type, thus no transformer is incorporated making the circuit very compact and fixable in any small corner of the particular premise.

Why use LEDs

The use of LEDs in place of a filament bulb makes the application very power economic and efficient.

The proposed LED automatic day night lamp switch circuit diagram shows red LED being used, however white LEDs would suit the application better, as that would help illuminate the area better than the red LEDs.

How to Install the LDR

The LDR must be positioned such that the light from the LED does not fall on it, only the ambient light which is to be sensed is required to reach the LDR.

 How the Entire Circuit Works

The proposed transformerless automatic day night LED lamp circuit may be understood through the following points:

The input 220 V mains suply is applied across the 10 Ohm resistor and the other neutral point.

The 10 Ohms resistor helps to cancel out the initial surge or the voltage rush that might otherwise be potentially harmful to the further stages of the circuit.

The MOV or the varistor placed after the 10 Ohm resistor enhances the protection feature of the unit and grounds all surges that might sneak in after the 10 Ohm resistor.

The capacitor drops the mains voltage current to lower levels and the bridge rectifier made up the four diodes rectify the voltage to DC.

The 1000uF capacitor filters the rectified voltage and the smooth DC is applied to the control circuit consisting the two transistors.

The first transistor is wired up as a comparator, which compares the potential difference across the variable resistor and conducts when the voltage across it rises to saturation levels.
The above rise in the voltage level takes place when the relevant magnitude of light falls on the LDR surface.

Once the resistance of the LDR falls below the set threshold due to higher ambient light, the transistor conducts.

The collector of the above transistor instantly grounds the base of the next transistor and switches it OFF.

The associated LED lights connected to the collector of the second transistor are also immediately switched OFF.

The opposite reaction takes place when the light over the LDR falls below the set threshold, probably during dusk when the sun sets.

The LEDs light up again and remain switched ON until the day beaks and the ambient light over the LDR reaches the set high threshold level.

The following figure shows a simple LED automatic day, night lamp circuit.

WARNING: THE CIRCUIT IS NOT ISOLATED FROM MAINS AC AND THEREFORE IS LETHAL, IF TOUCHED IN POWERED ON CONDITION WITHOUT A PROPER ENCLOSURE. YOU ARE RECOMMENDED TO EXERCISE EXTREME CAUTION WHILE HANDLING THIS CIRCUIT.

two transistor, transformerless LDR based automatic night lamp circuit diagram

Parts List

  • Resistors are 1/4 watt, 55 CFR unless specified.
  • 10 Ω 1 watt = 1
  • 1 MΩ = 1
  • 1 kΩ = 2
  • 330 Ω = 4
  • 2.7 kΩ = 1
  • 10 k preset = 1
  • LDR any standard = 1
  • Capacitors
  • PPC 0.22 µF / 400 V = 1
  • Electrolytic 1000 µF / 50 V
  • 12 V zener diode 1 watt (to be connected parallel to the above 1000 µF capacitor) = 1
  • Diode 1N4007 = 4
  • LEDs white high bright 20 mA, 5 mm = 20
  • Transistors BC547 = 2
  • 300 V MOV (optional) = 1

Modifying the Above Design for Activating a 220V Lamp with a Triac

transformerless automatic night lamp circuit diagram using triac and 220 V lamp

Parts List

  • Resistors are 1/4 watt, 55 CFR unless specified.
  • 10 Ω 1 watt = 1
  • 1 MΩ = 1
  • 1 kΩ = 2
  • 330 Ω = 4
  • 2.7 kΩ = 1
  • 10 k preset = 1
  • LDR any standard = 1
  • Capacitors
  • PPC 0.33 µF / 400 V = 1
  • Electrolytic 1000 µF / 50 V
  • 12 V zener diode 1 watt (to be connected parallel to the above 1000 µF capacitor) = 1
  • Diode 1N4007 = 1
  • Triac BT136 = 1
  • Transistors BC547 = 2
  • 300 V MOV (optional) = 1

The above triac based design can be further improved by using an opamp controller for achieving a cleaner automatic switching action of the lamp during darkness, as shown below:

Automatic night lamp circuit diagram using IC 741 and triac

You'll also like:

  • mart street light circuitSmart Street Lamp Circuit with Motion Sensor
  • 100led 2How to Illuminate 100 LEDs from 6 Volt Battery
  • 1 540 watt Electronic Ballast Circuit
  • High quality 3 watt rgb led with 2Simple RGB LED Color Mixer Circuit using LM317 IC

Filed Under: Lamps and Lights Tagged With: Automatic, Lamp, Night, Transformerless

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!

Previous Post: « Simple 4 Watt LED Driver Circuit Using IC 338
Next Post: A Homemade Fence Charger, Energizer Circuit »

Reader Interactions

Comments

Abu Saeed says:
May 11, 2018 at 11:54 pm

I have developed the last one circuit but the response is poor than 2nd one. Last one circuit is sensing 18w AC LED bulb brightness as a dark state!!! Ambient light sensor capability is Worst.

Reply
Swagatam says:
May 12, 2018 at 7:56 am

Nothing is “worst” in electronics. You will get the response as per your circuit settings and adjustments. In schematic you can only get the general view not the exact view of the design. A circuit will need to be tweaked and fine-tuned to make it work accurately.

The last 555 circuit has been tested by me thoroughly and it works superbly.

Reply
Abu Saeed says:
May 12, 2018 at 9:48 am

There is no 555ic circuit diagram. Please share it.

Reply
Swagatam says:
May 12, 2018 at 10:26 am

I have already provided it to you in one of my earlier comments, i thought you were referring to that circuit, by the way IC 741 will also work great, it a is a simple comparator design, the LDR quality should be good, having a resistance less than 30 k at ambient light.

Reply
Abu Saeed says:
May 8, 2018 at 5:14 pm

Hi did u develop better circuit for overcome flicking issue of lamp?

Reply
Swagatam says:
May 8, 2018 at 8:08 pm

Hi, you can the refer the last updated diagram in the above article.

First try it with a 12V AC/DC adapter, once confirmed then you can replace it with a caapcitive power supply

Reply
Abu Saeed says:
May 9, 2018 at 11:09 am

May I use Ic 555 as an alternative of Ic 741? In my location Ic 741 is not available now.

Reply
Swagatam says:
May 9, 2018 at 1:35 pm

you can try the last circuit from the following article

https://www.homemade-circuits.com/how-to-make-light-activated-day-night/

you can remoev the relay and configure pin#3 directly with the triac gate, no need of any transistor.

Reply
Abu Saeed says:
May 10, 2018 at 10:36 pm

May I use LM358 IC as an alternative of Ic 741 in 3rd circuit diagram? If yes what will be the pin configuration?

Reply
Swagatam says:
May 11, 2018 at 10:23 am

yes you can!

Reply
Abu Saeed says:
May 6, 2018 at 3:49 pm

I have developed ur 2nd one circuit successfully but one problem is exists. That is in the mid point of light and dark my 18w AC LED bulb is continuously flicking. I have tried to set tripping point by 10k potentiometer but problem is not solved. In case of full sun light bulb off nicely. Please give me any solution of it.

Reply
Swagatam says:
May 6, 2018 at 6:12 pm

Just add a 100uF/25V capacitor across the base/emitter of the right side BC547. Your problem will be solved

Reply
Swagatam says:
May 6, 2018 at 6:13 pm

correction: add the capacitor between its base and ground line, not emitter

Reply
Abu Saeed says:
May 6, 2018 at 7:08 pm

I just add 100uf/25v electrolyte capacitor one end in the base of the right side of bc 547 transistor and other end connect in the negative of 1000uf/25v capacitor. But the Lamp flickering problem is not solved. Pls solve the issue.

Reply
Swagatam says:
May 6, 2018 at 7:21 pm

Increase the value 1K at the base of the same transistor to 22K or 33K, simultaneously you can also try increasing the 100uF to 220uF or 470uF…make sure the lamp light does not reach the LDR, otherwise the lamp will keep flickering forever.

Reply
Abu Saeed says:
May 6, 2018 at 8:32 pm

After implements of 33k the lamp didn’t off. I have tried all way which u said but lamp flicking not solved. Please try to remodel ur circuit diagram with cool brain.

Reply
Swagatam says:
May 6, 2018 at 8:52 pm

I will make the exact same circuit and show you how to do it soon…

Reply
Swagatam says:
May 6, 2018 at 9:01 pm

By the way the lamp will flicker a bit during twilight with a triac, because it is simple transistor based circuit, you may have to use a relay based circuit or a IC 555 based circuit, to get a perfect ON/OFF switching

Reply
Abu Saeed says:
May 6, 2018 at 6:33 pm

Is this electrolyte capacitor?
The capacitor one end will be connected with bc 547 base and other end will gate of bt136?

Reply
Swagatam says:
May 6, 2018 at 7:22 pm

capacitor positive pin should go to the base, and negative pin to the negative supply line.

Reply
gurmel says:
August 22, 2017 at 7:43 am

yes i did it allready
connected a diode across relay .

sir i have a off topic Q . can we increase volume of earpiece of nokia 225.
it has very low volume output for calls .
is there any small circuit to use for this purpose?

Reply
Swagatam says:
August 22, 2017 at 8:48 am

Gurmel, you can probably use a TDA7052 IC circuit or any similar circuit for the amplification.

Reply
Gurmel singh says:
August 16, 2017 at 3:23 pm

sir is there any alternative to 10 k preset because i dont have it but i have 10 k resistor and 200k vari pot. please suggest me .

Reply
Swagatam says:
August 18, 2017 at 3:34 pm

Hi Gurmel, you are right, it's due to the slow transition which causes the problem, and the remedy is simply to add a 10uF or a 22uF or a 100uF capacitor between base/ground of the second transistor which is driving with the relay, this will effectively take care of the issue

Reply
gurmel says:
August 20, 2017 at 5:16 pm

does sudden discharge of capecitor,damge the 2nd transistor .bcoz capacitor discharge at high current i think.does i need current limiting resistor in between capacitor and 2nd transitior ?
plz clarify about how capacitor discharge and behave with ac or dc charging… it will help me alot

Reply
Swagatam says:
August 20, 2017 at 5:21 pm

gurmel, the relay coil must have a freewheeling diode otherwise the associated transistor will instantly get damaged, the base capacitor will not damage the transistor….

Reply
gurmel says:
August 22, 2017 at 2:54 am

according to you connect capacitor in base and ground of 2nd bc547 but i think to i need to connect​ diode in between 1k R and joining point of base and capacitor ie. ,base of 2nd bc547. bcoz when capacitor will discharge when darkness occur than that charge can go through 1st bc547 and it can be damaged by discharge of capacitor if we didn’t connect the diode in between 1k R and joning point of 2nd bc547 base and capacitor.
wht do u think about it?

Reply
Swagatam says:
August 22, 2017 at 4:59 am

you must connect diode across the relay coil, did you do that? otherwise the driver BC547 will quickly get damaged…the base capacitor will not effect at all, not to worry about it.

Reply
Gurmel singh says:
August 18, 2017 at 2:29 pm

sir i built circuit according to your systematic provided and use 12v relay . circuit working fine but it have one issue that when sun goes down in evning than for fraction of 1min my output 20watt led bulb flicker due to constant triping of relay for around 10sec .i think this problem causes due to slowly decreasing or increasing brightness of
outdoor environment.
and this problam can damage my led bulb .

so do u have any solution for it ?

Reply
Swagatam says:
August 17, 2017 at 8:52 am

1) yes 10k preset is used as a potential to set the tripping moment of the LEd at the preferred time of evening

2) no that will not be good and cause very early tripping of the leds because LDR resistance is much higher than 10K, but 220K preset may work

3) relay will not with the shown 0.22uF capacitor, you may have to use a 105/400V cap instead…and use only 12V 400 ohm relay with this, 6V will not work.
you can replace 1K with 10K for the second BC547 if a relay and 105/400V are used.

and make sure to use a 15V 1 watt zener after the bridge

Reply
Gurmel singh says:
August 17, 2017 at 5:45 am

okk
sir can u tell me wht is use of preset
Q1. is it used for dividing resistance between ldr and ground and givings commen point to base of bc547.

Q2. can i connect ldr's lower terminal directly to base through 1k R and also commen point of ldr and 1k Resistor​,connect to ground through 10k variable Resistor​.?
Q3. i m using 6v or 12v relay does i need current limiting resistance to prevent excessive current flow and heat through 2nd bc547 if yes than wht will be rating of R to be used?

Reply
Swagatam says:
August 17, 2017 at 3:09 am

Gurmel, you can try 200K, but I think it won't be as responsive as a 10K preset.

Reply
Syed Ameer Hamza Askari says:
March 11, 2016 at 12:10 pm

My led is blue

Reply
Swagatam says:
March 12, 2016 at 2:10 am

multiply its current by 4 to get the total current consumption

Reply
Syed Ameer Hamza Askari says:
March 8, 2016 at 7:48 am

Sir what is the power consumption of this circuit in watts?

Reply
Swagatam says:
March 9, 2016 at 3:05 pm

if it's red LED 5mm then 80mA is correct

Reply
Swagatam says:
March 9, 2016 at 3:05 pm

what is your LED specs?

Reply
Syed Ameer Hamza Askari says:
March 8, 2016 at 4:10 pm

Means 80 mili amps?

Reply
Swagatam says:
March 8, 2016 at 2:03 pm

equal to LED consumption

Reply
Syed Ameer Hamza Askari says:
February 25, 2016 at 6:01 am

Sir mene ye circuit banaya hay laikin led tk charge nahi aaraha?

Reply
Swagatam says:
February 25, 2016 at 8:33 am

Syed, the leds will illuminate only when the LDR is in full darkness, if there's even slightest bit of light on the LDR then the LED will not illuminate

Reply
Syed Ameer Hamza Askari says:
February 17, 2016 at 5:19 am

Thanks sir thank u very much you are great person

Reply
werechai1 I like DIY. says:
March 6, 2016 at 4:19 pm

I want a circuit that flashes mounted on a tall red LED lamp 10 LEDs 220VAC. THANK you

Reply
Swagatam says:
February 17, 2016 at 11:14 am

thanks Syed, the pleasure is all mine!

Reply
Syed Ameer Hamza Askari says:
February 16, 2016 at 3:19 pm

Sir zener diode ko kis position me lagana hay bridge k baad?

Reply
Swagatam says:
February 17, 2016 at 5:10 am

Syed, the black band side terminal will connect with the positive rail, and the other with the negative rail

Reply
Swagatam says:
February 15, 2016 at 4:17 am

15V zener will help to keep everything under control and will not heat any parts unnecessarily
474 is OK but 0.22uF will be better as it will generate less current and keep things cooler.

10k preset is for setting the LED ON/OFF threshold

Reply
Syed Ameer Hamza Askari says:
February 14, 2016 at 7:13 pm

Why 10k preset is used?

Reply
Syed Ameer Hamza Askari says:
February 14, 2016 at 4:53 pm

Is 15v zener diode compulsory?

Reply
Syed Ameer Hamza Askari says:
February 14, 2016 at 4:51 pm

I am using 474/400v capacitor

Reply
View Older Comments

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

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

Primary Sidebar

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (93)
  • Audio and Amplifier Projects (133)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (85)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets (27)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (95)
  • Lamps and Lights (159)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Renewable Energy (12)
  • Security and Alarm (64)
  • Sensors and Detectors (106)
  • SMPS and Converters (34)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (42)
  • Water Controller (36)
  • Wireless Circuits (30)





Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap



People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin



Recent Comments

  • Swagatam on DPDT Relay Working, Pinouts, Testing Explained
  • Swagatam on Automatic Street Light Dimmer Circuit
  • Swagatam on How to Create Air Gap in a Ferrite Core Transformer
  • Ghulam Mohio Din on Automatic Street Light Dimmer Circuit
  • Swagatam on Ultrasonic Fuel Level Indicator Circuit

© 2026 · Swagatam Innovations