Go to Post You know, I have 2 big addictions in my life right now: ice cream, and FIRST. While the prior may not be great for my health, I think I'm doing just fine with FIRST. - Beth Sweet [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-10-2016, 14:37
mkmeral mkmeral is offline
Registered User
FRC #4191
 
Join Date: Feb 2016
Location: Turkey
Posts: 6
mkmeral is an unknown quantity at this point
Communication from Arduino to Roborio

Hello everyone,

I have two questions actually. First of all, is it illegal to use more than 1 custom circuit in the robot, is there a limit? Secondly, I need to send information from arduino to roborio (we'll have custom circuit and custom sensors that do not connect to roborio directly) How do i do it without buying any parts, because I'm in Turkey and it'll take 3-4 weeks for them to arrive here.

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 20-10-2016, 14:57
Jeff Pahl's Avatar
Jeff Pahl Jeff Pahl is offline
likes to look at shiny things...
FRC #5148 (New Berlin Blitz)
Team Role: Engineer
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Waukesha, WI
Posts: 344
Jeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond repute
Re: Communication from Arduino to Roborio

To answer the first part of your question: in the past there has not been a limit on the number of custom circuits in the robot, other than that all other rules must be followed such as what the circuit is used for and the overall cost limits.

As always in FRC, past rules are no guarantee of future rules. But on this one you are probably safe that it will not change.
__________________
Team 5148 - 2014 Wisconsin Regional Rookie All-Stars!!

Mentor: 1379: 2004-2008 / 2530: 2008-2013 / 2861: 2009 / 5148: 2014-??
Lead Robot Inspector: 10,000 Lakes '09 - '11 / Lake Superior '11-'12 / Northern Lights '13, '15 - '16 / Championship '09 - '12, '14 - '15
Attending/Inspecting 2017: TBD, Wisconsin, STL Championship

"Sometimes the questions are complicated and the answers are simple" -Dr. Seuss
Reply With Quote
  #3   Spotlight this post!  
Unread 20-10-2016, 15:05
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is online now
Captain
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 146
nickbrickmaster is an unknown quantity at this point
Re: Communication from Arduino to Roborio

For your second, you can hook up the Arduino to the roboRIO I2C bus. In this setup, the Arduino has to be a slave device. You can do this with just wires.
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
Reply With Quote
  #4   Spotlight this post!  
Unread 20-10-2016, 15:08
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,071
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Communication from Arduino to Roborio

One option for connection is to directly hook up the arduino over usb to the roborio. This provides power, and you can use a serial connection to communicate between the roborio and the arduino. I've done this most often in the past because it's a single wire and fairly easy to program.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote
  #5   Spotlight this post!  
Unread 22-10-2016, 07:36
mkmeral mkmeral is offline
Registered User
FRC #4191
 
Join Date: Feb 2016
Location: Turkey
Posts: 6
mkmeral is an unknown quantity at this point
Re: Communication from Arduino to Roborio

Quote:
Originally Posted by Thad House View Post
One option for connection is to directly hook up the arduino over usb to the roborio. This provides power, and you can use a serial connection to communicate between the roborio and the arduino. I've done this most often in the past because it's a single wire and fairly easy to program.

How do you do it? By using RXTX? What are names of the ports of Roborio (for example "COM1" etc for windows). When i tried it, it broke the roborio's comm.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-10-2016, 14:56
bobbysq bobbysq is online now
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 268
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: Communication from Arduino to Roborio

Quote:
Originally Posted by mkmeral View Post
How do you do it? By using RXTX? What are names of the ports of Roborio (for example "COM1" etc for windows). When i tried it, it broke the roborio's comm.
The Arduino should either be /dev/ttyACM0 or /dev/ttyUSB0.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-10-2016, 18:00
bankst's Avatar
bankst bankst is offline
Registered User
FRC #0832 (OSCAR)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2012
Location: Roswell, GA
Posts: 9
bankst is an unknown quantity at this point
Re: Communication from Arduino to Roborio

I've had great success doing one-way communication with I2C on the cRIO, but I've never tried two-way or done any on the RoboRIO, but I do believe its very similar. Here is my Java code for getting data from the Arduino with a cRIO. I'll put the arduino code on GitHub later tonight and upload it to a new repo. If you have any questions please PM me.
Reply With Quote
Reply


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 12:04.

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