BS2 - keyboard encoder
Jayguy5000
Posts: 139
Is it possible to use a BS2 to do the same job as a keyboard encoder? meaning can I connect a ps2 port to a basic stamp, conntect it to a computer then have the stamp send out a signal that would be the same signal comming from a keyboard encoder to create a letter on the screen?
Comments
No, but there are off-board processors that can do that sort of thing. Ask if you want to know more about them.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
·
·· The BASIC Stamp isn’t fast enough to read the keyboard, but I believe I have seen examples of someone sending keycodes to the computer with it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Maybe somebody has already noted the "codes."· Try researching that a bit.
** Post Edit **· I don't think the Clock line is going to make it, as a trigger.· The sync would be the key-strike (ne c'est?).· I assume that you don't have a DSO, so you need to repeatedly hit the key (regularly.)
Post Edited (PJ Allen) : 12/9/2006 1:52:10 AM GMT
·
· ··Yes, you could see the keyboard signals on the scope.· The keyboard signal is kind of an SPI type signal.· Connect one channel to the Clock line and the other to the Data line.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
·
·· All of this is assuming the devices are PS/2 (and/or serial, in the case of the mouse).· I would recommend looking up the signals on Google.· There are plenty of sites which tell how keyboards and mice work.· Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
www.mbhs.edu/~ojenkins/wearable/fiddler/keybtst.txt
www.mbhs.edu/~ojenkins/wearable/fiddler/keybtst.bs2
Harrison
Can I ask why you would want to send the data to the PC from the Stamp this way?
Post Edited (bennettdan) : 12/9/2006 5:19:17 AM GMT