I'm looking for advice and any ideas on driving about 22,500 WS2815s over Wifi or ESPnow.
The LEDs are/will be laid out in hoops around a room, so across the floor up the wall, across the ceiling, and back down the other wall. Three hoops are installed, there will be 12 hoops in total. Each hoop has approximately 1865 LEDs.
I'm using FastLED on ESP32s to drive the LEDs. To keep the LED strips and data lines short, each ESP32 will drive one half of three hoops, so one ESP32 controls the left-hand half of the first three hoops and another drives the right-hand half of the first three hoops. Each ESP32 drives about 2,800 LEDs over 9 strips, the maximum strip length is 324 LEDs.
The LEDs have their own WiFi network and dedicated router. I can switch to a wired network, but I'd rather not as I am already short on space for wiring.
I need to either stream LED data to these ESP32s, or tell them which patterns to run and synchronize the patterns. I prefer the option of streaming the data to them from a central controller, either another ESP32 or a PC of some kind.
ESPnow seems to be too slow, I'm only getting 18 fps while streaming data to only three hoops, I don't see how it would work for 12 hoops.
I suspect that Art-Net or similar is probably the way to go, and wondered if anyone had built anything on this scale with wireless data who could give me some hints or advice.
The (very poor) video shows the first three hoops just running demoreal100
Teensy 4's with octoWS2811, octows2811 adaptor boards (or custom one) in combination with fastled would be my choice.
Actually i'm not at my phone and it's hard to give you more Infos, but you can search my old comments. There must be already some Infos that are helpful.
You are right. The adaptor board is mainly a level shifter. Resistors and RJ45 is not that important.
When you need WiFi, a teensy is also not good.
The only advantage is that one teensy can control all the LEDs. But that is also a disadvantage for you, because you don't have space to bring the wires to one single point...
And also some of the data lines would be very long, which brings more problems to solve. I could use RS485 boards to send the data down long lines, but then you need three wires between the RS485 modules.
I also can't cut into the walls, as the room is sound proofed.
I'll stick with multiple ESP32s for now, they're cheap and I've got lots of them.
With a lot of 12v power supplies. It's in my son's gym, it will be the spin room. Unfortunately they bought lots of small power supplies, which means more wires. I would have much preferred a couple of large power supplies.
Each led draws a maximum of about 15mA, so about 340 Amps in total at maximum brightness.
He said he's running them at 3.3v. 340amp that would only be 1122watts at max brightness. I'd guess a sweet looking display using all the lights would be less than using a microwave.
Clarification: I believe he said he's using 12v WS2815 pixels, ie: 12V power; he said that his data line can come directly from the ESP32 (for a short distance?) without level shifting because the WS2815 accepts 3.3v data inputs.
I'm using FastLED on ESP32s to drive the LEDs. To keep the LED strips and data lines short, each ESP32 will drive one half of three hoops, so one ESP32 controls the left-hand half of the first three hoops and another drives the right-hand half of the first three hoops. Each ESP32 drives about 2,800 LEDs over 9 strips, the maximum strip length is 324 LEDs.
First, this setup is going to suck for performance. An ESP32 on FastLED can handle 800-1000 pixels before getting bogged down.
This setup is also going to make programming cool effects way harder that it should be. Why not 3 ESP32s, one for each hoop? You might even need a Teensy 4 or some other higher powered MCU for that pixel count.
Hello you could drive the 20000 leds with one esp32 without issue at a good frame rate using the virtual pin driver. The issue will be artnet I would not go for more than 25 universes per esp32. You would need to have a tool that can send the end of frame signal. Look at my take on the artnet library https://github.com/hpwit/artnetESP32
It depends entirely on how complex the calculations it needs to do are. For most popular animations, 800 is about the limit for decent framerates.
That username you provided links to nothing.
Another thing you might find very interesting is the NightDriver project. /u/daveplreddit developed a framework where one ESP32 acts like a master room controller telling any number of other ESP boards how to control their LED's. Might be a really good fit for your project.
I think you mean 800 LEDs per pin. The frame rate is constrained by the time taken to update the 800 LEDs. ESP32s now run FastLED in parallel output mode automatically and I have kept the maximum number of LEDs per pin down to 320 or so which will give me a suitable frame rate.
I've updated the username, he made the most amazing FastLED/ESP32 video wall which pushed the number of LEDs driven by an ESP32 to the limit. I'll look for a link.
Thanks for the link to the NightDriver project - I'll look into it.
Thanks, I had looked at it briefly. I'll have another look. I did just notice that they recommend Ethernet for streaming data to more than 2000 LEDs. I'd rather use WiFi of I can, if not, I'll be changing the ESP32s to Ethernet versions.
Regardless if you choose Ethernet or wifi(but especially WiFi) you will want an LED only network. Running the LED values through the same WiFi network people are using for their phones and other devices will result in unexpected dropped packets. 22,500 LEDs is getting into purpose built LED hardware territory. Is this a personal project or for a job?
beware of wifi. I have gotten it to work streaming to 1000s of LEDs on Teensies and ESPs, but the problem is when that room is full of people with phones the framerate goes down and there is a lot of stalling and freezing. I would run Ethernet unless there is absolutely no way to.
Thanks, I'm going to stick with WiFi for now. All of the ESP32s are at the top of the walls and I'll mount the router on the ceiling at one end of the room so there'll be a chest line of sight between all of the devices even when there's people in the room. It'll also have it's own WiFi network which nothing else will use. I'll probably hide the SSID as well, not sure if this will help, but there's no harm in it.
If you are in the US, beware that most esp32's are 2.4GHz only. This is a very crowded frequency band, especially in public spaces. Remember that bluetooth uses the same airspace, for example. You don't have control over the RF environment at the gym, and your WAP has no choice but to deal with a busy airspace.
Additionally you can (generally) use only one of three 2.4GHz channels: 1, 6, and 11. Be sure to do some wifi scans at the gym to see which ones are not being used by the gym's own wifi. Actually you might consider having two AP's for your dedicated network so there's another radio running on a different channel to help serve all the esp32's.
You might look into XLights and having multiple ESP32s as a bridge between the LEDs and XLights. The software is intended for large light displays (like for christmas lights) and can sync strips together, do animations, etc.
I used to drive 12k WS2815 LEDs on just two ESP32. 10 parallell outputs per ESP32 with each output driving 600 Pixels.
You can use ArtNet to send the data over Wifi to the controllers. The ESP32 ran on the artnetESP32 library by hpwit (https://github.com/hpwit/artnetESP32)
To send the data I used a Laptop running Resolume Arena 7, but please note, that Resolume sends out the ArtNet-Packages way to fast and there is no way of slowing it down. So the ESP32 skipped a lot of frames which was suboptimal. The solution was to redirect the Resolume output to localhost and write a script that took the data and sent it to the ESP32 controller with a delay of about 500 microsecond between each package.
Pixelblazes have incredible mapping capability. There's a few big (realspace) projects that take advantage of this. I've only used one with a matrix and a fibonacci256 but have seen posts from others on their forums with large installations that look awesome.
Cool project. You might look at the PixelBlaze controller. It’s built for speed and for and for syncing multiple controllers. Above my head to explain it, but I think it is a pretty robust piece of hardware. Maybe it could be useful. There’s a user forum growing around it that’s populated with some pretty experience programmers.
I've had a quick look and it seems to be limited to 8 strips per ESP32, I'm running 9 strips on each ESP32 so I'll have to see how hard it is to increase the number of strips.
3
u/Jem_Spencer Sep 16 '22
I'm looking for advice and any ideas on driving about 22,500 WS2815s over Wifi or ESPnow.
The LEDs are/will be laid out in hoops around a room, so across the floor up the wall, across the ceiling, and back down the other wall. Three hoops are installed, there will be 12 hoops in total. Each hoop has approximately 1865 LEDs.
I'm using FastLED on ESP32s to drive the LEDs. To keep the LED strips and data lines short, each ESP32 will drive one half of three hoops, so one ESP32 controls the left-hand half of the first three hoops and another drives the right-hand half of the first three hoops. Each ESP32 drives about 2,800 LEDs over 9 strips, the maximum strip length is 324 LEDs.
The LEDs have their own WiFi network and dedicated router. I can switch to a wired network, but I'd rather not as I am already short on space for wiring.
I need to either stream LED data to these ESP32s, or tell them which patterns to run and synchronize the patterns. I prefer the option of streaming the data to them from a central controller, either another ESP32 or a PC of some kind.
ESPnow seems to be too slow, I'm only getting 18 fps while streaming data to only three hoops, I don't see how it would work for 12 hoops.
I suspect that Art-Net or similar is probably the way to go, and wondered if anyone had built anything on this scale with wireless data who could give me some hints or advice.
The (very poor) video shows the first three hoops just running demoreal100
3
u/Monoelectro Sep 16 '22
You could use WLED and sync the controllers. Did you check that? Wled supports also Artnet interface
3
u/cheche8 Sep 16 '22
I used to drive 12k WS2815 LEDs on just two ESP32.
10 parallell outputs per ESP32 with each output driving 600 Pixels.
You can use ArtNet to send the data over Wifi to the controllers.
The ESP32 ran on the artnetESP32 library by hpwit (https://github.com/hpwit/artnetESP32)
To send the data I used a Laptop running Resolume Arena 7, but please note, that Resolume sends out the ArtNet-Packages way to fast and there is no way of slowing it down. So the ESP32 skipped a lot of frames which was suboptimal. The solution was to redirect the Resolume output to localhost and write a script that took the data and sent it to the ESP32 controller with a delay of about 500 microsecond between each package.
Run smooth @ around 40 fps.
2
u/samarijackfan Sep 16 '22
I would use pixel blaze with an expander
https://www.bhencke.com/serial-led-driver-pro
2
u/boolieman15 Sep 17 '22
Cool project. You might look at the PixelBlaze controller. It’s built for speed and for and for syncing multiple controllers. Above my head to explain it, but I think it is a pretty robust piece of hardware. Maybe it could be useful. There’s a user forum growing around it that’s populated with some pretty experience programmers.
https://www.bhencke.com/pixelblaze
1
u/Turbulent-Tune4610 Sep 16 '22
Check out Dave's Garage on YouTube. He has an open source "Nightdriver" system that's really fast and scalable. nightdriverled dot com.