Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E1.31 (DMX) group pixels #2325

Closed
KevinVanthuyne opened this issue Nov 8, 2021 · 107 comments
Closed

E1.31 (DMX) group pixels #2325

KevinVanthuyne opened this issue Nov 8, 2021 · 107 comments

Comments

@KevinVanthuyne
Copy link

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?

@Imperattor
Copy link

Hi! tell me please, how did you control the lamps via wifi and what program with what settings? I just can not understand how to control the lamp by DMX ?

@max9901
Copy link

max9901 commented Dec 6, 2021

Hi kevinVanthuyne, i created a small exploration edit on my fork that has an extra dmxMODE which can controll all segements seperatly via dmx. Which will give 14 channels for each segment. If u like u can try it out. I'm planning on building this out to a more robust version later. Would u agreed with this approach to be nice for stage lightning ?

https://github.com/max9901/WLED/tree/feature/multi-dmx

Let me know if u want to excange tought about this subject. !

@deggle
Copy link

deggle commented May 21, 2022

Hi - I think this is essentially very similar to what I'd asked for here: #1663

I actually came on today to see about re-opening that ticket, but did a search first and found yours...

I think the changes I'm suggesting there would work well for us both? The only other thing I did think about was adding an additional first channel as an overall master dimmer, then follow that with all the segments RGB(W) channels. I think this would be beneficial if you wanted to use a fader on a console to dim a whole fixture.

I also can see the benefit in also adding a third new option - "Segment Effect" - which I assume would work like the branch from @max9901 allowing much wider control. While nice, I do think just the RGB(W) per segment would be a really great start and cover what many of us may want for external or lighting console control.

I have had a look at the code around this (as per my linked ticket above) and I am thinking this would be a relatively straightforward code change/addition for someone who knew the workings of the sACN/DMX functions (I did take a look but didn't want to bodge it).

It's also probably not something that will add a lot of code or bloat the project as the inerrant code is all there already, it's just about doing some loops for the segments. I do think it would be really useful for those of us that was to use WLED for some cool stage/architectural/etc type fixtures.

A good simple example would be something like a 4 sided square, or isometric cube shape design. Each side/line would be set as a segment then easily controlled - however trying to expose all the individual LEDs would need 100s of channels which makes controlling them via a lighting console or similar quite a challenge (or almost impossible).

@Aircoookie I'm not sure how much time would be involved in this - but I'm happy to put up £100/€100 if it would help get this into WLED as it would be very useful for me and also potentially the wider community.

Ps. Another potential thing that would cover some of these use cases, would be preset recall via DMX as that could pull in segments with fixed/pre-defined colours (and effects). It could also use less channels per device - perhaps just 4-6 based on (D)RGB(W)P where on value change P would recall a given preset. To keep this simple, I think the RGB values would just have to be limited to the first segment if there were multiple defined. How about another £100/€100 if we can get that in too.

@SkylarTheGrey
Copy link

Ps. Another potential thing that would cover some of these use cases, would be preset recall via DMX as that could pull in segments with fixed/pre-defined colours (and effects). It could also use less channels per device - perhaps just 4-6 based on (D)RGB(W)P where on value change P would recall a given preset. To keep this simple, I think the RGB values would just have to be limited to the first segment if there were multiple defined. How about another £100/€100 if we can get that in too.

@deggle I would also love this, I laid some of it out in #2556 that is about UDP preset sync triggering and would also chip in to fast-track it. Our concept would use console dry contacts to send UDP sync packets and also get the power of sync groups.
Presets trigger over DMX would be another way to solve a bunch of issues we have currently with E.131 effect mode not being able to use the full power of segments. WLED in the WUI is incredibly powerful and we would love to trigger that from our lighting console.

We even have concepts we cannot yet implement where we have devices that have DMX preset trigger and local button preset trigger intermixed for props and set pieces.

@blazoncek
Copy link
Collaborator

Grouping pixels with live (aka realtime) data is available in recent master by using mainsgment only setting in Sync settings.
It was introduced in 6079eff

@deggle
Copy link

deggle commented Nov 8, 2022

Hello - sorry, I've only just seen this reply. I will be checking this out when I get chance in the next few days. Is it on the latest release binaries?

@Aircoookie
Copy link
Owner

Yes, it is part of 0.13.3 already.

@lorandnagy
Copy link

Hi there! I have 50 Leds, 4 segments. Artnet configured as multi rgb. If I check main segment only, just segment 0 is receiving realtime data, but as multi rgb.
I tought this topic is about to control one segment as one Led (3 channel for one segment). This way we could control 4 segments for example with only 12 channels.
My main problem is:
I am using rekordbox with RB-DMX1 device. This is able to send out just one universe with 512 channels.
I would be happy to work on this, just was currious if there are some steps in this dirrection.

@deggle
Copy link

deggle commented Nov 8, 2022

Unfortunately this is not achieving what I think most of us were looking for.

This feature/checkbox allows the DMX data to be limited to just the first Segment (0) and leave the others independent. This may be useful for some, but I can't really think of a scenario where it's that useful and I can't see if/where it's been requested.

What I think people are looking for is rather than the DMX channels being something like:

  1. Master Dimmer (optional channel)
  2. LED 0 R
  3. LED 0 G
  4. LED 0 B
  5. LED 1 R
  6. LED 1 G
  7. LED 1 B ... and so on

It would be:

  1. Master Dimmer (optional channel)
  2. Segment 0 R
  3. Segment 0 G
  4. Segment 0 B
  5. Segment 1 R
  6. Segment 1 G
  7. Segment 1 B ... and so on

Here's some other requests asking for the same #1254, #1115

I would see this being an additional option (or two) on the "DMX Mode:" dropdown, perhaps titled "Segment RGB" and perhaps "Dimmer + Segment RGB" (perhaps with RGB+W variants). Maybe even a "Segment Dimmer + RGB" which would be 4 channels (5 for W) and include a dimmer channel for each segment (may be useful for lighting desks).

Example usage scenario:

Imagine you have a square with 50cm sides around which 2m of LED strip is run with 60 leds per meter. That's 120 leds so would need 120 x 3 = 360 (plus optional dimmer channel, and with RGBW you're now over 480 channels). However if the design/effect you want only needs to control the colour of each side of the square, this could be segmented and driven with 4 x 3 = 12 channels - many many less (even if we added an additional dimmer channel for each segment it would only be 16).

