recording dats on usb stick

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

Ok you see the tittle.
How can i store data on a usb stick, for analysis on PC.
Thanks!!

computer : GNU Linux / e6750
ship : Attiny 2313 / ATmega8
compiler : avr-gcc 1:4.3.2-1

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

if you find an easy way to do this for under $20 by all means let me know as well! It is so easy to make an AVR act like a USB device, but to have it read another USB device seems like a real task.

I too would really like to be able to read or write data to a USB stick or read date from a USB keyboard and mouse. So far all routes I have explored are simply out of reach for the hobbyist.

The hardware needed to do this interfacing dwarfs the AVR in comparison.

Brad

I Like to Build Stuff : http://www.AtomicZombie.com

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

FTDI has a chip named Vinculum USB Host Controller and communicates with a processor via uart,spi,or parallel interface.

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

geoelec wrote:
FTDI has a chip named Vinculum USB Host Controller and communicates with a processor via uart,spi,or parallel interface.

I haven't researched this *yet* but do you think it would be suitable to use to interface with a "USB mass storage" device?

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

You can do this with a $30 USBKEY board (or a raw AT90USB1287) chip in host mode, paired with my LUFA library. I've already got a Mass Storage Host demo application in the library, so all you'd need to add would be a FAT library (like the free ELM one) and your sampling code.

If you don't want to go the USB Host route, you can use a cheaper USB AVR and a dataflash, again paired with LUFA. Using the Mass Storage Device demo and a FAT library, you can store data to the Dataflash and expose it to the host like a normal Mass Storage USB stick.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Thanks
Where can i find your LUFA lib?
And the fat lib?...

computer : GNU Linux / e6750
ship : Attiny 2313 / ATmega8
compiler : avr-gcc 1:4.3.2-1

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

Quote:

Where can i find your LUFA lib?

http://lmgtfy.com/?q=lufa
Quote:

And the fat lib?...

http://lmgtfy.com/?q=fat+elm

(top link both times)