datasheets.com EBN.com EDN.com EETimes.com Embedded.com PlanetAnalog.com TechOnline.com  
Events
UBM Tech
UBM Tech

Design Article

Intelligent lighting controller measures ambient light and tracks time

Marko Kannisto and Philip Simpson, Maxim Integrated Products, Inc.

3/9/2012 10:43 AM EST

System description
The system schematic is shown in Figure 3.


Figure 3: System schematic
(Click on image to enlarge)

Selecting the essential components
The mains voltage is transformed to 9VAC(RMS).  Only one voltage rail (3.3V) is used in this system, so power conversion is easy and straightforward. The transformer secondary-side voltage is regulated to 3.3V using the MAX16910 LDO. This LDO was chosen because it has built-in short-circuit and thermal protection. Fuse F1 is a 500mA PTC Polyswitch®, used for additional protection.

The system microcontroller is the Microchip® PIC18LF4520 running at a 8MHz clock frequency. The microcontroller’s clock is the MAX7375, a very small (SC-70) silicon oscillator, chosen because it has an excellent temperature coefficient and very little jitter.

The RTC is the DS1340C from Maxim Integrated Products. This clock has a built-in oscillator so it consumes ultra-low power when the supply comes from a backup power source. The DS1340C is interfaced with an I²C bus. It also has a built-in trickle charger. Therefore, if a rechargeable battery or capacitor is used as the backup power source, it is always fully charged by the DS1340C.

The backup power source, BT1, is a 0.47mF memory-storing capacitor. In the event of a power loss, BT1 will feed power to the DS1340C RTC. When this RTC is supplied from a backup source, it consumes only 1µA (max) current. With the 0.47mF capacitor and with a 3.3V capacitor voltage, the RTC will keep timing information for approximately 36 hours. If the backup time needs to be longer than that, the memory-storing capacitor can be replaced with two series-connected AA batteries. This will lengthen the operating time from 36 hours up to several months. Note, however, that now the DS1340C’s built-in trickle charger needs to be disabled by writing 0x00h to the DS1340C’s register 08h.

The user interface is ultra simple: one pushbutton and two 7-segment LED displays. Displays are driven by the MAX6958 LED display driver and interfaced with I²C, as are the ALS and RTC.

The ALS (Figure 4) is not mounted on the controller’s PCB, but inside the luminaire chassis. The sensor is connected to the PCB with a 4-wire cable using connector J1. This ALS is the MAX44009, chosen because it comes in an ultra-small (2mm x 2mm), 6-pin UTDFN package that fits easily inside the luminaire chassis (Figure 5).


Figure 4: Schematic for the MAX44009 ALS


Figure 5: Ambient light sensor PCB (picture on the left) is mounted inside the luminaire chassis (small black dot visible at the bottom of the chassis). Luminaire photo courtesy of Marko Kannisto.






docdivakar

3/14/2012 10:17 AM EDT

Seems like the value added from a utility perspective is little in comparison to many solutions that already exist there (many solar lights for gardens and walkways switch on automatically, albeit without a real time clock). If cost of adding ALS changes the lighting solution cost, it may not be worth it. I can get a timer for multiple circuits and control on-off times (the XMas tree controllers for example).

MP Divakar

Sign in to Reply



wb9ddf

3/15/2012 2:51 PM EDT

About 10 or 12 years ago I built a lighting control system with similar function for an office building I own. I used a timer and photocell from the local home improvement store. The photocell was wired in series with the timer switch contacts. The result is that the lights come on at sunset, shut off at 11:00pm, come on at 5:00am and shut off again at sunrise. The clock is mechanical so it is adjusted the old fashioned way and the photocell sensitivity is adjusted with a little black tape partially blocking the sensor. Not as sophisticated as your micro-controller but it has worked for years with little maintenance other than new light bulbs and resetting the clock after a power failure.

Fred Johnson

Sign in to Reply



docdivakar

3/16/2012 3:08 AM EDT

@wb9ddf: thank you for reinforcing my point with more detailed explanation. To be fair to the authors, there may be some value-added uses cases (perhaps industrial ones) in controlling lux-level threshold but its case hasn't been made adequately in the article.

MP Divakar

Sign in to Reply



Dr DSP

3/19/2012 12:15 PM EDT

Seems like connection with the security system might be a more important feature and where some digital control/sensing would be useful.

Sign in to Reply



anne-francoise.pele

7/16/2012 11:25 AM EDT

Click on the link below to check out the collection of Design Articles, Case Studies, Product How-To articles, Teardowns, etc... that have been published on Smart Energy Designline.

Check back frequently. The list will be updated as new articles arrive.

http://www.eetimes.com/design/smart-energy-design/4371743/LED-Focus

Sign in to Reply



Please sign in to post comment

Navigate to related information

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)