Go to Post "there are two types of underprivileged teams; the ones who whine about being underprivileged and the ones that work to become privileged". - Undertones [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2011, 11:15
nyindojin nyindojin is offline
Registered User
FRC #3059
 
Join Date: Jan 2009
Location: New York
Posts: 34
nyindojin is an unknown quantity at this point
Switches to control mulitiple programs

During last year's competitions, I was able to see that teams were able to create switches for their robot which told the robot what to do based on
their location on the field. Does anyone now how this is done or any clue about it or as to where to get information about such a thing? Is it electrical wiring or programming?

For example press a switch (or flip a switch) "A" (out of three) and the robot does only the things programmed for that switch.

Please note I posted the same question under programming. I do apologize if that was wrong.
  #2   Spotlight this post!  
Unread 06-02-2011, 11:28
mjbrauck mjbrauck is offline
Registered User
FRC #0768 (Techno Warriors )
 
Join Date: Jan 2006
Rookie Year: 2005
Location: maryland
Posts: 23
mjbrauck has a spectacular aura aboutmjbrauck has a spectacular aura about
Re: Switches to control mulitiple programs

My team has used a similar setup to select autonomous modes... you wire the switch in to the robot as you would a limit-switch or any other digital sensor. The code can be as simple as in if statement around the code you want to turn on/off that checks the appropriate digital I/O ports.

In the past we have used three switches treated as 3 binary bits to get 8 possible autonomous modes.
  #3   Spotlight this post!  
Unread 06-02-2011, 11:39
lscime lscime is offline
Registered User
AKA: Luke Scime
FRC #2614 (Mountaineer Area RoboticS (MARS))
Team Role: Alumni
 
Join Date: Jun 2008
Rookie Year: 2008
Location: Morgantown, WV
Posts: 73
lscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to behold
Re: Switches to control mulitiple programs

In the past our team has used dipswitches (they look like the bank of small switches found on the front of the cRIO) to set our autonomous modes, in '09 we had a full 32 modes programmed , but just a regular collection of switches would work too (it would just be bulkier). Basically you wire these switches into the digital ins on the side car. Then in the code I would suggest converting the collection on/off switch values into a binary number (LabVIEW even has a function for this already). Then assign each of your different autonomous modes a number (in the range that you switches can supply) and have your autonomous code read the dipswitch values before it starts. If you end up with a lot of auto modes make sure to give your drivers a "playbook ."

-Luke
  #4   Spotlight this post!  
Unread 06-02-2011, 11:55
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Switches to control mulitiple programs

You are able to read values from your driver controls while disabled.

While disabled, our joystick's buttons are used to set which autonomous mode we wish to run.

It's been a really simple and elegant way to get the job done without any additional hardware.

[It also allows us to "change our minds" if we see something right before a match starts]
__________________
In life, what you give, you keep. What you fail to give, you lose forever...

Last edited by Mr. Lim : 06-02-2011 at 12:08.
  #5   Spotlight this post!  
Unread 06-02-2011, 12:02
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,348
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Switches to control mulitiple programs

Last year we used a potentiometer with 10 detented positions on the robot. It used only one analog input. It gave us up to 10 possible autonomous modes. All you need to do is read it and then have the code select which auton. mode you want to perform.

We read the pot using voltage range windows to select, not just discrete values. This allowed for some error in the values to exist, and still select the right mode.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #6   Spotlight this post!  
Unread 06-02-2011, 12:54
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Switches to control mulitiple programs

We have used a Radio Shack modified six position switch for many years. It is a simple matter to remove a detent that allows you to select one of twelve auto mode program features. You simply wire 9.1k resistors in a series string across each tab of the switch, attach 5 volts and common, and wire the wiper of the switch to an analog input. You then have twelve steps in voltage from 0v to 5v. Search and ye shall find discussion on this here on CD.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #7   Spotlight this post!  
Unread 06-02-2011, 15:56
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Switches to control mulitiple programs

This year, we are using a BCD switch I found in my basement. I just connect it to 4 digital input channels for one digit.
Attached Thumbnails
Click image for larger version

Name:	IMG_3233.JPG
Views:	24
Size:	70.9 KB
ID:	10008  
__________________

Last edited by mikets : 06-02-2011 at 16:02.
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 02:58.

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