I am planning to build a project consisting of 5 Microcontrollers (UC) . Each Uc is a ATMega 328P.
Each UC is controlling 4 step-motors with ULN 2007's and additional TTL-logic. Each motor is eqipped with a potentiometer controlling the position (and feed to the ANALOGINPUT 1-4), so I have digital position for the each motor.
But UC1 motor 1-4 position is dependent on UC2 motor 1-4 position. And UC3 motor 1-4 position is dependend on UC4 motor 1-4 position. I have to work within very narrow ranges. So I need a continuous feed-back from uc1 motor 1-4 to uc2 and vice versa.
It is obvious I can't use RXD/TXD - pins. SO I plan to use I2C.
And in top of that : UC5 is "outside" world comminicator, receiving commands from the user, and should modify UC-1 / Uc2 setting according to user commands (and actual settings of the motors).
But my knowledge og I2C is very limited. Does anyone know a project similar to this (link) or where I can read more about the I2C protocol (especially related to this project)... ?
Speed is not critical - inter-UC-communication is.
Thanks in advance.
Kristian - Norway