View Single Post
  #12   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.