Go Down

Topic: Reading USB keyboard input (Read 12372 times) previous topic - next topic


Hey everybody,

I've gotten a question regarding receiving data via a usb module.

I have got a usb to ttl module with which I would like to read inputs from a usb keyboard. I'm not sure how to go about this with the current state of the IDE.

If someone could point me in the right direction that would be very much appreciated.


Nov 27, 2016, 07:54 am Last Edit: Nov 27, 2016, 08:55 am by Riva Reason: Link added
Do you mean a USB keyboard is connected to the USB2TTL module that is connected to the Arduino (what model?) and you what to read/decode key presses? Or is the keyboard connected to a PC that is connected to an Arduino via the USB2TTL module.

If you want to connect a USB keyboard to the Arduino then you either need an Arduino with a USB host port or a USB host module like this with HID keyboard stack. A USB/TTL module will not read a HID keyboard.
Don't PM me for help as I will ignore it.


thank you Riva! especially for the link :)


Just as a matter of reinforcing the earlier "thank you", I will echo my own thanks for the suggestion and link.

Solutions like this live long lives.

HobbyTronics just received a new order for the relevant USB Host hardware.

Computers do not do what you want them to do.
Computers do what you tell them to do.

Go Up