Powered by Blogger.

Saturday, 19 July 2014

Circuit to Turn On an LED During Night - Automatic Street Light Demo

by realfinetime  |  in transistor at  08:15

          An LED that turn on during night and turn off  during day is amazing. Normally a Light Depending Resistor is used to sense the presence of LIGHT. We cannot connect LDR directly to LED. Some switching methods should be adopted to make an LED to respond, when LDR is kept at LIGHT or DARK. Transistors are normally used for switching. This blog will help you to design a circuit that will turn on an LED during night and turn off during day like street lights. By some simple modifications in this circuit, we can easily reverse the operation.

Circuit Diagram

          Connections are done as shown in the following circuit diagram. Transistor used is BC547. Pinout diagram of BC547 is given at right side top of following image.

Transistor - BC 547 is the transistor used here. It is an npn transistor and is suitable for small operations.

5V - Normally supplied from arduino or  5V regulator.

R1 -  This is a current limiting resistor. It helps to switch the transistor between ON and OFF states by controlling the current through R1 and hence through the base of transistor. If that resistor is not connected, there is a possibility that, base current will always remain high because, LDR alone cannot resist the current considerably to turn off the transistor.

R2 -  It is a pull down resistor. It will ground the base, if there is no external signals to the base of transistor. When an external signal is connected, beginners confuse whether this signal get grounded through R2. But this signal will not get grounded because of high resistance of R2 ( 10K ).

R3 -  If R3 is not connected, when transistor turns on, power supply get shorted through A,C,B,E and F due to the low resistance of transistor. This will increase current abruptly which will damage the transistor as well as power supply.

R4 -  When transistor turns on, for the collector current to flow through the transistor, resistance of  other path ( through CHJF ) should be high. If R4 is not connected, resistance of both parallel paths ( CEF and CHJF ) will be almost same and current will flow through both parallel paths equally, which may turn on the LED even if the transistor is ON.


LED will TURN OFF when LDR is kept at LIGHT.
LED will TURN ON  when  LDR is kept at DARK.

Tabular column.

          Voltage across various components of the circuit, when LDR is kept at DARK and LIGHT conditions is given in the following table.

Explanation of the Circuit

          "Transistor as a switch" principle is used to turn on and turn off an LED depending on the background light condition. When transistor act as switch, a small base current is sufficient to drive a large current from collector to emitter ( through ACEF ). Then transistor is said to be in saturation. If the base current is less than a particular amount, transistor will be off and current will not flow from collector to emitter ( through ACEF ).

           LDR is connected in the circuit in such a way that, it will control the current to the base of transistor. Current reaching the collector pin of transistor have two options. Either it can flow through the transistor to ground ( through CEF ). Otherwise, it can flow through 1K resistor and LED to ground (  through CHJF ). Current always choose low resistance path. That is, if the transistor get sufficient base current, transistor turn on and current at the collector pin will flow from collector to emitter and then to ground ( through CEF ). If the transistor don't have sufficient base current, transistor get turn off. So current will flow through the 1K resistor and LED to ground ( through CHJF ). This will turn on LED. That is, if the base current is not sufficient, transistor will turn off and LED will turn on.

         LDR controlls the current through the base of transistor. This circuit will turn on LED during night and turn off LED during day. During day time, resistance of LDR will be less which will drive more current to base. This will turn on transistor and collector current will flow through the transistor to ground ( through CEF ) because, the resistance of transistor is low compared to resistance of 1K resistor connected in series with LED ( CHJF ). This will turn off LED. During night, resistance of  LDR will increase which will block current flow to the base of transistor. This will turn off the transistor and collector current will flow through 1K resistor and LED ( through CHJF ) which will turn on the LED.

Calculation of the Base current during DARK and LIGHT condition


Voltage across R1, Vag  =  0.02V
Resistance of R1             =  1K = 1000 Ohm
Current through R1, Ir1  =  0.02 / 1000  =0.02mA
This current will be approximately equal to the base current, which is not sufficient to turn on the transistor. So LED will turn ON. Because collector current will flow through the LED ( CHJF ), not through the transistor.


