CrossRoads:
Connect all the anodes to 12V.
Connect the individual cathodes to 4 ULN203s.
Drive the ULN2803s from 28 Mega pins.
Or, 4 PNP transitors to control the 4 anodes
Connect 7 arduino outputs to 4 ULN2803s in parallel.
Drive the cathodes, and 1 PNP transistor at a time.
11 pins needed.
Should be able to fit that on a prototype shield
The multiplexing I found used 8 channel sourcers with 4 channel sinkers. You're saying if I use a 4 channel source and 8 channel sink, I can multiplex the same? Assuming that I use PNP source transistors that can withstand the 120mA of each digit+decimal? (I won't need the colon)
source digit 'd' and sink segments 'a', 'b', ect? Then go from digit to digit to digit?
All segments of same position would be commoned? Wouldn't I just need one 8203 then?
digit 1 high
digit 2 low
digit 3 low
digit 4 low
segment a high
segment b low
segment c high
segment d high
segment e low
segment f high
segment g high
delay(200)
digit 1 low
digit 2 high
digit 3 low
digit 4 low
segment a high
segment b high
segment c high
segment d high
segment e high
segment f high
segment g high
delay(200)
digit 1 low
digit 2 low
digit 3 high
digit 4 low
segment a high
segment b high
segment c high
segment d high
segment e low
segment f high
segment g low
delay(200)
digit 1 low
digit 2 low
digit 3 low
digit 4 high
segment a high
segment b high
segment c high
segment d high
segment e low
segment f high
segment g high
Also, what would be the best way to multiplex an input? For 4 digits I'll need a way to set the value (0123456789) for each digit. Even with BCD coded switches, thats 4 wires per digit, 16 wires total.
I'm thinking have one coded switch, a 4 position digit selector, and each digit as a byte in EEPROM of the CPU? That would take 8 wires (4 for coded switch and 4 for digit selector). This (switch/control box) is going on a 4 foot cable, so fewer conductors the better. I'm using 4 conductor alarm wire.
elsewise, 4 switches with 4 pins each would equate to this: http://www.piclist.com/techref/microchip/4x4key4io8diode.htmBUT with so many combinations, I think the digit selector is a better idea? But 4 switches would be more user intuitive.
I could keep each switch discrete and use 2 cat-5 cables, but i think the twisted pairs would cause issues with false readings? But the ability to use a pair of 2m cables would be a big bonus.