Go to Post [Pi day] is an irrational holiday - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-04-2006, 20:37
ZZII 527's Avatar
ZZII 527 ZZII 527 is offline
"Scale Electric Vehicle"
AKA: Shane Colton
FRC #0097
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Cambridge, MA
Posts: 366
ZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond repute
Send a message via AIM to ZZII 527
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.
__________________
MIT Mechanical Engineering
>> College Mentor, Team 97: Cambridge Rindge and Latin School with The Edgerton Center, MIT Mechanical Engineering, Bluefin Robotics, and Draper Laboratory
>> Alumnus, Team 527: Plainedge HS

Last edited by ZZII 527 : 11-04-2006 at 20:49.
  #2   Spotlight this post!  
Unread 11-04-2006, 20:44
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,580
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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.
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 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


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

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