Using Mouse as rotation sensors

 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
Using Mouse as rotation sensors Luca Bertoncello 10-25-2005
Posted by Luca Bertoncello on October 25, 2005, 5:55 am
Please log in for more thread options
Hi, all!

I want to use a mouse to have 3 rotation sensor for a robot.
No problem to read X and Y axes and the buttons, but I can't read the
"wheel", that I want to use as third sensor (I need 3 rotation sensors...).

I didn't found any description of the protocol of a wheel Mouse (Z-axis).

Can anyone say how can I read this value?

Thanks a lot in advance!
Luca Bertoncello
(lucabert@lucabert.de)

--

questo articolo e` stato inviato via web dal servizio gratuito
http://www.newsland.it/news segnala gli abusi ad abuse@newsland.it



Posted by Anthony Fremont on October 25, 2005, 6:43 am
Please log in for more thread options

> Hi, all!
>
> I want to use a mouse to have 3 rotation sensor for a robot.
> No problem to read X and Y axes and the buttons, but I can't read the
> "wheel", that I want to use as third sensor (I need 3 rotation
sensors...).
>
> I didn't found any description of the protocol of a wheel Mouse
(Z-axis).
>
> Can anyone say how can I read this value?

The wheel is actually 3 buttons. One for each direction, plus one for
pushing down. It is not like the X-Y encoders.


Posted by Luca Bertoncello on October 25, 2005, 7:12 am
Please log in for more thread options
Anthony Fremont ha scritto:

> The wheel is actually 3 buttons. One for each direction, plus one for
> pushing down. It is not like the X-Y encoders.

Ach!

Then I just have to check which "button" is checked?

But it seems not so to work...
I get always the first byte as "8"...

What do I do false?

Thanks (and sorry for my english...)
Luca Bertoncello
(lucabert@lucabert.de)

--

questo articolo e` stato inviato via web dal servizio gratuito
http://www.newsland.it/news segnala gli abusi ad abuse@newsland.it



Posted by Anthony Fremont on October 25, 2005, 11:31 am
Please log in for more thread options

> Anthony Fremont ha scritto:
>
> > The wheel is actually 3 buttons. One for each direction, plus one
for
> > pushing down. It is not like the X-Y encoders.
>
> Ach!
>
> Then I just have to check which "button" is checked?
>
> But it seems not so to work...
> I get always the first byte as "8"...
>
> What do I do false?

The wheel-mouse protocol (MS Intellimouse) uses a 4 byte packet. Since
this is not compatible with the 3 byte ps/2 format, the mouse powers on
in ps/2 compatibility mode. In order to detect the wheel and extra
buttons, you have to tell the mouse to switch modes. BTW, I was wrong
(partly). The wheel can be reported as a Z axis (like the X and Y
movements) or as a set of extra buttons. It's your choice. It's all
right here:

http://www.computer-engineering.org/ps2mouse/


Posted by Luca Bertoncello on October 25, 2005, 12:02 pm
Please log in for more thread options
Anthony Fremont ha scritto:

> The wheel-mouse protocol (MS Intellimouse) uses a 4 byte packet. Since
> this is not compatible with the 3 byte ps/2 format, the mouse powers on
> in ps/2 compatibility mode. In order to detect the wheel and extra
> buttons, you have to tell the mouse to switch modes. BTW, I was wrong
> (partly). The wheel can be reported as a Z axis (like the X and Y
> movements) or as a set of extra buttons. It's your choice. It's all
> right here:

This is not the solution...
The fourth byte is always equal to the first...

I can't understand...

Thanks
Luca Bertoncello
(lucabert@lucabert.de)

--

questo articolo e` stato inviato via web dal servizio gratuito
http://www.newsland.it/news segnala gli abusi ad abuse@newsland.it



Similar ThreadsPosted
Rotation Counter August 13, 2005, 11:59 pm
Modify Hitec HS-475HB for continuous rotation? March 9, 2008, 11:44 pm
USB Mouse information March 3, 2006, 9:37 am
How to build your optical "mouse"? August 12, 2005, 7:48 pm
Measuring travel with a mouse? March 22, 2007, 8:43 pm
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
Ball mouse turned into cheap tachometer... May 24, 2006, 4:10 pm
Opitical Mouse for tracking robotic movement August 28, 2006, 1:07 am

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

Contact Us | Privacy Policy