Sending data through PS/2 keyboard port
bTalcott
Posts: 1
I'm totally new to stamps.
I'm looking for an example of how I could send data through a PS/2 style cable to my computer's keyboard port.
Looking to send info on timed events as well as from environmental input to the stamp (doorswitch open and close).
Any leads?
Thanks,
~ B
I'm looking for an example of how I could send data through a PS/2 style cable to my computer's keyboard port.
Looking to send info on timed events as well as from environmental input to the stamp (doorswitch open and close).
Any leads?
Thanks,
~ B
Comments
If you can juggle and filter all that, you have excellent programing skills.
With the Stamps you have a bit of a snag. The 8bits of information has a pairty bit, a start bit, and a stop bit. So each byte is 11 bits long when going into the computer and 12 bits long when going into the keyboard or your BasicStamp in this case [noparse][[/noparse]don't forget the acknowledge bit].
For using a keyboard with a BasicStamp,
Most of us just give up and buy an adapter from either Al Williams [noparse][[/noparse]at about $25] with complete board or a single DIP [noparse][[/noparse]$6] from another outfit. Al William's product gives both the raw keyboard codes or the converted to ASCII.
Sending to a computer,
I suppose you could possilby do the send, but there is a problem in that the computer will want to pull the clock line high to tell you to wait until it is ready for more data. You could ignore it, but that would lose input.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan