Getting 0-9 digits by using potentiometer
- From: "nospam" <debugginglife@xxxxxxxxx>
- Date: 20 Nov 2006 22:16:43 -0800
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]
.
- Follow-Ups:
- Re: Getting 0-9 digits by using potentiometer
- From: JeffM
- Re: Getting 0-9 digits by using potentiometer
- From: John
- Re: Getting 0-9 digits by using potentiometer
- Prev by Date: Re: Enamalled copper wire
- Next by Date: Re: Enamalled copper wire
- Previous by thread: How many times can you change the pin on a electric grarage door?
- Next by thread: Re: Getting 0-9 digits by using potentiometer
- Index(es):
Relevant Pages
|
|