Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
15.05k stars 3.26k forks source link

Correct mA/LED settings for WS2805 (RGB+WW+CW)? #4132

Open Moonbase59 opened 2 months ago

Moonbase59 commented 2 months ago

What happened?

WS2805 strips typically come as

1, 3 or 6 LEDs are connected in series to one of the WS2805 outputs, respectively, and—according to the datasheet—the chip drives a typical 12 mA, or max. 14 mA output current on each of the R, G, B, W1 and W2 outputs.

So what is the correct current (mA/LED) to set in WLED for the power calculation/current limiting to function properly? 5 x 12 mA = 60 mA, or 5 x 14 mA = 70 mA?

Could the correct value be added to the selection dropdown for novices?

To Reproduce Bug

Set (and connect) a WS2805 5-channel LED strip in v0.15.0-b4, try to figure out correct power settings.

I am using BTF Lighting WS2805 12V, 5m, 60 LEDs/m and the MagWLED-1 controller.

Expected Behavior

Have a suggestion for novices in the selection dropdown, and possibly document if WLED calculates using "typical" or "maximum" current consumption.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.15.0-b4 (build 2406290)

Which microcontroller/board are you seeing the problem on?

ESP32-C3

Relevant log/trace output

No response

Anything else?

Afterthought: I should maybe have labelled this as a feature request… Sorry for that.

Code of Conduct

blazoncek commented 2 months ago

ABL (automatic brightness limiter) does not operate on CCT or RGBWWCW LED strips properly as the code internally does not work with 2 whites. Also W channel is not part of the calculation of used current independently.

So even if one would want to have correct calculation it is currently impossible without complete code rewrite. And even then not all LED strips are made equal and actual used current may differ from calculation.

Adding additional dropdown options adds little value as unavailable current can be added via custom option.

Moonbase59 commented 2 months ago

Hm. Thanks, that is valuable information.

Do you think…

blazoncek commented 2 months ago

You can disable ABL entirely and use adequate PSU. Please use on-line calculators to determine maximum current draw.

kalwinskidawid commented 1 month ago

Hey, @Moonbase59 How did you finally set it up? I have the same problem