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.
Remove these ads by
Signing UpStep 1LEDs
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.
| « Previous Step | Download PDFView All Steps | Next Step » |

















































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?
Again Great Job keep up the good work
Dan
* could you provide a parts list to go with the schematic?
* did you connect the LED strip(s) to ATMEGA168 pin5, or where?
thanks!
I did neglect to properly list parts so here you go:
Processor is an ATMEGA168 in DIP package, although almost any AVR will do.
D2 is a regular LED on the board for a heartbeat indicator. It is optional as is
the 1K resistor.
H1 is a 'standard' AVR ISP programming header with 6 pins. You only need this if you are going to do In System Programming.
U1 is the MOSFET - a STP16NF06
U3 is a 5V regulator - LM05
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.
The other Rs and Cs are labelled.
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 "more light" from a LED by pulsing the voltage over just DC . just wondering . I just like to keep it simple.
I also think that some of the heat seen from those strips comes from the current limiting SM resistors that are on the strips.
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
great project and well executed.
uncle frogy
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.
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.
Start reading.
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 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.
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.
http://www.ikea.com/ca/en/catalog/products/20119418 or
http://www.ikea.com/ca/en/catalog/products/60180767
Love the dimmer idea.
Anyway, the point is you can probably get a more linear feel to the brightness by bringing them up to full brightness with an equation along these lines:
Where B is the brightness, ln is the natural logarithm function, and t is the time since you first turned on the lights. I put 1+t because the logarithm function reaches 0 at x=1 and then drops into the negative. You may have to play around with scaling on both axes but it should be a good start.
The main aim of the project was to replace the kitchen lights. The fade effect was a nice addition and one which I wanted to do myself to learn more about using MOSFETs and PWM. My next project is also LED based and I've learnt plenty from doing this. I was tempted to use RGB strip and have 3 channels of fading but in the end, I didn't want colours in the kitchen so they would have been a waste of money. The bright bluish white isn't to everyone's taste and, of course, you can buy 'warm white' LED strip or go to RGB and mix your own - I'd like to see how that looks (hint hint). I had looked at the commercially available controllers but rejected them because I couldn't be sure they would be able to do the automatic fade up when the power was applied.
I have a friend that built a stereo sound card in the early 90s. You could buy them, but why (or so he said). He then went on to build sensors and automation for his chicken barns. He then went on to build them for others... now he doesn't have to chicken farm any more. You never know where a "hobby" can lead.
That said, it is good to know that I could get the controller from ebay, as my soldering skills are still lacking.
See the link for the controller on eBay, runs off any adequate 12V power supply.
The 5050 package packs 3 LEDs, hence either a RGB or 3 white LEDs. Was going to use these strips for Red Blue grow lighting for plants,
http://shop.ebay.com/?_from=R40&_trksid=p5197.m570.l1313&_nkw=IR+controller+for+RGB+strip&_sacat=See-All-Categories