Examine the mouse board to find the common pin then use 100k pull-ups (if common was GND) or pull-downs (if the common was +Vcc). Also route each output to a PIC input pin. Peter On Wed, 14 Aug 2002, Kevin A. Benedict wrote: >Hi, > >I am trying to hack a mouse encoder to use as a shaft >encoder for a mobile robot. I removed the slotted wheel, >IR LED, and what I assume is a photo-transistor from a mouse. >The Phototransistor is housed in black plastic and >has three leads. I was wondering if anyone could give me >a circuit so I can interface the (photo-transistor ?) to >a PIC. I want to power the IR Led and then use the int on >change function of portb to record the pulses from the >photo-transistor. ( It mat not be a photo-transistor, >but that's my best guess) > >I have spent several hours searching the net for a circuit >on how to do this, but no luck. >Any help would be appreciated. > >Thanks, >Kevin > >-- >http://www.piclist.com hint: To leave the PICList >mailto:piclist-unsubscribe-request@mitvma.mit.edu > > > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu