Hey guys..
I'm working on something.. perhaps a bit advanced for me, but I think I can work through it.
Its a camera controller of sorts. It has :
3 potentiometer joysticks for various camera functions, pan, tilt, zoom, iris, etc.
4x rotary encoders
29 Buttons,
60 odd leds. (most of the buttons are dual colour back-lit)
8x bi-directional RS232C connections (for 8x cameras, individual control)
1x 128x 64 KS108b paralleled LCD with glcd.
My aim is to move all of this to a custom PCB (atmega included) and burn the arduino bootloader onto it.
I'm also leaving room (ie with smart pin selections) for a ethernet port of some form.
I've got a rough schematic running in Altium and a very crude breadboard setup with some buttons and leds etc.
Currently my plan is to use two mega2560s talking to each other on i2c.
ardunio a :
button in
leds out
3x rotary encoder(6 interrupts)
and arduino b:
LCD,
1x rotary encoder
8x softserial ports
I'm at the point of proving i can get the RS232 working. The cameras are all RS232C, 9600baud. 8N1 and do very little talking back to the micro, but i need to be able to read values if I poll the camera ('are you on?', 'yes');
I've done some reading and found softwareSerial is a bit limited in RX.. people suggest ladyada softserials version, or the NewSoftSerial library.. These dont appear to support the mega.
My question :
Am I on the right track with this? or should I be spreading the serials out across the hardware uarts on the two 2560s?
That would mean I'd have to share more of the other bits like button IO as I'd run out of room..
Should I get a third (!) 2560, and have 2560A doing buttons, and share the hardware UARTS of 2560 B and C?
Trying to keep my component list down (ie stay away from shift registers etc) to save on PCB space, which is a bit of a premium in the case I've had designed.
I appreciate your comments..
Cheers
Matt