Keyboards, Mouses, connections, oh my!
Archiver
Posts: 46,084
I have a keyboard and a mouse that I would like to use as inputs to my BS2. How
do I tell which connections are power, data, etc? Do most keyboards use the same
serial properties (parity, stop bits, baud rate, etc)? Any help is appreciated!
[noparse][[/noparse]Non-text portions of this message have been removed]
do I tell which connections are power, data, etc? Do most keyboards use the same
serial properties (parity, stop bits, baud rate, etc)? Any help is appreciated!
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
data, and clock. Have a look at
http://www.al-williams.com/awce/pak6app.pdf for the connection diagrams.
The PAK-VI can read a keyboard or a mouse very easily
(http://www.al-williams.com/awce/pak6sim.htm /
http://www.al-williams.com/awce/pak6.htm /
http://www.al-williams.com/awce/pak6mou.htm).
The protocol is synchronous and fast and would be relatively difficult
to handle without some kind of external help. I've seen some simple
circuits that use a shift register to get the hardware part, but then
you still have to handle the protocol and the conversion from scan codes
to ASCII (or mouse motion). The PAK-VI can "cook" raw data to ASCII (or
it will let you read raw data). It can automatically control the shift
LEDs (or not). It also provides a buffer so you don't have to read
everything right away.
Curiously, I don't think the PC cares what speed the keyboard runs at,
so it should be very easy to make a Stamp look like a keyboard (or
mouse) but it is harder to keep up with the relatively fast keyboard and
mouse.
You can find the PAK-VI on our site or get them from Parallax (bottom of
http://www.parallaxinc.com/html_files/products/BS_Accessories/memkey_bri
ef.asp).
Al Williams
AWC
* Floating point A/D
http://www.al-williams.com/awce/pak9.htm
>
Original Message
> From: Astro Fizzix [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=BVCrd8DDAcXT2_3zmyIVnfh8PyKDVW3880ee8e6SuxJy3_3ZUngHnL_nZuIgS-2caN3jyIGkMzwk_RuEy52H]astro_fizzix@y...[/url
> Sent: Thursday, December 27, 2001 1:49 PM
> To: Post BS Message
> Subject: [noparse][[/noparse]basicstamps] Keyboards, Mouses, connections, oh my!
>
>
> I have a keyboard and a mouse that I would like to use as
> inputs to my BS2. How do I tell which connections are power,
> data, etc? Do most keyboards use the same serial properties
> (parity, stop bits, baud rate, etc)? Any help is appreciated!
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> 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/
>