Pages: [1]   Go Down
Author Topic: Mouse - sensor  (Read 827 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!


ñ
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 572
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's some info from a simmilar project

http://home.comcast.net/%7Emaccody/robotics/croms-1/croms-1.html

Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 91
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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/
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: January 09, 2011, 06:03:31 pm by willum070 » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 49077
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I am curious about how one would go about reading mouse data.
Well, that really depends on the type of mouse you have.

Quote
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.

Quote
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.
Logged

Pages: [1]   Go Up
Jump to: