Go to Post We haven't yet been able to find the A-team, but if we do... well, I pity the fool. :) - Madison [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 29-12-2004, 11:20
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
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?
__________________
Trenton Tornadoes 381
2004 Philadelphia Regional Winners
2006 Xerox Creativity Award
---
My corner of the USPTO.
My favorite error message from gcc: main is usually a function
My favorite error message from Windows: There is not enough disk space available to delete this file.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 09:40.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi