Subject:
|
PS2 mouse software for handyboard
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Wed, 21 Aug 2002 05:43:22 GMT
|
Viewed:
|
8113 times
|
| |
| |
Almost two years ago I wrote PS2 drivers for the handyboard so I could use
two
optical mice on my robot. I got it working but its very buggy. The source
code is something like 11 pages of assembly but could probably be shortened
a bit.
Some of the problems are: you have to reload your program to the hb after
each run because of the infamous "smoo" error, where it would get as far as
printing the "smoo" part of "smooth pwm" from the pcode ident string then
freeze. Also, it needed to be initialized at a very specific time in the
startup of the hb. I couldn't find sufficient documentation to tell me what
was exactly going on when you turned on the hb, but for some reason it was
very picky as to how many seconds (or what you did) before initializing the
mice. And, there is a little 'undocumented feature' of the handyboard that
prevents the mice from resetting completely if the serial cable is attached,
so you have to unplug it before turning it on.
If anyone would like the code and whatever I can throw together to describe
the electrical hookup, throw me an email at morin.20(at)osu.edu and I'll see
what I can do.
(As a warning, optical mice do no like rotation very much. Mount them where
they will have the longest arc, and thus the least rotation, as your robot
turns. I have not tried ball mice on a robot.)
-Craig Morin
Teaching Assistant
Freshman Engineering Honors Program
The Ohio State University
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|