Hi, I'm trying to use I2C to comunciate between 2 arduinos.
Basically one arduino will take care of controlling the robot (this one should be the slave, receiving instructions) while the other one will take care of the comunication architecture with other devices -instrument and PC over wifi- (this one will be the master)
Basically I'd need the master to read some odometry values on the slave, the slave will be constantly updating the odometry data while the master will read these data only once in a while (let's say 500ms, while the data will be updated way faster... some will not be read, but that's not important to me).
My problem is that, for what appears to me, if the master request some data but there is nothing "listening" it'll get stuck there waiting, the same for the slave, if it tries to send and no one is listening it will get stuck there trying to send the data. But situation are no go. Basically the two don't have time to waste waiting for each other.
So I'd like to know if there's a way in which using the I2C there's a way to acces the data on the Slave from the master without having the slave waiting for a request.
Or, in alternative, if there's a trigger/interrupt that can turn on the receive/send function, in this way the transmission would be activated only when needed.
Thanks in advance for any suggestion.