![]() |
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!
|
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.
|
Re: Ardruino and cRio
Quote:
|
Re: Ardruino and cRio
Quote:
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. |
Re: Ardruino and cRio
Quote:
|
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. |
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.
|
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.
|
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).
|
Re: Ardruino and cRio
Quote:
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. |
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 |
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. |
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. |
Re: Ardruino and cRio
just to be sure... so is there any limit/prohibitions on what we can use on the arduino?
Spoiler for :
|
Re: Ardruino and cRio
Quote:
|
| All times are GMT -5. The time now is 17:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi