user23599: So I`ve got that mouse with serial connector. It is named serial so it should be easier to connect than even a ps2 mouse, right?
I can`t find any instruction on it. Or should I see instruction on ps2 mouse and plug in the same wires?
Btw mouse has only 4 wires connected inside, as usual PS2 mouse. I want to connect it the same way as ps2 mouse to get easy readings of rotary encoder.

UPD1: I`ve tried to connect it like a PS2 mouse according to this schema with no success. So either a mouse is dead or it uses some kind of different connection?


user22924: A serial mouse is designed to connect to a PC's true serial port - it's an actual RS-232 device using ±5V. As such it won't connect directly to the Arduino's RX/TX pins, you'll have to go through an RS-232 transceiver chip.
It also gets its power from the RTS line, but I never knew what the current draw of one of those things was - be careful trying to power it from the Arduino!
Different mouse manufacturers used different protocols. The original standard used a three-byte protocol at 1,200 bps 7N1. The encoding had the following properties:

The leading bit of the first byte of the packet was set - all future bytes had the leading bit cleared.
The first byte had the buttons' states, and the most significant bits of the X and Y deltas;
The X delta was encoded in the second byte;
The Y delta was encoded in the third byte.


http://paulbourke.net/dataformats/serialmouse/


Other manufacturers added things like extra buttons and scroll wheels that didn't fit in the packet structure. So they modified the protocol, but stuck with some features of the original:

The data rate was (usually) still 1,200 bps, although sometimes they used 7N2 or 8N1 instead.
The leading bit was still used to indicate start of packet;
The X, Y (and Z) wheels still indicated deltas.


http://www.cpcwiki.eu/index.php/Serial_RS232_Mouse



23599: <p>So I`ve got that mouse with serial connector. It is named serial so it should be easier to connect than even a ps2 mouse, right?</p>

<p>I can`t find any instruction on it. Or should I see instruction on ps2 mouse and plug in the same wires?
Btw mouse has only 4 wires connected inside, as usual PS2 mouse. I want to connect it the same way as ps2 mouse to get easy readings of rotary encoder.
<a href="https://i.stack.imgur.com/KJXmu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KJXmu.jpg" alt="serial mouse"></a></p>

<p>UPD1: I`ve tried to connect it like a PS2 mouse according to this schema with no success. So either a mouse is dead or it uses some kind of different connection?
<a href="https://i.stack.imgur.com/t12O8.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t12O8.gif" alt="PS2 to serial mouse"></a></p>
 22924: <p>A serial mouse is designed to connect to a PC's true serial port - it's an actual RS-232 device using ±5V. As such it won't connect directly to the Arduino's <code>RX</code>/<code>TX</code> pins, you'll have to go through an RS-232 transceiver chip.</p>

<p>It also gets its power from the <code>RTS</code> line, but I never knew what the current draw of one of those things was - be careful trying to power it from the Arduino!</p>

<p>Different mouse manufacturers used different protocols. The original standard used a three-byte protocol at 1,200 bps 7N1. The encoding had the following properties:</p>

<ul>
<li>The leading bit of the first byte of the packet was set - all future bytes had the leading bit cleared.</li>
<li>The first byte had the buttons' states, and the most significant bits of the X and Y deltas;</li>
<li>The X delta was encoded in the second byte;</li>
<li>The Y delta was encoded in the third byte.

<blockquote>
  <p><a href="http://paulbourke.net/dataformats/serialmouse/" rel="nofollow">http://paulbourke.net/dataformats/serialmouse/</a></p>
</blockquote></li>
</ul>

<p>Other manufacturers added things like extra buttons and scroll wheels that didn't fit in the packet structure. So they modified the protocol, but stuck with some features of the original:</p>

<ul>
<li>The data rate was (usually) still 1,200 bps, although sometimes they used 7N2 or 8N1 instead.</li>
<li>The leading bit was still used to indicate start of packet;</li>
<li>The X, Y (and Z) wheels still indicated deltas.

<blockquote>
  <p><a href="http://www.cpcwiki.eu/index.php/Serial_RS232_Mouse" rel="nofollow">http://www.cpcwiki.eu/index.php/Serial_RS232_Mouse</a></p>
</blockquote></li>
</ul>
