A very helpful description
I assume you can use a PIC on some of these Drivers to control dimming can you? If so, can you give a pointer as to what signal input the Driver would need to dim under PIC control? Presumably, in a PIC controler-driver set-up, the PIC and Driver would need common to have a common nutal voltage rail?
Thanks
Rabbut
Yes you can, in fact this is what I am doing on my system. Unfortunately I've been really lazy over Christmas as it was my first break from work for almost a year so I didn't get much done, but I'm starting with the PCB design for the controller which will also control everything else on the aquarium.
It depends a little on the driver as to what signal you need, but for example with the Zetex drivers you apply a low frequency PWM waveform to the 'dim' pin from an open collector transistor. Zetex recommend between 100Hz and 500Hz for this PWM signal to prevent aliasing with the high frequency driver PWM (if your PWM waveform and the PWM waveform for the switching regulator were close you'd get a pulsating light output as the two waveforms fall in to/out of sync. Basically what you are doing is enabling/disabling the LED output with your 100Hz PWM signal, and during the time your signal is 'on' the regulator is regulating the LED at it's 100kHz or whatever frequency.
With regulators that don't have a dedicated pin, it is possible to hack the regulator to allow you to dim the LED. One method is to simply place a transistor in series with the LED and feed your dimming PWM waveform into that. This causes problems with some drivers that use a PID loop to control the regulator as it'll cause the terms to build up preventing proper dimming.
Another method I have used in the past involves interfering with the reference signal (if it is available)
A bit of background first:
To detect the current through the LED, the regulator has a small resistor in series with the return leg from the LED. This resistor may have a typical value of 0.2 ohms. Now say the driver is a 3W driver, so needs to detect 700mA through the LED, the voltage across the resistor would be compared to a 0.14V (0.2 x 0.7) reference signal. When the current rises above 700mA, the comparator turns the switch off, and when the current drops back below 700mA, the comparator turns the switch back on. This gives an average current of 700mA through the LED.
If you reduce the reference signal to 0V, the LED will legitimately turn off. So by inserting a current limiting resistor between the voltage reference and the reference input then put a transistor between the input and ground you can dim the LED.
Depending on the arrangement, it may also be possible to hack the circuit so you can artificially make the voltage at the feedback pin artificially high which will also turn off the LED.