Go to Post I am definitely as much a student as any one of the kids on the team. - Hieb [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 10-12-2011, 15:59
tap13 tap13 is offline
Registered User
AKA: PatrickA
FRC #3481 (Bronc Botz)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2010
Location: San Antonio, Texas
Posts: 14
tap13 is an unknown quantity at this point
Ardruino and cRio

I want to know if Arduino directly connect to cRio or it has to go to digital sidecar before the cRio. Thanks!
  #2   Spotlight this post!  
Unread 10-12-2011, 16:55
404'd's Avatar
404'd 404'd is offline
Lead contributor of sweg
AKA: Josh
FRC #0967 (Iron Lions (9-sits-7))
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2009
Location: Marion, Iowa
Posts: 86
404'd is a name known to all404'd is a name known to all404'd is a name known to all404'd is a name known to all404'd is a name known to all404'd is a name known to all
Re: Ardruino and cRio

How are you trying to use your arduino, to control motors and outputs? Because then it wouldn't be practical to use the c-rio in conjunction with an arduino, you can use the arduino directly as a replacement for the c-rio.
__________________
Driving "Career":
2012 GKC: Quarterfinals w/ 6th seeded alliance | Wisconsin: Quarterfinals - 3rd seeded alliance captains
2013 GKC: Quarterfinals w/ 5th seeded alliance | North Star: Regional winners, 2nd seeded alliance captains
2013 CMP: Curie Semis w/ 2056 + 3990
  #3   Spotlight this post!  
Unread 10-12-2011, 16:58
tap13 tap13 is offline
Registered User
AKA: PatrickA
FRC #3481 (Bronc Botz)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2010
Location: San Antonio, Texas
Posts: 14
tap13 is an unknown quantity at this point
Re: Ardruino and cRio

Quote:
Originally Posted by 404'd View Post
How are you trying to use your arduino, to control motors and outputs? Because then it wouldn't be practical to use the c-rio in conjunction with an arduino, you can use the arduino directly as a replacement for the c-rio.
yeah for motor and outputs, well basically we're just researching for it.

Last edited by tap13 : 10-12-2011 at 17:18.
  #4   Spotlight this post!  
Unread 10-12-2011, 17:12
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,802
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Ardruino and cRio

Quote:
Originally Posted by 404'd View Post
How are you trying to use your arduino, to control motors and outputs? Because then it wouldn't be practical to use the c-rio in conjunction with an arduino, you can use the arduino directly as a replacement for the c-rio.
In the offseason, yes, that would work.

In the competition season, at least in the past, that has been prohibited. In 2011, the rule was <R57>. In short, signals controlling motors had to come from the Digital Sidecar on the cRIO--no other sources were allowed.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #5   Spotlight this post!  
Unread 10-12-2011, 17:17
tap13 tap13 is offline
Registered User
AKA: PatrickA
FRC #3481 (Bronc Botz)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2010
Location: San Antonio, Texas
Posts: 14
tap13 is an unknown quantity at this point
Re: Ardruino and cRio

Quote:
In the offseason, yes, that would work.

In the competition season, at least in the past, that has been prohibited. In 2011, the rule was <R57>. In short, signals controlling motors had to come from the Digital Sidecar on the cRIO--no other sources were allowed.
thanks, I didn't even know, just new here
  #6   Spotlight this post!  
Unread 10-12-2011, 17:25
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Ardruino and cRio

You can use an Arduino for other, non prohibited things if you want though. FIRST gives us a lot of free reign for "custom circuits and sensors." So if there's something you know how to do on Arduino but can't find out how to do it on the FIRST control system, you could have the Arduino do the work and the cRIO would just receive or send commands. I guess you could hook Digital I/O pins together and have the cRIO and Arduino send and listen for dedicated On/Off signals along one or more pairs of pins.

Cons are that you can't use the Arduino to control motors, as mentioned, and that having two systems could easily be more complicated than just using the main FIRST control system. It would depend a lot on what you wanted to do with the Arduino.

I've always wanted to use a custom circuit though; it would be pretty cool.
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
  #7   Spotlight this post!  
Unread 10-12-2011, 17:28
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,802
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Ardruino and cRio

Yep, RoboMaster has it right. As long as you aren't directly controlling motors with the Arduino, or doing something else that's prohibited by the rules, knock yourself out. Also, during the offseason, play with what you want to controls-wise.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #8   Spotlight this post!  
Unread 10-12-2011, 17:52
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Ardruino and cRio

If I were to connect an Arduino to a cRio, I would do it via the Serial port. This requires an RS232 level shifter (to 5v TTL logic of the Arduino), but is probably the easiest way on both ends.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #9   Spotlight this post!  
Unread 10-12-2011, 21:52
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Ardruino and cRio

But in normal competition setup you can't use the serial port. It only sends out basic status information about the cRIO. You would have to change some default stuff, which I think would be easier said than done, and then revert for competitions. Plus, the recent cRIOs don't even have a serial port, right? (I might be wrong on that).
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
  #10   Spotlight this post!  
Unread 10-12-2011, 21:59
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Ardruino and cRio

Quote:
Originally Posted by RoboMaster View Post
But in normal competition setup you can't use the serial port. It only sends out basic status information about the cRIO. You would have to change some default stuff, which I think would be easier said than done, and then revert for competitions. Plus, the recent cRIOs don't even have a serial port, right? (I might be wrong on that).
All false.

The serial port is a valid port (on both cRio's), there were no 2011 rules prohibiting its use.

It's available in code as a standard VISA serial port with WPI wrapper in LabVIEW. I would assume it's available in other languages similarly.

You would have to flip the Console Out DIP switch, but that's not very hard to do.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #11   Spotlight this post!  
Unread 10-12-2011, 22:04
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Ardruino and cRio

Huh, wow, thanks then for correcting me. Maybe it wasn't available in previous years, maybe 2009 when the system first came out or something.

This might be helpful, I don't know if you can run these VIs on the cRIO.
http://web.me.com/iklln6/automation/LabVIEW.html
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
  #12   Spotlight this post!  
Unread 10-12-2011, 23:10
ajlapp ajlapp is offline
Registered User
AKA: Anthony Lapp
None #0118 (Team RUSH and Robonauts)
 
Join Date: Sep 2001
Rookie Year: 1996
Location: Ortonville, MI
Posts: 648
ajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond repute
Re: Ardruino and cRio

We used an Arduino in 2011 to read encoders and the transmit distance travelled during auton.

The Arduino directly read the encoders and talked to the cRIO via serial.

This worked great. We'll be doing another Aruino project in 2012.
__________________
Anthony Lapp
FIRST Engineering Mentor
Owner/Operator 221 Robotic Systems
221 Robotics Systems - Quality Hardware, Made in the USA
RobotOpen
anthony@221robotics.com
Twitter us: @221RobotSystems
Team 1 --> 94 --> 68 --> 221 --> 857 --> 27 --> 118
Design Engineer/Fabricator and 17 year vet
Team Rush (FRC27) and Robonauts (FRC118)
  #13   Spotlight this post!  
Unread 11-12-2011, 00:21
Mk.32's Avatar
Mk.32 Mk.32 is offline
Registered User
AKA: Mark
FRC #2485 (W.A.R. Lords)
Team Role: Engineer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: San Diego
Posts: 770
Mk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud ofMk.32 has much to be proud of
Re: Ardruino and cRio

Our team was recently trying to get the Arduino to work on the cRIO.
Is there anything special we need to do?
I just read above we needed to flip the DIP switch?

Our programmer (JAVA) was working on this and was getting unexpected errors.
__________________
Engineering mentor: Team 2485: WARLords 2013-

Team President: Team 3647 2010-2013
  #14   Spotlight this post!  
Unread 11-12-2011, 02:08
tap13 tap13 is offline
Registered User
AKA: PatrickA
FRC #3481 (Bronc Botz)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2010
Location: San Antonio, Texas
Posts: 14
tap13 is an unknown quantity at this point
Re: Ardruino and cRio

just to be sure... so is there any limit/prohibitions on what we can use on the arduino?
Spoiler for :
Thanks all for the replies
  #15   Spotlight this post!  
Unread 11-12-2011, 03:39
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Ardruino and cRio

Quote:
Originally Posted by tap13 View Post
just to be sure... so is there any limit/prohibitions on what we can use on the arduino?
Spoiler for :
Thanks all for the replies
Can you be more specific? Do you mean, what you can add on to the board for more features like other wireless, or what you can attach and control/sense?
__________________
Attending: MN Duluth Regional
Closed Thread


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 00:36.

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