Main Content

Connecting a mouse to an Arduino is simple. With just a few wires, we can easily integrate it into our Arduino projects.

Connecting a mouse to an Arduino is simple. With just a few wires, we can easily integrate it into our Arduino projects. With the method that I describe in this post, the mouse can act as a sensor for determining positions or movements of vehicles, robots, for example.

How It Works
First, it is important to mention that this only works with mice that support the PS/2 protocol. Modern mice, for example the wireless ones only support USB and don’t “understand” PS/2 any more. PS/2 is a serial protocol, similar to the UART protocol. But unlike UART, PS/2 is a synchronous protocol, which means that data and clock use different wires.”

Link to article