Go to Post Losing is important. In some cases, more so than winning. - JackS [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 31-03-2015, 12:54
rbhl rbhl is offline
Registered User
no team
 
Join Date: Mar 2015
Location: Home.
Posts: 2
rbhl is an unknown quantity at this point
Using an Arduino w/ a RoboRIO

Apologies if this is under the wrong section, but I had a question about connecting an Arduino to a RoboRIO.

As of now, my team is using an Arduino (primarily for some timing specific WS2182b LED Strips) that is connected to the RoboRIO via Serial over USB, but we've been having some issues with getting serial communication to work properly between the two devices. The serial libraries in WPILib on the RoboRIO do not seem to send data to the Arduino reliably (even when the flush method is called) and the serial link has (on occasion) held up the entire robot (I believe it was when disabling the robot). Additionally, the serial link sometimes doesn't send data over when the appropriate method is called, but instead sends over everything in a short burst right as the robot is being disabled.

I was wondering if any teams have managed to get Serial to work properly on the RoboRIO to communicate with the Arduino. If not, does anyone have any other suggestions as to how to interface the Arduino and the RoboRIO? We choose this method of communication as it's relatively simple to wire (one wire for power and signal), but I know i2C is an option (though I've heard/read mixed reports about i2C on the RoboRIO) and as is a simple one way two or three pin connection to some relay pin. There's also SPI.

Thanks in advance.

Last edited by rbhl : 31-03-2015 at 12:59. Reason: SPI
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi