|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Potentiometer 5 or 6 detents
Edit: Kris beat me to it by a few minutes. And with impressive knowledge of the Digikey catalog!
One way to get approximately what you want is to wire up a SP6T switch as follows: +5V connected to a resistor R, then to the common lead. Signal wire should be joined to common lead. Lead 1: straight to GND Lead 2: thru resistor value R/4 to GND Lead 3: thru resistor value 2R/3 to GND Lead 4: thru resistor value 3R/2 to GND Lead 5: thru resistor value 4R to GND Lead 6: thru BIG resistor to GND This sets up a 6-setting voltage divider which will give the following voltages across the common resistors: Position 1: ~0V Position 2: 1V Position 3: 2V Position 4: 3V Position 5: 4V Position 6: 5V You can set up ranges in the program to check for this. These resistor ratios can all be approximate, but that gives you the widest separation possible for the analog input, reducing the risk of mistaking one mode from another. Of course, binary inputs are simpler if you have enough pins. Last edited by ZZII 527 : 11-04-2006 at 20:49. |
|
#2
|
||||||
|
||||||
|
Re: Potentiometer 5 or 6 detents
See Kris Verdeyen and eugenebrooks posts in this thread for a solution on the OI that doesn't require any additional hardware. http://www.chiefdelphi.com/forums/sh...ad.php?t=44662
Last edited by Joe Ross : 11-04-2006 at 20:48. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best source for a potentiometer? | railerobotics | Electrical | 20 | 28-11-2007 22:24 |
| Confused about potentiometer values | Kirk | Technical Discussion | 4 | 11-03-2006 16:29 |
| Potentiometer help | Unholy | Programming | 4 | 07-02-2006 17:48 |
| Potentiometer Help! | thoughtful | Programming | 4 | 18-02-2005 08:21 |
| Potentiometer | Joshua May | Technical Discussion | 8 | 22-05-2004 19:51 |