Re: Getting 0-9 digits by using potentiometer



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

.



Relevant Pages

  • Getting 0-9 digits by using potentiometer
    ... switches or BCD switches, however one should use so many pins of pic ... will choose a number by turning the one-turn potentiometer; ... ohm - 3 ohm -....10k ohm] ...
    (sci.electronics.misc)
  • Re: calculation of the limit current through a potentiometer
    ... I use a 0.25 W potentiometer of 1k Ohm and I set its ... resistance to 500 Ohm. ... As far as power goes, the maximum current will limit the total power, ... where wiper temperature becomes a determining factor). ...
    (sci.electronics.basics)
  • Re: dimmer switch
    ... I think it is the potentiometer that's giving problems, but it has no markings so I can't understand what type it is or what's the resistance. ... If someone has more experience with these things, please, let me know approximately what values are used for the potentiometer in such kind of switches. ...
    (sci.electronics.basics)
  • Re: calculation of the limit current through a potentiometer
    ... I'd like to know if the maximum power dissipation is linear with the ... I use a 0.25 W potentiometer of 1k Ohm and I set its ... resistance to 500 Ohm. ...
    (sci.electronics.basics)
  • Re: calculation of the limit current through a potentiometer
    ... I'd like to know if the maximum power dissipation is linear with the ... I use a 0.25 W potentiometer of 1k Ohm and I set its ... resistance to 500 Ohm. ... But since that half is operating in a cooler environment that when the whole element is producing heat, it can actually handle a little more than half the power. ...
    (sci.electronics.basics)