Using "Simulink Support Package for Arduino Hardware", I want to create a system of Arduino communicating between them in I2C to shared information as shown in the following image. For example, I want an Arduino to monitor the time between two actions and to communicate it to another one which will read this time and make the appropriate countermeasure.
I understand how it work with an Arduino as a Master communicating with an I2C sensor as a slave. But how to make the communication possible between multiple Arduino? For that I have some sub-questions which try to solve the problem.
- How to synchronise the Write command of an Arduino with the Read command of another one?
- How to write inside an Arduino register an information and retrieve this data from the Arduino?
Thank you for your help!