{"id":4940,"date":"2022-11-12T10:24:52","date_gmt":"2022-11-12T08:24:52","guid":{"rendered":"https:\/\/dcaclab.com\/blog\/?p=4940"},"modified":"2023-04-29T07:23:32","modified_gmt":"2023-04-29T05:23:32","slug":"how-to-build-dark-activated-led-light","status":"publish","type":"post","link":"https:\/\/dcaclab.com\/blog\/how-to-build-dark-activated-led-light\/","title":{"rendered":"How to build Dark Activated LED Light"},"content":{"rendered":"<p id=\"para1\">This is a circuit whose light will turn on once it is exposed to darkness. So it&#8217;s a light that will come on when it gets dark such as at night time.<\/p>\n<p id=\"para1\">This is extremely useful for people who may live in a house that has vision problems and need the lights to automatically turn on when it gets dark. It&#8217;s also very useful for elderly people who live in a home and may have difficulty walking to turn on lights when it becomes dark.<\/p>\n<p id=\"para1\">In our circuit, we will turn on a lamp as soon as the level of light reaches a certain level of darkness. Thus, the place where we place this circuit will always be illuminated, either by the natural light of the day or by the lamp of this circuit turning on when it becomes dark.<\/p>\n<h3>Components Needed:<\/h3>\n<ul id=\"para1\">\n<li>Photoresistor (LDR)<\/li>\n<li>100K\u2126 Resistor<\/li>\n<li>OPAM<\/li>\n<li>LED<\/li>\n<li>2 AA batteries or DC Power Supply<\/li>\n<\/ul>\n<p data-wp-editing=\"1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4941\" data-permalink=\"https:\/\/dcaclab.com\/blog\/how-to-build-dark-activated-led-light\/capture-8\/\" data-orig-file=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12094754\/Capture-8.png?fit=475%2C426&amp;ssl=1\" data-orig-size=\"475,426\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Capture\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12094754\/Capture-8.png?fit=300%2C269&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12094754\/Capture-8.png?fit=475%2C426&amp;ssl=1\" class=\"size-medium wp-image-4941 aligncenter\" src=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12094754\/Capture-8-300x269.png?resize=300%2C269&#038;ssl=1\" alt=\"\" width=\"300\" height=\"269\" srcset=\"https:\/\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12094754\/Capture-8.png 300w, https:\/\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12094754\/Capture-8.png 475w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/p>\n<p data-wp-editing=\"1\">A photoresistor is a light-sensitive resistor that changes resistance in response to light exposure. Photoresistors are used in a variety of applications, such as light dimmers and camera light meters. When light falls on a photoresistor, its resistance decreases. This decrease in resistance can be used to control the flow of electricity in a circuit. It is a light-sensitive resistor that can be used to measure light intensity. Photoresistors are made of semiconductor materials, such as cadmium sulfide (CdS) or cadmium selenide (CdSe). When light shines on a photoresistor, the material&#8217;s resistance decreases. The amount of resistance depends on the intensity of the light. Photoresistors are used in a variety of applications, such as light-sensitive switches, security systems, and light meters. They are also used in some types of optical sensors.<\/p>\n<p id=\"para1\">A photoresistor is a resistor whose resistance changes according to the amount of light that it is exposed to. When exposed to total darkness, the photoresistor&#8217;s resistance is very high. This is called its rated dark resistance. For example, in our case, we are using a 2M\u2126 photoresistor. This means that when exposed to total darkness, its resistance will be around 2M\u2126. As the photoresistor is exposed to increasing amounts of light, its resistance begins to drop significantly. There is another rating on the datasheet labeled cell resistance @ illuminance. This is the resistance that the photoresistor will drop to when exposed to bright light, typically 10 lux. This is also called light resistance (since it is the resistance the photoresistor has when exposed to bright light). For our photoresistor, in particular, the cell resistance @ illuminance is 20-30k\u2126. This means the resistance of the photoresistor will drop to 20-30K\u2126 when exposed to a 10 lux level of light.<\/p>\n<p id=\"para1\">So a photoresistor is basically a device that gives off very high resistance at dark light levels and low resistance at high light levels. Being that it does this, it can act as a sensor for light or a photosensor. With the photoresistor acting as the light sensor, the other significant component is the 2N3904 transistor. The transistor in this circuit will act as an amplifier, amplifying current so that sufficient current is produced to light the lamp. Any type of LED can be used for this circuit. The power we will use for this circuit is 3 volts, which can be obtained from either 2 AA batteries in series or from a DC power supply set to this voltage.<\/p>\n<h3>The procedure of Dark Activated Circuit Design:<\/h3>\n<p id=\"para1\">So, for this circuit, 3 volts are powering the circuit. These 3 volts are in parallel to a 100K\u2126 resistor and the photoresistor.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4943\" data-permalink=\"https:\/\/dcaclab.com\/blog\/how-to-build-dark-activated-led-light\/1-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12100804\/1.png?fit=638%2C339&amp;ssl=1\" data-orig-size=\"638,339\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12100804\/1.png?fit=300%2C159&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12100804\/1.png?fit=638%2C339&amp;ssl=1\" class=\"size-medium wp-image-4943 aligncenter\" src=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12100804\/1-300x159.png?resize=300%2C159&#038;ssl=1\" alt=\"\" width=\"300\" height=\"159\" srcset=\"https:\/\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12100804\/1.png 300w, https:\/\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12100804\/1.png 638w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/p>\n<p id=\"para1\">When exposed to bright light, the photoresistor&#8217;s resistance is very low. It drops to around 20-30K\u2126. Current travels through the 100K\u2126 resistor and then has 2 paths- it can either go through the base of the transistor or go through the photoresistor. The base of the resistor to the collector has a resistance of around 400K\u2126. Current always takes the path of least resistance. When the photoresistor is exposed to bright light, its resistance is about 20-30K\u2126, which is significantly less than the 400K\u2126 of resistance the base of the transistor has. Therefore, most of the current will go through the photoresistor and very little will go to the base of the transistor. So the base of the transistor is bypassed. Thus, the transistor does not receive enough current to turn on and power the LED. Thus, the LED is off when there is a lot of light in the surroundings.<\/p>\n<p id=\"para1\">However, when it begins to get dark, the photoresistor&#8217;s resistance becomes very high. Its resistance goes up to over 2M\u2126 of resistance. This creates a very high-resistance path. Being that 2M\u2126 is significantly greater than the 400K\u2126 of resistance that the base of the transistor offers, most of the current will go through the base of the transistor. This means that current does not go through the photoresistor when it is dark, due to this high resistance. Instead current goes through the 100K\u2126 resistor and through the base of the transistor. The transistor receives enough current to power on and turns on the LED connected to the collector terminal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4944\" data-permalink=\"https:\/\/dcaclab.com\/blog\/how-to-build-dark-activated-led-light\/capture-9\/\" data-orig-file=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12101822\/Capture-9.png?fit=626%2C372&amp;ssl=1\" data-orig-size=\"626,372\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Capture\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12101822\/Capture-9.png?fit=300%2C178&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12101822\/Capture-9.png?fit=626%2C372&amp;ssl=1\" class=\"size-medium wp-image-4944 aligncenter\" src=\"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12101822\/Capture-9-300x178.png?resize=300%2C178&#038;ssl=1\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12101822\/Capture-9.png 300w, https:\/\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12101822\/Capture-9.png 626w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/p>\n<p data-wp-editing=\"1\">So this is how a dark-activated light circuit can work. Again, as always, variations of this circuit can be done. Instead of using an LED, we can use any other type of lighting fixture such as a lamp. You may want to use a bright LED. Or you can use any other various lighting source. You may want to use multiple lights, so you can place different lights in parallel with one another. All that would be needed is an adjustment in the voltage and current of the circuit. Customize the circuit according to your needs and preferences.<\/p>\n<p data-wp-editing=\"1\">Live Simulation:<a href=\"https:\/\/dcaclab.com\/en\/experiments\/61569-dark-activated-led-light\"> https:\/\/dcaclab.com\/en\/experiments\/61569-dark-activated-led-light<\/a><\/p>\n<p data-wp-editing=\"1\"><a href=\"https:\/\/dcaclab.com\/users\/28506\/profile\">Md. Anisur Rahman<\/a><!--nextpage--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a circuit whose light will turn on once it is exposed to darkness. So it&#8217;s a light that will come on when it gets dark such as at night time. This is extremely useful for people who may live in a house that has vision problems and need the lights to automatically turn [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":4944,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[20],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/11\/12101822\/Capture-9.png?fit=626%2C372&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9HmdS-1hG","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":36,"url":"https:\/\/dcaclab.com\/blog\/making-a-circuit-using-a-relay-1\/","url_meta":{"origin":4940,"position":0},"title":"MAKING A CIRCUIT USING A RELAY","date":"November 10, 2017","format":false,"excerpt":"An electromagnetic relay in its switching principle is a mechanical switch which is operated with a low-power DC voltage. The switch part is used to control high power circuits.","rel":"","context":"In &quot;Testing&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cms.dcaclab.com\/relay\/relay-diagram.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4474,"url":"https:\/\/dcaclab.com\/blog\/led-driver-circuit-applications\/","url_meta":{"origin":4940,"position":1},"title":"LED Driver Circuit Working &amp; Applications","date":"November 12, 2019","format":false,"excerpt":"A Light Emitting Diode (LED) is a special type of diode that is used as an Optoelectronic device. It conducts when forward biased, just like a p-n junction diode. However, there is a special feature of this device which is its ability to emit energy in the visible range (visible\u2026","rel":"","context":"In &quot;General Electronics&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dcaclab.com\/blog\/wp-content\/uploads\/2019\/11\/leddriver.png?fit=687%2C255&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":4964,"url":"https:\/\/dcaclab.com\/blog\/how-to-build-simple-12-volt-car-battery-charger-circuit\/","url_meta":{"origin":4940,"position":2},"title":"How to build Simple 12 Volt Car Battery Charger Circuit","date":"December 19, 2022","format":false,"excerpt":"We will create a \" 12 Volt Battery Charger Circuit\" in this guide. To charge batteries, we implement a voltage to the terminals and the battery begins to charge. The charging protocol is determined by the size and type of battery that is being charged. Some types of batteries have\u2026","rel":"","context":"In &quot;Features&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/s3.amazonaws.com\/dcaclab.wordpress\/wp-content\/uploads\/2022\/12\/19073655\/Capture.png?fit=706%2C366&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":4000,"url":"https:\/\/dcaclab.com\/blog\/keyboard-shortcuts-for-dcaclab\/","url_meta":{"origin":4940,"position":3},"title":"Keyboard Shortcuts for DCACLab","date":"August 16, 2018","format":false,"excerpt":"We have introduces Keyboard Shortcuts for DCACLab so that you can use the online circuit simulator more easily than before. Flip the components Rotate the components Undo and Redo steps Color of Components Color of LED Color of Lamp Bulb Color of Wires Keyboard shortcut to flip the components in\u2026","rel":"","context":"In &quot;Updates&quot;","img":{"alt_text":"color of bulb in dcaclab","src":"https:\/\/i0.wp.com\/dcaclab.com\/blog\/wp-content\/uploads\/2018\/08\/color-of-bulb-1.jpg?fit=570%2C245&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":4364,"url":"https:\/\/dcaclab.com\/blog\/wheatstone-bridge\/","url_meta":{"origin":4940,"position":4},"title":"Wheatstone Bridge: WORKING PRINCIPLE AND APPLICATION","date":"July 6, 2019","format":false,"excerpt":"The Wheatstone bridge was formerly invented by Samuel Hunter Christie in the year 1833 and later improvised by Sir Charles Wheatstone in 1843 after which it became popular. A Wheatstone bridge is an electrical circuit used to measure an unknown resistance value by maintaining a balance between two legs of\u2026","rel":"","context":"In &quot;General Electronics&quot;","img":{"alt_text":"Wheatstone Bridge _1","src":"https:\/\/i0.wp.com\/dcaclab.com\/blog\/wp-content\/uploads\/2019\/07\/Wheatstone-Bridge-_1.jpg?fit=905%2C399&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":4853,"url":"https:\/\/dcaclab.com\/blog\/how-to-build-a-blinking-led-using-resistors-capacitors-and-transistor-in-dcaclab\/","url_meta":{"origin":4940,"position":5},"title":"How to build a blinking LEDs using Resistors, Capacitors, And Transistor in DCAClab","date":"June 15, 2021","format":false,"excerpt":"It is possible to blink or flash an LED using just a transistor? Transistor flashing led circuit makes use of a rarely used property of the transistor known as the reverse avalanche breakdown. Since this is a non-standard feature, this may not work on all NPN transistors. Also, note that\u2026","rel":"","context":"In &quot;Features&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/dcaclab.com\/blog\/wp-content\/uploads\/2021\/06\/dc5.png?fit=1014%2C625&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/posts\/4940"}],"collection":[{"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/comments?post=4940"}],"version-history":[{"count":5,"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/posts\/4940\/revisions"}],"predecessor-version":[{"id":4977,"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/posts\/4940\/revisions\/4977"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/media\/4944"}],"wp:attachment":[{"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/media?parent=4940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/categories?post=4940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dcaclab.com\/blog\/wp-json\/wp\/v2\/tags?post=4940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}