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
14.95k stars 3.23k forks source link

E1.31 (DMX) group pixels #2325

Closed KevinVanthuyne closed 2 years ago

KevinVanthuyne commented 3 years ago

I am in the process of making a stage lighting installation with pixel tape and WLED. So far it's working really well, but controlling all pixels (60 leds/m) is eating up a lot of channels and universes. I don't need to control each led separately, in my case about 10-20 "groups" of 3 or 6 leds per meter would be enough. This would drastically reduce the amount of pixels to output and thus make it possible to run faster animations and maybe a cheaper license for the outputting software. Is this something that is possible?

Coffeetube commented 1 year ago

My setup is similar, i am using soundswitch + Denon Prime4 + wled + other stuff.... you can check my video collection on gdrive.... https://drive.google.com/drive/folders/1wTOyHKRTKP8_p7d73bdmYTKmweb978kM?usp=drive_link But i still not fully following you, are you using WS281x led strips ? if answer is yes, you dont want to loose ability to use wled effects, as soundswitch is not made for controlling smart led's individually, you want to create some attributes on soundswitch to controll wled's effects for segments, and then use it on autoscript or autoloops.....otherwise it s waste of ws281x ... but i still not get why you need moodmolues and sound-reactive stuff...as sound switch would do it perfectly for you...with effects and segments :D Also you may have some trouble detecting wled on soundswitch as artnet device...if you do let me know i have a work around that i can share...

I don't need sound reactive from moon modules. I only need the wired dmx input. It is the only version with the possibility to connect a dmx cable to wled i found.

dzelionis commented 1 year ago

My setup is similar, i am using soundswitch + Denon Prime4 + wled + other stuff.... you can check my video collection on gdrive.... https://drive.google.com/drive/folders/1wTOyHKRTKP8_p7d73bdmYTKmweb978kM?usp=drive_link But i still not fully following you, are you using WS281x led strips ? if answer is yes, you dont want to loose ability to use wled effects, as soundswitch is not made for controlling smart led's individually, you want to create some attributes on soundswitch to controll wled's effects for segments, and then use it on autoscript or autoloops.....otherwise it s waste of ws281x ... but i still not get why you need moodmolues and sound-reactive stuff...as sound switch would do it perfectly for you...with effects and segments :D Also you may have some trouble detecting wled on soundswitch as artnet device...if you do let me know i have a work around that i can share...

I don't need sound reactive from moon modules. I only need the wired dmx input. It is the only version with the possibility to connect a dmx cable to wled i found.

So in general you dont need it if you connect dmx via wifi using artnet...so you can use the latest official wled release in that case....thats what i am using....

Coffeetube commented 1 year ago

Why should this be waste of ws281x? SoundSwitch is great in scripting chases and I can fully understand the point that someone would just like to use segments of a stripe as a RGB fixture. In my case I have 3m stripes with ws2811. These consists of 300 LEDs. I patched the WLED code to use MultiRGB to always group 30 LEDs into one RGB group. This will create 10 "virtual washers" on the 5m stripe. I can then add every 50cm segment (containing 30 LEDs) as a 3 channel RGB fixture in SoundSwitch. I can group them into washer or spot groups and can handle them like normal washer. Even autoscript seems to be clever enough to understand that and creates chases on both groups. If I manually script them I can do what I want as I can do with several RGB fixtures. And if I play my scripts directly from the control one or the mixstream pro all WS28xx effects are always in sync with the light show and sound. I really love the strobe effects as I have one stripe left and one right and one in the front. The strobe effect is so bright and intense, even with color changes on every flash. Looks very impressive. So I think there would be a need for this mode. And it would be very nice to have it configurable in WLED as there might be other situations where I want WLED effects or WLED sound reactive with or without DMX. It is like the most comsumer fixtures do. They have auto mode or sound mode but they can also behave as a dump RGB fixture with only a few channels and no magic at all.

Thank you. That is exacly what I wanna do. But with a DMX cable input.

How did you group the 30 Leds together? Just by building segments of 30 Leds?

I used this release: https://github.com/Aircoookie/WLED/files/10199906/release.zip

And it has this mode and also "Segment RGB" in the Menu.

When you say you just patched your code in back then, how hard is it to do that? The code from MoonModules is also available but I think it will be a more recent version. Close to the official version. Then it would be harder to aply your patch? Would it be easier with an older code Version from MoonModules? I am really new to all of this stuff, sorry for asking such basic questions.

I could not even manage to properly open the moonmodules or the max9901 code with platformio nor complie. The only version that opens up and compiles and installs sucessfully on my esp32 is the official version. I don't know why the other versions code folders don't work and always have an error with the platformio.ini etc.

I really don't need any of the nice features. My only goal is to have one simple WLED version with Pixel Groups and cable DMX input.

Coffeetube commented 1 year ago

release.zip

Hello, and thank you very much for that. Did you build that release yourself by adding a patch to the official version?

dzelionis commented 1 year ago

@Coffeetube, i think you can enable DMX in on official release if you edit WLED/wled00/wled.h file. You will find that line 35 is commented out with '//' :

//#define WLED_ENABLE_DMX // uses 3.5kb (use LEDPIN other than 2)

you need to change that to:

define WLED_ENABLE_DMX // uses 3.5kb (use LEDPIN other than 2)

i never used that feature but that's my guess...how you enable it

Coffeetube commented 1 year ago

@Coffeetube, i think you can enable DMX in on official release if you edit WLED/wled00/wled.h file. You will find that line 35 is commented out with '//' :

//#define WLED_ENABLE_DMX // uses 3.5kb (use LEDPIN other than 2)

you need to change that to:

define WLED_ENABLE_DMX // uses 3.5kb (use LEDPIN other than 2)

i never used that feature but that's my guess...how you enable it

Thanks, I already tried that and compiled sucessfully but that is only for the DMX output. I would need DMX input. Official release does not feature DMX Input, only version as far as I know with DMX cable input is MoonModules.

DeedjayNo1 commented 2 months ago

Hello, is there maybe some work in progress for the sgments rgb(w) option, which @max9901 made possible in the end of 2022? There is a downloadable ready binary set from @davidd1205 , but in this release the function for color correction is nocht working, when in one of the segment rgb(w) modes. I got some other fixtures directly driven by wired DMX, and when i select "Disable realtime gamma correction" the colour of the stripes won't match to the other fixtures.

Like some other writers in this thread, i use soundswitch, for Soundswitch weanwhile a fixture editor is availaibe. So every change for DMX-Adressing can be done by the users. As a gimmick i've get two bars/tubes, that can be used as an equivalent to the Philips Hue Play lightbars. These Tubes has built in 2812b stripes with 18leds each. they work perfect in the single rgb mode, but i want to use them independent. At the moment i use two wemos d1 mini to realize that, but my goal is to to this with just one piece of the esp Controller.

It would be nice to hear from one of you.

Best regards Oliver