I want to use this constant current led driver with a ws2801 pwm driver (also cc) to allow me to control higher power leds with the ws2801, while retaining constant current functionality. I'm loaded with questions -
What are the two resistors doing in this circuit, and how do I calculate their value?
Am I right in thinking that while I can have an arbitrarily long chain of leds by supplying sufficient voltage, the maximum current through those leds (and therefore the ccr driver) can be 160mA?
If need more current capacity than this, I see I can use 2 ccrs in parallel, which presumably will double this to 320mA. What is figure 11 illustrating then with the use of a resistor on one ccr? Is it used to set the max current to some value betwwen 160 and 320mA?
If I need still more current than this, is there a better product or technique I could use? (bearing in mind the source is a pwm signal)
What are the two resistors doing in this circuit, and how do I calculate their value?
Do you mean figure 12?
They limit the current into the base of the transistor (R1) and provide a DC path to ground when the PWM device is not active (R2).
R2 you don't calculate, for R1 you need to know the gain of the transistor you are using and the current you want to switch.
Am I right in thinking that while I can have an arbitrarily long chain of leds by supplying sufficient voltage, the maximum current through those leds (and therefore the ccr driver) can be 160mA
Yes, it is the sufficient voltage that is the catch.
What is figure 11 illustrating then with the use of a resistor on one ccr?
It is showing that the current you regulate on one CCR is mirrored by the second to double the current and split over two devices the heat dissipation.
If I need still more current than this, is there a better product or technique I could use?
Thanks Grumpy. All made sense and I got it working.
A thought though - When using led strip like RGB LED Strip - 60 LED/m - 1m - COM-10259 - SparkFun Electronics Is a constant current driver not the best solution? I've configured a driver circuit to work with a particular length of strip, but now if I want to use a different length, requiring a different current, I'd need to change the value of the current setting resistor. Is this correct?
If so, is this a situation when a constant voltage circuit is more suitable?
Constant current is only useful for being able to omit resistors on small LEDs, power LEDs requiring currents over 60mA, for situations where the LED drive voltage is varying, like in an automobile or when you want a line if LEDs to do the same thing and you can wire them in series.
For strip LEDs like this that are meant to be driven by a constant voltage they are not much good.
I just built the attached circuit using a p channel mosfet with a TLC5940 to control the 12v led strip. It works fine with a single channel, but I just realised that because the strip is common anode, I can't control each rgb channel independently! How do I change this circuit to allow me to use common anode?
I want to use this constant current led driver with a ws2801 pwm driver (also cc) to allow me to control higher power leds with the ws2801, while retaining constant current functionality. I'm loaded with questions -
I think I understand this - you use the 2801 in constant voltage drive mode and use the NSI45090JD to set current and dissipate the extra power (rather than fry the WS2801).
Note that this device is a particularly poor constant current diode, reducing current to 65% of nominal at 2V, 20% of nominal at 0.5V, and only
properly entering constant current zone at 7V or above - pretty much unsuitable for this task. There are chips specifically designed for
providing constant current drive to LEDs which this isn't (despite what the datasheet claims).
I suggest telling us which LEDs you are thinking of and what power supply you will be using.
Thanks Mark, that looks useful for another project.
For this one though, I realised a few posts ago that id don't want constant current as I'm using led strip with integrated resistors!
So I've switched to using a TLC5940 as a pwm source ans a p channel mosfet to amplify the signal. It works but I've just realised I can't use common anode strip, as described above
How much current is the strip needing? Perhaps you can common several outputs of a TLC5940 - hopefully PWM still works
(assuming all the output drivers use the same counter).
You can also just use Arduino PWM and external n-channel MOSFETs, lose the TLC5940 altogether.