Measuring travel with a mouse?

 comp.robotics.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Measuring travel with a mouse? Jeff Holinski 03-22-2007
Posted by Jeff Holinski on March 22, 2007, 8:43 pm
Please log in for more thread options
We just blew the linear encoder on our hydralic press at work. A new
one with 40" of travel is fairly expensive and I got to wondering if
you could use an optical computer mouse to measure distance traveled.

The idea is to mount the mouse to the base of the press and have a
piece of aluminum flatbar attached to the ram. The bar would pass in
front of the optical sensor on the mouse and a dedicated PC would
display the distance traveled.

Does anyone know if software to do this exists?
Failing that, is there any reason why Visual Basic shouldn't be able
to do this if I were to dig out my old copy and install it?



Remove nospam_ to reply by email

Jeff H........

Posted by Joe Strout on March 22, 2007, 11:45 pm
Please log in for more thread options

> The idea is to mount the mouse to the base of the press and have a
> piece of aluminum flatbar attached to the ram. The bar would pass in
> front of the optical sensor on the mouse and a dedicated PC would
> display the distance traveled.

It certainly sounds worth a try. My only concern is that it might not
be precise enough (depending on how much precision you need).

> Does anyone know if software to do this exists?
> Failing that, is there any reason why Visual Basic shouldn't be able
> to do this if I were to dig out my old copy and install it?

I'm not sure, but REALbasic can certainly do it. You can't just look at
the mouse position, because that will run into the edge of the screen
and stop updating. But if you treat the mouse as a game input device
(in REALbasic, using GameInputManager and related classes), then you can
get the delta on every update, and keep adding these up as long as you
need.

Sounds like a fun project, so I'd be happy to work with you on writing
that RB software if you like.

Best,
- Joe

Similar ThreadsPosted
Linear travel June 19, 2008, 12:36 pm
part on top of travel locates tenderly August 16, 2007, 4:39 am
Lisette competes teacher worth travel August 19, 2007, 7:58 am
Re: She wants to travel integrated posts for Imam's pier. December 13, 2007, 7:22 pm
USB Mouse information March 3, 2006, 9:37 am
How to build your optical "mouse"? August 12, 2005, 7:48 pm
Using Mouse as rotation sensors October 25, 2005, 5:55 am
Re: Jumpy Mouse Movement December 30, 2007, 10:31 am
Re: FURRY KISS A MOuSE December 29, 2007, 2:06 pm
Optical finger mouse - useful for robots? March 3, 2007, 9:55 am

The site map in XML format XML site map
other useful resources:
Official Robosapien Website
Lego Mindstorms Website

Contact Us | Privacy Policy