Mouse interface
Lars-
If you can get your hands on the Jan and Feb 2000 issues of Nuts and
Volts, the "how" is (I hope) pretty completely explained there.
Tells you the details of how the PS2 mouse works, how to build your
own mouse interface, and gives some examples of Stamp programs using
the interface. I'm not familiar with the optical mouse.
I expect Al will also chime in to offer his product. If not, see
http://www.al-williams.com
Regards,
Steve
On 10 Sep 01 at 16:39, Lars Richter wrote:
>
> Would there be any body that knows how to interface a PS2 mouse to
> the basic stamp? Or better an PS2 optical mouse?
If you can get your hands on the Jan and Feb 2000 issues of Nuts and
Volts, the "how" is (I hope) pretty completely explained there.
Tells you the details of how the PS2 mouse works, how to build your
own mouse interface, and gives some examples of Stamp programs using
the interface. I'm not familiar with the optical mouse.
I expect Al will also chime in to offer his product. If not, see
http://www.al-williams.com
Regards,
Steve
On 10 Sep 01 at 16:39, Lars Richter wrote:
>
> Would there be any body that knows how to interface a PS2 mouse to
> the basic stamp? Or better an PS2 optical mouse?
Comments
stamp?
Or better an PS2 optical mouse?
Lars Richter
Original Message
From: S Parkis [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=tpemrgrqZVIBsNcv66mn7oxCZDqKv_k8fa-gcx82vNhKW9mJS7fGp3bIMjlRtp_JDY88E2WtNaUt4KsTcw]parkiss@e...[/url
Sent: Monday, September 10, 2001 4:34 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Mouse interface
Lars-
If you can get your hands on the Jan and Feb 2000 issues of Nuts and
Volts, the "how" is (I hope) pretty completely explained there.
Tells you the details of how the PS2 mouse works, how to build your
own mouse interface, and gives some examples of Stamp programs using
the interface. I'm not familiar with the optical mouse.
I expect Al will also chime in to offer his product. If not, see
http://www.al-williams.com
Regards,
Steve
On 10 Sep 01 at 16:39, Lars Richter wrote:
>
> Would there be any body that knows how to interface a PS2 mouse to
> the basic stamp? Or better an PS2 optical mouse?
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
You can put the chip in raw mode and then read mouse input.
Al Williams
AWC
--- In basicstamps@y..., "Lars Richter" <larsr@n...> wrote:
>
> Would there be any body that knows how to interface a PS2 mouse to
the basic
> stamp?
> Or better an PS2 optical mouse?
>
> Lars Richter
data to the computer, My serial skills are very dusty on the stamp.
This is the pin configuration on a PS2 mouse
1. Unused
2. +5 volts (to power the chip and LEDs)
3. Unused
4. Clock
5. Ground
6. Data
Whenever the mouse moves or the user clicks a button, the mouse sends three
bytes of data to the computer. The first byte's 8 bits contain:
1. Left button state (0 = off, 1 = on)
2. Right button state (0 = off, 1 = on)
3. 0
4. 1
5. X direction (positive or negative)
6. Y direction
7. X overflow (the mouse moved more than 255 pulses in 1/40th of a second)
8. Y overflow
The next two bytes contain the X and Y movement values respectively. These
two bytes contain the number of pulses that have been detected in the X and
Y direction since the last packet was sent.
The data is sent from the mouse to the computer serially on the data line,
with the clock line pulsing to tell the computer where each bit starts and
stops. 11 bits are sent for each byte (1 start bit, 8 data bits, 1 parity
bit and 1 stop bit). The PS/2 mouse sends on the order of 1,200 bits per
second. That allows it to report mouse position to the computer at a maximum
rate of about 40 reports per second. If you are moving the mouse very
rapidly, the mouse may travel an inch or more in 1/40th of a second. This is
why there is a byte allocated for X and Y motion in the data protocol.
Thanks Lars
Original Message
From: Al Williams [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ws4LjsMrP_zhapyWj_qzNzm5Z9feyiUDklXHYZPU4dYdfHscQ37mrRb8JIXUJ5htuntoSoMPV18FOqDN]alw@a...[/url
Sent: Tuesday, September 11, 2001 2:26 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: Mouse interface
Have a look at http://www.al-williams.com/awce/pak6.htm
You can put the chip in raw mode and then read mouse input.
Al Williams
AWC
--- In basicstamps@y..., "Lars Richter" <larsr@n...> wrote:
>
> Would there be any body that knows how to interface a PS2 mouse to
the basic
> stamp?
> Or better an PS2 optical mouse?
>
> Lars Richter
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/