Custom / ArtNet optimized Version with another ArtNet Library?

I would like to create a custom version of WLED that is optimized for ArtNet/E131. But I don’t know how to go about it.

Background:
I have several controllers (QuinLED Dig-Quad) with Ethernet.
Each output should control 800+ pixels via ArtNet, so 3200+ in total, and as smoothly as possible.

After a long search, I found this library with which you can use 30+ universes with high FPS.
https://github.com/hpwit/artnetesp32v2

My idea now is to create a WLED version in which I remove everything I don’t need, such as other sync options, effects, etc. Actually, I want to reduce it so much that I can configure basic parameters, such as LED and network setup. To operate an ESP32 as a pure ArtNet 2 pixel node.

Is it possible to integrate this library somehow?

Regards
Mike

If you want performance, then I would not use WLED at all if you just want ArtNet to pixel output.

Just a simple Arduino sketch. You often find examples of this with ArtNet or led driving libraries, hpwit being a good example

If you are needing more than just ArtNet to pixel output, then checkouts the work Troy is doing on MoonModules version of WLED

1 Like

Just take artnetesp32v2/examples/artnetdisplay/artnetdisplay.ino at main · hpwit/artnetesp32v2 · GitHub and add something like the plus ESP32 WiFiManager - Easy WiFi Provisioning

Adding to this, it’s “not just” optimizing WLED for this.

As @netmindz suggested, a plain sketch with only Art-Net is the way to go.

You can also increase universes in WLED with -D E131_MAX_UNIVERSE_COUNT=120 (same value is used for Art-Net universes) at least in WLED-MM… but this might not be not enough.

Ideally you need to recompile Arduino-ESP32 to increase CONFIG_LWIP_UDP_RECVMBOX_SIZE and CONFIG_UDP_RECVMBOX_SIZE to allow the network stack to cache/hold more UDP packets - which is “hard mode” but would benefit this as well.

My recommendation is “don’t use an ESP32 for Art-Net/E1.31/sACN receiving” - there’s a lot of inexpensive Art-Net controllers available now and they use FPGAs internally. This gives you extremely fast processing and no microcontroller task-switching overhead.

(The latest WLED-MM has my new Art-Net sending code, which allows you to more easily set up these Art-Net boxes for use from inside WLED. Sending vast amounts of pixels works great in WLED-MM, especially if you have PSRAM… or an ESP32-P4.)

1 Like

Thanks for your answers.
@netmindz On the one hand, unfortunately I haven’t found any cheap controllers that can only do Art-Net 2 pixels, especially with 800 LEDs per output.
On the other hand, I really like the features of WLED such as the brightness limiter and the easy configuration.
Unfortunately, my coding skills aren’t the best to create my own build or to compile other libraries so that they do what I want.

@Troy As I said, unfortunately I’m not that technically fit. So, I have no idea how to recompile Arduino-ESP32.
What I don’t need is Art-Net Out but actually just Art-Net In, via Ethernet.

I’m going to try WLED-MM today. The S version is optimized for speed here, right?

I have now been looking for pure Art-Net nodes based on ESP32, but most of them have errors or are not easy to configure with Ethernet and several pin outs.