Optical sensor

Hi

I want to make a project where I am reading the movement of something over a surface (but not touching). This would work by using an optical mouse, but I want to be able to use the mouse as well.

Is there any way of connecting an optical mouse cmos style sensor to arduino?

here is some detailed info and sensor comparisons http://www.ida.net/users/oe1k/OpticalMouse/

thanks chris

it largely depends on the optical mouse you use.

some camera chips inside the mice have what they call "quadrature outputs" these provide data in a format similar to mechanical mouse. you can read them easily in arduino using 4 pins.

if you look for "quadrature encoders" or "shaft encoders" online, you'll find some code examples on how to read them

one of my students has used one of them as a movement sensor in arduino, i'll see if I can get him tp write a tutorial

massimo

Hi Chris,

Yes it's possible, I've made it... Take a look at : http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1154816099. In French but ask me if you have some questions.

Hello, I am impressed with this... Is it possible to use the same settings, ie optical mouse connecting to Arduino board... to interface with Puredata? What I am trying to do is using Puredata, and 4 USB webcams to capture images from a live performance... And somehow use the optical mouse, under a sphere or globe to move the images around and project the images on a projector screen... Thank you in advance.

Hi Chris,

Yes it's possible, I've made it... Take a look at : http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1154816099. In French but ask me if you have some questions.