|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Mutiplexing additional pushbuttons
We've run out of input bits on the OI.
Anyone have a GOOD trick for multiplexing switch inputs so we can get a FEW more? I need the equivalent of either a bunch of pushbuttons, a "radio push switch" (one of N buttons lock down), or something otherwise akin to a Single-Pole N-Throw rotary switch to select at most ONE (or NONE) of something. I'm not sure if a diode matrix is legal ("custom circuit running an input"), and I'm not sure if we WANT to have to "address" them with LED outputs even if it WERE. I'm also not sure if using an R2R resistor ladder (or shorting out individual weighted resistors) to encode them in binary as a "pot input" would be clean enough from a debouncing perspective (we may get wrong values on some loops, but we COULD filter them). So... What have YOU guys done in the past whenever you've run out of switch inputs to get a FEW more??? (Besides "change the design" ) Please be specific with values if you have something like a resistor trick.- Keith Last edited by kmcclary : 04-02-2003 at 12:11. |
|
#2
|
||||||
|
||||||
|
Two years ago, we ran into the same thing. In order to get one more switch, I wired up an LED and a switch in series to an analog input. When "on", it read one value and when off read 127. I'm not sure how legal/smart this was, but it worked two years ago.
--Rob |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Additional hardware list | archiver | 2000 | 5 | 23-06-2002 22:54 |
| Additional Dashboard Data | Curtis Williams | Programming | 3 | 08-02-2002 15:25 |
| additional materials: mylar? | Frank Toussaint | Off-Season Events | 3 | 02-11-2001 16:06 |
| additional materials | Penn Robotics | Off-Season Events | 1 | 01-11-2001 23:25 |
| Are additional pulleys "cable fasteners"? | kmcclary | Off-Season Events | 6 | 26-10-2001 01:56 |