The code, circuit diagram, and notes about the interface are included. 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. 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 Documentation and ordering information for the adapter can be found here: Optical mice with wheels and additional buttons generally send a fourth data packet, but for this lab, that data was not needed.
|Date Added:||7 November 2005|
|File Size:||38.58 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
So if the PIC wants to send data to the mouse, data will equal output D inverted, and Clock will equal output C inverted.
Data is sent ionw bytes with bit frames 11 for device-to-host transmission and 12 for host-to-device. More information on the mouse interface may be found at the following links: This article documents an unfinished work.
Ione Lynx M9 – mouse Overview – CNET
Wait for clock to lgnx low represents beginning of a clock input wave from mouse 6. Our group was unable to display the motion of an optical mouse on an LCD screen. Repeat steps indefinitely. Wait for clock to go low The mouse, as can be seen in the breadboard adapter schematic, now has four conduits indirectly attached to it.
More information about LCDs and the flex code we used can be found here: The mouse needs to first receive a signal before it can output a signal.
Interpret the X and Y motion bytes Normally, when a mouse first powers on, it will send its device ID information and set default values for its sample rate, resolution and scaling.
Our code shown further down attempts to display X and Y coordinate motion of an optical mouse by doing the following: Set Data low 4. Content may change as the project progresses. 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.
The clock and data lines connect directly to the clock and data lines of the breadboard adapter. The mouse clock signal is essentially a Basically, the microcontroller needs to be able to have two way communication with the mouse.
Qtronix Ione Lynx M9 3-button Optical Mouse – Black
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 also generates its own clock signal. YV and XV iine overflow flags for ,9 motion in Y and X directions respectively where 0 means negative motion and 1 means positive motion. Retrieved from ” http: Personal tools Log in. 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 Release Clock Default is high on an open collector.
iOne Lynx-M9 3 Button Optical Mouse
Optical inoe with wheels and additional buttons generally send a fourth data packet, but for this lab, that data was not needed.
More information about this operation can be found here: Views Page Discussion View source History. The code, circuit diagram, and notes about the interface are included. The frames are made up of: When the clock is set low, the host will wait us before reading the data stream.
The other two pins are actually used as both inputs and outputs. Input Data bit into a 33 member array This data transmission takes place based on the clock signal generated by the external device. Each high and each low on the clock signal would last roughly 40 microseconds and our interrupt service routine which was supposed to trigger every time the clock went from high to low tended to miss or skip several signals at a time.