Data is sent as bytes with bit frames 11 for device-to-host transmission and 12 for host-to-device. The mouse, as can be seen in the breadboard adapter schematic, now has four conduits indirectly attached to it. YV and XV are overflow flags for the motion in Y and X directions respectively where 0 means negative motion and 1 means positive motion. Optical mice with wheels and additional buttons generally send a fourth data packet, but for this lab, that data was not needed. Basically, the microcontroller needs to be able to have two way communication with the mouse. More about this can be found in the PS2 protocol section. Set Clock low 2.
|Date Added:||14 December 2012|
|File Size:||56.59 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
More about this can be found in the PS2 protocol section. Interpret the X and Y motion bytes YV and XV are overflow flags for the motion in Y and X directions respectively where 0 means negative motion and 1 means positive motion.
WinDriverDownload – Ione Lynx-M9 Optical Mice drivers
More information about LCDs and the flex code lunx used can be found here: Personal tools Log in. Optical mice with wheels and additional buttons generally send a fourth data packet, but for this lab, that data was not needed.
A start bit, eight data bits, a parity bit oddan end bit, and in the case of host-to-device transmission, an acknowledge bit. Interfacing with a mouse From Mech. This article documents an unfinished work. Our code shown lyx down attempts to display X and Y coordinate motion of an optical mouse by doing the following: The clock and data lines connect directly to the clock and data lines of the breadboard adapter.
The mouse needs to first receive a signal before it can output a signal. The mouse lync signal is essentially a So if the PIC wants to send data to the mouse, data will equal output D inverted, and Clock will equal output C inverted.
Interfacing with a mouse – Northwestern Mechatronics Wiki
These lines are specified as DATA and Clock and allow for host-to-device transmission and device-to-host transmission. Views Page Discussion View source History. Setting Data low and Clock high is the host requesting lyhx send command, jouse this should cause the mouse to start generating clock signals and to wait for commands from the host 5.
In order to operate, the mouse needs power, so the 5v and ground are used to power the mouse.
A great way to trouble shoot, debug, and see the final result is to use an LCD screen to display the information that the mouse is sending to the PIC. The mouse’s XY coordinates will be displayed on an LCD screen and will pynx updated when the mouse moves. Interpret the direction bits explained in the Mouse Interface section The frames are made up of: Wait at least microseconds 3.
Ione Lynx M9 – mouse Series
The connector uses six pins: The mouse, as can be seen in the breadboard adapter omuse, now has four conduits indirectly attached to it.
Wait for clock to go low When the clock is set low, the host will wait us before reading the data stream. Normally, when a mouse first powers on, it will send its device ID information and set default values for mous sample rate, resolution and scaling.
This data transmission takes place based on the clock signal generated by the external device.
Repeat steps indefinitely. After a great deal of troubleshooting, we have come to the conclusion that our interrupt service routine algorithm or microcontroller is simply not fast enough to receive and send data in time with clock signal generated by the mouse. Release Data Clock high and Data high will put the mouse into idle mode and if Data Reporting has been enabled, the mouse should send a Data and Clock signal to the PIC when it detects button changes or motion Our group was unable to display the motion of an optical mouse on an LCD screen.
X0-X7 and Y0-Y7 are binary outputs of 0 towhich represent how far the mouse has moved in its respective directions since the last sample the least significant digit is on the right.
We also found that the buffers were unnecessary. Wait for clock to go low represents beginning of a clock input wave from mouse 6.