Go to Post Just be yourself, be honest, and most importantly, be present. The best role models are the ones you can relate to. - Jessica Boucher [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 23-02-2006, 20:23
misterfoo misterfoo is offline
Controls Mentor
AKA: Ken Leigh
#0811 (Cardinals)
Team Role: Mentor
 
Join Date: Jan 2003
Location: Bishop Guertin HS, Nashua NH
Posts: 14
misterfoo is on a distinguished road
Good Switch For Autonomous Mode Select

just wanted to share this info. On our robot for the past few years we have been using a SCSI drive select switch. It digitally selects the decimal values from 0-9, giving us 10 modes in autonomous.

They are inexpensive, and are good for teaching binary math as they wire into 4 digital I/O ports and then do bit math to get the decimal modes.

Here are some examples...

goto here

http://www.scsisource.com/scsi_enclosure_cables/

look for

SCSI ID Selector Switch (0-15) w/selector cable
$6.00

this one would do even more modes than 10 as I state above.

wiring instructions are here...

http://www.wetex.com/downloads/SCSI_ID.PDF

good luck...


Ken Leigh
Team 811 controls Mentor
  #2   Spotlight this post!  
Unread 23-02-2006, 20:57
pi_guy578 pi_guy578 is offline
Programmer/Electrician
AKA: Jake
FRC #0578 (Blue Lightning)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Fairport
Posts: 48
pi_guy578 has a spectacular aura aboutpi_guy578 has a spectacular aura about
Send a message via AIM to pi_guy578
Re: Good Switch For Autonomous Mode Select

Cool idea, I actually have some old SCSI equipment with such selectors on board that I can steal. It's a lot easier than teaching the driver team binary!

Jake
  #3   Spotlight this post!  
Unread 23-02-2006, 22:36
Kris Verdeyen's Avatar
Kris Verdeyen Kris Verdeyen is offline
LSR Emcee/Alamo Game Announcer
FRC #0118 (Robonauts)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Houston, TX
Posts: 699
Kris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond repute
Re: Good Switch For Autonomous Mode Select

We've used the joystick trigger to cycle through a number shown on the user byte on the OI. It's worked well enough, and the best part is that there's no extra hardware.
__________________
...Only a few people are awake and they live in a state of constant total amazement. -JP Shanley, Joe vs. the Volcano
  #4   Spotlight this post!  
Unread 13-03-2006, 22:47
ECarlson's Avatar
ECarlson ECarlson is offline
Registered User
AKA: Eric Carlson
#0116 (Epsilon Delta)
Team Role: Engineer
 
Join Date: Feb 2002
Location: Herndon, VA
Posts: 140
ECarlson has a spectacular aura aboutECarlson has a spectacular aura about
Re: Good Switch For Autonomous Mode Select

We used similar switches. We got ours from Digikey. They are available in many varieties, from push-button to thumb-wheel, and sizes.

Unfortunately, we didn't mount them in the safest place, and they got damaged at out last regional, so we had to order more, and have to install them (in a safer location) at our next regional.
__________________
- Eric
www.InvisibleRobot.com Updated: August 24, 2008
Over 28,000 FRC & FTC Photos , Team 116 OI adapter board info
  #5   Spotlight this post!  
Unread 13-03-2006, 22:59
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Good Switch For Autonomous Mode Select

Our autonomous mode was programmed using a self servicing command structure. We wanted to have full access to the field at the click of a button, but did not want go through the pain that is trigonometry on the PIC processor. We decided we wanted to use a pocket PC based map of the field to create way point data. Also, we wanted to get rid of most of the processing overhead on the handheld's processor, leaving us free to run a variety of sensors and a robot waypoint navigation system without the trouble of a co-processor.

To do this, we created a map of the field in Visual Basic with the coordinate system being the amount of encoder ticks it would take our robot to traverse from one side to the other. We are able to draw waypoints, and insert actions at each waypoint (shift gears, auto track corner goal, spit balls, suck in balls, change speed, change orientation.. etc) The VB program then made a list of commands, which were stored as base 255 numbers in the eeprom on the RC. Our RC program was made to accept incoming serial data and throw it in the eeprom.

We are able to select which autonomous mode we would like to use from a serial LCD on the robot, as well as access full diagnostics, such as feedback on all inputs and outputs. This has helped us tremendously and makes preparing the robot for matches ten times easier.
  #6   Spotlight this post!  
Unread 13-03-2006, 23:15
ECarlson's Avatar
ECarlson ECarlson is offline
Registered User
AKA: Eric Carlson
#0116 (Epsilon Delta)
Team Role: Engineer
 
Join Date: Feb 2002
Location: Herndon, VA
Posts: 140
ECarlson has a spectacular aura aboutECarlson has a spectacular aura about
Re: Good Switch For Autonomous Mode Select

Quote:
Originally Posted by Tom Bottiglieri
Our autonomous mode was programmed using ...
Very impressive! Our programmers were working on some fancy stuff, but we never got to finish testing and debugging most of it, and we had to remove a lot of stuff, including the camera, due to weight issues. Though, what we have left works well, and we might be putting some of the extra stuff back on at the next regional.
__________________
- Eric
www.InvisibleRobot.com Updated: August 24, 2008
Over 28,000 FRC & FTC Photos , Team 116 OI adapter board info
  #7   Spotlight this post!  
Unread 14-03-2006, 00:53
blue_crew blue_crew is offline
MADTOWN ROBOTICS!!
AKA: Daniel Sheeter
FRC #1323 (Madtown Robotics)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Madera, California
Posts: 79
blue_crew is on a distinguished road
Send a message via AIM to blue_crew Send a message via MSN to blue_crew Send a message via Yahoo to blue_crew
Re: Good Switch For Autonomous Mode Select

Can anyone elaborate on using the joystick trigger to cycle through the user bytes on the OI to change the auton. mode? Thanks.
__________________
"I love deadlines. I like the whooshing sound they make as they fly by." - Douglas Adams
  #8   Spotlight this post!  
Unread 14-03-2006, 01:42
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Good Switch For Autonomous Mode Select

Quote:
Originally Posted by blue_crew
Can anyone elaborate on using the joystick trigger to cycle through the user bytes on the OI to change the auton. mode? Thanks.
Create a external unsigned char variable that is accessisble to
both user_routines and user_routines_fast. Use this variable
to "count" the number of trigger clicks while the robot is disabled,
during the setup by the students, and display this on the user mode
display. Refer to the section in the default code that would otherwise
display the backup battery voltage. With the selected number,
0 through 255 (or some smaller range) stored in the external variable,
you can then use it to select the autonomous mode when this code
is entered.

This is not a bad idea, but we have other uses for this display...
  #9   Spotlight this post!  
Unread 15-03-2006, 12:25
blue_crew blue_crew is offline
MADTOWN ROBOTICS!!
AKA: Daniel Sheeter
FRC #1323 (Madtown Robotics)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Madera, California
Posts: 79
blue_crew is on a distinguished road
Send a message via AIM to blue_crew Send a message via MSN to blue_crew Send a message via Yahoo to blue_crew
Re: Good Switch For Autonomous Mode Select

How do we display custom variables on the OI 4 digit display?
Also, where and how can you declare a global variable that is accessible to user_routines.c and user_routines_fast.c?
__________________
"I love deadlines. I like the whooshing sound they make as they fly by." - Douglas Adams

Last edited by blue_crew : 15-03-2006 at 12:59.
  #10   Spotlight this post!  
Unread 15-03-2006, 13:05
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Good Switch For Autonomous Mode Select

Quote:
Originally Posted by blue_crew
How do we display custom variables on the OI 4 digit display?
To display User_Byte1 (a variable in the code) press the OI select button a couple times till the display reads "uXXX", where XXX are the 3 digits of User_Byte1 (it should first flash u012 because that is your firmware version). You can change User_Byte1 in code using the joystick as Kris noted. User_Byte1 is global and defined in ifi_aliases as txdata.user_byte1.allbits. It is normally set to the Breaker that tripped but you can change that. The other 5 User_Bytes can be displayed on the dashboard.

I personally use OI rotary switches since I always have plenty of OI analog inputs left.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"

Last edited by The Lucas : 15-03-2006 at 13:10.
  #11   Spotlight this post!  
Unread 16-03-2006, 21:37
coldabert's Avatar
coldabert coldabert is offline
The Dude
FRC #0888 (Robotiators)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: MD
Posts: 83
coldabert is a glorious beacon of lightcoldabert is a glorious beacon of lightcoldabert is a glorious beacon of lightcoldabert is a glorious beacon of lightcoldabert is a glorious beacon of light
Send a message via AIM to coldabert
Re: Good Switch For Autonomous Mode Select

Another idea that we are using this year is a 12 pole DIP switch that easily allows us to use thousands of different autonomous codes. Currently, we're only using a few hundred, and I wrote them all in an hour, but I'll leave it up to the coders to figure that one out.
  #12   Spotlight this post!  
Unread 19-03-2006, 16:37
Mike Hendricks Mike Hendricks is offline
misses his IFI control system
FRC #0973 (GRR)
Team Role: Mentor
 
Join Date: Oct 2003
Rookie Year: 2004
Location: Arroyo Grande, CA
Posts: 237
Mike Hendricks is a name known to allMike Hendricks is a name known to allMike Hendricks is a name known to allMike Hendricks is a name known to allMike Hendricks is a name known to allMike Hendricks is a name known to all
Re: Good Switch For Autonomous Mode Select

We put one of those SCSI switches on the robot last year, but the highly efficient programming team only ended up making 1 auton program. Although we never needed to change the number, we did have mechanical problems with the switch after the competition was done. I would suggest bringing a spare, or a backup plan of some sort.

This year, for auton selection and the user byte display on the OI, we're using one of those 12 position (I think) rotary switches with the resistor chain on it .. and plugged into an analog input on the RC. Not sure how it plugs into the OI, I'm guessing on a joystick axis that isn't used.
__________________
2004-2010: Founding Member, Technical Mentor - Team 1388, Eagle Robotics
2011: ???
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
LEDs in switch box. ZZII 527 Electrical 5 06-03-2004 19:39
Need help with 255 Variable Joseph F Programming 18 26-02-2002 14:49


All times are GMT -5. The time now is 23:08.

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