Is it possible to interface and control a USB stick (for example 1GB USB 2.0) to a USB AVR? (AT90USB162?)
USB stick to AVR?
Author
Message
sd and mmc cards are easier... spi interface instead of host usb
You would need a USB-host capable AVR for that, the USB647 or USB1287.
IIRC, LUFA provides an example.
Agree SD is simpler, I have an ATTiny85 logging to 4GB transflash in an SD adapter, using readonly FatFS to position within an existing file for sector rewrites. Swap it to a USB adapter for PC readout.
Another possibility to have the AVR *be* the USB storage device, log to flash if no host detected, else enumerate as mass storage. The AT90USB1287 can allocate 100KB or so for that.
Quote:
Another possibility to have the AVR *be* the USB storage device, log to flash if no host detected, else enumerate as mass storage
That's what I did with my GPS logger. I wrote a simple single file filing system that uses a DataFlash circularly. When connected to a PC it on the fly emulates FAT16.