Re: Getting 0-9 digits by using potentiometer
- From: John <look@xxxxxxx>
- Date: Tue, 21 Nov 2006 11:54:59 -0500
On 20 Nov 2006 22:16:43 -0800, "nospam" <debugginglife@xxxxxxxxx>
wrote:
hi,
i would like to use analog port of 16f877 to get digits chosen by a
user using potentiometer. First of all i wonder whether such a one-turn
potentiometers are used for that purpose. Generally i have seen dip
switches or BCD switches, however one should use so many pins of pic
for getting a single digit. To make the matter more clear, the user
will choose a number by turning the one-turn potentiometer; lets say it
is "6" and 2.2 V [10111011] obtained by the analog port of the pic. If
that binary that is in the range of "6" a variable in the pic will be
set to 6 [00000110].
It seems pretty easy at first look, but i do not know the reliability
of the system. Does anyone help me in understanding possible failure of
that application ? and have they ever seen a smd one-turn potentiometer
with 10-step resistor [ i mean when you turn it becomes 0 - 1k ohm - 2
ohm - 3 ohm -....10k ohm]
A potentiometer is an analog device, with either a linear or
logrithmic resistance change as the wiper is moved.
If you can find some type of detent device that provides specific
stops during the rotation, you might achieve the stepped resistance
change you seek. Otherwise, you will have to do some interpreting,
such as the range 4.6K to 5.5K is seen as "5", etc.
You could use a dip or bcd switch to switch a resistor network such
that the values have a "step" relationship.
John
.
- References:
- Getting 0-9 digits by using potentiometer
- From: nospam
- Getting 0-9 digits by using potentiometer
- Prev by Date: Re: Enamalled copper wire
- Next by Date: Re: Getting 0-9 digits by using potentiometer
- Previous by thread: Getting 0-9 digits by using potentiometer
- Next by thread: Re: Getting 0-9 digits by using potentiometer
- Index(es):
Relevant Pages
|