To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 18352
18351  |  18353
Subject: 
RE: Gutting an optical mouse - Part I
Newsgroups: 
lugnet.robotics
Date: 
Fri, 12 Jul 2002 20:53:05 GMT
Original-From: 
Rob Limbaugh <RLimbaugh@&stopspammers&greenfieldgroup.com>
Viewed: 
750 times
  

          Clockwise
Detent?     Bit 0     Bit 1
    Y             0           0
    N             0           0
    Y             1           1
    N             0           1
(pattern repeats 11 more times)


It appears to me there is a slight mistake here.  According
to this, there is no way to distinguish between the first row
and the second.  I assume the second should be 10, so it
would go 00 10 11 01.


I thought this was an error to, so I spent about an hour triplechecking my
findings.  Bear in mind that the scroll wheel doesn't need 7.5-degree-per-step
accuracy, which is what that extra bit would give.

This is a chart of the data I collected when graphed.


                          Clockwise
               ___             ___             ___
Bit 0         |   |           |   |           |   |
       ___.___|   |___.___.___|   |___.___.___|   |___.
        0   0   1   0   0   0   1   0   0   0   1   0
               ___.___         ___.___         ___.___
Bit 1         |       |       |       |       |       |
       ___.___|       |___.___|   .   |___.___|   .   |
        0   0   1   1   0   0   1   1   0   0   1   1
Time   ---.---.---.---.---.---.---.---.---.---.---.---



                       Counter Clockwise
               ___             ___             ___
Bit 0         |   |           |   |           |   |
       ___.___|   |___.___.___|   |___.___.___|   |___.
        0   0   1   0   0   0   1   0   0   0   1   0
           ___.___         ___.___         ___.___
Bit 1     |       |       |       |       |       |
       ___|       |___.___|   .   |___.___|   .   |___
        0   1   1   0   0   1   1   0   0   1   1   0
Time   ---.---.---.---.---.---.---.---.---.---.---.---


As you can see, direction and velocity can be determined.  Rapid oscillations in
a 7.5 or 15-degree arc could be problematic if only one of these was relied on.

On the other hand, it's possible I have a mouse with a bad part or ruined it...
too bad I voided the warranty! :)

Hope this clarifies things a bit!

Rob



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
19 hours ago
Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR