Header graphics: Explain that stuff
Custom Search
Sponsored links

You are here: Home page > A-Z index > Computer mice

A basic computer mouse

Computer mice

Last updated: April 23, 2010.

Once upon a time, if you'd seen a mouse in your room you might have screamed and jumped up on the desk. Today, the mouse has jumped on your desk instead: it's the handy little pointer that makes your computer easy to use. The first mouse was made of wood and designed over four decades ago in 1961. Today, mice sell by the million and hardly a computer ships without one. They've changed quite a bit in that time but they still work in much the same way. Let's take a look inside!

Photo: The computer mouse is an amazingly ergonomic little gadget that bridges the gulf between person and machine. Choose your mouse carefully and don't be afraid to spend money on it: you'll probably be holding this thing for several hours a day for quite a few years, so it's worth the investment!

What is a computer mouse?

A mouse is something you push along your desktop to make a cursor (pointing device) move on your screen. So what a mouse has to do is figure out how much you're moving your hand and in which direction. There are two main kinds of mice and they do this job in two different ways, either with a moving rubber ball or with LED optics.

Inside a ball-style computer mouse

Traditional mice have a rubber ball inside them. Open one up and you can see the heavy ball clearly and the spring that keeps it in position.

Here's the inside of an old-style Logitech ball mouse:

Components inside a low-cost ball and wheel mouse

  1. Switch detects clicks of left mouse button.
  2. Switch for middle button.
  3. Switch for right button.
  4. Old-style connection to PS/2 socket on computer.
  5. Chip turns back-and-forth (analog) mouse movements into numeric (digital) signals computer can understand.
  6. X-axis wheel turns when you move mouse left and right.
  7. Y-axis wheel turns when you move mouse up and down.
  8. Heavy rubber wheel.
  9. Spring presses rubber ball firmly against X- and Y-axis wheels so they register movements properly.
  10. Electrolytic capacitor
  11. Resistors.

A hi-res version of this image is available from our photo library. You can see a slightly bigger version on our Flickr page.

How a ball computer mouse works

How does a mouse like this actually work? As you move it across your desk, the ball rolls under its own weight and pushes against two plastic rollers linked to thin wheels (numbered 6 and 7 in the photo). One of the wheels detects movements in an up-and-down direction (like the y-axis on graph/chart paper); the other detects side-to-side movements (like the x-axis on graph paper).

A basic computer mouse

How do the wheels measure your hand movements? As you move the mouse, the ball moves the rollers that turn one or both of the wheels. If you move the mouse straight up, only the y-axis wheel turns; if you move to the right, only the x-axis wheel turns. And if you move the mouse at an angle, the ball turns both wheels at once. Now here's the clever bit. Each wheel is made up of plastic spokes and, as it turns, the spokes repeatedly break a light beam. The more the wheel turns, the more times the beam is broken. So counting the number of times the beam is broken is a way of precisely measuring how far the wheel has turned and how far you've pushed the mouse. The counting and measuring is done by the microchip inside the mouse, which sends details down the cable to your computer. Software in your computer moves the cursor on your screen by a corresponding amount.

Photo:A ball mouse detects movements by using a wheel with spokes to break a light beam. On one side of the wheel, there's an LED (light emitter) that generates an infrared beam. On the other side, there's a photoelectric cell (light detector) that receives the beam. As the heavy rubber ball moves, it makes the wheel turn, so its spokes break the beam. Counting the number of times the beam is broken measures how much the mouse has moved. See a bigger version of this photo on our Flickr page.

There are various problems with mice like this. They don't work on all surfaces. Ideally, you need a special mouse mat but, even if you have one, the rubber ball and its rollers gradually pick up dirt, so the x- and y-axis wheels turn erratically and make the pointer stutter across your screen. One solution is to keep taking your mouse to pieces and cleaning it; another option is to get yourself an optical mouse.

How an optical mouse works

