Hello to all. I use succesfully this library
https://github.com/kristopher/PS2-Mouse-Arduino for reading coordinates from a PS/2 mouse using arduino.Though, what I really want to do is read data from multiple mice. In this I find some problems and I would really appreciate if you could give me some help!
I try to modify the example code to get input from two mice. So I create an other object, dublicate the code and connect a second mouse to two different pins of arduino (like the first). To my surprise, what happens is that I get x, y from the first mouse like before but from the second I can only get x! Instead of y I receive to my serial monitor a constantly icreasing value. I am not profficient in programming and C++, so I cannot understand why this is happening.
Do i have to connect the second mouse to the same arduino pins (maybe like an I2C communication)? Is this supported by this library? Is it possible in general to recieve data from multiple
mice this way? If yes, from how many? Do I have to add some pull-up resistors?
Its important to me to manage to read 2 mice (for localization reasons), as it's part of my thesis in robotics. If you find some time, please give me some advice. I will really appreciate it.
Thank you very much in advance!