In a mouse (with ball) there are IR sensors and phototransistor sensors (in pairs) to check the movement of the mouse in both axes. For each axis, there is the following configuration: http://1uparcade.rmfx.com/images/kb-optics.jpg It is possible to operate (with voltage, current and possibly frequency) externally the pin of the optical sensor to move the cursor?

Thank you in advance!

  • 1
    \$\begingroup\$ Yes. (10 more to go) \$\endgroup\$ – Trevor_G Apr 2 '17 at 16:09
  • \$\begingroup\$ thank you. I need to provide the sensor with a voltage? Or it depends on the frequency? I mean, how do I determine the movement in both directions? (I tried to feed both the sensor pins with 5V and about 2kHz and the cursor moves in one direction but then I have stability problems) Thank you! \$\endgroup\$ – Papi44 Apr 2 '17 at 16:15
  • \$\begingroup\$ Each sensor detects two pulses 90 degrees out of phase for direction as the ball rotates. The frequency is A LOT less than 2kHz though. Going that fast the micro in the mouse may not be able to keep up. \$\endgroup\$ – Trevor_G Apr 2 '17 at 16:20
  • \$\begingroup\$ I did not understand how to connect the pins. I have to feed them with 5V and a particular frequency? How do I move cursor in the opposite direction? It only depends on input frequency or another? Thanks again !! \$\endgroup\$ – Papi44 Apr 2 '17 at 16:35
  • \$\begingroup\$ It's easier to use a usb microcontroller with the USB HID Mouse profile. Avoid hacking the mouse and just do it in your code. \$\endgroup\$ – Passerby Aug 13 '17 at 2:26

There are actually two channels on the ball driven sensor wheels. They feed out a quadrature waveform that indicates motion and direction as shown in the image below.

enter image description here

You can bypass the sensors by applying those signals to the appropriate point in the mouse. However, do not apply a signal that is a higher frequency than the mouse's circuitry can keep up with.

| improve this answer | |
  • \$\begingroup\$ Channel A and Channel B are the two pins of IR, right? \$\endgroup\$ – Papi44 Apr 2 '17 at 16:47
  • \$\begingroup\$ @Papi44 There should be two IR detectors per wheel. One wheel for X the other for Y. That is, four IR detectors total. \$\endgroup\$ – Trevor_G Apr 2 '17 at 17:23
  • \$\begingroup\$ For example, for the X axis I have this configuration: cdn.instructables.com/FF0/I8O3/HPZLKCQW/… On the right, the transparent device is the optical sensor with two pin or they are two optical sensors (each pin corresponds to a sensor)? Thank you! \$\endgroup\$ – Papi44 Apr 2 '17 at 18:10
  • \$\begingroup\$ @Papi44 yes that is a dual sensor. The common pin is likely connected to the rail or a small resistance. The two emitters are the two phase outputs. \$\endgroup\$ – Trevor_G Apr 2 '17 at 23:10
  • 2
    \$\begingroup\$ @Papi This is not a free design/debug service. I told you what signals you need to feed it, now go figure out the schematic of the mouse, and how to hook in your signals while turning off the LEDs. \$\endgroup\$ – Trevor_G Apr 5 '17 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.