Pages: [1]   Go Down
Author Topic: interfacing ps2 mouse with arduino  (Read 1086 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

* mouse1.ino (1.77 KB - downloaded 13 times.)
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 221
Posts: 13848
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

Rob Tillaart

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

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 221
Posts: 13848
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Rob Tillaart

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

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: