|
Re: How to get data from an Arduino and send it to a Roborio
I2C devices have the concept of master/slave. Only the master can initiate a bus transaction. In your case, the RoboRIO is the master and the Arduino is the slave. So the RoboRIO needs to issue a command to get data from the Arduino. What exactly are you trying to read from the Ardino? You need to design a ReadData command so that the RoboRIO issues this command and the Arduino will respond by returning the data. Since the Arduino cannot initiate the bus transaction, if the data is "on-demand", you may need to have the RoboRIO "poll" for data periodically.
__________________
|