SlideShare une entreprise Scribd logo
1  sur  16
Inside a Mouse
The main goal of any mouse is to translate the
motion of your hand into signals that the
computer can use. Almost all mice today do the
translation using five components:
1. A ball inside the mouse touches the
desktop and rolls when the mouse moves.
1.
The underside of the mouse's logic
board: The exposed portion of the
ball touches the desktop
2. Two rollers inside the mouse touch the ball. One of the rollers is oriented
so that it detects motion in the X direction, and the other is oriented 90
degrees to the first roller so it detects motion in the Y direction. When the
ball rotates, one or both of these rollers rotate as well. The following image
shows the two white rollers on this mouse:
1.
The rollers that touch
the ball and detect X
and Y motion
3. The rollers each connect to a shaft, and the shaft spins a disk with holes in
it. When a roller rolls, its shaft and disk spin. The following image shows the
disk:
typical optical
encoding disk: This
disk has 36 holes
around its outer
edge.
4. On either side of the disk there is an infrared LED and an infrared sensor.
The holes in the disk break the beam of light coming from the LED so that
the infrared sensor sees pulses of light. The rate of the pulsing is directly
related to the speed of the mouse and the distance it travels.
closeup of one
of the optical
encoders that
track mouse
motion: There is
an infrared LED
(clear) on one
side of the disk
and an infrared
sensor (red) on
the other.
5. An on-board processor chip reads the pulses from the
infrared sensors and turns them into binary data that the
computer can understand. The chip sends the binary data to
the computer through the mouse's cord.
The logic section of a
mouse is dominated by
an encoder chip, a small
processor that reads the
pulses coming from the
infrared sensors and
turns them into bytes
sent to the computer.
You can also see the
two buttons that detect
clicks (on either side of
the wire
In this optomechanical arrangement, the disk moves
mechanically, and an optical system counts pulses of light. On
this mouse, the ball is 21 mm in diameter. The roller is 7 mm
in diameter. The encoding disk has 36 holes. So if the mouse
moves 25.4 mm (1 inch), the encoder chip detects 41 pulses
of light.
You might have noticed that each encoder disk has two infrared LEDs and two
infrared sensors, one on each side of the disk (so there are four LED/sensor
pairs inside a mouse). This arrangement allows the processor to detect the
disk's direction of rotation. There is a piece of plastic with a small, precisely
located hole that sits between the encoder disk and each infrared sensor. It is
visible in this photo:
A close-up of one of the
optical encoders that
track mouse motion:
Note the piece of plastic
between the infrared
sensor (red) and the
encoding disk.
This piece of plastic provides a window through which the infrared sensor
can "see." The window on one side of the disk is located slightly higher than
it is on the other -- one-half the height of one of the holes in the encoder
disk, to be exact. That difference causes the two infrared sensors to see
pulses of light at slightly different times. There are times when one of the
sensors will see a pulse of light when the other does not, and vice versa.
This page offers a nice explanation of how direction is determined.
The Optical Mouse
With advances it mouse technology, it appears that the venerable
wheeled mouse is in danger of extinction. The now-preferred
device for pointing and clicking is the optical mouse.
.
Developed by Agilent Technologies and introduced to the world in late 1999, the optical
mouse actually uses a tiny camera to take 1,500 pictures every second.
Able to work on almost any surface, the mouse has a small, red light-emitting
diode (LED) that bounces light off that surface onto a complimentary metal-
oxide semiconductor (CMOS) sensor. The CMOS sensor sends each image to
a digital signal processor (DSP) for analysis. The DSP, operating at 18 MIPS
(million instructions per second), is able to detect patterns in the images and
see how those patterns have moved since the previous image. Based on the
change in patterns over a sequence of images, the DSP determines how far the
mouse has moved and sends the corresponding coordinates to the computer.
The computer moves the cursor on the screen based on the coordinates
received from the mouse. This happens hundreds of times each second,
making the cursor appear to move very smoothly.
In this photo, you can see
the LED on the bottom of
the mouse.
Optical mice have several benefits over wheeled mice:
•No moving parts means less wear and a lower chance of failure.
•There's no way for dirt to get inside the mouse and interfere with the
tracking sensors.
•Increased tracking resolution means smoother response.
•They don't require a special surface, such as a mouse pad.
Apple has transformed its
optical mouse into a
modern work of art.
Although LED-based optical mice are fairly recent, another type of optical
mouse has been around for over a decade. The original optical-mouse
technology bounced a focused beam of light off a highly-reflective mouse
pad onto a sensor. The mouse pad had a grid of dark lines. Each time the
mouse was moved, the beam of light was interrupted by the grid. Whenever
the light was interrupted, the sensor sent a signal to the computer and the
cursor moved a corresponding amount.
This kind of optical mouse was difficult to use, requiring that you hold it at
precisely the right angle to ensure that the light beam and sensor aligned.
Also, damage to or loss of the mouse pad rendered the mouse useless until
a replacement pad was purchased. Today's LED-based optical mice are far
more user-friendly and reliable.
Data Interface
Most mice in use today use the standard PS/2 type
connector, as shown here:
A typical PS/2 connector: Assume that pin 1 is located just
to the left of the black alignment pin, and the others are
numbered clockwise from there.
These pins have the following functions (refer to the above photo for pin numbering):
1.Unused
2.+5 volts (to power the chip and LEDs)
3.Unused
4.Clock
5.Ground
6.Data
What Data is Sent
Whenever the mouse moves or the user clicks a button, the mouse sends 3 bytes of
data to the computer. The first byte's 8 bits contain:
1. Left button state (0 = off, 1 = on)
2. Right button state (0 = off, 1 = on)
3. 0
4. 1
5. X direction (positive or negative)
6. Y direction
7. X overflow (the mouse moved more than 255 pulses in 1/40th of a second)
8. Y overflow
The next 2 bytes contain the X and Y movement values, respectively. These 2 bytes
contain the number of pulses that have been detected in the X and Y direction since
the last packet was sent.
The data is sent from the mouse to the computer serially on the data line, with the
clock line pulsing to tell the computer where each bit starts and stops. Eleven bits
are sent for each byte (1 start bit, 8 data bits, 1 parity bit and 1 stop bit). The PS/2
mouse sends on the order of 1,200 bits per second. That allows it to report mouse
position to the computer at a maximum rate of about 40 reports per second. If you
are moving the mouse very rapidly, the mouse may travel an inch or more in one-
fortieth of a second. This is why there is a byte allocated for X and Y motion in the
data protocol.
Some mice use serial or USB type connectors. See How Serial Ports
Work and How USB Ports Work for information on these technologies.

Contenu connexe

Tendances

Will Miller and Harrison Graves Computer Mouse
Will Miller and Harrison Graves Computer MouseWill Miller and Harrison Graves Computer Mouse
Will Miller and Harrison Graves Computer MouseMarq2014
 
Chap2 input devices
Chap2 input devicesChap2 input devices
Chap2 input devicesraksharao
 
The mouse!
The mouse!The mouse!
The mouse!lapts
 
Parts of the computer (mouse and printer)
Parts of the computer (mouse and printer)Parts of the computer (mouse and printer)
Parts of the computer (mouse and printer)Mi L
 
Graphics devices
Graphics devicesGraphics devices
Graphics devicesKumar
 
Introduction of Computers & C++ Programming
Introduction of Computers & C++ Programming Introduction of Computers & C++ Programming
Introduction of Computers & C++ Programming Mujeeb UR Rahman
 
Presentation on mouse, keyboard and scanners
Presentation on mouse, keyboard and scannersPresentation on mouse, keyboard and scanners
Presentation on mouse, keyboard and scannersRamesh Pant
 
BASIC PARTS OF THE COMPUTER-MELODI
BASIC PARTS OF THE COMPUTER-MELODIBASIC PARTS OF THE COMPUTER-MELODI
BASIC PARTS OF THE COMPUTER-MELODImelodidino05
 
Finger gesture controlled LCD display using IR sensors
Finger gesture controlled LCD display using IR sensorsFinger gesture controlled LCD display using IR sensors
Finger gesture controlled LCD display using IR sensorsPatan Mansoor Basha
 
ICT SKILLS-1 INPUT,OUTPUT,MEMORY AND STORAGE
ICT SKILLS-1 INPUT,OUTPUT,MEMORY AND STORAGEICT SKILLS-1 INPUT,OUTPUT,MEMORY AND STORAGE
ICT SKILLS-1 INPUT,OUTPUT,MEMORY AND STORAGEvikram mahendra
 
Input a-nd-output-devices2883
Input a-nd-output-devices2883Input a-nd-output-devices2883
Input a-nd-output-devices2883Rahul Sajnani
 

Tendances (20)

"MOUSE" HARDWARE
"MOUSE" HARDWARE "MOUSE" HARDWARE
"MOUSE" HARDWARE
 
Will Miller and Harrison Graves Computer Mouse
Will Miller and Harrison Graves Computer MouseWill Miller and Harrison Graves Computer Mouse
Will Miller and Harrison Graves Computer Mouse
 
Chap2 input devices
Chap2 input devicesChap2 input devices
Chap2 input devices
 
The mouse!
The mouse!The mouse!
The mouse!
 
Parts of the computer (mouse and printer)
Parts of the computer (mouse and printer)Parts of the computer (mouse and printer)
Parts of the computer (mouse and printer)
 
Moues
MouesMoues
Moues
 
Input
InputInput
Input
 
Input device
Input deviceInput device
Input device
 
Graphics devices
Graphics devicesGraphics devices
Graphics devices
 
Introduction of Computers & C++ Programming
Introduction of Computers & C++ Programming Introduction of Computers & C++ Programming
Introduction of Computers & C++ Programming
 
Pointing Devices
Pointing DevicesPointing Devices
Pointing Devices
 
Using the Mouse
Using the MouseUsing the Mouse
Using the Mouse
 
Presentation on mouse, keyboard and scanners
Presentation on mouse, keyboard and scannersPresentation on mouse, keyboard and scanners
Presentation on mouse, keyboard and scanners
 
Input devices of computer
Input devices of computerInput devices of computer
Input devices of computer
 
BASIC PARTS OF THE COMPUTER-MELODI
BASIC PARTS OF THE COMPUTER-MELODIBASIC PARTS OF THE COMPUTER-MELODI
BASIC PARTS OF THE COMPUTER-MELODI
 
Finger gesture controlled LCD display using IR sensors
Finger gesture controlled LCD display using IR sensorsFinger gesture controlled LCD display using IR sensors
Finger gesture controlled LCD display using IR sensors
 
ICT SKILLS-1 INPUT,OUTPUT,MEMORY AND STORAGE
ICT SKILLS-1 INPUT,OUTPUT,MEMORY AND STORAGEICT SKILLS-1 INPUT,OUTPUT,MEMORY AND STORAGE
ICT SKILLS-1 INPUT,OUTPUT,MEMORY AND STORAGE
 
Chap2(2)
Chap2(2)Chap2(2)
Chap2(2)
 
Scanner
ScannerScanner
Scanner
 
Input a-nd-output-devices2883
Input a-nd-output-devices2883Input a-nd-output-devices2883
Input a-nd-output-devices2883
 

En vedette

Rapport_Activites_2014_Agence_Aisne_Tourisme
Rapport_Activites_2014_Agence_Aisne_TourismeRapport_Activites_2014_Agence_Aisne_Tourisme
Rapport_Activites_2014_Agence_Aisne_TourismeL'Agence Aisne Tourisme
 
BB10 Leading Mobile Web Platform W3C 2013
BB10 Leading Mobile Web Platform W3C 2013BB10 Leading Mobile Web Platform W3C 2013
BB10 Leading Mobile Web Platform W3C 2013Larry McDonough
 
CTIA MobileCON 2013: Whats Up With BlackBerry?
CTIA MobileCON 2013:  Whats Up With BlackBerry?CTIA MobileCON 2013:  Whats Up With BlackBerry?
CTIA MobileCON 2013: Whats Up With BlackBerry?Larry McDonough
 
Mobile App Dev Android, HTML5, Enterprise and More
Mobile App Dev Android, HTML5, Enterprise and MoreMobile App Dev Android, HTML5, Enterprise and More
Mobile App Dev Android, HTML5, Enterprise and MoreLarry McDonough
 

En vedette (6)

Rapport_Activites_2014_Agence_Aisne_Tourisme
Rapport_Activites_2014_Agence_Aisne_TourismeRapport_Activites_2014_Agence_Aisne_Tourisme
Rapport_Activites_2014_Agence_Aisne_Tourisme
 
BB10 Leading Mobile Web Platform W3C 2013
BB10 Leading Mobile Web Platform W3C 2013BB10 Leading Mobile Web Platform W3C 2013
BB10 Leading Mobile Web Platform W3C 2013
 
CTIA MobileCON 2013: Whats Up With BlackBerry?
CTIA MobileCON 2013:  Whats Up With BlackBerry?CTIA MobileCON 2013:  Whats Up With BlackBerry?
CTIA MobileCON 2013: Whats Up With BlackBerry?
 
Bilan_Touristique_2013_Aisne
Bilan_Touristique_2013_AisneBilan_Touristique_2013_Aisne
Bilan_Touristique_2013_Aisne
 
Mobile App Dev Android, HTML5, Enterprise and More
Mobile App Dev Android, HTML5, Enterprise and MoreMobile App Dev Android, HTML5, Enterprise and More
Mobile App Dev Android, HTML5, Enterprise and More
 
Aisne Tourisme Presentation Agence
Aisne Tourisme Presentation AgenceAisne Tourisme Presentation Agence
Aisne Tourisme Presentation Agence
 

Similaire à Mouse (20)

Space mouse report
Space mouse report Space mouse report
Space mouse report
 
Space mouse
Space mouseSpace mouse
Space mouse
 
Presentation on Computer Mouse
Presentation on Computer MousePresentation on Computer Mouse
Presentation on Computer Mouse
 
Mse%204001%20 Wireless%20 Optical%20 Mouse
Mse%204001%20 Wireless%20 Optical%20 MouseMse%204001%20 Wireless%20 Optical%20 Mouse
Mse%204001%20 Wireless%20 Optical%20 Mouse
 
mouse Presentation
mouse Presentation mouse Presentation
mouse Presentation
 
Cse space-mouse-report
Cse space-mouse-reportCse space-mouse-report
Cse space-mouse-report
 
Rakeshspacemouse
RakeshspacemouseRakeshspacemouse
Rakeshspacemouse
 
evomouse full report
evomouse full reportevomouse full report
evomouse full report
 
sakshi presenatuion bsc computer engeeneer
sakshi presenatuion bsc computer engeeneersakshi presenatuion bsc computer engeeneer
sakshi presenatuion bsc computer engeeneer
 
Input and output devices
Input and output devicesInput and output devices
Input and output devices
 
input and output devices
input and output devicesinput and output devices
input and output devices
 
Input and output devices
Input and output devicesInput and output devices
Input and output devices
 
Space mouse
Space mouseSpace mouse
Space mouse
 
Automatic Door Opener using PIR Sensor
Automatic Door Opener using PIR SensorAutomatic Door Opener using PIR Sensor
Automatic Door Opener using PIR Sensor
 
The input and output device
The  input  and  output deviceThe  input  and  output device
The input and output device
 
Input devices
Input devicesInput devices
Input devices
 
Arduino Based Applications-part 4
Arduino Based Applications-part 4Arduino Based Applications-part 4
Arduino Based Applications-part 4
 
Input and output devices
Input and output devicesInput and output devices
Input and output devices
 
Input / Output Devices
Input / Output DevicesInput / Output Devices
Input / Output Devices
 
Input and output devices
Input and output devicesInput and output devices
Input and output devices
 

Dernier

Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 

Dernier (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 

Mouse

  • 1. Inside a Mouse The main goal of any mouse is to translate the motion of your hand into signals that the computer can use. Almost all mice today do the translation using five components:
  • 2. 1. A ball inside the mouse touches the desktop and rolls when the mouse moves. 1. The underside of the mouse's logic board: The exposed portion of the ball touches the desktop
  • 3. 2. Two rollers inside the mouse touch the ball. One of the rollers is oriented so that it detects motion in the X direction, and the other is oriented 90 degrees to the first roller so it detects motion in the Y direction. When the ball rotates, one or both of these rollers rotate as well. The following image shows the two white rollers on this mouse: 1. The rollers that touch the ball and detect X and Y motion
  • 4. 3. The rollers each connect to a shaft, and the shaft spins a disk with holes in it. When a roller rolls, its shaft and disk spin. The following image shows the disk: typical optical encoding disk: This disk has 36 holes around its outer edge.
  • 5. 4. On either side of the disk there is an infrared LED and an infrared sensor. The holes in the disk break the beam of light coming from the LED so that the infrared sensor sees pulses of light. The rate of the pulsing is directly related to the speed of the mouse and the distance it travels. closeup of one of the optical encoders that track mouse motion: There is an infrared LED (clear) on one side of the disk and an infrared sensor (red) on the other.
  • 6. 5. An on-board processor chip reads the pulses from the infrared sensors and turns them into binary data that the computer can understand. The chip sends the binary data to the computer through the mouse's cord. The logic section of a mouse is dominated by an encoder chip, a small processor that reads the pulses coming from the infrared sensors and turns them into bytes sent to the computer. You can also see the two buttons that detect clicks (on either side of the wire
  • 7. In this optomechanical arrangement, the disk moves mechanically, and an optical system counts pulses of light. On this mouse, the ball is 21 mm in diameter. The roller is 7 mm in diameter. The encoding disk has 36 holes. So if the mouse moves 25.4 mm (1 inch), the encoder chip detects 41 pulses of light.
  • 8. You might have noticed that each encoder disk has two infrared LEDs and two infrared sensors, one on each side of the disk (so there are four LED/sensor pairs inside a mouse). This arrangement allows the processor to detect the disk's direction of rotation. There is a piece of plastic with a small, precisely located hole that sits between the encoder disk and each infrared sensor. It is visible in this photo: A close-up of one of the optical encoders that track mouse motion: Note the piece of plastic between the infrared sensor (red) and the encoding disk.
  • 9. This piece of plastic provides a window through which the infrared sensor can "see." The window on one side of the disk is located slightly higher than it is on the other -- one-half the height of one of the holes in the encoder disk, to be exact. That difference causes the two infrared sensors to see pulses of light at slightly different times. There are times when one of the sensors will see a pulse of light when the other does not, and vice versa. This page offers a nice explanation of how direction is determined.
  • 10. The Optical Mouse With advances it mouse technology, it appears that the venerable wheeled mouse is in danger of extinction. The now-preferred device for pointing and clicking is the optical mouse. . Developed by Agilent Technologies and introduced to the world in late 1999, the optical mouse actually uses a tiny camera to take 1,500 pictures every second.
  • 11. Able to work on almost any surface, the mouse has a small, red light-emitting diode (LED) that bounces light off that surface onto a complimentary metal- oxide semiconductor (CMOS) sensor. The CMOS sensor sends each image to a digital signal processor (DSP) for analysis. The DSP, operating at 18 MIPS (million instructions per second), is able to detect patterns in the images and see how those patterns have moved since the previous image. Based on the change in patterns over a sequence of images, the DSP determines how far the mouse has moved and sends the corresponding coordinates to the computer. The computer moves the cursor on the screen based on the coordinates received from the mouse. This happens hundreds of times each second, making the cursor appear to move very smoothly. In this photo, you can see the LED on the bottom of the mouse.
  • 12. Optical mice have several benefits over wheeled mice: •No moving parts means less wear and a lower chance of failure. •There's no way for dirt to get inside the mouse and interfere with the tracking sensors. •Increased tracking resolution means smoother response. •They don't require a special surface, such as a mouse pad. Apple has transformed its optical mouse into a modern work of art.
  • 13. Although LED-based optical mice are fairly recent, another type of optical mouse has been around for over a decade. The original optical-mouse technology bounced a focused beam of light off a highly-reflective mouse pad onto a sensor. The mouse pad had a grid of dark lines. Each time the mouse was moved, the beam of light was interrupted by the grid. Whenever the light was interrupted, the sensor sent a signal to the computer and the cursor moved a corresponding amount. This kind of optical mouse was difficult to use, requiring that you hold it at precisely the right angle to ensure that the light beam and sensor aligned. Also, damage to or loss of the mouse pad rendered the mouse useless until a replacement pad was purchased. Today's LED-based optical mice are far more user-friendly and reliable.
  • 14. Data Interface Most mice in use today use the standard PS/2 type connector, as shown here: A typical PS/2 connector: Assume that pin 1 is located just to the left of the black alignment pin, and the others are numbered clockwise from there. These pins have the following functions (refer to the above photo for pin numbering): 1.Unused 2.+5 volts (to power the chip and LEDs) 3.Unused 4.Clock 5.Ground 6.Data
  • 15. What Data is Sent Whenever the mouse moves or the user clicks a button, the mouse sends 3 bytes of data to the computer. The first byte's 8 bits contain: 1. Left button state (0 = off, 1 = on) 2. Right button state (0 = off, 1 = on) 3. 0 4. 1 5. X direction (positive or negative) 6. Y direction 7. X overflow (the mouse moved more than 255 pulses in 1/40th of a second) 8. Y overflow The next 2 bytes contain the X and Y movement values, respectively. These 2 bytes contain the number of pulses that have been detected in the X and Y direction since the last packet was sent.
  • 16. The data is sent from the mouse to the computer serially on the data line, with the clock line pulsing to tell the computer where each bit starts and stops. Eleven bits are sent for each byte (1 start bit, 8 data bits, 1 parity bit and 1 stop bit). The PS/2 mouse sends on the order of 1,200 bits per second. That allows it to report mouse position to the computer at a maximum rate of about 40 reports per second. If you are moving the mouse very rapidly, the mouse may travel an inch or more in one- fortieth of a second. This is why there is a byte allocated for X and Y motion in the data protocol. Some mice use serial or USB type connectors. See How Serial Ports Work and How USB Ports Work for information on these technologies.