Esp32 usb host for a flash drive?

Hello, I have been searching around online to see how I can make the esp32 into a usb host for a flash drive. I came across a lot of things such as keyboards and Mouse’s. Or even using a SPI usb host chip for a flash drive. I do know that the Mac sub can be a usb host. Just not sure how I can make a flash drive work on it.

I do know it will be very slow and I’m okay with that. I just need to figure out the programming side of things. Please someone help me to figure this out if it’s possible please?

Joseph

I found this combination compiles, not positive it will work. May need to change Partition or toggle MSC both in Tools.

I will take a look at it this evening. Thank you.

You should describe what the final purpose of using an ESP32 as an USB-host is
and
why you are forced to use a USB-flashdrive for that purpose?

It will be much much easier to use an SD-Card for storing / reading any kind of data from / to an ESP32.

Hello, @StefanL38 I have usb flash drives and i would like to access one of them for testing on an arduino. Yes I could use a micro usb module. But I would like to access my flash drive. I wanted to try something different. And the native usb is how I would like to do it. When I learned about the native usb on some of these boards I found it interesting and wanted to learn more. Well kinda of found out about it when the arduino due had it but never tried it. Then when the arduino zero board came out I wanted to try it but I didn’t have the time until now.

This will do what you want.

Hey @Grumpy_Mike long time no see for me. Thank you very much this will help me.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.