View Single Post
  #5   Spotlight this post!  
Unread 18-02-2014, 17:05
sparkytwd's Avatar
sparkytwd sparkytwd is offline
Registered User
FRC #3574
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle
Posts: 101
sparkytwd will become famous soon enough
Re: Connecting a Arduino to a cRio to control LEDs

Last year we used I2C to successfully control an Arduino.

You can see the Java command here: https://github.com/Team3574/RKellyBo...ems/Bling.java

And the Arduino code here:

https://github.com/Team3574/RKellyBo...hoot/shoot.ino

Note the address used by the cRio is 2 * the address used on the arduino.

If you choose i2c, you will also need to use the ribbon cable to connect the cRio to the digital breakout.