Subscribe to EDN
RSS
Reprints/License
Print
Email
PDF Version

Simple night-light uses a photoresistor to detect dusk

You can adjust this battery-powered circuit for different levels.

Chau Tran, Analog Devices, Malden, MA; Edited by Paul Rako and Fran Granville -- EDN, December 15, 2011

Streetlights, emergency lights, and security lights must automatically turn on when it gets dark. You base the control circuit on the resistance of a photoresistor or another LDR (light-dependent resistor) that varies with light intensity. An LDR’s resistance of several megohms in darkness decreases to a few hundred ohms in bright light (Figure 1). This feature allows a circuit to distinguish between one light bulb and two, direct sunlight or total darkness, or anything in between.

Simple night-light uses a photoresistor to detect dusk figure 1You can use an LDR in a circuit that detects darkness and turns on an LED (Figure 2). The circuit uses a high-voltage threshold-detector IC that features a current output and operates as a comparator. The LDR and potentiometer R3 form one side of a Wheatstone bridge. Fixed resistors R1 and R2 form the other side. You can operate the circuit from a 5 to 65V battery because the bridge excitation comes from an on-chip 2.4V series regulator that is referenced to the supply voltage. The chip keeps the 2.4V regulation voltage below the supply voltage. Resistors R1 and R2 form a fixed reference voltage at the noninverting input of internal comparator A1. The LDR and R3 form a variable voltage at the inverting input. When the light level falls, the voltage on the inverting input falls below the reference voltage until the comparator trips, activating the relay and the LED. The total voltage across the resistors is always 2.4V. Choose the values for these resistors based on your desired threshold voltage using the equation VTH=−2.4×(R1/(R1+R2))=−2.4×(LDR/ (R3+LDR)), where VTH is the threshold voltage.

Simple night-light uses a photoresistor to detect dusk figure 2

You can reverse the position of the LDR and potentiometer R3 to switch on the relay when the light exceeds a preset level. You can adjust the potentiometer to preset the switch to any light level, making it an ideal light sensor. The IC’s output current is less than 100 nA when the negative pin’s value is greater than that of the positive pin. The output current goes to 1 mA when the positive pin’s value is greater than that of the negative pin. Read more design ideasThis current drives a ground-referenced resistor to develop a logic-level signal at DOUT. The logic signal is buffered with the NPN transistor that then drives relay switch S1. You should use a latching relay, which uses permanent magnets to hold the armature in place after the drive current is removed.

When you turn on the LED, the resistance of the LDR may decrease dramatically, and the comparator will switch off, cutting back the output current to nanoamps while the latching relay keeps the light on.
RSS
Reprints/License
Print
Email
PDF Version
Canon Resource Center

Featured Company


Most Recent Resources

Advertisement
Related Content

No related content found.

  • 0 rated items found.
Advertisement

KNOWLEDGE CENTER

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
Featured Job On
Scroll for More Jobs
Advertisement
About EDN   |   Site Map   |   Contact Us   |   Subscription   |   RSS
© 2012 UBM Electronics. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other UBM Canon sites

UBM Canon | Design News | Test & Measurement World | Packaging Digest | EDN | Qmed | Pharmalive | Appliance Magazine | Plastics Today | Powder Bulk Solids | Canon Trade Shows