Voltage acroos R1, Vag  =  0.18V
Resistance of R1             =  1K = 1000 Ohm
Current through R1, Ir1   =  0.18 / 1000  =0.18mA
This current will be approximately equal to the base current, which is sufficient to turn on the transistor. So LED will turn OFF. Because collector current will flow through the transistor ( CEF ), not through the LED.


  1. This comment has been removed by a blog administrator.

  2. Can the input voltage be changes to say 3v ?

  3. Generally, construction plan is made by a professional and an experienced engineerr because it involves a lot of drawings and technical specifications. Click This Link

  4. You have written that at dark 2ma current is flowing through the base which is sufficient to turn off at the same time you are also writing that 18ma is sufficient

  5. The advantage of keeping a appropriate slim quick keto and healthy and balanced diet goes far beyond soothing symptoms, creating healthy and balanced changes is an outstanding choice for anyone, but a comfortable diet enables you to promote our wellness and wellness and fitness which contributes to the severity of the onset of this scenario as well. Increasing the intake of omega-3 extra fat has been proven to have excellent outcomes on this scenario, which has been some of the research that shows that weight-loss connected to it.

  6. testo drive 365 balanced and healthy and balanced exercises such as changes in our nutrition, work out, and behavior wellness and health and fitness. What you eat and how you eat changes after surgery treatment therapy , but the benefits of weight-loss and enhanced wellness and health and fitness are yours. Your surgical system is yours to use; for human body weight recover you can choose to reduce. I have always been impressed with celebrities who give birth and within a few several weeks have returned again to pre-/

  7. privy farms keto

    Now these four ideas are certainly no secret. I mean, every physician has been preaching "eat right and exercise" within the last century... but ask yourself the following... If everyone's been preaching these four ideas for such an extended time then why do a lot of individuals continue to discover it too difficult to reduce weight? Could it be that very few

  8. mx male different duct systems, one of which could create into the elegant system of oviducts and relevant apparatus and the other into the man sperm mobile cell duct system. As growth and development of the embryo proceeds, either the man or the elegant duplication tissues differentiates in the originally neutral gonad of the mammal.

  9. keto burn xtreme What is the guarantee of this technique you are looking at? Do they provide you a 5, 7, 14, 30 day guarantee or longer? The longer and clear guarantee the more opportunity you have to test this technique thoroughly to make sure it functions. However, examine the fine print of the guarantee.

  10. keto trim
    massage treatment as an approach to facilitate your time and effort. With that sort of thinking, massage treatment will certainly be an awesome supplement to weight-loss initiatives. • You are able to publish this article without any change in the information electronically, in print, in your e-book, or on your web site, absolutely 100 % 100 % free , provided that the author resource information are included. • What is

  11. Keto ignite
    ayou make sure you are making excellent, healthy and balanced and healthy and balanced choices for the rest of the day. Also, getting morning meal can curb cravings later in the day, especially if you choose a morning meal that includes protein undesirable fat. Eating morning meal allows to get the metabolic procedure going in the morning and can set the tone for the rest of the day. Starting out with a appropriate meals for morning meal can help

  12. serexin
    probability of avoiding sickness or passing it along to someone. The following discussion describes one of the most frequent partner-transmitted strikes, such as details on the twelve signs and signs and therapy. What is trichomoniasis? Trichomoniasis is a small parasite that effects the pelvic place and using protection. Most partner-transmitted

  13. Right here is what such a lot Keto hack of humans are reporting... And i've located to be so authentic as properly... The large deal with hoodia and liquid bureaucracy is that it kills your urge for food! And the liquid is sooo a great deal more green than the pill form.

  14. keto burn xtreme The excellent ones have tested their aspects insure their safety as well as their outcomes. 5.Above all - carry through. You must continue along the burden decrease path to succeed. This is the hardest aspects to do - to carry through with your programs. How frequently have you decided to do something and then dropped Program, About Milk products, Weight You want to look your best, but need a little help dropping bodyweight, so you want to get an awesome rapid weight-loss tactics that will help you to

  15. Fitness coupled with shiny descriptions of what the non-public consequences could be for someone pursuing a fitness program, made his e-book a achievement. In truth, some have speculated that kenneth cooper's easy little book, "aerobics", can also have been the impetus which positioned bodily health into the minds and hearts of millions around the world.

  16. Power training can offer sizeable practical advantages and development in usual health and properly-being along with improved bone, muscle, tendon and ligament energy and toughness, improved joint function, reduced ability for injury, improved bone density, advanced cardiac characteristic and expanded top cholesterol.

  17. As an instance, that a particular brand of soap prevents athlete's foot, companies would be wished. One could use the experimental soap, and the other might use a placebo or cleaning soap replacement. Researchers administering the soap treatment could no longer realize which cleaning soap they have been the use of, nor might the topics within the experimental and manipulate corporations.

  18. Quite a few human beings don't think about the concept that sharing equipment and centers with others can really be harmful on your health. Whilst you sweat, you will be leaving germs and dirt at the pieces of health club gadget.

  19. The fact is that maximum people are not glad with our physical kingdom and we are seeking out answers. We aren't handiest seeking out answers, we are without a doubt purchasing them. This creates the natural demand for bodily fitness packages.

  20. A properly-balanced method could be the most useful. A constant and measured weight reduction may be completed easily by way of gazing food intake and preserving your cravings at bay. Nutritional requirements must nevertheless be met, so be sure which you do now not eat too little.

  21. You'll feel nauseous loads of the time and could feel tired most of the time. A few drugs have been accepted for human beings with heart disorder however they call for a life-style that includes exercising and dietary control. Ask your health practitioner’s advice earlier than embarking on this path.

  22. Massage can help you with each those elements. Rubdown and pressure reduction one of the principal causes of overeating and binging on high-calorie, excessive-sugar processed meals is pressure. When humans are overworked or underneath extreme emotional or intellectual pressure, they are trying to find alleviation in food.



All the circuits, published in this blog is only after testing and getting proper results in my private lab. When you try these circuits, you should check the supply voltage, polarity of components, presence of childrens nearby and shorts in the circuits. This website will not be responsible for any harm happened to you or your components caused by your carelessness.

For More Electronic Tips

Blog Archive

Proudly Powered by Blogger.