Maker Pro
Maker Pro

Interface a USB computer keyboard.

Hello,
Would anyone know how i could get the data of the keystrokes from the keyboard.

It's a USB connection and i can't find anywhere online that tells me how to get say ASCII codes from the usb keyboard.

What i would like to do it be able to get the data and be able to see bit by bit the ASCII code.

Could anyone give me any hints or suggestions on where to go from here?

Thanks
 

Harald Kapp

Moderator
Moderator

Harald Kapp

Moderator
Moderator
Right.
The tricky part is following the protocol.
Personally I think this is easier using a UART protocol than a USB HID protocol.
But then again, I'm only a hardware guy.

Harald
 
Right thanks guys,
I did look into ps/2 keyboards, but as i have thrown out my old keyboard i would have to buy another (this is why i wanted to use usb). Though there does seem to be alot more documentation on the ps/2 keyboard interfacing.

The USB protocol seems amazingly complicated. It there anywhere on the web that gives info on someone who has done something similar? Rather than reading long protocol specifications.

Thanks for the help. If worst comes to the worst i will buy a ps/2 keyboard, as i saw some pretty good documentation on that.

Thanks
 
A keyboard will never use anything above 1.1 so that narrows the list a bit. I dont know of anyone personally whos working with it but I plan to at some point with my z80 projects (that doesnt help you right now though). You might want to try the linux community.
 
Then again theres probably an arduino module or something similar you could get. I wouldnt know much about that stuff though (I'm allergic to over-simplification :p )
 
Top