But are so much easier to come by. The idea is to invert the data stream twice. first when the signal comes in, then split it 5 ways to the other five gates where it can be inverted again. Using a socket it can act as a fuse and it will also improve signal quality by re-creating a perfect square wave again.
Was not stated in your original proposal. How to confuse a new user, truly. I understood from the start, but...
The Teensy can drive the LED strips using DMA (direct memory access), which would not delay your code at all. See the explanation of the technical details on this webpage https://www.pjrc.com/teensy/td_libs_OctoWS2811.html
A beefier micro will not help. The timing of the WS2812B is the critical point; it takes 3 * 8 * 1.25 microseconds per pixel. Times 12960 pixels is close to 400 milliseconds (as you measured).
Putting strips in parallel for each tile (all on the same pin) will help (already mentioned in post #18). So if you have e.g. 120 pixels under a tile and you split it in 6 strips of 20 on one pin, your timing will improve by a factor 6 but for one tile pixel 1 on each strip will have the same colour, pixel 2 of each strip will have the same colour etc.
A beefier micro will help if it allows you to control e.g. strips on 8 pins in parallel. I gave it a try on a Mega but the calculations for each bit took too long
I might not have had the optimal algorithm.
It can be done on an ESP32, using I2S (dma) fully in the background (though some of the processing will need to be done up front)
True, but tend to wait until the OP inquires. No need to explain without interest. Also the OP seems fairly knowledgeable, not that hard to figure it out. Using a 3.3v device like the ESP32 which he did successfully already also requires a level shifter of some kind, and also there a simple 7400 series TTL is the easiest.
Neopixelbus even provides inverted methods, for this very purpose. (inverted logic gates like NOR, NOT & NAND are just more common)
Personally i use a NOR gate initially to block the output until the program is ready to prevent unwanted flashes of various colors before the buffer is cleared and transmitted once.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.