Usb keyboard interfacing with due

I Want to interface a usb keyboard with arduino due , I want to know at which pin i have to connect usb port . And command required to get key from keyboard.

Google found this

sir but there wan no information about wiring .

First, I'm not a sir, and it does tell you!

The Arduino Due has the ability to act as a USB host for peripherals such as a keyboard connected to the SerialUSB port.

The Arduino USBHost page lacks important details.

Use the Due Native USB port for the keyboard. A USB micro OTG to USB host cable is required to connect the USB keyboard. The USB OTG cable can easily be found on Amazon, EBay, etc. The same cable can be used to connect a USB keyboard to an Android phone with micro USB connector.

1 Like