The underside of a typical optical mouse showing the LED and photocell.

An optical mouse works in a completely different way. It shines a bright light down onto your desk from an LED (light-emitting diode) mounted on the bottom of the mouse. The light bounces straight back up off the desk into a photocell (photoelectric cell), also mounted under the mouse, a short distance from the LED. The photocell has a lens in front of it that magnifies the reflected light, so the mouse can respond more precisely to your hand movements. As you push the mouse around your desk, the pattern of reflected light changes—and the chip inside the mouse uses this to figure out how you're moving your hand.

Photo: An optical mouse seen from underneath. Note how the rubber ball you'd find in a ball-wheel mouse has been replaced by the photocell and LED.

Some optical mice have two LEDs. The first one shines light down onto the desk. The light from that is picked up by the photocell. The second LED lights up a red plastic strip along the back of the mouse so you can see it's working. Most optical mice also have a wheel at the front so you can scroll pages on-screen much faster. You can click the wheel too, so it functions like the third (center) button on a conventional ball mouse.

Inside an optical computer mouse

An optical mouse is much more hi-tech than a ball mouse. Where a ball mouse is almost entirely mechanical, an optical mouse is almost entirely electronic (it has almost no moving parts).

Here's the inside of a typical optical mouse and the main components:

Components inside a low-cost optical mouse

  1. Scroll wheel. You can also click it down like the center button on a conventional mouse.
  2. LED (obscured by wheel).
  3. Switch detects when you press left mouse button. There's an identical switch on the right to detect the right mouse button and the whole click wheel is mounted on another switch so it doubles as a third, central button.
  4. Potentiometer (variable resistor) measures how much you turn the wheel.
  5. LED.
  6. Resistor.
  7. Mica capacitor.
  8. Electrolytic capacitor.
  9. Prism bends light from LED through 90° down onto desk.
  10. Light-detector chip measures light reflected from desk and sends details of mouse movements to computer.
  11. Resistors.
  12. USB cable connection to computer.
  13. LED shines light down onto desk.

A hi-res version of this image is available from our photo library. There's a slightly bigger version on our Flickr page.

A short history of the computer mouse

A basic computer mouse

For most of their history, computers were the province of egg-heads and boffins. You needed a maths degree just to understand the manual and you could only tell them what to do by feeding in a stack of index cards punched with holes. All that started to change when a brilliant US computer scientist named Douglas Engelbart (1925–) invented the computer mouse.

Engelbart realized computers were far too useful just for boffins: he could see they had the power to change people's lives. But he could also see that they needed to be much easier to use. So, during the 1960s, he pioneered most of the easy-to-use computer technologies that we now take for granted, including on-screen word processing, hypertext (the way of linking documents together used in web pages like these), windows (so you can have more than one document or program in view at a time), and video conferencing.

But he's still best known for inventing the mouse, or the "X-Y Position Indicator" as it was originally known. That stuffy name was dropped when someone spotted that the cable hanging out looked just like a mouse's tail. From then on, Engelbart's invention was known simply as the "mouse".

For more about the history of computer mice, take a look at

Sponsored links

Text copyright © Chris Woodford 2007. All rights reserved.

All unattributed images (those created by Explainthatstuff.com) are licensed under a Creative Commons License.
Please kindly take a look at our copyright notes before using material from this website.
Product photos are included for illustrative purposes only.
They do not represent any endorsement by us of the products shown
or any endorsement by the product manufacturers of this website or anything we say in the text.

Please help our chosen good cause! WaterAid brings clean water and sanitation to people in 17 developing countries Water Aid logo

Share this page

Help other people find this page by bookmarking it with:

Delicious   Digg   reddit   Facebook   StumbleUpon   Google   Twitter   Email it to a friend

Link to this page

If you'd like to link to this page, thank you! Here's some code you can cut and paste:

Can't find what you want? Search the Web here!

Custom Search