Go Down

Topic: Arduino Mega 2560+ PS2 Mouse Problem, Serial, No feedback (Read 486 times) previous topic - next topic


Hi all,

I am trying to connect a ps2 whell mouse to my arduino mega 2560. I am using arduino 1.5.2 (nightly windows). I am using the library  and code from http://playground.arduino.cc/ComponentLib/Ps2mouse with changing the WProgram.h to Arduino.h. I can compile and upload the sketch to my arduino mega.

However,  when I open the serial monitor, nothing happens, not even some silly numbers, simply nothing.  I tried to connect the mouse but it did work either.

I tried some other libraries from internet (maybe all of them) which are based on the library above but none of them worked.

I think the problem lies in this line:mouse.init(); it does not initialises the communication.

Some suggestions are to add Serial.begin() before and after the mouse_init(). I add the Serial.begin() before and after that and it prints before but nothing after.

I appreciate your helps and have a nice day

Thank you



I know this topic is old
I had the same problem
Was solved by changing the mouse
Note that if the mouse is not appropriate or is interrupted, the program stops and does not report the number zero.

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!

via Egeo 16
Torino, 10131