Reading from a USB flash drive

photon
argon
Tags: #<Tag:0x00007f1ca1a0f540> #<Tag:0x00007f1ca1a0f1f8>

#1

I searched the forum and found one topic on this but it was an old topic. I’m wondering if I can read data from a USB drive from either a photon, which we’re currently using, or an Argon, which we will probably be upgrading to.


#2

Not without digging into the device OS firmware - (currently) these devices don’t support USB Host mode out the box.


#3

So reading from an SD card is still the best option I assume?


#4

Yes - SDfat library works really well for that.


#5

you might be able to use a usb host shield similar to this one,


however you would need to figure out the code. this page offers a good overview of a usb host shield project,
https://www.circuitsathome.com/arduino_usb_host_shield_projects/


#6

Thanks for the information, I’ll keep this for future projects. This particular one is limited on space so I won’t be able to use it.