USB Host Shield DIY

January 22, 2024, 21:56

justdaniel1337

I gonna get my Raspberry PI Pico W soon and wanted to know if I can "make" my own USB Host Shield out of some cable. Like this one for example

oops.se


justdaniel1337

but how should I connect them to my pico? so I have one mikrousb and one usb for Mouse input

oops.se

You can emulate a USB mouse, but not vice versa.

justdaniel1337


justdaniel1337

I mean how can I connect this one to the pico so I can get the Input you know?

justdaniel1337

<https://blog.4dcu.be/diy/2023/12/03/pi-pico-usb-c.html> would this work or is the usb c too different from usb?

oops.se

That is just how to connect an USB-C in parallel with the USB micro. And in the USB world there are two types of USB roles, device or host. A mouse is a device. The USB port in the computer or a USB hub is a "host". Raspberry Pi Pico is a serial device that can also emulate a HID (mouse/keyboard) device or a storage device. But I haven't seen anywhere that it can be a USB host.

oops.se

That is not in the USB standard.

justdaniel1337

wdym its not the USB standard? Because I want to make a USB Host shield by myself (because dont want to spend money). So I can connect my mouse to pico and redirect that one on my regular pc

oops.se

I just found that code and with that you can make some GPIO pins to D- and D+ and it can act as a USB host

justdaniel1337

okey nice thank you!

oops.se

And this is what you wan't to do https://www.youtube.com/watch?v=iOD-NOzgj7o

justdaniel1337

Yes but I dont want to use two picos

justdaniel1337

but thats fine

oops.se

He is just using one Pico as a device, replace that with your mouse

justdaniel1337

Okey Ye I see that

oops.se

Perfect for testing, you know exactly what the device (in this case a Pico) is sending, if a mouse was connected you also need to have a USB sniffer.

justdaniel1337

yes thats not a problem too

oops.se

And in the video description you have the github repo

oops.se

So that should get you going, I hope.

justdaniel1337

Yes I hope too but its gonna be alright