Hello everyone, First, I would like to thank all who have replied to my posts concerning this thread and the one about the MS mouse schematics. I have been trying to hack a mouse to use as wheel encoders on a hobby robot. The voltage levels from the detectors in the mouse (0.35 to 1.00 vdc) had me very confused. I have just found out that the MS mouse is pulsing the emitters at 38 or 40 KHz (not sure which 'cause I do not have a scope handy at the moment). I connect the detector output to the timer1 input configured for external clock on a 18F4320. Connected portB to led's and watched the count as I rotate the toothed wheel. If I stop the wheel so that IR passes to the detector, BOOM, it it increments timer1 with no wheel rotation. Block the detector and the increment stops! I'll have to remove the Zilog chip from the mouse and connect the IR emitters for continuous operation. I was actually reading a high pulse rate with a meter set to DC volts and was reading idle current/voltage and then approx. 40KHz pulses which averaged out to be about 1 VDC! Learned a valuable lesson from this one. Again, thanks for all the help folks. Regards, Stephen D. Barnes -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads