Copy data to USB stick

Hello friends, I am working on project where all data read should be transferred to USB flash drive on a button press. I have gone through many forum links regarding this and came to know arduino is not capable of doing so unless I wont write any USB driver, as arduino is USB slave and so is USB flash drive. I also went through CH376S USB read/write module, according some links this can do the work. But the problem is the project I am working on requires building a stand alone system and therefore I can't use any of ready made modules. Rather I am looking for something which can be integrated in my stand alone system. Any suggestions like which shield or arduino board I can use so that later I can integrate it by studying its circuit schematic. please help, thanks in advance

Is there some reason why you can't use an SD Card rather than a USB stick?

If you study the code for the SD Card library you will realize that there is a lot more involved in writing to a mass-storage device than simply making a connection to it.

...R

Thanks Robin2, I also went through many links explaining use of SD card and it seems rather simple than mass Storage but the project itself has the requirement of attaching USB drive like a feature in it. Hope you get it

The problem is that you need a USB host device. Standard USB to TTL converters (the ones you use to program barebones Arduinos and related) are USB client devices. A USB drive is also a client.

So what you need is a USB host shield or something similar, or if you have an Arduino Due you can have it act as USB host using this library.

That were the first two hits of a Google search for "Arduino USB host".

I assume a USB Host shield, while necessary, is not sufficient. I imagine there would also need to be the equivalent of the SD Card library for a USB stick - and I have never heard of one of those.

The Arduino Yun combines a small Linux PC with an Arduino and the Linux side can work with USB sticks.

Another option would be a combination of a RaspberryPi and an Arduino (if the RPi is not capable of doing everything).

...R

So what you need is a USB host shield or something similar, or if you have an Arduino Due you can have it act as USB host using this library.

I can't get any of the links which will give any idea how I can use DUE to write to usb flash drive. if, you came across any please share it.

I assume a USB Host shield, while necessary, is not sufficient. I imagine there would also need to be the equivalent of the SD Card library for a USB stick - and I have never heard of one of those.

The Arduino Yun combines a small Linux PC with an Arduino and the Linux side can work with USB sticks.

Robin2 does this mean to write to USB flash drive I need more or less a mini computer?

Robin2:
I assume a USB Host shield, while necessary, is not sufficient. I imagine there would also need to be the equivalent of the SD Card library for a USB stick - and I have never heard of one of those.

The Host Shield page (link as I gave above) links to a mass storage library. So it seems to be complete and ready to go.

Thanks wvmarle, I will have to try it out. I will get back on this after having my trial

This shield/module was mentioned in a recent post. Maybe it is what you are looking for.