I'm using 144/m LED tape to reduce the 'dot effect' and with RGBW an entire universe is used up in 88cm of tape so it's just not workable. Being able to divide it into fractions based on how it's being used would be so helful.

Some time ago I did start a thread with my initial code tweaks/thoughts, but gave up at the hard bit!

#1663

The £100/€100 bounty remains!

@max9901
Copy link

max9901 commented Nov 8, 2022

hi I am still very interested in the feature,

the first crude coding I did on the fork above was under quite a bit of time pressure to finish a light art installation, which btw worked perfectly for a week straight with this feature, the only problem I have with the solutions is that is is really hard to manage the segments correctly, especially as one can overlap segments and have active and inactive segments, (as far as I remember from coding this). I will try my best to look into this again when I find the time but no promises what so ever here.

If somebody can figure out or explain me how segment management works in the code that would be a massive headstart to get this (these) features working.

max9901 pushed a commit to max9901/WLED that referenced this issue Nov 8, 2022
@max9901
Copy link

max9901 commented Nov 8, 2022

hi @deggle, I create a very simple crude test for u to try u can get the code here:
https://github.com/max9901/WLED

do not change the DMX mode ! as I did not update the web interface fully yet I think.

the current code does:
dmx channel:
1: Segment 0 R
2: Segment 0 G
3: Segment 0 B
4: Segment 1 R
5: Segment 1 G
6: Segment 1 B ... and so on

no master dimmer! but we can include that later if u want the same for a white channel!

PLEASE NOTE THAT U ARE RESPONSIBLE TO NOT HAVE OVERLAPPING SEGMENTS otherwise it works a bit weird.

If needed I can be of assistant to get this on your setup, I tested it on a led strip at home and it works for me. If this is the solution u are searching for I can finish up this code properly and make a PR.

cheerz,
Max

@deggle
Copy link

deggle commented Nov 9, 2022

