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