Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

robots motion using optical mouse

Status
Not open for further replies.

piyush manavar

Member level 4
Member level 4
Joined
Jul 23, 2009
Messages
78
Helped
10
Reputation
20
Reaction score
8
Trophy points
1,288
Location
india
Activity points
1,827
hi
i am working in robotic.
now i want to develop a robot.
in my project i want to use optical mouse to detect the motion of robots.
so can any body give me detail of optical mouse communication protocol. so i can directly interface it with my bot. (i know the working principal of optical mouse ).

if any other idea about this then please reply me


thanks

Regards
Piyush Manavar
 

This has been attempted before, but I have to warn you of one limitation of using a mouse laser for navigation. Mice can detect movement in the x and y direction, but they cannot detect rotation.

Take a mouse that is pointing up and rotate it by 90 degrees to the right, you'll notice it barely moves on the screen, ideally not at all. Now move it forward. You'll see the cursor go up rather than to the right. Why? Because the mouse does not detect rotation. Thus a mouse needs to be combined with a gyroscope or secondary mouse for navigation purposes.
 
you are right
i am also using gyroscope for rotation.
but right now i want the protocol to communicate with mouse.
what type of signal it gives while moving in X-Y motion???.


Thanks

Regards
Piyush Manavar
 

Not sure on the protocol, but you could try and reverse engineer it if it's not out there. Try a packet sniffer program that sniffs the communications on your usb port and see what comes up when you move the mouse around.

If your system is running an OS that can run mouse drivers i.e. Windows or Linux, you don't need to know the protocol, only how to access the API or services I believe (something where you can just grab x and y data). If you are trying to connect a usb device to a serial port on an OS less micro-controller than you probably will need to reinvent the wheel and dive into the protocol.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top