Sunday, June 24, 2012

a LED retrofit

Context


A couple of months ago a friend of me come to me with an interesting problem. He has some old lamps that run on 12V and use small halogen lamps. The problem with these lamps is that they're fragile and are getting more and more rare to get. This also makes that these lamps get more and more expensive.
The idea is to make a LED replacement that fits in the existing housing.

LED


I wanted to get enough light to have descent illumination. About 200 lumen should be good.
I ended up choosing the Osram Golden Dragon + LED LW W5AM-KXLX-5K8L. I first used a 5600K white LED which can handle up to 1A of current and gives 100 lm at 350 mA. I used two of those running them at about 350 mA giving about 200 lm. Running them at 350 mA means that the LED runs relatively cold and nicely within specification. Accidentally it is also the place where the lumen per mA curve has it's peak.


After testing the the 5600K white LEDs we decided that a warmer color temperature would be nicer. The 3500K warm white Osram LCWW5AM-JXKX-4O9Q still gives a nice 82 lm at 350 mA. They cost about 2.5€ a piece.

A simple 110° twist on lens completes the LED. (Intelligent LED solutions FL-70)

Driver


Chosing a LED driver is not easy mostly because there is so much choice.


I ended up choosing the National (Now TI) LM3407 buck LED driver. These are the key reasons for this:

  • easily solder-able eMSOP package should pose no problem hand soldering
  • build-in FET and minimal external parts required
  • 92% efficiency when powering 2 LED from 12V
  • good readable specification with all the calculations clearly provided
  • will work with the existing 22 uH surface mount inductors I have lying around from earlier experiments
After I started working with them I noticed this chip as a very nice surprise feature. It contains an internal 4.5 voltage regulator. The specifications say you're not supposed to use it but I figured drawing ~ 100 uA from it shouldn't be that bad. This means I can add a small dimming circuit that drives the PWM pin of the driver IC and have nice dimming.

This is the basic driver circuit:


It is a quite simple buck driver. The diodes are actually fast skottky diodes.
The 0.56Ω current sense resistor programs the driver for 350 mA.
The 82.5kΩ resistor programs the buck switching frequency at 525 kHz. 
The DIM and VCC pins are connected to the dimming circuit.

Dimming


The dimming is done by means of a 1M linear potentiometer. A simple CMOS 555 based circuit converts the potentiometer setting into a PWM dimming signal. I choose the 555 components to have a 500 Hz PWM frequency and a minimal current usage. One odd thing about the specific 555 I'm using (ST TS555IDT) is that it doesn't have a dot that indicates pin one. One side of the IC is slightly curved which is the only orientation hint.



On/Off


In order to have the circuit use really no power when it is off I use a potentiometer with a build-in switch, like used to be done with radios where you turn then off by completely turning down the volume.



The design


There are some oddness there mostly due to being a single sided design but it works fine.


The etched PCB, with the LM3407 already soldered on:


The fully populated PCB:


Mounted in the base of the case:



The result


It turned out pretty good. It is also very nice that it uses very little (only a few miliwatt) of power when the LED is minimally dimmed and it still gives a nice dimmed illumination.

Fully off:


Fully On:


Half-dimmed:



Almost completely dimmed:



Possible improvements


I think the knob is a little big, I should look into a smaller solution for that.