Hi-
I have a project I am starting the programming on - controlling 6 AC controller boards (from futurelec.com). The AC boards work great and my initial tests are fine - no issues communicating with the boards but it's in the fine details...
This piece is going to be installed overhead (14') in a gallery and I had originally thought to just have the microcontroller (arduino or wiring) attached to the overhead rig near the AC control boards- but have been thinking that if I need to do any adjustments to the programming once it is installed I will be in a tough spot. So I am thinking about changing the design so that I can bring the microcontroller down to floor level- and instead of dedicating 4 pins (if I used Wiring) to each AC board (they each control 4 AC outs) and having to deal with 24 wires, I would go with shift registers- and just have the 3 lines plus 5v/gnd.
This complicates the programming somewhat- haven't used SRs much and don't have any real bit shifting chops (I understand the gist of it but it makes my head hurt)
If you have read this far and I haven't bored you to tears, I'd be interested any input on any of the following questions:
--does the wire length from the microcontroller (<= 20') factor when working with SRs (or multiplexors)?
--could I use a 20' USB cable to Arduino/Decimilla and keep all the electronics together?
--finally, if I do go with SRs is there any example code around for setting individual bits in a byte which doesn't use bitwise stuff (or isn't too hard)? I am sequencing AC lights in this app and when I have done it with LEDs, I have just stored the state of the light as a 0 or 1 in an array with the length = the number of LEDs, then walked through the array using some code to translate the array into bytes to send to the MAXIM 7219 chip. That worked ok but I wonder if there is a better approach.
Anyway - partly thinking out loud here. This project has a bit more complexity than I have dealt with before and I am trying to avoid designing in something fatal (like wires being too long)
tx!
--Roy