In this instructable, I will describe my project to replace my under the cabinet kitchen lights with LEDs.  I couldn't resist adding a microcontroller as well.

The original lights were flourescent and quite badly fitted.  They made a lot of buzzing noise and the bulbs didn't seem to last very long.  I got fed up with them and decided that replacing them with LEDs was the way to go.  My budget was small so I didn't want to buy expensive designer lights.

To add interest and a bit of practicality, I decided to add a fade-up effect when the lights switch on and have a half-bright mode for those special occasions where dimmer lighting is required.

Step 1: LEDs

After experimenting with some cheap LED strips meant for accent lighting on cars, I did some 'proper' research and settled on the flexible strips of SMD 5050 LEDs.  This is an excellent page describing the 5050's vs the 3528 type: http://ezinearticles.com/?All-About-LED-Strips-4---The-Eternal-Debate---SMD3528-Vs-SMD5050&id=4670120 .

You want 5050 LEDs, preferably 3 to each 5cm / 60 per Meter, waterproof (they are covered in a flexible clear plastic and with a adhesive backing.

I got a 5M strip plus power supply from a seller on eBay.  Total cost was UKP 50.00.  

The LED strips can be cut every 5cm (or 3 LEDs) and are very bright.  5M of LEDs consumes approx 3A (36W at 12V).  This is less than the 4 flourescent strips they are replacing.
Using a micro-controller like the Arduino is one way, but there other ways which are less costly and simpler.
I believe you used proper electrical staples - not 'common' staples!
Exactly the instructable I was looking for, thank you. Connecting all three channels together vastly simplifies the design, but how nice is the colour? I got a simple set from a hardware store, and what they call "white" we all find has a horrible blue tone to it. I expect the different colour LEDs don't output the same amount of light, and/or our eyes don't register them equally.
Yes, you can get different 'colour temperature' LEDs. You want warm white to more closely match the look of incandescent lamps. My cool white LEDs don't suit everyone but give a crisper more clinical light for close work, cutting, preparation etc.<br>
<p>Very attractive set-up &amp; fully functional. Nice Job! I have a question ? Is there any</p><p>formula / chart to indicate how many &quot;leds&quot; will light - on varying voltages ? Like</p><p>how many using a 5 volt USB cable ? </p>
<p>How do you have the cabling going across the sink and cooker? To power all three sets of lights?</p>
The previous lighting was mains and there is mains cable running between the two sections. I used that - it now carries the 12V.
If the RGB is hooked up to separate leds It seems like you could use that for fading by starting the R then having a delay before starting the G than a delay before the B that will add more of a fading effect.
<p>The RGB channels on these LEDs are actually the different colors of Red, Green and Blue. By tying them together, you get each color to illuminate at it's full brightness to produce the White color. By applying the voltages to the different channels, the illuminated color would change dramatically as the modulated voltage came up to full power.</p>
Yes, that is a good idea. I would like to have done that but the existing wiring only allowed one channel. Perhaps with a controller on each set of LEDs, I could achieve this. Too expensive (in time) at the moment though.
I was not sure if you could have programmed the chip to drive 3 mofsets individually. Alternatively you might be able to use a zener diode (do not think that will work with PWM) or something that will allow the first mofset to turn on once the volts hits the knee it allows the second one to turn on and does the same with the third.
In your testing environment with the segment of 3 LEDs would 5 volt be sufficient to power all? I realize the strip is rated for 12 volts, but just wondering.
you can use 9volts and it will work fine. I have blue strips like the ones used here and they run on a 9volt battery with more than adequate brightness
<p>You are correct here. I have done some testing with white LED strips and have found that they work fine with adequate brightness at 9 volts even though rated for 12 volts.</p>
Hi, thanks for the interest. It may be sufficient but if the LEDs come on at all, they certainly won't be very bright.
Very awesome setup - I think I might try and play around with this, maybe use a tiny arduino or digispark so I don't have to build my own. Any chance you (or someone) could expand on step four? I'm not really understanding how the power is hooked up. When the power comes in from the brick, so you have it set up as a 12V rail and then just connect everything to that? Sorry, I'm pretty new at this.
Hi, is there any way that the LED strip fade out as well? <br>I want my leds to rurn on slowly and turn of slowly. <br> <br>Thanks
RGB Strips are actually for creating any colored light you want. It works on the same principal as the individual pixels in your computer monitor. In each pixel there is a red, green, and blue part of the pixel that are individually controlled to output different strengths (Up to 255 different levels of strength) of each color in order to make practically any (16 million different) color in the visible spectrum. In order to do this on the RGB strips all you'd do is set up a separate PWM signal to each of the channels (R, G, and B are the different channels of the led) and change the duty cycle to change the brightness of each. In order to design a color you can use a color picker on a computer. The colors from the color picker are generally written in hex, with the red channel being the first 2 digits, green, the next 2, and blue the last 2. So #FF0000 would be full red, #00FF00 would be green, and #888888 (half duty cycle on all channels) would be grey (on the computer) or a dimmer white on the leds. <br> <br>tl;dr: Bleh, that went into a whole long rant. RGB leds are for creating any color you want. Not just white, red, green, or blue.
Correction #7F7F7F would be half duty cycle/grey/Half dimmed. Side note: There are bussed ic chips for powering/controlling leds with PWM called led drivers. TI makes a large selection of these.
Great Instructible Esterill...I'm trying to do something similar. <br> <br>Quick question, any idea why this MOSFET wouldn't work in this scenario... <br> <br>http://www.futurlec.com/Transistors/IRF510.shtml <br> <br>These are ones they stock at the local 'Shack, and it seemed capable, but some of the specs I don't really understand. Any thoughts? <br> <br>I'm using a 12V strip, just like you...powered by an old 'Xbox HD-DVD' power brick, on a regular Arduino, programmed to Pin 9.
It all came down to grounding! <br> <br>I wasn't grounding my Arduino and my PS together. Once I did that, I am in business and fading. Now I just need to try and get the first couple of levels to not look so 'steppy' and more smooth and I'll be golden.
I had a quick look at the spec sheets - I can't see an immediate reason that the IRF510 wouldn't work. It can handle the current and voltage required. What are the symptoms? Have you tried just having the FET switched on (no PWM) or tried a different load?<br>
Basically, the strip lights up full time, even when the transistor is 'off'. That's what threw me immediately. I was getting 'some' dimming, but nowhere near the full range I'm getting with just an LED. I went and picked up a couple more...maybe this one is bad or dead or something. Although it seems strange that the thing would be 'ON' full time when dead. You'd think it would be a 'dead mans switch' scenario. <br> <br>(thanks for the ideas and replying, btw. I really want to get this to work)
Do you use &quot;Arduino&quot; the Mega168, or are you building native atmel Hex files? I thought you needed the !68 to be running with a crystal rather than the internal timer to use Arduino on it? <br> <br>Cheers Jim.
Jim, <br> <br>I used the Arduino environment. You can use the 168 with an internal oscillator but you need to remember to take into account that it is running at half of the speed Arduino expects. I edited the devices file to add an internally clocked 168 so that it would all make sense.
I have a question.. I bouhgt this SMD leds and I want to use a power supply 12v 65w, I conect it and LED light up, but the strip is getting to hot, This is normal?<br>
you need to decrease the voltage to 11 volts and 35w if you are using a single led then after some time the led will blow up! <br>
I don' t think the Wattage makes any difference
you need to decrease the voltage to 11 volts and 35w if you are using a single led then after some time the led will blow up! <br>
Hi, It depends on what you mean by 'too hot'. All LEDs get warm or hot when on. Because there are a lot of quite high power LEDs on the strip, we would expect some heat. Once the strip is fixed to a surface be it metal, wood etc. I would expect the heat to be reduced. However, if you are worried about the level of heat you should contact the supplier for advice.
I used the Warm White LED strips. It is also pretty good. <br>http://www.yupgift.com is my suppliers
It is great, and my friend used the Warm White LED strips. It is also pretty good.
I have pretty much the same setup and used an old iomega supply ffrom an old drive. It has a 12v output at 2.5A and another 5.1v output that does not light up my 9 foot string. I am not sure which SMD LED's my strip has, but I thought I would do the dim thing the easy way but they will not loght at such a low voltage. I hacked the microwave and used the built in lights on it to power the iomega, so when i turn the microwave/counter lights on, my cabinet strips also power on. The 'dimmer' switch I added (to the 5.1v line) acts as an off switch now.
The preliminary<a href="http://www.coachs-factoryoutlets.net/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br>results extend <a href="http://www.coachs-factoryonline.net/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br>the rising <a href="http://www.coachs--outlet.net/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br>influence of <a href="http://www.chanelhandbagse.com/" rel="nofollow" title="Chanel Handbags">Chanel Handbags</a><br>Islamists across <a href="http://www.coachsoutlets.org/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br>a region where <a href="http://www.chanelbagses.com/" rel="nofollow" title="Chanel Bags">Chanel Bags</a><br>they were once <a href="http://www.coachs-factory.org/" rel="nofollow" title="Coach Store Online">Coach Store Online</a><br>outlawed and <a href="http://www.coachsoutletonline.net/" rel="nofollow" title="Coach Outlet Online">Coach Outlet Online</a><br>oppressed by <a href="http://www.coachs-outlets.net/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br>autocrats aligned<a href="http://www.coachoutleta.net/" rel="nofollow" title="Coach Store Online">Coach Store Online</a><br> with the West.<a href="http://www.coachoutletonlinea.net/" rel="nofollow" title="Coach Outlet Online">Coach Outlet Online</a><br> Islamists have<a href="http://www.louisvuittonsbag.org/" rel="nofollow" title="Louis Vuitton Bags">Louis Vuitton Bags</a><br> formed governments<a href="http://www.coachfactoryoutlete.net/" rel="nofollow" title="Coach Factory Outlet">Coach Factory Outlet</a><br> in Tunisia and <a href="http://www.louisvuittons-bags.org/" rel="nofollow" title="Louis Vuitton Bags">Louis Vuitton Bags</a><br>Morocco. They are <a href="http://www.coachs-factorys.org/" rel="nofollow" title="Coach Factory Store">Coach Factory Store</a><br>positioned for <a href="http://www.coach-outlett.org/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br>a major role in <a href="http://www.coachoutletonlinet.org/" rel="nofollow" title="Coach Factory Outlet">Coach Factory Outlet</a><br>post-Qaddafi<a href="http://www.coachs0utletsstore.net/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br> Libya as well. <a href="http://www.chanelonlines.net/" rel="nofollow" title="Coach Outlet Online">Coach Outlet Online</a><br>But it is <a href="http://www.coachoutletonlinen.com/" rel="nofollow" title="Coach Factory Outlet">Coach Factory Outlet</a><br>the victory <a href="http://www.coachoutleto.org/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br>in Egypt &mdash; <a href="http://www.chanelbagsl.net/" rel="nofollow" title="Chanel Bags">Chanel Bags</a><br>the largest<a href="http://www.chaneloutlete.org/" rel="nofollow" title="Chanel Bags">Chanel Bags</a><br> and once the <a href="http://www.chanelbagse.com/" rel="nofollow" title="Chanel Bags">Chanel Bags</a><br>most influential<a href="http://www.louisvuitton2u.net/" rel="nofollow" title="Louis Vuitton">Louis Vuitton</a><br> Arab state, <a href="http://www.coachonlines.net/" rel="nofollow" title="Coach Factory Store">Coach Factory Store</a><br>an American <a href="http://www.chanelbagse.net/" rel="nofollow" title="Chanel Handbags">Chanel Handbags</a><br>ally considered<a href="http://www.coachsoutlet2u.net/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br> a linchpin of<a href="http://www.chanelonlines.net/" rel="nofollow" title="Chanel Bags">Chanel Bags</a><br> regional stability <a href="http://www.louis-vuittonses.net/" rel="nofollow" title="Louis Vuitton">Louis Vuitton</a><br>&mdash; that has the<a href="http://www.coachsoutlette.net/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br> potential to <a href="http://www.coachsoutlett.net/" rel="nofollow" title="Coach Outlet">Coach Outlet</a><br>upend the <a href="http://www.chanelbagsl.net/" rel="nofollow" title="Chanel Bags">Chanel Bags</a><br>established order <a href="http://www.coach-factorystore.org/" rel="nofollow" title="Coach Factory">Coach Factory</a>across the Middle East.
Very nice job. <br>I know it would be messy to implement without parting with PWM, but couldn't you use some sort of capacitor so to have a fade-out effect when turning the power off?
<br>LED ALADDIN Limited <br> <br>All light sources in our houses or at work must give an appropriate amount of light depending on the type of activities we perform. While working on a task that requires medium concentration the illuminance in a room should be at least 300 lx. The desks and keyboards while working at a computer should be illuminated with about 500 lx and while performing tasks that require high precision and concentration the luminous flux density should be about 750 lx. For comparison the amount of light that is enough for relaxing and watching tv is about 20 lx. Under this value the human eye is not able to recognize the features of a face. <br> <br> <br> <br>Examples of suggested illuminance in rooms <br> <br>Living room <br> <br> 1.main lighting: 100-200 lx. <br> <br> 2.surface of a table for reading and writing: 300-500 lx. <br> <br> 3.dining table: 300-500 lx. <br> <br> 4.computer stand: 500-750 lx. <br> <br>Kitchen <br> <br> 1.main lighting: 200-300 lx. <br> <br> 2.under shelf lighting: 500 lx. <br> <br>Other rooms <br> <br> 1.hallways, stairs: 50-100 lx <br> <br> 2.bathroom and toilet: 300-500 lx <br> <br>Other exemplary values <br> <br> 1.facial features recognition: 20lx. <br> <br> 2.sunny day: up to 10 000 lx. <br> <br>Multifunctionality of lighting <br> <br>While designing lighting in a house or flat it is important to keep in mind, that very often one room is used for many different kind of activities. For example a living room is a good place to relax and watch TV (where a subtle, slightly diffused light is most appropriate) but also for family meetings and meals for which the luminous flux density should be about 300-500 lx. This is why we should not limit the light sources to only one, but to few different lighting points that can work independently from each other. <br> <br> <br>Many sources of light in one room <br> <br>Due to the fact that most of the rooms in our homes are used for different activities, it is suggested to use multiple independent lighting circuits. A very good solution, that is more and more popular in interior design, is diffuse lighting. Diffused light may be produced both by a reflection of light from a completely nonspecular surface and by using multiple small point light sources. <br> <br> <br>Energy efficient and environmentally friendly <br> <br>While designing the lighting in a house it is good to choose light fixtures that can work with energy saving light sources. This environmentally friendly lighting not only helps to save money, but it is also shows our care about the environment. <br> <br> <br> <br>Good quality light sources <br> <br>We should always remember to choose good quality light sources. Very often a theoretically cheaper light source is actually more expensive because of its shorter lifetime and because its performance is much lower than stated by the manufacturer. <br> <br> <br>Contact LEDaladdin <br>LED Aladdin Limited <br>No.406 HongTeng Building, <br> <br>No.392# Xihong Rd,Gulou. <br> <br>Fuzhou,Fujian. <br> <br>350002 <br> <br>China <br> <br>Tel. : +86 591 6310 1956 <br> <br>Fax. : +86 591 2285 5952 <br> <br>E-Mail : info@LEDaladdin.com <br> <br>WEB: http://www.ledaladdin.com/index.html <br> <br> <br> <br> <br> <br> <br> <br> <br>
WOW !!!!
Awesome project! Nice work! <br>* could you provide a parts list to go with the schematic? <br>* did you connect the LED strip(s) to ATMEGA168 pin5, or where? <br> <br>thanks!
Thanks for your kind comments.<br><br>I did neglect to properly list parts so here you go:<br><br>Processor is an ATMEGA168 in DIP package, although almost any AVR will do.<br>D2 is a regular LED on the board for a heartbeat indicator. It is optional as is<br>the 1K resistor.<br>H1 is a 'standard' AVR ISP programming header with 6 pins. You only need this if you are going to do In System Programming.<br>U1 is the MOSFET - a STP16NF06<br>U3 is a 5V regulator - LM05<br>D1 is actually the LED strip - obviously, there are a lot more diodes! It is connected to pin 5 of the processor via the MOSFET.<br>The other Rs and Cs are labelled.<br>
I recognize that I am at times parsimonious I can't help it.<br>So here it is how much current does the controller use and how does that contribute to the overall efficiency compared to just a pot as a dimer? I do appreciate doing the work and fun of doing the controller and how you can get &quot;more light&quot; from a LED by pulsing the voltage over just DC . just wondering . I just like to keep it simple. <br>I also think that some of the heat seen from those strips comes from the current limiting SM resistors that are on the strips. <br>Color is very important to how we see food next time you go to the supper market look at what color is in the meat and the produce departments they are not blue. think more along the lines to art and the need to have color accuracy. Same goes for the bathroom think what the lighting difference is between the bathroom in a high class restaurant and a serve-yourself gas-station. no woman is going to feel comfortable in a blueish lighted bathroom<br>great project and well executed.<br>uncle frogy
Hi and thanks for your comments. The controller is an Atmel AVR. Current consumption is in the order of a few mA, so it is utterly insignificant compared to the current consumption of the LEDs. The advantage of using a microcontroller is the programmability and the cost - I can adjust the fade effect as much as I like until it is right and all for a cost of about 1 pound in components. <br><br>I don't have the analogue electronics design skills to produce an LED fader with a pot and most LED related controllers seem to use PWM - it is cheap and effective.<br><br>I agree on the colour - I tried a warm white LED but my wife didn't like the look. This colour suits us fine. Remember the rest of the room is lit differently and the camera is showing more blue than our eyes actually see.<br><br>
Sorry for a silly question, but what is power cycling?
It's just a phrase meaning turning the power off and then on again (usually with a pause between to allow capacitances to discharge etc.)
http://www.candlepowerforums.com/vb/forumdisplay.php?f=89<br>Start reading.<br><br>Heat is still a big problem with store bought LEDs BUT DIY ones can be made with all the heat sink they need. I hope someday they will product less heat and more usable light.
The LEDs don't actually generate a lot of heat, that is why they are so efficient. The heat sinks insure that heat doesn't build up and effect the operation of the LED's.
These LED strips don't really generate much heat - it is true that what is generated is dissipated across their length and, to a certain extent, into whatever they are stuck to. If heat was a major problem, I would expect the sticky backing would fail pretty quickly. That hasn't happened yet.
These LEDs actually produce more heat than the ones you buy in the store as bulbs (they are less efficient). But wait, you say, why don't need a heat sink? Because each LED doesn't use a lot of power, so basically, the long strips they are on act as a heat sink, and the heat is distributed all over the strip.<br>The problem with store bough LEDs are they are trying to fit in old style bulbs, a tight space where you can only put a little bit.<br>The real problem is the lack of manufacturing, demand and competition. The LEDs are $3-5, the heat sink is $3-4, the driver is about $3. That's $12 at most, the rest is just markup because they are the new kids on the block.<br><br><br>
If finding and connecting isn't your thing:Ikea has several LED lighting strips, some in different colours. Don't know if this is cheaper than sourcing the parts but got me started. Thanks for showing us how to DIY.<br>http://www.ikea.com/ca/en/catalog/products/20119418 or<br>http://www.ikea.com/ca/en/catalog/products/60180767<br>Love the dimmer idea.
I used some Ikea strips in the bedroom - I may replace them eventually with colour changing strips. They cost quite a bit more than the equivalent RGB or White LED strip I used.
anyway to see the light output in lumens?

About This Instructable


415 favorites


More by Esterill: How to fit LED kitchen lights with fade effect
Add instructable to: