piclist 1997\08\20\143759a >
Thread: Thumb Wheels Decoding
www.piclist.com/techref/index.htm?key=thumb+wheels+decoding
picon face BY : John Payson email (remove spam text)



>      If you are using a PIC with an ADC.  use binary weighted resistors eg:
>      on each contact (12 resistors) for three BCD thumbwheels, and use
>      three channels of the ADC.

Unfortunately, using four switched resistors in parallel will give you
resistance values that are clumped rather annoyingly at the low side.  A
somewhat better arrangement may be to use resistors wired thus [assume the
switch terminals are ABCD and K, and the settable resistance should be
between nodes X and Y]

X to K via 1K resistor
X to B via 1K resistor
X to A via 2.2K resistor
Y to K via 830ohm resistor
Y to C via 830ohm resistor
Y to D via wire

The resistance from X to Y will vary from 686 ohms (A and D shorted to K)
to 1.83K (all contact open); the ten thumbwheel positions will all yield
resistances that differ by at least 80 ohms, though they will not be in
any sort of useful sequence.

These resistances should be distinct enough to be easily measurable using
a PicBasic-style RC measurement.  Three port pins, fifteen resistors, and
three caps.  If you want to allow software calibration, that'll take another
port pin and three more resistors.
<199708201821.NAA06591@Venus.mcs.net>

In reply to: <0003722A.3308@NSDGATE3.NSD.FMC.COM> from "GERALD LEWIS" at Aug 20, 97 09:24:15 am
See also: www.piclist.com/techref/index.htm?key=thumb+wheels+decoding
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Thumb Wheels Decoding

month overview.

new search...