Hi, taking a look now - I think it's building...
(I'm a pretty competent .net/VS dev, but a but of a noob with VS code/c stuff)
Will let you know how I get on...
Tim

@lorandnagy
Copy link

@deggle Hi! I wish you luck! How can I contribute to achieve the goal? I am newbie with github and not really pro in VS, but if i can iwould love to help

@deggle
Copy link

deggle commented Nov 9, 2022

Hi @max9901,

So I managed to get this to build and deploy. The device (ESP32) certainly got the update as I've not seen some of the newer features before (noted the 2D stuff in that build - need to check that out). I created 3 segments and sent some DMX (ArtNet and sACN tried) data but it didn't really work and after some time just set the whole lot of LEDs to the RGB value.

It occurred to me that all the settings from my prior WLED version were maintained (different section/file system I assume) so that may have made the config deviate from what you're using to dev/test so I did a factory reset. However, it no longer showing as an AP so I've not been able to connect to the GUI since.

I've put the latest beta version on and that's brought it back. Actually, I'll try your build again now...

Ok, connected to WiFi with the stock build, now deploying your build.
Configuring the LEDs (64 x WS2812).
Created 3 segments.
With ArtNet it just worked as normal (1 LED per set of channels).
With sACN it did nothing, though I cant be sure if thats an issue on the sending end.

Any thoughts?

Tim

@max9901
Copy link

max9901 commented Nov 10, 2022 via email

@deggle
Copy link

deggle commented Nov 10, 2022

Hi Max,

I'm confused now as my mode dropdown doesn't show this option...

image

Perhaps I built it wrong!?

The only change I made was setting default_envs = esp32dev

Strange!

T

@lorandnagy
Copy link

lorandnagy commented Nov 10, 2022

Hi there! I could also build it. I also configured env:esp32dev, and also have no segment in the dropdown menu.

image

Maybe not all devices have this option? I cloned max9901/Wled.

edit: If I make changes in wled00\data\settings_sync.htm, how can I rebuild/recompile? my changes do not apear after upload.
---> found! you have to chose Default(WLED) as Project enviroment on the bottom of VS
---> build: HTML (you will need to install Node js. Inside in VS terminal you may need "npm install" if you also have Error: Cannot find module 'inliner')

image

edit2: there are a lot of new stuff here compared to Aircoockie firmware. OMG nice :D
don't really know what these mean:
image

edit3: I hope I did it correctly, my first github pull. I wanted to upload the compiled version of max9901. If I understood everithing good, the compiled version is at: https://github.com/lorandnagy/WLED

you don't have to change in the code for chosing platform, it is enough to select it at the bottom of VScode:
image

and I can not test it because I do not have the artnet node at home... will be back :D

@softhack007
Copy link
Collaborator

General hint on UI files:
if you change files in wled00/data/, you have to rebuild the compresses HTML header files otherwise changes have no effect.

  • make sure you have node.js installed on the computer
  • open a command window from VSCode, and run npm run build.
  • If this is the first time and you see errors messages, you need to do npm install before npm run build.

https://kno.wled.ge/advanced/custom-features/#changing-web-ui

@lorandnagy
Copy link

lorandnagy commented Nov 10, 2022

@softhack007 thanks for pointing in the direction!

20221110_202753

I have tested it and for first try with dmx workshop looks pretty good! 9 Leds with 9channels. 3 Led in each segment. :)
Thank you @max9901 !

@max9901
Copy link

max9901 commented Nov 10, 2022

cool thanks for the confirmations @lorandnagy and @deggle I hope this now also works for u, I have the following 3 plans for 3 dmx modes that work on segments.

Segments RGB    (what u guys requested)
Segments DRGB  (what u guys requested but 1 extra channel appended to the front for a master dimmer of **all** segments at once)
Segments Effects (same as effects but then apply on segments so that will be 13 channels per segment to control the effects per segment)

I am also thinking about adding an extra channel to Enable or Disable a segment or automatically disable a segment when All channels are 0. This will allow overlapping segments to work.

What are your thoughts here?

cheerz,
Max

@lorandnagy
Copy link

I think these are great features, all of the 3. Segment Effects I do not see how I personally could use, because my artnet data is comming out of rekordbox. I was thinking about "cloning" a fixture that is supported by rekordbox, for example a moving head. But as I saw until now there is not a lot of data with what rekordbox could control effects. I will try now to implement my WLED partylights with Segment RGB first. What other good dmx source do you use? I am using an RB-DMX1. Many thanks again!

@deggle
Copy link

deggle commented Nov 11, 2022

Sorry, I think I did not rebuild the HTML hence no option to select. Will try again soon. Yes I think the options you've suggested @max9901 make sense, plus I need RGBW variant as I use a lot of SK6812 strips. I can see some uses for the 'effects per segment' option but I'd only do this if it's not too much work.

