How to implement 10...
 
Notifications
Clear all

How to implement 100 null pixels?

68 Posts
11 Users
0 Reactions
10.7 K Views
Posts: 1420
Topic starter
(@1pet2-9)
Noble Member
Joined: 6 years ago
[#55438]

As we're in 2022 planning stages, I'm running into a new need for null pixels, for a different reason:. all the time I would like to split a data signal, such as with a SP901e repeater, but instead of all four data streams downstream from the splitter being exact copies of each other, I would like to immediately strip off X number of data frames from the head of one of the mirror copies, so as to make the four parallel data streams act like they're serial. Loopback in a prop can get very painful. Except inserting 100x null pixels is worse. Has this always just been a fact of life, or is there a solution for it already?


67 Replies
Posts: 1159
(@deonb)
Noble Member
Joined: 13 years ago

So you want something that strips of 100 pixels (or better - a configurable amount of null pixels) out of a WS2811 protocol stream instead of just 1?

That's actually a cool idea.

You can probably use part of an Arduino for it, but there is not a lot of leeway here for any kind of economics. A SP901E is $23. A Falcon Differential Receiver board which will do what the SP901E does in terms of splitting, but allows for individual data streams is $26.


Reply
MartinMueller2003
Posts: 7612
(@martinmueller2003)
Illustrious Member
Joined: 14 years ago

I would not split a signal. I would lose the ability to individually control the props. Ask DirkNerkle I think he had a splitter.


Reply
Posts: 1420
Topic starter
(@1pet2-9)
Noble Member
Joined: 6 years ago

But if you can individually strip X frames off the head of the packet, you could still individually control the props after you split.

SP901e is $11 on Ali. Hey, Arduino sounds like a good idea. A mini runs $2. But it would still do what Arduinos do best:
prototype.

I suspect angus' SK6812 lights he is playing with could be made to do it. In fact--that might be exactly how those IC's work:. the last pixel in the chain strips off 50 frames.


Reply
Posts: 6728
(@p-short)
Illustrious Member
Joined: 19 years ago

There is a way to do this with a pair of PIC chips (possibly plus a shift-register). However, it would be a fair bit of work.

The first PIC needs to be a PIC16F1825 or PIC16F1704 or similar - a part with an EUSART, a bunch of memory, and an SPI-type port. This PIC is responsible for decoding the WS28xx bits as the arrive. To do so it uses the EUSART receiver in synchronous mode using a delayed copy of the input signal as it's clock (the delay would probably be a 4-bit shift register clocked at 8x or 10x the WS28xx bit rate). The 2400 bit delay function could be implemented either in this the PIC or the second one described below.

The second PIC would be a PIC16F1704, selected because it has 3 CLC instances as well as the EUSART and SPI modules. It would receive the data from the first PIC through it's SPI port, and transmit the data bits using the EUSART transmit port. The output of the EUSART would probably remain internal to the PIC, going instead to one of the CLC modules. The output sent to the downstream WS28xx pixels would be formatted by one (or more) of the CLC modules into the proper short/long pulse stream of WS28xx pixels.

This is a fairly complex scheme that would not be the easiest thing to implement, and I would be surprised if something like this came to pass.


Reply
Page 1 / 14
Share: