I recently discovered the beauty of an optical mouse as an incremental encoder.
An optical mouse typically contains one component in which the camera is connected to an image processor connected to a USB interface. Resolution depends on the resolution of the camera. On the Internet it is easy to find data tables of this type of component, which also describe how to read / write with them.
My problem, which I must first solve, is to make sure that the laptop-encoder does not see the laptop / computer as a pointing device without disconnecting the USB port to which it is connected. I need to use 2 encoders, so this means that on my PC I need to use 3 USB ports (running Windows XP), one for the mouse as a pointing device and two for the mouse as an encoder.
The second question is how to read / write instructions / data from / to the mouse encoder via the USB port? Can someone send me a link to a tutorial / example in C ++?
Thank you very much in advance,
Stephen
source share