Hello, I am currently building a robot using the wild thumper robot chassis, t-rex motor controller, arduino uno 32, hitechnic ir seeker, and a FM transceiver and receiver. I am using the arduino uno 32 to read the receiver and am using I2c to relay the values to the T-rex. I am using the T-rex to control the chassis and connect to the Ir seeker. What the robot does is follow a IR beacon attached to me, and toggle between staying put and following me when I push one of the four buttons on the FM transceiver. I have the library for the sensor and the code for the mode toggle. The problem I'm encountering is I both don't know how to modify the T-rex's code or how to properly use I2c communication between two microcontrollers.
References:
https://learn.sparkfun.com/tutorials/i2c
https://www.digilentinc.com/Data/Products/CHIPKIT-UNO32/chipKITUno32_rm.pdf
http://www.digilentinc.com/data/products/chipkit-uno32/chipkit-uno32-jumpers.pdf