Bookmark and Share Printer-friendly version Email to a Friend

Simple night-light detects dusk via photoresistor

( 01 Jan 2012 )
Chau Tran, Analog Devices, Malden, MA

Streetlights, emergency 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.



You 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 5V 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.



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 100nA when the negative pin’s value is greater than that of the positive pin. The output current goes to 1mA when the positive pin’s value is greater than that of the negative pin. This 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.






 
Printer-friendly version Email to a Friend
 
Article Rating 
Average Rate: No rating yet
 
Poor Quite Good Good Very Good Excellent
 
 
ADVERTISEMENT
 
Related Content 

bb

 
 
ON-DEMAND WEBCASTS


 
 
Highest Rated  
Feedback Loop  

ADS BY GOOGLE 
 
 
 
ADVERTISEMENT
Press Release 
 
TECHNOLOGY NEWS
 
 
 
PRODUCT NEWS
 
FEATURED SPONSORS
 
 
 
DESIGN CENTERS
 
ADVERTISEMENT
     
Reference Designs 
   
     
 
 
 
 

 

RSS
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

POLL
What type of environmental regulation do you think will be most beneficial for the tech industry?
Proper recycling and disposal
Push for power efficiency and energy conservation
Chemical/lead regulation
View results


 
     
 
Power Technology E-newsletter 
Power.org Releases Power Architecture 32-bit Application Binary Interface Supplement
EDNA, May 11
POL Regulators Designed for Energy-efficient Computing
EDNA, March 11
Fairchild Revolutionizes Power Savings
EDNA, January 11
Lattice Transforms Board Power and Digital Management
EDNA, November 10
 
Analog E-newsletter 
12V Dual-channel Synchronous Buck Converter Features Integrated FETs
EDNA, February 10
Power MOSFETs features reduced top-side thermal impedanc
EDNA, January 10
 
     
 
KNOWLEDGE CENTER
 
Texas Instruments: DaVinci™ Technology
 
Texas Instruments: Safe Bet Series
 
 
INDUSTRY LINKS
 
Photonics Association (Singapore)
Singapore Industrial Automation Association (SIAA)
Taiwan Semiconductor Industry Association (TSIA)
 
 
OUR SPONSORS
 






Keithley Instruments
With more than 60 years of measurement expertise, Keithley Instruments has become a world leader in advanced electrical test instruments and systems from DC to RF (radio frequency). Our products solve emerging measurement needs in production testing, process monitoring, product development, and research...
 
 
 
     
 

EDN India | EDN Taiwan | EDN Korea | EDN Japan | EDN China | EDN | EDN Europe

 
ABOUT EDN Asia | CONTACT US
   
© 2012 EDN Asia All rights reserved.