Go to Post The first law of programming is that there are always ways of doing things quicker and in less space than you already are. - jgannon [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 07-20-2017, 11:45 PM
liorb liorb is offline
Registered User
FRC #2212
 
Join Date: Oct 2016
Location: Israel
Posts: 2
liorb is an unknown quantity at this point
Using Arduino

Hi, I am the head of electronics in my team.
We wanted to be be able to connect the sensors to something that is not the roboRIO, in order to be able to test sensors outside the robot.
We found that teams use the Arduino, and we would like if someone could answer these:

1. Is it legal? I could not find somewhere where First states that it is legal.

2.What are the uses we can use the Arduino for?

3. How to connect the Arduino to the robot control system?
Reply With Quote
  #2   Spotlight this post!  
Unread 07-20-2017, 11:55 PM
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: 21,907
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: Using Arduino

Quote:
Originally Posted by liorb View Post
Hi, I am the head of electronics in my team.
We wanted to be be able to connect the sensors to something that is not the roboRIO, in order to be able to test sensors outside the robot.
We found that teams use the Arduino, and we would like if someone could answer these:

1. Is it legal? I could not find somewhere where First states that it is legal.
You want the blue box in R61--an Arduino is a coprocessor in this case. In general in FRC, if something is not listed as illegal, it is legal. Note that all robot rules still apply.

Quote:
2.What are the uses we can use the Arduino for?
On the robot, anything that you don't want the RoboRIO doing, except for controlling motors/solenoids/servos. So, it could process all the sensor inputs and tell the RoboRIO what the current status of the robot is so the RoboRIO can tell the motors to run. Or it could do vision tracking.

Also, an Arduino isn't the only legal coprocessor.

Oh, and for your third question: Ethernet and USB are good options.
__________________
Past teams:
2003-2007: FRC0330 BeachBots; 2008: FRC1135 Shmoebotics; 2012: FRC4046 Schroedinger's Dragons

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



Reply With Quote
  #3   Spotlight this post!  
Unread 07-21-2017, 12:55 AM
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,973
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: Using Arduino

I note that your planned use is "to test sensors outside the robot".

This is a great use for the Arduino, and since you're doing it in the off season, or off the robot, then FRC legality really doesn't matter that much. The FRC rules apply for robots being used in competition. The laws of physics, of course, still apply. So don't hook 3.3 volt sensors up to 5v power supplies or anything like that, but you won't be breaking any FRC rules with your experiments this summer.

The Arduino can talk to almost any sensor that you're likely to want to use it with. The easiest ones are the ones that return either a simple digital signal (like a switch) or an analog signal (like a potentiometer, or Sharp IR rangefinder.) Slightly more complex sensors will return either a pulsed signal (like an encoder) or have a specific communication protocol (like some gyros, accelerometers, an ultrasonic rangefinder (like the HC-sro4) or a CMU camera).

The nice thing about the Arduino is that you can use it to print a display of your sensor readings direct to your computer screen so you can see how the sensor is responding. Your code will be a little different when you use the sensor with the RoboRio, but the logic will be the same, and you'll know how the sensor works.

For this use I wouldn't connect the Arduino to the RoboRio, but rather learn how to use and test the sensors using the Arduino, and then connect the sensors directly to the roboRio for competition use. While it makes sense to use a co-processor to off load some computationally intensive tasks, such as vision processing, from the RoboRio, the RoboRio should have more than enough processing power to handle every sensor that you can connect to it.

Jason

Last edited by dtengineering : 07-21-2017 at 12:58 AM.
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 04:22 PM.

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


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