@deggle
Copy link

deggle commented Nov 11, 2022

@max9901 Managed to build properly at last (on Windows, needed Node.js, npm install etc) and yes, it works as hoped. I had a huge delay with the change of ArtNet data and the LEDs responding, but I think that may just be because it's on WiFi etc or dev build. The same happened on the normal DMX Mode so I guess it's not a specific issue with the code.

@lorandnagy I'm not familiar with rekordbox but there should be a generic RGB head you can use for the basic segment mode. The WLED effect modes are quote specific and won't be supported out the box, but there may be some sort of 'heard editor' that lets you configure how many channels a fixture uses and what they do. The better lighting desks do this but given rekordbox is more from the DJ angle it may not (but it may well do the sound to light better than a dedicated lighting desk).

Looking forward to the next iteration - would it be possible to get this into the main WLED master branch?

FYI, I just saw this in the pull requests which seems similar but abandoned? #2199

@lorandnagy
Copy link

Hi There! I made some tests. Yesterday i had also a lot of latency. Today I made a separated AP. No noticable latency!
Thanks a lot!
Videos:
https://www.youtube.com/watch?v=ZiyCV22vJys
https://www.youtube.com/shorts/Y0gnWXnebdg

@deggle yes, in Rekordbox i can manage the channels with fixtures. I was thinking in using something like a "gobo light", but I did not find any automated data for changing the gobo. That would have been great for the effects.

@davidd1205
Copy link

davidd1205 commented Dec 18, 2022

Hi @dzelionis

yes I had asked Liam to make the 15-channel wled file and he told me that he had done it but I only asked for this one, I don't understand the error you have with the rgb segment me it works take the bin file directly in my zip you will see that it works after with rgb segment I divide my leds into 10 and I use 10 strip controller with 30 channel suddenly and it's not too bad, I will test the multi segment effect also with the wled 15 channel because with the 11 the colors were not respected

@dzelionis
Copy link

@davidd1205, yep with a new 15 channel fixture its looks like all works as expected so far....

@dzelionis
Copy link

dzelionis commented Dec 22, 2022

@Coffeetube
Copy link

Hello,
I am brand new to WLED and the ESP32.
First of all many thanks to all. I have found a lot of helpful information for my project.
But since I am still quite new in the matter I thought after numerous failed attempts I just ask.

Can someone tell me if it is possible to merge the WLED versions of Moonmodulues and max9901 in principle?

I need the hardware DMX input from Moonmodules and the RGB segment function of max9901 for my project.

I have already successfully installed the MoonModules Version on my ESP32 and manage to control my 2m WS2811 (12V 96LEDs/m) via cable DMX with a Max485 as well as a Levelshifter.
But there is no possibility to group the pixels to save adresses.

I want to control about 10 pieces of 2 meter long Ws2811 strips with Soundswitch.
But in Soundswitch I have only a little more than half a DMX universe available.

With the WLED segment RGB variant of max9901 it is also easily possible to divide the strip simply into 8 segments. The 2 meters have 192 Leds but the ws2811 are combined in groups of 3.
With the 8 segments I would then have instead of 192 DMX addresses only 24 per 2m strip and could easily control 10 of them with Soundswitch.
Also with this version I managed to control the strip as described directly over Artnet via Wlan. Perfect.
But I want to use the hardware DMX input.

In my attempts I have only managed to compile and sucessfully install the official Aircookie WLED variant with DMX output with the current version of PlatformIO.

If I just try to compile the code from MoonModules or max9901 there are already error messages when I open the folder about Platformio.ini and it loads for ever and building is not possible.
With older versions of PlformIO (2.5.5) it at least it opens and starts to do something when compiling but then there are also error messages etc..
After a few days of failed attempts even with these mini steps I have now given up on it.

So here is the question. Is it in principle possible to combine the two variants and is this a very hard task?

I have used these binaries with success:

