How to connect a USB Keyboard to an Arduino Uno using the USB Host Shield

preview_player
Показать описание
If you need to use a USB Keyboard on a project running at 5v that uses an Arduino Uno or Mega then this is the exact shield that you need. The USB HostShield is very cheap on eBay and does exactly what you want. You just need a library for it and to do a tiny bit of solder-bridge soldering.
Рекомендации по теме
Комментарии
Автор

Thanks for showing a couple of 5V solder bridges need to be connected for a USB device to work.

xav
Автор

Thanks for the good explenation sir. Subbed. Keep it up!

excalizan
Автор

Just got mine working by following your video. Piece of cake. Thanks!

Drone
Автор

This should be the HID Keyboard example included with the USB Host Shield 2.0 library.

DustinWestaby
Автор

Hi, great tutorial. I still have one question. Would it be possible to use a splitter and attach a USB mouse and keyboard at the same time?

felixt.
Автор

Great to see how simple this works. Btw, any news on your Z80 Playground project? Do you have any plans of making the circuitboard and/off EPROM available to buy?

albertpauw
Автор

Thanks for the video. Very helpful. I'm having a little trouble with the coding side of things. I'm hoping just to send the keyboard characters to display on the serial monitor. Do you have your sample code available to download anywhere?

pauljcampbell
Автор

USB standard is +5V for power, and +3.3V for data. That's why you can't find 3.3v keyboards, as they don't exist. Also the reason why it's a bit complicated to bitbang USB protocol (well, the first hurdle is the +5V to +3.3V logic, or giving +5V to peripherals and running all logic at +3.3v), but yeah the biggest reason USB protocol is complicated to bitbang is that it's a goshdarn complicated protocol to bitbang. PS/2 keyboard protocol is simple. Some USB keyboards still have the possibility to run PS/2 protocol through USB, so you could always try to initialize the keyboard with the PS/2 protocol start command, but mostly the chips have been phased out as nothing hasn't used PS/2 for years...

janikarkkainen
Автор

how to use the mouse with usb host shield and arduin?

gaabswj
Автор

I'm a few years late, but!

Can I turn this around and code something that output simulated keyboard inputs to my computer?

Basically some form of bot or tasker: Press spacebar every 30 seconds and send it to my PC.

pancreasdragonheart
Автор

Hi man! Great video! I was trying to use my 16x2 LCD screen and it started to display some glitchy characters when I typed on the keyboard. Do you know a way to fix it? Thanks!

bhonemyintmyatzaw-riz
Автор

It is posible connect a USB extension to be able use a mouse and a key??

Mauropaz
Автор

Nice tutorial! Where can I find the source code for the project?

rufserafin
Автор

I have a board with db9 and manhattan cable but can`t read with the shield, the arduino uno, etc. the board is ok, if I connect the manhattan cable to android phone with putty it does communicaet, but, the usb from the manhattan to the shield nothing happends

rodo
Автор

Do you perhaps have a video on making a GIMX adaptor for using a mouse and key or any USB devices on a XBOX one or PS4. Thanks in advance

ThebusWay
Автор

This was a good video. I need to enter numeric input to a CNC morticing jig I developing, and I tried using a 4x4 keypad but it wasn't going so well so I thought I'd give a usb keyboard. Will this work?
Thank you,

kbcxe
Автор

it's possible connect 2 USB shield?

alessandromocci
Автор

why my usb host not working ?? OSC did not start . what happen sir ?

yayangmario
Автор

I want to control my Usb Webcam using arduino uno. Is that possible? My pc webcam is A4tech

kn
Автор

I bought a USB host shield and soldered it myself. There was no power at all
I tried to charge my phone with it, plug in my mouse, etc.
Then I bought a pre-soldered one from ebay and the solder looks good.
No power either. Trying this on an Arduino Leonardo

SootGizmo