Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: benji on March 30, 2008, 12:16:40 PM

Title: Optical mouse interface
Post by: benji on March 30, 2008, 12:16:40 PM
hello there,,
i need help interfacing an optical mouse into a hexapod, any one has done somthing like this before?
how do you change the lens into an appropriate one?
what output is usefull from a optical mouse and how would this be interfaced into an atmega microcontroller?

thanks for any helping
Title: Re: Optical mouse interface
Post by: hazzer123 on March 30, 2008, 12:53:56 PM
Im not sure about changing the lense. Why do you want to do that? Are you wanting to make it focus on the surface from further away and use it as a position sensor?

Anyway, there are 2 main protocols with mice and keyboards. USB and PS/2.

I know nothing really about USB, but i have researched PS/2 before.

Heres a good link - http://www.computer-engineering.org/ps2protocol/ (http://www.computer-engineering.org/ps2protocol/)
Title: Re: Optical mouse interface
Post by: Ro-Bot-X on March 30, 2008, 01:34:45 PM
Ehh, again, people forget that there is not only Google out there... What about Yahoo? When I'm looking for something I allways search on Yahoo first and Google second. Mostly because Google will give me results from Europe first and Yahoo from US first.

The first result that was not add related on Yahoo reveald this page:
http://home.roadrunner.com/~maccody/robotics/croms-1/croms-1.html (http://home.roadrunner.com/~maccody/robotics/croms-1/croms-1.html)

There are others, I'm sure...
Title: Re: Optical mouse interface
Post by: benji on March 30, 2008, 03:47:17 PM
thank u guys for the links

Quote
Are you wanting to make it focus on the surface from further away and use it as a position sensor?
exactly

what i still lack here is the output form of mice
Title: Re: Optical mouse interface
Post by: Ro-Bot-X on March 31, 2008, 01:10:19 PM
You should read the links inside the web page I gave you the link. There are plenty of explanations of the mouse sensor signal.