Go Down

Topic: interfacing ps2 mouse with arduino (Read 1 time) previous topic - next topic

hello everyone....
i am doing a project using a ps2 mouse.
i want to get the X and Y coordinates as we move the mouse...
can anyone please help me with codes and libraries of arduino ......
i have these codes but it is not working perfectly

robtillaart

Have you checked the playground, there are several PS2 articles there

Quote
i have these codes but it is not working perfectly

but you don't tell what is wrong...
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

i have these codes but it is not working perfectly
but you don't tell what is wrong...



1. Once we start moving mouse X and Y readings increase but max reading we got was 101 in +ve X direction.
2. Once mouse is halted its origin gets shifted and new position is treated as new origin(0,0).
3. Also from little search I came to know that optical mouse provides 400 CPI(Counts per Inch) but I think it is pre-scaled in code somewhere.

robtillaart

1) the codes are the relative movements since the last signal
2) explained by 1
3) why not post the link you found.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

i got codes from http://www.engineersgarage.com/embedded/arduino/how-to-interface-ps2-mouse-with-arduino

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy