Connect keyboard to arduino using Mini USB Host Shield

  Рет қаралды 21,539

John Squires

4 жыл бұрын

I bought a cheap module labelled HW-244 on ebay. It connects any USB device (including a keyboard or mouse) to any Arduino project via SPI. It is a shield for an Arduino Pro Mini.

Пікірлер: 41
@Mac1PC
@Mac1PC 3 жыл бұрын
where can i find code for this project?
@damtung2000
@damtung2000 3 жыл бұрын
Can I use the Pro Micro 5v with this setup?
@kavtech_midi
@kavtech_midi 2 жыл бұрын
so you use arduino pro mini? is there any schematic to connect, host and arduino? or just plug it
@kamel3d
@kamel3d Жыл бұрын
What if you want to connect more than one usb device to the arduino do you have to use more usb hosts?
@CircuitBreaker256
@CircuitBreaker256 Жыл бұрын
I think you could use a usb hub, but I have not tried it.
@edgeeffect
@edgeeffect 2 жыл бұрын
I was watching something the other day that mentioned that some (all???) USB keyboards also speak the PS/2 protocol over the same wires.
@CircuitBreaker256
@CircuitBreaker256 2 жыл бұрын
I wish they did, but I think the answer is something more like "they used to, about 20 years ago"
@charnjit525
@charnjit525 5 ай бұрын
Can I connect my USB Synthesizer to Arduino board by itto receive and send midi message ???
@GANCFLEX
@GANCFLEX Жыл бұрын
Hello, could you please provide me a source code?
@miko007
@miko007 3 жыл бұрын
actually there are 3.3v and 5v versions of the pro mini. it is usually indicated by a dot in the respective field on the back
@CircuitBreaker256
@CircuitBreaker256 3 жыл бұрын
Ah you are right. It seems that the ones I own are all 3.3v
@adamhun994
@adamhun994 3 жыл бұрын
But can you connect the shield to a 5v board? I'm planning to use it with a Pro Micro and I'm not sure if it'll work or will it blow up?
@williammuff5485
@williammuff5485 2 жыл бұрын
@@adamhun994 did it blow up lol? i have a 5v pro mini on order and i'm curious. I really don't understand this "hack" (cutting the trace).
@adamhun994
@adamhun994 2 жыл бұрын
@@williammuff5485 I've ordered an USB host shield and I have a 5v version of the Pro Micro (if I'm correct), but they're on my shelf because I didn't have time to assemble my project. So nothing blew up yet.
@Billy18bm
@Billy18bm 2 жыл бұрын
@@adamhun994 the more I read about it. It will fry it at 5v. I’m gonna try a nano (just not sandwiched).
@alessiogiugno3169
@alessiogiugno3169 3 жыл бұрын
Code??
@jtelefoon3075
@jtelefoon3075 4 жыл бұрын
Dear, If you supply the keyboard with 5v, the keyboard output will also be 5v I think. Can the board process these inputs since it runs on 3.3v.
@CircuitBreaker256
@CircuitBreaker256 4 жыл бұрын
The board does accept 5v inputs from the keyboard with no problems. It's a bit of a weird board because it is clearly designed for 3.3v, but keyboards are all 5v devices, at least all the ones I've got.
@jtelefoon3075
@jtelefoon3075 3 жыл бұрын
@@CircuitBreaker256 Thx for the info!
@janikarkkainen3904
@janikarkkainen3904 3 жыл бұрын
USB is a bit weird as a standard, but the gist is that the power is +5V, but the data lines are always 3.3V. So if you supply a keyboard with +5V, you get what you expect (data lines at 3.3V) but if you supply it with 3.3V, you get nothing out. So, it feels counterintuitive, but that's simply the standard at work.
@kavtech_midi
@kavtech_midi Жыл бұрын
@@janikarkkainen3904 nice...., so this mini host shield still can run with arduino 5v? except we should keep input power for this mini shield still 3.3v
@yuvrajkukreja9727
@yuvrajkukreja9727 3 жыл бұрын
code?
@MyDrogato
@MyDrogato 3 жыл бұрын
Can i do the same on arduino uno?
@CircuitBreaker256
@CircuitBreaker256 3 жыл бұрын
You can, but with a slightly different shield. See my other video.
@antdavisonNZ
@antdavisonNZ 2 жыл бұрын
you can also use a 3v3 Pro Micro, and build a USB-to-USB protocol adapter, see kzfaq.info/get/bejne/q5-IlMhnxtq2eqM.html
@dalesmith4609
@dalesmith4609 3 жыл бұрын
Do you think a USB barcode scanner would work with this?
@CircuitBreaker256
@CircuitBreaker256 3 жыл бұрын
Hmm, I have not tried, but often the barcode scanner appears to your PC just like a keyboard that "types" the numbers on the barcode, so I'd be at least 50% confident!
@Lilithet
@Lilithet 3 жыл бұрын
I got one of these specifically for this reason. (Keyboard wedge to serial out dongle) I am still working on getting it to work...
@dalesmith4609
@dalesmith4609 3 жыл бұрын
@@Lilithet I wasn't sure about this one, i got the USB host shield for the arduino instead, works ok for barcode scanners (and bluetooth keyboards).
@dalesmith4609
@dalesmith4609 3 жыл бұрын
@@Lilithet Keep at it though! Arduino shields require an arduino lol, and the pcb in this video looks really compact and nice for final projects.
@IvannZ_Ru
@IvannZ_Ru 3 жыл бұрын
may konekt to arduino pro micro?
@CircuitBreaker256
@CircuitBreaker256 3 жыл бұрын
I'm not sure. The pinout should match, so most likely it would work.
@hiphop_kid2318
@hiphop_kid2318 3 жыл бұрын
yoo bro can you make a video explaining the code for this it will surely generate a lot of views
@CircuitBreaker256
@CircuitBreaker256 3 жыл бұрын
Will do!
@nawakman
@nawakman 3 жыл бұрын
@@CircuitBreaker256 will need, is the video released ?
@nawakman
@nawakman 3 жыл бұрын
@Caiden Damian wtf ?
@sathishpaladi2168
@sathishpaladi2168 4 жыл бұрын
can you put the code please
@CircuitBreaker256
@CircuitBreaker256 4 жыл бұрын
Will do...
@ParasFtl
@ParasFtl 4 жыл бұрын
@@CircuitBreaker256 Do it please
@migry
@migry 2 жыл бұрын
Ha ha. OLED prices have rocketed since this video was made. 99p, I paid £5 for the same type of OLED this past weekend.
@alex2angel
@alex2angel 2 жыл бұрын
usb host mini shielf also doubled its price
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 64 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 180 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 66 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 11 МЛН
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 599 М.
Проверил, как вам?
0:58
Коннор
Рет қаралды 124 М.