View Single Post
  #2   Spotlight this post!  
Unread 06-07-2016, 16:10
NHollander NHollander is offline
Registered User
FRC #2877
 
Join Date: Jul 2016
Location: Newton, MA
Posts: 1
NHollander is an unknown quantity at this point
Re: I2C Communication between RoboRIO and Arduino

In order to get the arduino to communicate over I2C, I found that it is necessary to connect all 4 pins from the RoboRIO socket to the appropriate terminals on the arduino.

For our robot this year, we had a Teensy LC controlling LED strips, which were controlled over I2C. For the longest time, we could not get the RoboRIO to talk with the arduino, even when it saw an I2C device was present.

In order to get it to work, we had to have the 4 wires from the RoboRIO, as well as 5V coming from a second VRM, which also supplied the power necessary to drive the LED strips. One additional challenge we ran into was dealing with finding the appropriate pullup to use. In the end, we settled with the internal resistors, which were larger than necessary, and therefore resulted in less than ideal communication speeds, but it worked.
Reply With Quote