Shop OBEX P1 Docs P2 Docs Learn Events
Emulate keyboard — Parallax Forums

Emulate keyboard

Does anyone have a spin object that emulates a p/s2 keyboard...I'm looking to use the propeller to read a few buttons and then sent the info to my pc as different keyboard keys...

Comments

  • LeonLeon Posts: 7,620
    Mike Green mentioned some code here:
    http://forums.parallax.com/discussion/93769/ps2-keyboard-emulator
    so it should be available.

  • "Whoops!

    You need the File could not be streamed: Access is denied permission to do that."


    Too bad we cannot access any of the links/attachments of http://forums.parallax.com/discussion/93769/ps2-keyboard-emulator
  • What I do is have the Prop connected to a Silabs CP2110 USB interface, and have the Prop read buttons and send out packets to the PC.  The PC has an app running that reads the packets and converts to keyboard/mouse commands.  But I think there is a Silabs part that will instantiate as a keyboard, and let you send keycodes direct from the Prop.  I forgot the part number. 
  • yetiyeti Posts: 818
    edited 2015-07-10 07:53
    A USB keyboard.Basically it is only an ATTiny85, 2 zener diodes and 3 resistors...
  • dr hydradr hydra Posts: 212
    edited 2015-07-13 13:07
    Man...I am amazed...this seems harder than I thought...I cannot not get the links to work...the last two solutions appear to require extra hardware and the windows serialkey idea will not work with anything above windowsxp...any other ideas? 
    I'm looking to create an arcade machine that gets input from arcade joystick and buttons through a propeller and then emulates the input to the p/s2 keyboard on windows vista




  • kwinnkwinn Posts: 8,697
    It should not be too hard to write your own keyboard emulator for such a limited number of keys. The only extra hardware you may need would be level converters. Look at some of the objects for receiving keyboard data to get started.
Sign In or Register to comment.