Go Down

Topic: Can I connect USB keyboard to arduino ???? (Read 1 time) previous topic - next topic

02047788a

Apr 24, 2016, 07:04 am Last Edit: Apr 24, 2016, 07:11 am by 02047788a
I have a usb keyboard, want to connect to arduino
I want know usb data Data- / Data+ can direct use the serial protocols ?????

just like Attach image

Or some better way??

thank everyone

please teach me :smiley-confuse:

Robin2

Image from Original Post so we don't have to download it. See Image Guide



...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Robin2

NO.

If you want to connect a keyboard to an Arduino you need a USB Host shield.

But do make sure that the USB Host shield can work with your keyboard before spending money. I have no personal experience with the USB Host shield.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

HermannSW

Hi,

not an answer to the original question, but in case you have an old PS2 keyboard, that can be connected easily.

I used a 1$ PS2 connector module, but there are soldering instructions in PS2Keyboard lib.
In this posting you can find a simple editor based on PS2Keyboard and DueVGA libraries, and a youtube video:
https://forum.arduino.cc/index.php?topic=393453.msg2708741#msg2708741

Hermann.


HermannSW

You can connect USB Keyboard to Arduino with USBtoPS/2 adapter, PS/2 Arduino module and PS2Keyboard library,

Just found this little thing:
http://www.aliexpress.com/item/1PCS-USB-Female-to-PS2-PS-2-Male-Converter-Adapter-keyboard-Mouse-Mice/32635919488.html

0,34$ with free shipping, I could not resist and ordered two.
[Sending snail main inside Germany does cost 0.70€(0.80$) at minimum ...]

Hermann.

Go Up