How Does A Computer Mouse Work?

Table of Contents (click to expand)

When you move a mechanical mouse, the ball rolls beneath it, pushing the two plastic wheels/rollers linked to it in the process. One of those wheels detects side-to-side movement (x-axis wheel) and the other (y-axis wheel) detects movement in the up-and-down direction. An optical mouse uses an LED installed at its bottom to move the cursor around on the screen.

I vividly remember one time when my computer mouse became inoperative. With no alternative at my disposal, I had to depend entirely on the keyboard to get my work done. Not only did it take almost twice as long, but working without a mouse also turned out to be incredibly frustrating! That’s when I first realized the true importance of that tiny thing lying unassumingly beside every 21st-century human’s desktop.

Whenever we want to get anything done on a desktop computer screen, our hands instinctively reach out for the mouse; when you move the mouse on the desk, the pointer on the screen moves in the same pattern with absolute precision. How does this action, which so many of us take for granted, actually happen?

Recommended Video for you:

What’s A Computer Mouse?

The joking comparison of a computer mouse and a real mouse is antiquated, so let’s skip that. A computer mouse, as we all know, is an electronic device (which may or may not be wireless) that helps to move the cursor on a computer screen as you move the mouse over a flat surface. So, a mouse essentially calculates how much you move it in a certain direction (in two dimensions) and subsequently feeds the computer that information to allow for comprehensive control of the graphic user interface.

optical mouse
The species of mice that every computer-geek loves

There are a number of variants of computer mice, including a mechanical mouse, optical and laser mice, a 3D mouse, inertial and gyroscopic mice, the ergonomic mouse, gaming mice and tactile mice, but in this article, we’re going to discuss the two most popular variants among these. So, let’s get started!

Also Read: What Is An Electron Microscope? How Does It Work?

What Is A Mechanical Mouse?

A mechanical mouse consists of a heavy rubber ball whose movement makes the cursor move on the screen. Commonly known as the ‘rolling rubber ball’ mouse, it is considerably heavy, thanks to the rubber ball, a few wheels, and a number of other mechanical parts present inside it.

How Does A Mechanical Mouse Work?

When you move the mouse, the ball rolls beneath it, pushing the two plastic wheels/rollers linked to it in the process. One of those wheels detects side-to-side movement (x-axis wheel) and the other (y-axis wheel) detects movement in the up-and-down direction. Both of these wheels consist of spokes that ‘break’ a thin light beam inside the mouse. The number of times the beam breaks helps to calculate how far the mouse has moved.

Diagram of mechanical mouse
Internal components of a mechanical mouse

For instance, when you move the mouse straight up, the y-axis wheel turns. The farther up you go, the more the ball pushes the wheel and the more it breaks the light beam. This helps to determine how far the mouse has moved straight up. Similarly, the mouse uses the x-axis wheel to calculate side-to-side movement. When the mouse is moved at an angle, the calculations obtained from the movement of both of these wheels are used.

Mechanical mice were quite popular in the past decade, but due to their clunkier design and relatively lessened durability, they were quickly replaced by optical mice.

What Is An Optical Mouse?

An optical mouse is technologically much more advanced than a mechanical mouse. Unlike the latter, an optical mouse is completely electronic and therefore has no moving parts. It consists of an LED (that generates the signature red light), a light-detector chip, a switch mechanism and a few other simple components. Some mice have another LED that lights up a plastic strip installed at the back of the mouse as an indication of the mouse’s operation.

How Does An Optical Mouse Work?

The LED installed at the bottom of the mouse emits a bright light in the downward direction. Since a mouse is usually used on plain surfaces, the light bounces back from the surface and enters a photocell that’s also mounted on the bottom, almost next to the LED.

Bottom view of an optical mouse
An optical mouse kept upside down

This photocell has a frontal lens that magnifies any light reaching it. As you move the mouse around, the pattern of the reflected beam changes; this is then used by the light-detector chip to figure out how and in which direction you’re moving the mouse.

Optical mice are much lighter and faster than mechanical ones, and have therefore gained enormous popularity all over the world. With improvements in technology, newer and even more advanced mice – that address issues like ergonomics and the health of the user – are taking center stage. The choice of the right variant rests with the user, but one thing remains universally true – computers and mice shall always remain inseparable.

Also Read: Which Is Better: Optical Microscope Or Electron Microscope?

References (click to expand)
  1. PC mouse info - Washington. The University of Washington
  2. Lyon, R. F. (1981). The Optical Mouse, and an Architectural Methodology for Smart Digital Sensors. VLSI Systems and Computations. Springer Berlin Heidelberg.
  3. Dernoncourt, F. (2014). Replacing the computer mouse (Version 1). arXiv.
About the Author

Ashish is a Science graduate (Bachelor of Science) from Punjabi University (India). He spearheads the content and editorial wing of ScienceABC and manages its official Youtube channel. He’s a Harry Potter fan and tries, in vain, to use spells and charms (Accio! [insert object name]) in real life to get things done. He totally gets why JRR Tolkien would create, from scratch, a language spoken by elves, and tries to bring the same passion in everything he does. A big admirer of Richard Feynman and Nikola Tesla, he obsesses over how thoroughly science dictates every aspect of life… in this universe, at least.

   -   Contact Us