Folks,
following a thread recently, I got more and more interested in CCS (Constant Current Supplies).
As I've recently remodelled the lab a little, I thought it might be cool to investigate LED light strips under some of the shelves I have. (just so it'll look real purdy!)
I'm using this circuit from wikipedia
Some thoughts...
R1 gets quite warm (from a 12V supply, I guess I'm dropping 9V through it)
Light intensity is controlled with R2.
Then I started thinking about how I'd like to control the intensity of light. I could do this using L2, or, i could PWM a control signal into it. That's the point where I need to think a little deeper. I think that the PWM side of things is simple. I'll just use a micro in a loop with a few counters (e.g. 50 cycles ON, 50 cycles OFF).
I think what I'll do is tie an NPN's Collector and Emmitter between the terminals of LED1.
If I'm not crazy or stupid, that should short out LED1, and draw the base of Q1 down to GND.
The only issue then is that I'll be driving 12V (or 24V if I upgrade) through a resistor, which will likely get quite warm!
Maybe I'd be better using a PNP as a high side switch at the top of the circuit?
any thoughts?
/R
following a thread recently, I got more and more interested in CCS (Constant Current Supplies).
As I've recently remodelled the lab a little, I thought it might be cool to investigate LED light strips under some of the shelves I have. (just so it'll look real purdy!)
I'm using this circuit from wikipedia

Some thoughts...
R1 gets quite warm (from a 12V supply, I guess I'm dropping 9V through it)
Light intensity is controlled with R2.
Then I started thinking about how I'd like to control the intensity of light. I could do this using L2, or, i could PWM a control signal into it. That's the point where I need to think a little deeper. I think that the PWM side of things is simple. I'll just use a micro in a loop with a few counters (e.g. 50 cycles ON, 50 cycles OFF).
I think what I'll do is tie an NPN's Collector and Emmitter between the terminals of LED1.
If I'm not crazy or stupid, that should short out LED1, and draw the base of Q1 down to GND.
The only issue then is that I'll be driving 12V (or 24V if I upgrade) through a resistor, which will likely get quite warm!
Maybe I'd be better using a PNP as a high side switch at the top of the circuit?
any thoughts?
/R