Good morning! This is my first post here, and my first time diving into the world of microcontrollers. Bear with me, as I describe this theoretical project.
I've got an Arduino Mega 2560, two Arduino Unos, one accelerometer, two Wii Nunchucks (with Nunchucky adapters) and two 3-axis joysticks. I'm curious how to go about wiring/programming the two Unos to the Mega as slaves; both with one nunchuck and joystick going to them to control a set of servos/actuators each, for a total two sets of servos/actuators. The accelerometer will be connected directly to the Mega, and will control a third set of servos/actuators via head-tracking (accelerometer mounted to a headset).
I've been reading all over, and the first thing I need to learn is how to go about establishing I2C between the Mega and two Unos. I found a few diagrams, but wasn't sure if that way was best for my application. After the I2C is established, I am interested in learning how to make accelerometers and joystick potentiometers most effectively control servos and actuators. I'm also interested in how to program buttons to playback pre-programmed servo sequences, but I'm getting way ahead of myself. If anyone's wondering about this project, it's for a large animatronic suit. Any advice is welcome, and thanks for reading!