Zibb

Design Idea

Smart photoresistor timer needs few components

Smart photoresistor senses darkness and then turns off.

Abel Raynus, Armatron International Inc, Malden, MA; Edited by Martin Rowe and Fran Granville -- EDN, 9/3/2009

An application required a photo timer with some unusual functions. It had to switch on the load, a lamp, an hour after sunset. After working for three hours, the timer should turn the load off, which had to remain off until an operator manually reactivated the timer. The timer had to reside between the main 110/220V-ac line and the load. And, as with any other consumer product, it had to be cost-effective. You can achieve these goals by using a voltage comparator and dual timers with an RC-timing network, but an inexpensive, 8-bit microcontroller with a built-in ADC provides a more elegant approach. You can perform all the functions in firmware. Listing 1 contains downloadable source code.

See all of EDN's
Design Ideas

Figure 1 shows the circuit, which uses an eight-pin MC68HC908QT2 microcontroller from Freescale Semiconductor. Reference 1 describes a microcontroller’s power supply. Q1, an L2004F31 logic triac from Littelfuse, switches the load on and off; the type you use depends only on the load current and main voltage. The L2004F31 requires only 3 mA of dc-gate-trigger current, and it conducts 4A rms at 200V ac. The VT90N1 photoresistor from PerkinElmer has a dark resistance of 200 kΩ, which drops in light to 10 kΩ or less. The LED indicates the status of the timer: It is on when the timer is ready for work and waits for darkness. It blinks during the delay, and it is off when the timer waits for reactivation (Figure 2). The W934GD5V LED from Kingbright has a built-in resistor that minimizes the number of necessary components. To reactivate the timer, press the pushbutton reset switch. All time delays are set in firmware, and you can easily change them.


Reference
  1. Raynus, Abel, “AC line powers microcontroller-based fan-speed regulator,” EDN, Nov 9, 2006, pg 128.


ADVERTISEMENT

ADVERTISEMENT

Feedback Loop


Post a CommentPost a Comment

There are no comments posted for this article.

Related Content

 

By This Author

There are no additional articles written by this author.


ADVERTISEMENT

Knowledge Center


Events

Oxford University Practical RF/Microwave Design Short Course
Dates: 1/18/2010 - 1/22/2010
Location: Oxford, United Kingdom

Phosphor Global Summit 2010
Dates: 3/23/2010 - 3/25/2010
Location: San Diego, CA

Submit an EventSubmit an Event




Technology Quick Links

EDN Marketplace


©1997-2009 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other Reed Business sites