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?
Is it possible for a Teensy 3.1 microcontroller to receive USB keyboard input
armavrhidkeyboardteensy
Related Topic
- Electronic – How to make an USB keyboard work with Bluetooth instead
- Monitoring USB Keyboard Input with Microcontroller
- Start a teensy sketch after USB handshake has completed or upon a button has been pressed
- Electrical – Hacking USB Keyboard for external keys
- Electronic – Can nRF52 simultaneously use Bluetooth and act as USB HID Keyboard
- Electronic – arduino – USB hub inside modular keyboard for comunication
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.