# How does an optical mouse work?

**URL:** <https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195>\
**Category:** Factual Questions\
**Created:** [March 21, 2003, 8:03pm UTC](https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195 "2003-03-21T20:03:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![I\_Brian](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@I\_Brian](https://boards.straightdope.com/u/I_Brian)\
**Post date:** [March 21, 2003, 8:03pm UTC](https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195/1 "2003-03-21T20:03:06Z")

</div>

I’m wondering what principle is used to work the directional control. I note it doesn’t work upside down or above a surface, so I’m figuring that it’s using the reflection of light from a surface to gauge it’s position.

But how does it actually do this?

Short and sweet explanation should be fine. 😉

---

<div class="post-metadata">

**Author:** ![Crowbar\_of\_Irony\_3](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@Crowbar\_of\_Irony\_3](https://boards.straightdope.com/u/Crowbar_of_Irony_3)\
**Post date:** [March 21, 2003, 8:11pm UTC](https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195/2 "2003-03-21T20:11:18Z")

</div>

Darn, I actually forgot - do think I studied this before…

The gist of it is the reflection of the lights. The mouse, using the reflective light, can detect how far the mouse have moved and hence is able to update the cursor on the screen.

> **[How Does an Optical Mouse Work?](https://computer.howstuffworks.com/question631.htm)**
>
> With the rise of the optical mouse, it appears that the venerable wheeled mouse is in danger of extinction. What makes an optical mouse better, and how does it work?

---

<div class="post-metadata">

**Author:** ![FatBaldGuy](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@FatBaldGuy](https://boards.straightdope.com/u/FatBaldGuy)\
**Post date:** [March 21, 2003, 8:45pm UTC](https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195/3 "2003-03-21T20:45:10Z")

</div>

I once tried to use an optical mouse on a table that had a pane of glass on top. Couldn’t get to mouse to work at all until I put a mouse pad under it.

---

<div class="post-metadata">

**Author:** ![ElwoodCuse](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@ElwoodCuse](https://boards.straightdope.com/u/ElwoodCuse)\
**Post date:** [March 22, 2003, 7:15am UTC](https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195/4 "2003-03-22T07:15:26Z")

</div>

Yes, optical mice do not like highly reflective surfaces, **FBG**. It usually specifically warns against this on their packaging.

---

<div class="post-metadata">

**Author:** ![scr4](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@scr4](https://boards.straightdope.com/u/scr4)\
**Post date:** [March 22, 2003, 7:28am UTC](https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195/5 "2003-03-22T07:28:45Z")

</div>

Basically, there’s a tiny video camera on the underside of the mouse. It looks at the desk surface and it can figure out if it’s moving or not. That’s why it doesn’t work on a perfectly flat and featureless surface.

---

<div class="post-metadata">

**Author:** ![Desmostylus](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Desmostylus](https://boards.straightdope.com/u/Desmostylus)\
**Post date:** [March 22, 2003, 7:40am UTC](https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195/6 "2003-03-22T07:40:10Z")

</div>

It’s stretching it a bit to call it a video camera, **scr4** , if it only has a 1 pixel resolution.

---

<div class="post-metadata">

**Author:** ![DarrenS](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DarrenS](https://boards.straightdope.com/u/DarrenS)\
**Post date:** [March 22, 2003, 7:41am UTC](https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195/7 "2003-03-22T07:41:56Z")

</div>

\<Minor hijack\> Is there any way to see what the mouse “sees” ? Or is the video “image” converted into x-y/velocity info long before it gets into the USB port?

---

<div class="post-metadata">

**Author:** ![scr4](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@scr4](https://boards.straightdope.com/u/scr4)\
**Post date:** [March 22, 2003, 8:09am UTC](https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195/8 "2003-03-22T08:09:07Z")

</div>

> [@](#):
>
> \*Originally posted by Desmostylus \*  
> \*\*It’s stretching it a bit to call it a video camera, **scr4** , if it only has a 1 pixel resolution. \*\*

How can it detect motion with a 1-pixel resolution? Optical mice use CMOS imaging sensors, which means a two-dimentional array of pixels. It’s the same type of sensor you’ll find in a webcam. I don’t know the exact resolution but I’d guess it has to be at least 60x60 to detect moving patterns. Imaging sensors are cheap these days - a 640x480 single chip image sensor with built-in lens costs only a few dollars.

**DarrenS** , the image is processed by the electronics in the mouse. The USB signal only carries the XY velolcities.

---

<div class="post-metadata">

**Author:** ![Desmostylus](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Desmostylus](https://boards.straightdope.com/u/Desmostylus)\
**Post date:** [March 22, 2003, 8:31am UTC](https://boards.straightdope.com/t/how-does-an-optical-mouse-work/163195/9 "2003-03-22T08:31:26Z")

</div>

I stand corrected. Sorry about that, **scr4**.
