Hello
I've been trying to hack the optical mouse sensor ADNS2610 with my arduino. And I have trouble with that.
I've tried to follow an example like this: Motion detection with a computer mouse and an Arduino Uno - YouTube
I've desolder the sensor from an old mouse.
Here's the datasheet of the sensor: https://media.digikey.com/pdf/Data%20Sheets/Avago%20PDFs/ADNS-2610.pdf
I've plugged the ADNS2610 to the Arduino this way:
Arduino Pin 2 Plugged to Pin 4 SCK on the ADNS2610
Arduino pin 3 connected with Pin 3 SDIO of ADNS2610
Arduino +5v to pin 7 VDD of ADNS2610
And Arduino GND to pin 6 GND of ADNS2610
I also desolder the LED of the mouse and connected it to the arduino
I've used also this library that people have used many time on the net.
Basically I'm getting strange result as debug in the serial monitor.
X and Y debug are always equal to 0
Can someone help me on this?
I know that I didn't used the proper plastic lens of the mouse to put between the LED and the sensor
Do I absolutely need to use this lens? Is the optical sensor require a lens like this to work?
Otherwise the two pin I did not use were n the ADNS2610 pin 1 OSC_in and pin 2 OSC_out.
Could this cause an issue? I don't get what those pin are for