Maker Pro
Maker Pro

Optical Mouse hack

davenn

Moderator
Sep 5, 2009
14,254
Joined
Sep 5, 2009
Messages
14,254
well I guess the firstQuestion if does it have one of the sensors listed ?
■Optical mouse containing the PAN3101, ADNS-2610, ADNS-2083 or ADNS-2051 optical sensor

Tho he said it should work with most others, maybe you have one it wont work with ?
Failing that a maybe wiring problem with the way you connected it up.?

do you have a schematic of the project ? maybe a close up sharp and clear photo of the project?

Dave
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
The other point is that the article points out that the code doesn't support the newer chips and is no longer maintained. I believe that was written between 1 and 2 years ago, so there may be issues with that too.
 

sabareesh.nikhil

Apr 6, 2011
5
Joined
Apr 6, 2011
Messages
5
Well, thanks. I believe the sensor used is an Agilent ADNS-2610....and the mouse was purchased around a year ago....pics are attached....thanks again and plz do help me out
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
Sure looks similar. What problems are you experiencing?
 

sabareesh.nikhil

Apr 6, 2011
5
Joined
Apr 6, 2011
Messages
5
Compilation with Arduino (022) presented the following errors:

Coordinates.cpp:18:23: error: ADNS2610.h: No such file or directory
Coordinates:25: error: 'ADNS2610' does not name a type
Coordinates.cpp: In function 'void setup()':
Coordinates:36: error: 'Optical1' was not declared in this scope
Coordinates.cpp: In function 'void loop()':
Coordinates:48: error: 'Optical1' was not declared in this scope
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
You have syntax errors. Fix then first, then see what happens.

The first issue is that the file ADNS2610.h cannot be found. Fix that. The other errors may be cascade errors (caused by previous problems) or you may have declared functions incorrectly.
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
From the error message you don't have ADNS2610.h, or it is not where the compiler is expecting to find it.
 
Top