Mouse Encoder & Basic Stamp 2
DanOtn
Posts: 2
I'm helping my daughter with a school project.
I'd like to use an old mouse to roll along and measure a distance and then flip a switch.
Mouse encoder & Basic Stamp 2... Am I using the right stuff?· What might the code look like?
Thanks
I'd like to use an old mouse to roll along and measure a distance and then flip a switch.
Mouse encoder & Basic Stamp 2... Am I using the right stuff?· What might the code look like?
Thanks
Comments
I have been using the PAK VI and PAK XI co-processors from AWE Electronics with great success. I have been able to read the X & Y movement registers and buttons and I have been able to set the scaling, sample rate and resolution of most PS/2 mice. BS2 code is provided from AWE with the data sheets and application notes.
·
Some mice do not respond to all the commends and some mice do not respond to the middle button. The AWE products will not support the intelli mouse protocols with the rolling wheel and 5 buttons. However, almost all mice will power up to the IBM PS/2 or non-intelli mouse protocol.
·
I use the devices to pan & tilt using servos a laser pointer to keep my dog busy. The device is also being used to remotly control a TV and DVD using IR.
The PAKXI also known as PAK11 application note has BASIC STAMP code to measure mouse travel both in both english and metric units.
It sounds like a great school project.
·
Attached are some links for reading.
·
http://www.awce.com/
·
http://www.awce.com/pak6.htm
http://www.awce.com/pak6.pdf
http://www.awce.com/pak6mou.htm
http://www.awce.com/pak6mou1.htm
·
http://www.awce.com/pak11.htm
http://www.awce.com/pak11.pdf
http://www.awce.com/pak11note.htm
http://www.computer-engineering.org/ps2mouse/
·
You might also want to try this co-processor from MultiLabs:
http://www.multilabs.net/ezMOUSE.html
·
and an application note for the Basic Stamp: http://www.multilabs.net/Files/Using_the_ezMOUSE_with_the_BASIC_Stamp_2.pdf
I am not familiar with the MultiLabs EzMouse products.
·
SJW
>>"It is not an odometer/dead reckoner ("How far, exactly, have I gone?")"