I’m wondering, in the matrix scheme whether there would be enough time to use a ‘595 for row selection. This way, chaining ‘595’s vertically would allow you to expand in both directions.
ErnieHorning wrote:I’m wondering, in the matrix scheme whether there would be enough time to use a ‘595 for row selection. This way, chaining ‘595’s vertically would allow you to expand in both directions.
Yes, although I was trying to keep the duty cycle on the LEDs above 1:8. The duty cycle on LEDtriks is 1:16, so I suppose there is room for a little bit of vertical expansion.
And we can call this a (simple triks)
I was re-reading posts and caught something in Ernie's post about vixen not resending data when nothing changes.. As an example lets use the letter "C". Here's is a text version of what I believe to have understood how you plan this to work..
Channel one sends two 7F cells then off.. After this. Channel 2-8 sends all on.. next column channels 3-7 send off, but 2&8 don't send anything as they remain on.. Then after 4 columns go by channels 2&8 turn off, but 3-7 still off get no information. my question is how does the triks know how "wide" the letter is. How does the triks know that 5 columns went by and not 6-7. I'm just picturing something like.....
........ .... instead of ..... .....
. . . . . .
. ... . ....
. . . . . .
........ . . ..... . .
I'm just wondering if on the control channel there needs to be a "column beat" after the record start sequence..
P. Short wrote:Yes, although I was trying to keep the duty cycle on the LEDs above 1:8. The duty cycle on LEDtriks is 1:16, so I suppose there is room for a little bit of vertical expansion.
If the LEDs are arranged as columns (ie, the hardware can only turn on the LEDs in one column at a time) and you are displaying text chars, there will be a blank column between each char, and skipping the blank columns will let you get a better duty cycle. For example, if you are using a 5x7 font with 1 blank column between each char, then you only need to send out 5 of every 6 column addresses. If the first char was all the way to the left, you could send out the column addresses for the 1st, 2nd, 3rd, 4th, 5th columns (for the first char), skip the 6th, then send 7th, 8th, 9th, 10th, 11th (for the second char), etc. Which columns to skip will vary according to the scroll position, making the firmware a little more complicated, but it would give you a 17% improvement in duty cycle (1/5 rather than 1/6).
don
djulien wrote:Which columns to skip will vary according to the scroll position ...
Which brings up the issue of scrolling in which all spaces will need to be updated.
If a compare is always made with the previous column value, an update may be skipped. This may be impossible though with limited RAM.
I did a little testing tonite and here's how I plan to implement all this stuff. I've read all the ideas -- thanks to everyone for input -- but I think we're overengineering this when the solution is actually pretty simple. It involves the use of the control channel, channel 1. I've attached a screen shot of various frames of data. Explanation:
The upper left shows the Vixen screen with "MERRY" in WYSIWYG. Note the two control characters in channel 1 at the very start and end of the text. The control characters have the value FF (a change from my original idea). Two characters are used for redundancy (in case one is accidentally missed somehow). The value of these characters is >200 (C8). To differentiate the start/end control characters from anything else in channel-1, no other characters in channel-1 would be greater than C8.
Two Notepad screens are visible; one over the bottom of the Vixen screen showing the rows of bytes Vixen sent out and the other to the right, where I've replicated the word MERRY by drawing over the FF values in the data. Note also the green box drawn around the data of the first channel. Notice that the value changes with each transmission interval. This is the secret to causing Vixen to transmit everything: the channel 1 value changes with every cell. I've simulated it here by adding a ramp up for the duration of the text, but the planned plug-in I have in mind would increment the value in each channel-1 cell by 2 up to 180 and then back down so that no two adjacent cells have the same value.
The far right box shows the XCTU terminal screen in which I've monitored the transmission from a Ren-W. It shows the data as the Renard controller would receive it. (This was the raw source of the data you see reformatted for easier reading in the Notepad screens.) XCTU is the software used to configure an XBee radio and I've found it wonderfully efficient for monitoring Vixen data.
**The problem with identifying control characters is solved by the value of the characters themselves as well as that they're only in control channel 1.
**The problem with Vixen not sending data every time is solved by putting a different value in each cell in the control channel so that no two adjacent cells have the same value.
Ought to be a piece of cake. 😎
Well that answered my question as to how you were going to get vixen to resend all data.. That rampup is the "heartbeat or column beat" I was referring to ... I had just not heard any mention of it earlier.. I had read about start and end but nothing in the middle of the control channel and Ernie's statement caught my attention the second time around. That looks like a good fix to me..
LOL. I say fix like it was ever a problem for you.. You had it figured out all along.
Here’s a thought, suggestion, think out of the box or whatever you want to call it.
Since you’re already requiring two timing slots before and after the text, why not add the eighth channel back in and require that all eight channels must be filled in twice before and after the text. This will give you two start marks that can be used for timing the rest. If no data is sent during a time slot, it’s blank.
Since each channel can contain value of 1 to 255, the timing marks can also contain configuration data. You can still use channel 1 to contain configuration but since you have eight channels; each channel could have its own configuration. The reason I say this is, by design, it’s possible to have separate strings for each row. It does open up the possibility for other ideas.
The two start/end marks could be FF,>C8 or >C8,>C8 or >C8 and binary invert the second one as kind of a checksum.
You’re using a micro and you have a lot more power available, it seems a shame to waste a channel.
ErnieHorning wrote:Which brings up the issue of scrolling in which all spaces will need to be updated.If a compare is always made with the previous column value, an update may be skipped. This may be impossible though with limited RAM.
I misunderstood the refresh mechanism - I was thinking that unless a column was specifically addressed, it would remain dark.
Good point about the unchanged columns - that could save even more, although it would be more variable.
don
