View Single Post
  #1   Spotlight this post!  
Unread 15-01-2016, 16:46
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
I2C read from Raspberry Pi to RoboRio

Hi fellow programmers,

We've decided to use a raspberry pi for some side processing on our robot this year. We've got all the code in python on the Raspberry Pi done now all we have to do is get it to the roboRIO somehow. We've been playing with the I2C bus port off of the roboRIO's mxp port and running i2cdetect on the Pi comes up with an address of 32 for the roboRIO. Awesome. That's the address we can send data to, from the Pi. Receiving the data on the end of the roboRIO is the difficult part. The I2C library for Java requires a device address in the parameters of the constructor. For the life of me, and my team, we can't find the address of raspberry pi's I2C port. Could someone help us out or devise a way to find the address?

-Cinnamon Toast