from davidd1205 with segment RGB
(because I didn't manage to compile the code myself)
https://github.com/Aircoookie/WLED/files/10199906/release.zip

Here are the links to the code of the two variants

DMX wired input:
https://github.com/MoonModules/WLED/releases

Segments RGB (Pixel cobine):
https://github.com/max9901/WLED

It would be awesome if someone could point me in the right direction or could even help me to combine the two variants to get a bin with both features.

Thank you very much
Marc

@dzelionis
Copy link

Hello, I am brand new to WLED and the ESP32. First of all many thanks to all. I have found a lot of helpful information for my project. But since I am still quite new in the matter I thought after numerous failed attempts I just ask.

Can someone tell me if it is possible to merge the WLED versions of Moonmodulues and max9901 in principle?

I need the hardware DMX input from Moonmodules and the RGB segment function of max9901 for my project.

I have already successfully installed the MoonModules Version on my ESP32 and manage to control my 2m WS2811 (12V 96LEDs/m) via cable DMX with a Max485 as well as a Levelshifter. But there is no possibility to group the pixels to save adresses.

I want to control about 10 pieces of 2 meter long Ws2811 strips with Soundswitch. But in Soundswitch I have only a little more than half a DMX universe available.

With the WLED segment RGB variant of max9901 it is also easily possible to divide the strip simply into 8 segments. The 2 meters have 192 Leds but the ws2811 are combined in groups of 3. With the 8 segments I would then have instead of 192 DMX addresses only 24 per 2m strip and could easily control 10 of them with Soundswitch. Also with this version I managed to control the strip as described directly over Artnet via Wlan. Perfect. But I want to use the hardware DMX input.

In my attempts I have only managed to compile and sucessfully install the official Aircookie WLED variant with DMX output with the current version of PlatformIO.

If I just try to compile the code from MoonModules or max9901 there are already error messages when I open the folder about Platformio.ini and it loads for ever and building is not possible. With older versions of PlformIO (2.5.5) it at least it opens and starts to do something when compiling but then there are also error messages etc.. After a few days of failed attempts even with these mini steps I have now given up on it.

So here is the question. Is it in principle possible to combine the two variants and is this a very hard task?

I have used these binaries with success:

from davidd1205 with segment RGB (because I didn't manage to compile the code myself) https://github.com/Aircoookie/WLED/files/10199906/release.zip

Here are the links to the code of the two variants

DMX wired input: https://github.com/MoonModules/WLED/releases

Segments RGB (Pixel cobine): https://github.com/max9901/WLED

It would be awesome if someone could point me in the right direction or could even help me to combine the two variants to get a bin with both features.

Thank you very much Marc

Hey, you don't need to compile it as the official release has all that stuff built in...... just check for documentation, you can make your own custom map of led positions and what actual order it is...also by default if you select dmx + segments , you would specify first dmx adress and then each segment woulld +18 if i remember correctly...have fun

@Coffeetube
Copy link

Thanks for your answer.
So with MoonModules (because I need hardware DMX in) I could do that?
Great, I will check that out!

@Coffeetube
Copy link

custom map of led positions

Thanks for your help but that seems not to work. Or maybe I'm doing it wrong.
I don't want to change the order of the leds on my strip. But group them together to save dmx channels.

I don't think it is possible with the ledmap.json to build groups of leds.
i tried this:
�{"map":[0-7,8-15,16-23,24-31,32-39,40-47,48-55,56-63]}

But this does just set single pixels (each 3 leds) on the 25, 49 led at my stripe. only the first pixel (3 leds) illuminates the others are dark if controlled with dmx.
But I would like the rest of the pixels in each of the 8 segments to light up to
Maybe i´m describing it wrong.

In the normal WLED version I can only choose Multi RGB. Unfortunately there is no Segment RGB controll in the DMX sync settings.
But that or a workaround that does the same would be needed in combination with wired dmx input control.

@dzelionis
Copy link

There is "Grouping and Spacing" topic documented on https://kno.wled.ge/features/segments/
Best of luck
Domas

@dzelionis
Copy link

FYI
image
image
image
image

I hope it helps
dzelionis

@dzelionis
Copy link

also i have just built a MM version, and it looks it has settings as well:
image
image
image

@dzelionis
Copy link

Thanks for your answer. So with MoonModules (because I need hardware DMX in) I could do that? Great, I will check that out!

why you not use artnet as dmx ?

@Coffeetube
Copy link

There is "Grouping and Spacing" topic documented on https://kno.wled.ge/features/segments/ Best of luck Domas

Thank you for all the detailed info and taking the the time to post pictures.
I'm aware of the DMX Mode Effect Segment.
But it eats a lot of DMX adresses. If I want to control only 8 segments (or pixel groups) on each 2 meter strip it would use 144 adresses. I would only like to control each pixel or segment with 3 Adresses for R, G, B. (24 adresses)
And also the Effect Segment mode unfortunately ads a lot of latency compared to the Multi RGB or Single RGB mode when I tested it. I admit because it is not a live mode?

The Segment grouping as described does not work for the DMX mode: Multi RGB.
In this mode every Pixel of my Led stripe needs 3 adresses when controlled via DMX (192 adresses for 2 meters). No matter how I group segments.
In the WLED version from Max9901 he added a "Segment RGB" Mode.
This works exactly how I would need it (24 adresses for 8 pixels on 2 meters with no noticeble latency). But unfortunatly this version does not support wired DMX input. What I would also need.... :-(

@dzelionis
Copy link

Multi RGB mode was never designed to work with segments...thats one of very first dmx modes introduced to wled far as i remember.... i still not sure why you care so much about addresses.....use wifi or lan esp32 via artnet .... make some esp32 dmx in to artnet converter (https://github.com/markusb/esp-dmx) there is tones of projects like this, i just grabbed very first :D .... Artnet protocol can address 32768 DMX "universes", each of 512 channels, limited by bandwidth.
Regarding latency i have no issues unless there is some noise in wifi, so you need to make sure you wifi connection is running on proper speeds between esp32 and router....i am controling 1567 ws281x splited over 6 gpio pins and segmented into 12 segments....
if you run it in multi RGB mode you loose wled effects.....so i am not sure if thats what you looking for....

If i run Resolume and i want to render some video on my pixels....then i would use multi RGB.....

so i am not sure if that info is any good for you....

@Coffeetube
Copy link

Thank you very much again.
For DJing I use a Macbook with Serato an Soundswitch on it.
If I enable Wifi on the Macbook Serato has audio glitches sometimes.
So I only would like to use my Soundswitch usb to DMX dongle. I have some wireless dmx transceivers built into all my other fixtures. They have a long range and work perfect and I don`t need a Wifi Network. That is what I plan to to with multiple 2meter LED tubes controlled by WLED.
I just want to control them with Soundswitch. I don't need Effects.

But another ESP with DMX or Ethernet input to transmit into Artnet would be a possible solution. The projects I found always receiveing Artnet and only output DMX. I need the other way araound.
But then I would need Wifi again. And always change the Wifi settings of the LED Tubes ESP32 to the Wifi of the different locations will take to long. Or could I use the WIfi point provided by the esp32 to send Artnet to the other Esp32?

@dzelionis
Copy link

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...

@tomte76
Copy link

tomte76 commented Oct 1, 2023

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.

@dzelionis
Copy link

@Coffeetube, as a workaround for your mac wifi issue, there is simple solution use a lan cable + any home wifi router to get esp connected to a lan and then use artnet on soundswitch for controlling wled as lan wifi devices ...

@tomte76
Copy link

tomte76 commented Oct 1, 2023

@Coffeetube I stopped my patch development because the transition to the new WLED version was in full swing. I didn't want to rebase all the time. I just stuck with my quick in dirty version. Once the new WLED has been released and things have calmed down a bit, I'll be happy to try applying my patch to the current version. However, I haven't developed a GUI integration yet. I simply adapted the code so that MultiRGB groups the LEDs according to a fixed divider.

@dzelionis
Copy link

@tomte76 ,it's a waste because you could have your washes of 30 leds to have some nice wled effects + chases for your group of washes...if you use segment dmx mode + soundswitch attribues to change effects for segments.. thats not possible in multi RGB mode...so if you use ws281x as normal RGB strips which has no brains (chip) is that not a waste ?

@dzelionis
Copy link

dzelionis commented Oct 1, 2023

@tomte76 , check this out, https://drive.google.com/file/d/13IPoxnold4-VvtB7MXPqSkKAQ-U55BOv/view?usp=sharing
Around my disco ball its one dmx fixture (one segment), but some wled effects are applyed by sound switch. So thats what i call not a waste of ws281x :D sorry about the mess around as just have my aircon install completed, doing some paint work atm :D

@Coffeetube
Copy link

@Coffeetube, as a workaround for your mac wifi issue, there is simple solution use a lan cable + any home wifi router to get esp connected to a lan and then use artnet on soundswitch for controlling wled as lan wifi devices ...

thats a good idea. I will try this. thank you

@Coffeetube
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

dzelionis commented Oct 1, 2023

@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
Copy link

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.