Reading USB keyboard with teensy 2.0

Status
Not open for further replies.

juzac

New member
I'm building a KVM to switch a USB keyboard between two different computers, and I'm hoping to use a teensy 2.0 to control the switch. In my setup, I'd like the teensy to toggle the switch when a certain keystroke is pressed on the keyboard. Ideally the teensy will be connected in parallel to the keyboard, and not in-line (in order to avoid any latency added by the teensy having to read and forward all the keystrokes).

The only issue is I can't figure out what I need for the teensy to read the keystrokes. Since the usb keyboard is connected directly to the computer, and the teensy is going to be splicing into that connection, I'm unsure if a USB host for the teensy 2.0 is needed (as the computer will act as a USB host to control the keyboard). I tried using the tutorial here to connect my keyboard as if it were a PS/2 keyboard after reading that most usb keyboards are backwards compatible, but this does not work with my setup.

Any advice on how to proceed with this project would be greatly appreciated!
 
Status
Not open for further replies.
Back
Top