|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
External Lens for optical mouse
I've seen various suggestions on the web to use an optical mouse as a position sensor. What a great idea: it's non-contact, so it won't wear out from use. And it's pretty accurate(?). And it uses a serial (but synchronous) interface that outputs delta x and y values as 7 or 8 bit values.
And they're relatively cheap. One big problem is that optical mice are not designed for the speeds at which FIRST robots move. They work by correlating subsequent snapshots from a very low-res imager (18x18). If the mouse moves so fast that two snapshots are of completely different (non-overlapping) areas, then correlation won't work. Yesterday I did an experiment with my computer's opitcal mouse. I took an old 35mm camera lens and held the mouse behind it so that the lens focused an image on the bottom of the mouse. It was tricky to find the right spot, but when I did, I could point it at a lamp across the room and, as I tilted and panned the lens, the mouse cursor moved very nicely, just like using a mouse pad. Except that the effective mouse position was moving feet, not inches! I had optically reduced the sensitivity of the mouse. This is very intriguing. One obvious application would be to aim it down at the carpet and track x/y robot motion. Perhaps it could even be used aimed horizontally (at the stands or whatever, focused at infinity?) to measure yaw. Potential snags: mice work well when there is some "acceleration" or other non-linearity applied. If this is applied by the driver after the mouse sends linear delta x/y values, then no problem. But if this happens inside the mouse, it could be a problem. I think some mice are different than others; I think some can be configured over their bidirectional serial line. Another snag is that PS/2 mice use a synchronous interface, not async like standard "serial" ports. I've heard that the TTL port on the PIC can be used for sync operation, but who knows how?? Here's the claim that the PIC TTL port can support sync interface: http://www.chiefdelphi.com/forums/sh...29&postcount=6 Comments? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for Mouse part | Mr. Lim | Electrical | 3 | 27-12-2004 19:56 |
| Optical Mouse / Ball Mouse | Clark Gilbert | Chit-Chat | 26 | 22-07-2004 13:17 |
| IS THIS RIGHT?!?!? | RebAl | General Forum | 22 | 31-03-2002 00:07 |
| All these mouse bots gives me an evil idea- CAT BOTS! | Patrick Wang | General Forum | 2 | 09-03-2002 22:43 |