Optical mouse as position encoder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stefan Nonneman
    New Member
    • Jul 2011
    • 1

    Optical mouse as position encoder

    Hi,

    Recently I discovered the beauty of the optical mouse as an incremental position encoder.

    An optical mouse usually contains one component in which a camera is linked to an image processor linked to an USB interface. The resolution depends on the camera resolution. On the internet it is easy to find back the datasheets of this type of components describing also how to read/write with them.

    My problem I first need to solve is how to make sure that an encoder mouse is not seen by the laptop/pc as a pointing device without disabling the USB port to which it is connected. I need to use 2 encoders so that means that 3 usb ports need to be used on my PC (running Windows XP), one for the mouse as pointing device and two for a mouse as encoder.

    A second question is how to read/write instructions/data from/to the encoder mouse over an USB port? Could someone send me a link to a tutorial/example in C++?

    Thanks very much in advance,

    Stefan
Working...