Go to Post Teams rarely win FIRST events because they can complete actions that nobody else can; they win because they do things faster than others. - Madison [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 03-02-2007, 01:51
Ethulin Ethulin is offline
Too many hats to count
AKA: Erik Thulin
FRC #0492 (Titan Robotics)
Team Role: Leadership
 
Join Date: Mar 2005
Rookie Year: 2003
Location: Seattle
Posts: 245
Ethulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud of
Send a message via AIM to Ethulin
Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

Hello,

So I am working on a custom OI box, and sadly have about zilch experience.

I need to hook up a (1) potentiometer, (2) on-off switches, (1) 8-way switch to one of the joystick ports.

I have reviewed the OI reference guide:
http://www.ifirobotics.com/docs/oi-r...de-1-30-07.pdf

But the fact is I am still unsure how to hook these up.

So the switches are digital, the potentiometer is analog. And that is about where I loose what to do.

Help?
__________________
2003 Pacific Northwest Regional Website Award || 2003 Pacific Northwest Regional Finalist || 2003 Pacific Northwest Regional Engineering Inspiration Award || 2004 Pacific Northwest Website Award || 2004 Pacific Northwest Regional Champions (#1 seed) || 2004 Galileo Semi-Finalist || 2005 Pacific Northwest Regional General Motors Industiral Design Award || 2005 Pacific Northwest Regional Champions (#1 seed) || 2005 Galileo Finalist || 2006 Pacific Northwest Regional Chairman's
Stamp Scouting || Titan Robotics
  #2   Spotlight this post!  
Unread 03-02-2007, 11:29
AJ R's Avatar
AJ R AJ R is offline
RoboGeek
FRC #1714 (More Robotics)
Team Role: College Student
 
Join Date: Nov 2006
Rookie Year: 2001
Location: Milwaukee, WI
Posts: 108
AJ R is a splendid one to beholdAJ R is a splendid one to beholdAJ R is a splendid one to beholdAJ R is a splendid one to beholdAJ R is a splendid one to beholdAJ R is a splendid one to beholdAJ R is a splendid one to behold
Re: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

The Blue Alliance has many great tutorials on line and one of them is a how to on custom controls.
__________________
AJ



If you loose the match and the robot doesn't come back broken, you didn't drive hard enough.
  #3   Spotlight this post!  
Unread 03-02-2007, 14:01
Ethulin Ethulin is offline
Too many hats to count
AKA: Erik Thulin
FRC #0492 (Titan Robotics)
Team Role: Leadership
 
Join Date: Mar 2005
Rookie Year: 2003
Location: Seattle
Posts: 245
Ethulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud of
Send a message via AIM to Ethulin
Re: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

Quote:
Originally Posted by AJ R View Post
The Blue Alliance has many great tutorials on line and one of them is a how to on custom controls.
That was quite helpful, thanks!

I understand just about everything concerning how to wire it, except for this; we need to hook up an 8 way switch, and there is, quite obviously, not enough digital switch inputs.

Some one told me that you can encode 16 positions into 4 digital inputs (binary) using routines or something like that, but I have no idea what they are speaking about.

Can anyone help me out in that regard?
__________________
2003 Pacific Northwest Regional Website Award || 2003 Pacific Northwest Regional Finalist || 2003 Pacific Northwest Regional Engineering Inspiration Award || 2004 Pacific Northwest Website Award || 2004 Pacific Northwest Regional Champions (#1 seed) || 2004 Galileo Semi-Finalist || 2005 Pacific Northwest Regional General Motors Industiral Design Award || 2005 Pacific Northwest Regional Champions (#1 seed) || 2005 Galileo Finalist || 2006 Pacific Northwest Regional Chairman's
Stamp Scouting || Titan Robotics
  #4   Spotlight this post!  
Unread 03-02-2007, 14:15
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Re: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

http://www.chiefdelphi.com/forums/sh...oto=nextnewest

Try that topic specifically the post by Alan. . . 16 positions is a lot . . That would be a lot of resisters. . .
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
  #5   Spotlight this post!  
Unread 03-02-2007, 14:18
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

Eric,

Connect your switch via resistors to an analog input to get 16 distinct levels on that input.

This topic has been discussed many times in the past on these fori. If you do a search on the words switch, resistors and analog you will find a number of threads on this topic.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #6   Spotlight this post!  
Unread 03-02-2007, 15:04
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: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

If you wanted really simple wiring, Joystick ports 2 & 4 each give you access to 8 digital inputs and 4 analog inputs. Using either one of those ports, you could use 7 of the digital inputs for the 8-position switch (one position would have nothing connected, and the other 7 positions would activate a different digital input), one digital for one of the on/off switches, one analog for the other on/off switch, and another analog for the potentiometer.

It would be really easy to wire with one of my wiring boards (See the Team 116 OI Adapter board thread and Web Page), or just wire it directly to a 15-pin cable.

If you want to conserve digital inputs, you could use an 8-position octal (3-bit binary) switch, and only use 3 digital inputs for the 8 position switch. You could also get eight 10.K Ohm resistors, and then use one analog input for the 8 position switch, where each position would add another 10.K ohms to the series resistance value, and the programmers would convert the 8 resulting analog ranges into 8 unique settings.
__________________
- Eric
www.InvisibleRobot.com Updated: August 24, 2008
Over 28,000 FRC & FTC Photos , Team 116 OI adapter board info

Last edited by ECarlson : 03-02-2007 at 16:19.
  #7   Spotlight this post!  
Unread 03-02-2007, 17:27
Ethulin Ethulin is offline
Too many hats to count
AKA: Erik Thulin
FRC #0492 (Titan Robotics)
Team Role: Leadership
 
Join Date: Mar 2005
Rookie Year: 2003
Location: Seattle
Posts: 245
Ethulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud of
Send a message via AIM to Ethulin
Re: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

Quote:
Originally Posted by Gamer930 View Post
http://www.chiefdelphi.com/forums/sh...oto=nextnewest

Try that topic specifically the post by Alan. . . 16 positions is a lot . . That would be a lot of resisters. . .
Ok, so I see this:
Code:
pin 1 ----+---- switch 1 ----+---- /\/\/\/ ----+---- /\/\/\/ ---- pin 11
          |                  |       20 k      |       33 k
          +---- /\/\/\/ -----+---- switch 2 ---|
                 10 k
Looks perfectly feasible. So just to make sure I understand: I just keep increasing the resistance as I go from switch to switch? How high is the max?

Thanks,
- Erik
__________________
2003 Pacific Northwest Regional Website Award || 2003 Pacific Northwest Regional Finalist || 2003 Pacific Northwest Regional Engineering Inspiration Award || 2004 Pacific Northwest Website Award || 2004 Pacific Northwest Regional Champions (#1 seed) || 2004 Galileo Semi-Finalist || 2005 Pacific Northwest Regional General Motors Industiral Design Award || 2005 Pacific Northwest Regional Champions (#1 seed) || 2005 Galileo Finalist || 2006 Pacific Northwest Regional Chairman's
Stamp Scouting || Titan Robotics
  #8   Spotlight this post!  
Unread 03-02-2007, 20:22
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: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

Quote:
Originally Posted by Ethulin View Post
Looks perfectly feasible. So just to make sure I understand: I just keep increasing the resistance as I go from switch to switch? How high is the max?
Since you just need 8 distinct positions on one switch, you can put a 10.K resistor between each adjoining pin, then each position change will add (or subtract) 10.K ohms to (from) the value, and the value can essentially range from near 0 to 100.K ohms. The diagram you showed was for discrete switches, where any give switch could be on or off.
__________________
- Eric
www.InvisibleRobot.com Updated: August 24, 2008
Over 28,000 FRC & FTC Photos , Team 116 OI adapter board info
  #9   Spotlight this post!  
Unread 04-02-2007, 15:16
Brad Voracek Brad Voracek is offline
.999~=1
FRC #0399 (Eagle Robotics)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Lancaster, CA (SoCal)
Posts: 328
Brad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of light
Send a message via AIM to Brad Voracek
Re: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

Kind of off topic, but where did you find your 8-way switch? One of these could be useful for us, or even a 5 way switch. Thanks in advance.
__________________
.999~ (Repeating) is equal to one (1).


Team 399 - Eagle Robotics
  #10   Spotlight this post!  
Unread 04-02-2007, 16:59
Ethulin Ethulin is offline
Too many hats to count
AKA: Erik Thulin
FRC #0492 (Titan Robotics)
Team Role: Leadership
 
Join Date: Mar 2005
Rookie Year: 2003
Location: Seattle
Posts: 245
Ethulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud ofEthulin has much to be proud of
Send a message via AIM to Ethulin
Re: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

Quote:
Originally Posted by Brad Voracek View Post
Kind of off topic, but where did you find your 8-way switch? One of these could be useful for us, or even a 5 way switch. Thanks in advance.
We got ours from a local electronics supply store called "Vetco".
__________________
2003 Pacific Northwest Regional Website Award || 2003 Pacific Northwest Regional Finalist || 2003 Pacific Northwest Regional Engineering Inspiration Award || 2004 Pacific Northwest Website Award || 2004 Pacific Northwest Regional Champions (#1 seed) || 2004 Galileo Semi-Finalist || 2005 Pacific Northwest Regional General Motors Industiral Design Award || 2005 Pacific Northwest Regional Champions (#1 seed) || 2005 Galileo Finalist || 2006 Pacific Northwest Regional Chairman's
Stamp Scouting || Titan Robotics
  #11   Spotlight this post!  
Unread 04-02-2007, 17:13
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: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

Radio Shack sells a 6 position rotary switch for $3 in most stores and online: Model # 275-1386. If you want higher quality switches or a wider selection, Digikey, Jameco, and many other places sell them online.
__________________
- Eric
www.InvisibleRobot.com Updated: August 24, 2008
Over 28,000 FRC & FTC Photos , Team 116 OI adapter board info
  #12   Spotlight this post!  
Unread 04-02-2007, 21:17
EricRobodox's Avatar
EricRobodox EricRobodox is offline
Registered User
AKA: Eric... I think a lot
FRC #0599 (RoboDox)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Northridge, CA
Posts: 335
EricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant futureEricRobodox has a brilliant future
Send a message via AIM to EricRobodox
Re: Hooking up a (1) potentiometer, (2) on-off switches, (1) 8-way switch

Brad, look maybe at guitar part stores like SamAsh or Guitar Center, but Stratocasters (Fender), have 5 way switches. Look at the electronics at StewMac for a whole bunch of cool electronics, like a push-pull potentiometer and stuff like that (i have two rigged to the LP im building for coil tapping). anyways, brad, here is the link to the site, http://www.stewmac.com/, and if you want the switches section directly, http://www.stewmac.com/shop/Electron...and_knobs.html

hope this helps.

anyways, yeah, resistors should do the job as mentioned. Sorry to shift the subject a little.
__________________
My other car is being built to go to Mars in 2011.
Bet you aint got one of these...
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
Best way to collect balls [off the field]? DonRotolo Technical Discussion 46 14-01-2006 15:15
pic: Another one from way, WAY up CD47-Bot Extra Discussion 18 01-05-2004 02:31
OFF TOPIC: av switch matt111 Electrical 2 21-03-2004 15:34
3 way toggle switch programming LeadRiccardoT Programming 3 17-02-2003 02:02


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

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