USB stick to AVR?

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is it possible to interface and control a USB stick (for example 1GB USB 2.0) to a USB AVR? (AT90USB162?)

RES

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sd and mmc cards are easier... spi interface instead of host usb

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You would need a USB-host capable AVR for that, the USB647 or USB1287.

IIRC, LUFA provides an example.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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.