How an optical mouse works

in howstuffworks •  7 years ago  (edited)

I always wanted to know, so i thought i would share

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.

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.

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

Here's the inside of a typical optical mouse and a few of the main components. The most interesting bits are in the center (where the LED light shines down onto your desk) and at the front (where button presses are detected by switches):

An LED at the back generates red light and shines it horizontally, from the back of the mouse toward the front (from the left to the right of this photo).
A plastic light guide channels the light from the LED at an angle, down onto the desk.
A light-detector chip measures light reflected back up from the desk, converting the analog movements of your hand into digital signals that can be sent to your computer.
The scroll wheel at the front of the mouse is mounted on a switch mechanism that detects both how much it's rotated and whether you've pressed it (it functions like the central button of a conventional mouse). Rotations of the scroll wheel can be detected in a variety of different ways. Some mice use potentiometers (broadly, variable resistors), similar to the volume control on a radio but able to turn around multiple times. Others use various kinds of rotary switches or optical (rotary) encoders to convert analog wheel movements to digital signals.
A microswitch detects when you press the right mouse button. There's an identical switch on the other side to detect the left mouse button.
The USB cable connection carries digital information from the mouse to your computer.

Text source: http://www.explainthatstuff.com/computermouse.html
Image source: http://www.explainthatstuff.com/computermouse.html

Words and images not my own

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
http://www.explainthatstuff.com/computermouse.html

This post has received a 0.20 % upvote from @drotto thanks to: @banjo.