Naked Science Forum
Non Life Sciences => Technology => Topic started by: chris on 20/03/2009 09:45:16
-
Gone are the days of the balls clogging up with bit of grease, hair, lunch left-overs - modern mice have a bright LED shining from the bottom. So how does this "read" the surface and translate this into movements of my mouse pointer?
Chris
-
Gone are the days of the balls clogging up with bit of grease, hair, lunch left-overs
Chris
I see that you've improved your personal hygiene, then!
-
The wonders of cheap, powerful, signal processing.
The mouse takes pictures of the table beneath it at a high sampling rate. The processing is done in two dimensions but it is easier to describe it in one dimension (motion side to side, for instance). By comparing each picture with the previous one, it is relatively simple to tell whether it has moved left or right. One way is to analyse the picture in terms of its spatial frequencies and then see how the phases change from picture to picture. If the phase increases, then the mouse is going, say, left and if it is decreasing, the mouse is going right.
By combining this with up/down movement information, the mouse can detect which direction it is moving and how fast.
Actually, the mouse has a relatively easy job because the whole of its picture is moving and your brain is part of the feedback loop which controls where you actually put the pointer on the screen. It just has to sample things fast enough and have enough contrast in its picture to get sense out of it. It is much harder to detect motion of objects across a fixed background - or even various objects moving against a moving background. Lots of grunt needed to do that!
I remember going into a shop (Dixons, I think) on Oxford street, several years ago. They had an flashy new model Apple computer with a 'NEW' optical mouse on display. They had put it on a shiny glass topped table to make it look really flashy but the mouse didn't / couldn't work! DURRRRR - they hadn't sussed out why. I had to use the mouse on my sleeve to make it work.
See http://en.wikipedia.org/wiki/Optical_mouse#Optical_mice (http://en.wikipedia.org/wiki/Optical_mouse#Optical_mice) for a more coherent discussion.
-
Gone are the days of the balls clogging up with bit of grease, hair, lunch left-overs
Chris
I see that you've improved your personal hygiene, then!
(https://www.thenakedscientists.com/forum/proxy.php?request=http%3A%2F%2Fwww.freesmileys.org%2Fsmileys%2Fsmiley-laughing025.gif&hash=667bd47163683514a6a85814cbe2b0dc) (http://www.freesmileys.org)
-
SC. My mouse is on a uniform;y white piece of paper yet it still tracks without a problem.
When I had it on my desk, which is white with a glass top, it didn't work.
-
It may look uniform to your eyes, DrB, but the mouse image sensor can work by picking up the texture. Possibly, the monochromatic illumination at a low angle helps to enhance the rough appearance of your 'plain' paper?
-
So why wouldn't it work on my glass desktop?
-
Gone are the days of the balls clogging up with bit of grease, hair, lunch left-overs - modern mice have a bright LED shining from the bottom. So how does this "read" the surface and translate this into movements of my mouse pointer?
Chris
The optical mouse not as ball to clean it is necessary
-
So why wouldn't it work on my glass desktop?
No texture.
-
But there is texture under the glass.
-
Too thick?
-
You should use lense... ha ha a hah aha ha h a
-
But there is texture under the glass.
The light source of the mouse, presumable points along the surface - yes, mine does, I checked. It won't get to the underneath of your glass and back up to the sensor (total internal reflection at the top surface, probably).
DON'T BE AWKWARD! Use it properly or I'll take it away from you.
-
DON'T BE AWKWARD! Use it properly or I'll take it away from you.
Try it, Bucko! (https://www.thenakedscientists.com/forum/proxy.php?request=http%3A%2F%2Fwww.elasticdragon.com%2Fgalleries%2Fillustration%2Fphotos%2Fweb2-Angry-Beaver.jpg&hash=0ffa5b04bdd597eb6de06cb488e5c101)
-
Of course all common mice use optical priniciples - the older ones use wheels with slots in them and light beams passing through the slots... [;)]
The newer mice marketed as "optical" use a cheap low-resolution CCD/CMOS camera (maybe something like 64x64 pixels) and image the surface of the tabletop and as sophiecentaur said, use correlation algorithms to track the motion of the image from one frame to the next.
The illumination is glancing-angle - it shines on the surface near-horizontally or tangentially. This gives high contrast illumination of surface roughness, so a piece of paper is actually very good. It might even work on fairly scratched glass, but won't work on a highly polished surface having no texture of its own.
Presumably the camera has a limited depth of field so wouldn't see clearly if spaced a few millimetres from a textured surface by a layer of glass - also geometrically the light would tend to be off-target of where the camera is looking as you change the spacing.
I haven't tried it, but you might manage to confuse an optical mouse if you tried using it on a material printed with a high-contrast repetitive pattern such as fine (1-2mm?) uniformly-spaced black and white lines... you might also find that in doing so it'll only work sideways and not up and down or somesuch.
-
Aliasing is what you're referring to, I think.