Introduction
I have recently stumbled upon some LED strip at my local electronics shop and decided to give them a try. I bought some which I used to replace the spot lights in the kitchen. It is cold white, which is surprisingly good, especially for night time illumination (think moonlight like hue). It works at 12V and consumes about 0.25A per meter.
After installing the strip, some automation proved to be necessary, and so the following circuits were built. The goal in mind was to keep things as simple as possible and use only parts I had at hand, which is why the solution might not be the best.
The hallway spotlights got new white LEDs as well and a light sensor. Tiny PIR sensors will turn on the lights in the kitchen and bathroom when someone comes in range. The sensors are rather popular modules using a BISS0001 IC; they provide a 3.3V level for an adjustable time when motion is detected.
Overall the results are great. The hallway is lit at night, the there is a small automatic light for the bathroom and the automatic kitchen light is bright enough even for day time illumination of the sink and counter. The slow turn off provides both a visually pleasing effect and a warning in case someone stood still long enough to make the light go off. I am still looking for a simple solution to produce the same effect on turn on, but without the delay.
Simple light sensor
The circuit is used to turn on the hallway lights. T2 will turn off when it is dark enough, allowing T1 to turn ON and light up the LEDs. The threshold is determined by the divider formed with a photo resistor and a potentiometer. I gave up using a constant current supply in the favor of a simple current limiting resistor because at around 100mA of current (set with R3) there is no danger of thermal runaway.
The circuit was built inside a small remote control case, here it is at first tests:
Simple PIR sensor
The PIR sensors themselves cannot turn on a strip of LEDs so, for the bathroom light I have used a simple transistor amplifier. The light is made up of just 20cm of light strip consuming about 50mA, but it produces enough light for a sleepy person to be able to use the bathroom without the need of the bright waking main light.
Driving the transistor through the diode insures and instant on, but once the PIR turns off, C1 will discharge through R2 slowly turning off the LEDs during a few seconds. My initial desire was to have the same effect at turn on, but the time required to charge the capacitor up to the threshold voltage will produce a few seconds of delay which in practice causes undesirable effect.
Note that I have symbolized the LED strip through its basic cell, 3 LEDs in series with a resistor.
And the assembled circuit on the cap of a wiring box:
PIR and light sensor
For the kitchen strip I wanted both of the functions above: a dim light when it gets dark and motion sensor turn on. The circuit is not exactly the combination of the two since I had to take into account different things.
First, the light sensor was simplified since I found out that 10mA (limited by R7) worth of current through the strip produce enough light for the night (yes, that little current makes the strip give enough light to see what it is in front of me). This means that a single transistor is enough.
The light sensor turn on circuit became a little more complicated, mostly due to the parts I had available. The transistor has to drive more current (close to 0.5A) and support the heating produced during the slow turn off when it will dissipate more power. The only suitable transistor I had available was an IRF9530. This required another transistor to drive it. Just like the previous circuit, turn on carried as fast as possible, but the light turns off in a few seconds. R6 was initially 150K, until I discovered that this produces a delay in turn on. It may be simply shorted.
Schematic:
I first fixed the PIR lens and then inserted the photoressitor inside it:
The finished module (some resistors were still changed afterwards):
Installed in the kitchen (still needs some to get some wires arranged):
The mounting conditions forced me to use an aluminum profile for first fixing the strip onto it and to split the whole thing in two pieces. Unfortunately, Murphy caught in:
Other notes: The strips were sprayed with a few layers of acrylic to ensure good insulation, just for added safety, as the power supply is insulated from the mains.
The math on consumption
I did some math on the consumed energy. The power supply spec says that it should consume less than 0.3W unloaded. So, per month, that gives:
0.3 * 24 * 30 = 216Wh;
Assuming the night lights turn on for an average of 12 hours per day, this gives:
(0.1 + 0.01) * 12 * 12 * 30 = 475Wh;
2 hours (exaggerated) of daily kitchen use:
0.5 * 12 * 2 * 30 = 360Wh;
2 hours (exaggerated) of daily bathroom use:
0.05 * 12 * 2 * 30 = 36Wh;
Monthly total:
216+475+360+36 = 1087 Wh, or approximately 1 KWh per month., which is very little.
The IRF9530 does have a bit of a high Rds On; o.32 Ohms which at 1 A for the LEDs causes a 0.2 Voltage drop. For max brightness use a 12V power supply won’t cut the mustard
typos! 0.32 Ohms and 0.32 voltage drop
TThe PIR may not work as the Gate Voltage can be as high as 3V with the BS170 and most PIRs give a 3V ‘signal’ Further the BS170 has a very high Rds on which limits current and can cause overheating
Pingback: 1000.1000 « Electro Bob
Pingback: Cheap China « Electro Bob
Hi,I would like to send our price list of LED light for your reference,pls contact :anna@kindomled.com.skype:kindomanna.
Hello can anybody can help me to do this circuit simulation..i had tried but not working the led always ON??? please help me
motion sensors are really great specially on burglar alarm systems. .
Take a look at all of the helpful post at our blog site
When calculating/measuring idle comsumption for a modern power supply, it may worth knowing, that many power supplies have a dedicated “idle” circuity which kicks in when absolutely no load is present and gives them exceptionally low consumption in this and only this mode. However, when even a small, say 30 milliwatt, load, such as PIR sensor is present – supply exits “idle” mode and starts eating full 1-2 watts.
actually, have a look here: http://www.electrobob.com/idle-power-consumption/
one of the things that i measured was the current drawn from the mains by the 12V supply: less than 0.3W from the mains while powering 2 PIR sensors + a light sensor + the idle power for the kitchen lights (~10mA). The load is low enough to allow the PSU not to go into such a mode.
they don’t need to be on unless there’s someone there to see them! this project will show you how to use PIR sensors to make your night time lighting
Just found your page from an article on hackedgadgets.com.
Very cool idea. Have you seen much of a change in your electricity bill from adding this in?
Pingback: Modify 12 LED Desk Lamp
Pingback: LED Lighting Project uses PIR Sensor - Free Plans, Hacks, Howto's and other DIY stuff - Free Plans Online
Pingback: DIY night light automation to sense your presence - BuildLounge » BuildLounge
Pingback: LED Lighting Project uses PIR Sensor » Geko Geek
Pingback: LED Lighting Project uses PIR Sensor - Hacked Gadgets – DIY Tech Blog
Pingback: Electronics-Lab.com Blog » Blog Archive » Fun with LEDs