0
\$\begingroup\$

I am trying to control multiple LEDs with the WS8211. According to the specs, RR resistor shall be calculated based on the voltage drop on the red LEDs.

enter image description here So, my first question is: The formula is RR=(12-3Vledrp)/18.5 K. Is this "3" multiplier mentioned there just because there are 3 LEDs on the schematic example? Or is it whole total voltage drop on all LEDs? The second question: I want to make it "universal" to be able to plug different LEDS, so I probably need some kind of constant current source controlled by the WS2811 "R" output. What could I use for that? As simple as it is possible?

Thank you!

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

It doesn't really justify RR in the description, but I suspect it's there to limit the dissipation the IC has to handle. Green and blue LEDs have about 2-4V drop, so there would be about 6-12 volts drop across 3 of them. Red LEDs could be as low as 1.6V, so with 3 of them you might still have over 7V left from a supply of 12V. That's about 120-130mW that red driver has to dissipate.

You're correct that in this equation the 3 is for the 3 series red LEDs in the circuit. Whatever your configuration, you can use the same formula on each of the LED drive outputs to ensure the voltage on that output is low. If you have different devices/configurations which are similar in overall voltage drop, you can design for the highest drop version, it's not a critical parameter; if there's a difference of more than 4V total between lineups, you might want to consider additional resistors which can be switched in with jumpers.

Otherwise, you can find a PMOSFET to use in a current mirror that will dissipate the required power on its own, as shown in figure 9.1 here. Use the OUTR pin to drive Rbias on the left; Rbias should be (Vcc - Vgs(th) - 2V)/0.0185A (the 2V is margin to make sure we don't saturate the driver). Hook up the LED(s) on the right. If you get the PMOSFETS in a dual package (recommended) make sure it's able to dissipate 0.0185A * Vcc * 2 safely, and it should be good for any load.

\$\endgroup\$
5
  • \$\begingroup\$ Changing RR is quite obvious, either with resoldering, jumpers, variable resistor etc. I want to make a circuit that will work without that. Found this so far: electronics.stackexchange.com/questions/287737/… \$\endgroup\$
    – BUKTOP
    Commented Jan 31, 2020 at 15:59
  • \$\begingroup\$ If you're willing to add that much more circuitry, just set up a PMOS current mirror you can drive from the chip, and make sure the transistor can dissipate enough to handle whatever combinations you intend to test...if it can handle a short, so much the better. \$\endgroup\$ Commented Jan 31, 2020 at 16:06
  • \$\begingroup\$ You mean to use 2 pmos? Could you please show me the schematic? I don't need a much, no high current, but I found that WS can handle no more than 5 leds, I need about 8-10 \$\endgroup\$
    – BUKTOP
    Commented Jan 31, 2020 at 16:24
  • 1
    \$\begingroup\$ scritub.com/files/limba/engleza/technical/243_poze/image001.gif is an image from scritub.com/limba/engleza/technical/…, which explains the operation of it. You hook the resistor on the left up to your IC (choosing the resistor so that at 18.5mA it has most of the drive voltage across it) and the right side up to your LEDs. \$\endgroup\$ Commented Jan 31, 2020 at 17:42
  • \$\begingroup\$ Could you pls add this to the answer? \$\endgroup\$
    – BUKTOP
    Commented Jan 31, 2020 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.