Is it possible for a Teensy 3.1 microcontroller to receive USB keyboard input

armavrhidkeyboardteensy

As I've read, it is possible to have the teensy act as a keyboard for a computer. I would like to know if the opposite is possible – can I collect keystrokes through the USB port on the teensy. If this is not possible, can you explain why?

enter image description here

Best Answer

Technically, it is possible. The board already has a Micro-AB port, and the MCU on it supports OTG. But all the examples now given are configuring it as a device. So you may need some coding to make it a host.


Update:

And, thanks to @PkP, he find their is a example for USB host in the MCU's datasheet, section 41.7.