Automatic Day/Night switch for AC Lamp Circuit.

Switching ON outdoor light or any other light in the evening and turning it OFF in the morning is usually every Home’s daily routine. Sometimes we forget to turn it OFF in morning and a lot of energy is wasted and also life of the light bulb is decreased as, it is unnecessary ON in presence of daylight, or sometimes we forget to turn it ON in the evening causing inconvenience.
This little circuit can do this task for you i.e. this circuit will automatically turn ON AC Light at evening and turn OFF the AC Light in the morning.

This circuit is basically a ‘dark activated AC Light circuit’ based around LDR, when there is dark It turns ON AC Light and when it detects Light, It turns OFF the AC Light.

LDR or Light Dependent Resistor is the heart of this circuit
LDR (Light Dependent Resistor) – It is a kind of light-sensitive resistor, whose value of resistance varies according the intensity of light falling upon it.
In a LDR; when intensity of light falling upon it is more or high, then the value of the resistor of LDR becomes less or Low,
and when the intensity of light falling upon it is low(or it is dark), then the value of resistor of LDR goes High.


We will see working of this circuit in two parts. as shown in the above image:-

Part 1:- First part is the Power Supply Unit which converts 230V AC to 12DC.
This power supply unit is designed using the least number of components, such as Zener diode, X rated capacitor, rectifier diode, and few resistors.
X rated capacitor and Zener diode is used to get the desired output voltage.

Part 2:- This is the LDR based dark activated circuit.
(R3 + R4) and R5 forms a voltage divider network; when more light falls upon LDR, the value of R5 becomes less and more current flows in direction of i1 and less current in direction of i2 . [i= i1 + i2] .here we can say that i2 is the base current of transistor T1. In this condition when intensity of light is high, most of the part of current ‘i’ will be drained toward i1 and very less amount of current or almost zero current will flow in direction of i2. When i2 is very low transistor won’t turn ON as base current is very LOW.
When intensity of Light starts decreasing, For example during Dusk when Sun is setting the intensity of light slowly decreases and become dark, during this time period when intensity of light is slowly decreasing the value of resistor R5 will slowly increase, this will cause i1 to decrease and i2 to increase, after some time the value of i2 will become sufficient to turn ON transistor T1. we are using NPN transistor S8050 to drive a 12V relay switch, so when T1 turns ON Relay also get turned ON as a result connected ac lamp will also get turned ON.

To avoid flickering during threshold point we are using C3 at the base of T1.
Here threshold point means the point when i2 reaches the minimum base current. For example, at evening when intensity of light slowly decrease and i2 slowly increase; at a certain point when i2 has just reached the value of minimum required base current, the connected AC light may flicker for some time because at evening light is not decreasing in a perfectly linear way.
Most of the time i2 may be fluctuating a little bit, which will be not an issue most of the time, but at the threshold point, it can cause transistor to turn ON and Off rapidly for some time which will cause AC Lamp to flicker. after some time when i2 becomes much higher than threshold current, the flickering of Light will stop because at this point value of i2 will not fall below the threshold current.
To avoid this flickering we have added capacitor C3 at the base of transistor.
The current i2 will also charge capacitor C3 and this capacitor will discharge through R15.
When i2 become absent or value of i2 drops, C3 will provide base current to the transistor for some time, this will avoid transistor to turn On and Off at threshold point, thus flickering of Lamp will be eliminated.

527 thoughts on “Automatic Day/Night switch for AC Lamp Circuit.”

  1. Hello There. I found your blog using msn. This is a really well written article. I’ll make sure to bookmark it and come back to read more of your useful information. Thanks for the post. I’ll certainly return.|

  2. I blog frequently and I truly thank you for your content. The article has really peaked my interest. I’m going to book mark your website and keep checking for new information about once per week. I subscribed to your Feed too.|

  3. When I initially commented I seem to have clicked on the -Notify me when new comments are added- checkbox and now each time a comment is added I recieve 4 emails with the exact same comment. Perhaps there is a means you are able to remove me from that service? Appreciate it!|

  4. Do you have a spam issue on this site; I also am a blogger, and I was wanting to know your situation; many of us have developed some nice methods and we are looking to trade solutions with others, why not shoot me an email if interested.|

  5. I’m pretty pleased to discover this website. I want to to thank you for ones time just for this fantastic read!! I definitely liked every part of it and I have you book marked to look at new stuff on your website.|

  6. I know this if off topic but I’m looking into starting my own blog and was wondering what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100 certain. Any recommendations or advice would be greatly appreciated. Kudos|

  7. Attractive section of content. I just stumbled upon your blog and in accession capital to assert that I get in fact enjoyed account your blog posts. Anyway I’ll be subscribing to your feeds and even I achievement you access consistently rapidly.|

  8. Can I just say what a comfort to find an individual who actually knows what they’re talking about over the internet. You actually realize how to bring an issue to light and make it important. More and more people should read this and understand this side of the story. I was surprised that you are not more popular since you surely have the gift.|

  9. I have been exploring for a little bit for any high-quality articles or blog posts in this kind of house . Exploring in Yahoo I finally stumbled upon this website. Reading this information So i’m glad to express that I have a very excellent uncanny feeling I discovered just what I needed. I so much no doubt will make sure to do not overlook this site and give it a glance regularly.|

  10. This design is steller! You most certainly know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Wonderful job. I really loved what you had to say, and more than that, how you presented it. Too cool!|

  11. After I originally left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I recieve four emails with the same comment. Is there a way you can remove me from that service? Cheers!|

  12. Good post. I learn something totally new and challenging on sites I stumbleupon everyday. It will always be helpful to read content from other authors and use a little something from their sites. |

  13. I think this is one of the most significant information for me. And i am glad reading your article. But wanna remark on some general things, The website style is great, the articles is really nice : D. Good job, cheers|

  14. I just like the helpful information you provide to your articles. I will bookmark your weblog and test once more here regularly. I am reasonably certain I’ll be told a lot of new stuff right right here! Good luck for the following!|

  15. of course like your website however you need to test the spelling on quite a few of your posts. A number of them are rife with spelling problems and I in finding it very troublesome to inform the truth then again I will surely come again again.|

  16. Greetings from Colorado! I’m bored to tears at work so I decided to browse your blog on my iphone during lunch break. I enjoy the information you provide here and can’t wait to take a look when I get home. I’m amazed at how fast your blog loaded on my phone .. I’m not even using WIFI, just 3G .. Anyhow, wonderful site!|


Leave a Comment