SD card, USB Pendrive & Avr controller

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

I want to design a system in which one avr controller collects data and stores it in SD card(2 GB)... and I want to have one usb port. So whenever user add its USB STICK in the port I want to copy all the data from SD card to that USB stick...Is it possible with avr controller(which one?)... tell me if you have preffered way to do it.....

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

For storing data onto an sd card you can visit the projects section, you will find a lot of sd interfacing examples, a very helpful one is a tutorial by
CC Dharmani SD card interfacing...

But I believe for transfer between SD card to USB stick you will need a microcontroller which can act as a master, an AVR with USB OTG(on the go) capability should do it.(though I am not sure!)
You can check atmels site for the chip parameters.

Though it will help if you read a little about the USB technology...hit google...or there are books...one is a book by Jan Axelson

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

You'll want to use the usb enabled AVRs in order to appear as a usb memory stick. You'll also want to use LUFA as the software component for USB. To talk to the SD card, you'll probably want to use FatFS. If these terms don't mean anything to you, then put them into Google. LUFA probably has an example of exactly what you want to do. Note that as USB memory, you don't need to implement a filesystem, but if you want to write datato the filesystem on a SD card via your own code , you'll need FatFS.

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

FATfs(FAT file system) is required if you need to write data in a manner which your PC can understand, you will be able to store data as .txt or .csv etc

But if you dont use FATfs you will have to store raw data.
Check out Chan's FATfs he will give you a good explanation.

as kartman said,..hit google and collect as much info as you can...

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

thanx .. I will update on this.......btw I have used usb1287 and able to connect usb link between pc and uc....but I am not aware about usb as a mass storage...

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

LUFA will allow the 1287 to do MSD in Host mode.