Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Ardruino and cRio (http://www.chiefdelphi.com/forums/showthread.php?t=98744)

tap13 10-12-2011 15:59

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!

404'd 10-12-2011 16:55

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.

tap13 10-12-2011 16:58

Re: Ardruino and cRio
 
Quote:

Originally Posted by 404'd (Post 1090008)
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. :D

EricH 10-12-2011 17:12

Re: Ardruino and cRio
 
Quote:

Originally Posted by 404'd (Post 1090008)
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.

tap13 10-12-2011 17:17

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

RoboMaster 10-12-2011 17:25

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.

EricH 10-12-2011 17:28

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.

apalrd 10-12-2011 17:52

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.

RoboMaster 10-12-2011 21:52

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).

apalrd 10-12-2011 21:59

Re: Ardruino and cRio
 
Quote:

Originally Posted by RoboMaster (Post 1090111)
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.

RoboMaster 10-12-2011 22:04

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

ajlapp 10-12-2011 23:10

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.

Mk.32 11-12-2011 00:21

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.

tap13 11-12-2011 02:08

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 :D

theprgramerdude 11-12-2011 03:39

Re: Ardruino and cRio
 
Quote:

Originally Posted by tap13 (Post 1090135)
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 :D

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?


All times are GMT -5. The time now is 22:04.

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