What is the Output voltage of your power supply?
Your long cables are not carrying 10A’s of current at 240V (I sincerely hope not).
It makes a huge difference if your cables drop 1.3V and your intended voltage is 5V or 12V.
Have you tried an independent power supply for the ESP?
Crashes are often caused by brown-outs and/or noise on the supply line.
Add a 2nd 5V 2A supply used only to provide power to the ESP.
You’ll want to make sure you have a ground connection from the 2nd supply to the 1st or alternatively, run a small dedicated data and ground line directly from the ESP to the matrix.
Try moving the ESP much closer to the matrix.
You could try this in conjunction with # 2) to see if there’s any data corruption happening on your long line.
Try a heftier power supply, connect only 1/2 or 1/4 of the matrix.
You could try and configure WLED for only 1/2 or 1/4 of the matrix.
It sounds like you’re facing multiple potential issues with your setup. Here are some steps to help diagnose the problems:
Voltage Drop: Long cables can indeed cause voltage drop, especially under high load. Measure the voltage at the LED matrix using a multimeter to see if it’s significantly lower than what you’re supplying at the PSU.
Power Distribution: Make sure your power is distributed evenly along the matrix. Consider adding capacitors close to the LED strips to help stabilize the voltage.
ESP Power Supply: Ensure the ESP is getting a stable power supply. If it’s connected directly to the PSU but far from the LEDs, there might be noise introduced. Try powering it separately with a reliable 5V source.
Thermal Issues: Given the sealed enclosure, monitor the temperature inside. If it’s reaching high levels, that could lead to instability. Consider adding ventilation or using a heatsink.
Signal Integrity: Long distances can also affect the data signal integrity. Make sure you’re using a quality data cable and consider adding a level shifter or using a shorter, shielded cable for the data line.
Transition Effects: If the crashes occur during high-load transitions (like full white), it could indicate an overload condition. Gradually test with fewer LEDs to see if the issue persists.
Monitoring: Use logging or a simple debug output on the ESP to capture any errors or warnings before it crashes, which might provide clues.
By systematically testing each aspect, you should be able to pinpoint the cause of the instability. Let me know how it goes or if you have specific tests in mind!