I'm not sure the display/button solution is the best choice for this. A better choice would be to use the front-end circuit from Renard to allow the input port to be connected to a PC's serial port (or to use a processor with USB) and a program on the PC to configure the patch. Depending on the number of patched channels allowed, we may need a processor with more RAM, like the ATMega324. It looks like we will need 512 bytes for the packet buffer, 512 bytes for the patch index table, 2 bytes per patch, and a bit for stack and local variables. If we don't allow multiple patches (ie, 1 input feeding multiple outputs), it becomes 512 bytes for the buffer, 1k for the patch table, and a bit extra for overhead.
I'll post some code excerpts from my DMX Status display (RX) and DMX Tester (TX) tonight (they are at home right now...)
Here's one possibility...
Before we get too far, keep in mind that you can "trigger" vixen already. The trigger fires a sequence. So in your example your base sequences wouldn't do what they normally do. Then when a trigger occurs your RGB lights would be run with a seperate sequence. This feature is used a fair amount by the halloween crowd.
Look here:
http://doityourselfchristmas.com/forums/showthread.php?t=347&highlight=trigger+plugin
I know Vixen has triggers and there are some other computer-based options to get triggers working. This is was I thinking before I wanted to start such a project.
One place where I want to put such a button has no computer, here the DMX comes out a simple light-console. (I already looked for a existing button on the console which could do the trick so I only had to extend this button, but such a button isn't there).
In here I only have a DVD-player and this lightconsole so a "solution" which is DMX-only has my preference. (I already modified this console a little to get it in-sync with the DVD-player, the console had a sound to light feature with microphone, I removed the microphone and hooked it to the centerspeaker-out of the DVD player. The DVD-playing has only cues (Bass-tone+High-Tone) on the center-channel to push the console to the next scene in the sequence.)
This project is to keep it "simple" ....
I think I'll take the dsPIC30F3013 microcontroller. This one has 2 UARTs and enough memory. This one is available in a SDIP-28 package, which is not too big and quite easy to use in DIY projects.
About the programming I was thinking to fill a RX-Buffer when a DMX Signal is received. And a TX-Buffer which is filled with the contents of the RX-Buffer when the button isn't pressed. But when the button is pressed there is a "patch-Table", for each channel/byte in the TX-Buffer there will be a lookup in this patch-table which channel/byte of the RX-Buffer will be used for that particular channel.
I found that the dsPIC30F3013 also has a SPI output, but it shares the output/input pins with one UART. Does anyone know if the SPI can be used when the output of the UART is set to it's alternative output-pins ? (This maybe for some SPI-controlled future expansion)
