> Each device has three pins. On the pot, 1 and 3 are the sides of the > resistor, and 2 is the wiper. On the encoder, pins 1 and two are the > outputs, and 2 is the common. What I'm thinking about doing is > connecting all three to the PIC, with pin 2 being an analog input > capable pin. For pot use, I'd set pin 1 and 3 as outputs, and set 1 > high, and pin 2 as an analog input. For encoder use, I'd set pin 2 as > an output and set it low. Then set pins 1 and 3 as inputs with weak > pull ups and read away. > I think that should work fine! Another option that I've seen in some products but never used is a "quadrature pot." It's two pots on one shaft with the wipers in quadrature. You drive a couple analog inputs with it. It gives the "rotate forever" feature of an encoder but without steps. Harold --=20 FCC Rules Updated Daily at http://www.hallikainen.com Not sent from an iPhone. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .