Arduino library to connect with optical mouse over PS/2 protocol
Blog post about process http://imelnikov.ru/radio/arduino-rc
Based on
Download PS2.ino and Mouse.ino files and put them in the same folder.
Mouse m(5, 6); // cl, dt
m.init();
int data[2];
m.read(data);
Serial.print(" dx ");
Serial.print(data[0]);
Serial.print(" dy ");
Serial.println(data[1]);
For op720 mouse
- red - VCC
- black - GND
- green - CLK
- white - DT