Difference between revisions of "Interfacing with a mouse"
From Mech
Jump to navigationJump to searchLine 8: | Line 8: | ||
== PS/2 Interface == |
== PS/2 Interface == |
||
⚫ | The PS/2 connector is traditionally used to connect mice and keyboards to computer systems. The connector uses six pins: clock, data, 5V, GND and two that are not connected. The PS/2 connector is fully documented here: [http://en.wikipedia.org/wiki/PS/2_connector link PS/2 connector.] We used a Parallax PS/2 to Breadboard Adapter for connect the optical mouse to the PIC18. Documentation and ordering information for the adapter can be found here: Breadboard Adapter. |
||
PS/2 connector |
|||
⚫ |
Revision as of 00:41, 12 February 2009
Original Assignment
Interface the PIC with a PS/2 optical mouse and display (x,y) position data on either an LCD screen (see, e.g., C Example: Serial LCD or C Example: Parallel Interfacing with LCDs) or the PC (e.g., in Matlab or hyperterminal).
Overview
PS/2 Interface
The PS/2 connector is traditionally used to connect mice and keyboards to computer systems. The connector uses six pins: clock, data, 5V, GND and two that are not connected. The PS/2 connector is fully documented here: link PS/2 connector. We used a Parallax PS/2 to Breadboard Adapter for connect the optical mouse to the PIC18. Documentation and ordering information for the adapter can be found here: Breadboard Adapter.