Mouse - sensor

Hey all,

I have hacked up a M$ mouse and nabbed the LED/Sensor component.

Essentially what I want to do is to create my own mouse using this item.

I am working on Getting an oscilloscope so that I can look at the information comming off of this.

I am assuming that it is going to be two PWM signals. If this is the case, would I use the "pulseIn()" to read this?

Or does anybody know better?

Thanks oh so very much!

ñ

Here's some info from a simmilar project

http://home.comcast.net/~maccody/robotics/croms-1/croms-1.html

Optical mice often use a CCD sensor with 18x18 up to 30x30 pixel resolution. Some funny people have converted their mice into crappy scanners, or use these sensors for line following bots.

http://www.spritesmods.com/?art=mouseeye
http://www.mstarmetro.net/~rlowens/OpticalMouse/

Ahoy there, thought I'd resurrect this thread since I am curious about how one would go about reading mouse data. I tried using the OptiMouse library, but could not locate a mouse with the supported chipsets (that, and the project files are really picky to compile and return a weird error from math.h line 439).

Long story short I just want to set up a program to see the raw data being returned from a USB mouse. Is it indeed accomplished by reading pulseIn()? Any insight would be greatly appreciated!

Peace, Will

I am curious about how one would go about reading mouse data.

Well, that really depends on the type of mouse you have.

I tried using the OptiMouse library, but could not locate a mouse with the supported chipsets (that, and the project files are really picky to compile and return a weird error from math.h line 439).

Sorry. This is the Arduino forum. The psychic forum, that can divine the problem with no details, is the next web site over.

Long story short I just want to set up a program to see the raw data being returned from a USB mouse.

Is the USB mouse a USB master or a USB slave? The Arduino is not a USB master, so additional hardware and a lot of skill (and some luck) is required to make it act like a USB master, to get data from a USB slave.

If the mouse is a USB master (unlikely), then it may be able to send data to the Arduino.