Author Topic: Simple way to export data from EEPROM through AVR.  (Read 2911 times)

0 Members and 1 Guest are viewing this topic.

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Simple way to export data from EEPROM through AVR.
« on: October 07, 2013, 01:48:09 pm »
I'm designing a little data logger based on an ATMega8 which basically writes some values to an external EEPROM and then is supposed to export that data through USB. I know that the ATMega8 doesn't support USB. I think that the easiest way (from user's point of view) is to have the data saved as a .txt file on a mass storage device. I also know that it's pretty easy to do on an SD card using SPI. What's the easiest way to export my data through USB?
If anything can go wrong, it will.
 

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: Simple way to export data from EEPROM through AVR.
« Reply #1 on: October 07, 2013, 04:29:08 pm »
Yeah, but will it work as a mass storage device?
If anything can go wrong, it will.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Simple way to export data from EEPROM through AVR.
« Reply #2 on: October 07, 2013, 06:46:18 pm »
Quote
Simple way to export data from EEPROM through AVR.

Quote
easiest way to export my data through USB?

Which question are you working on? As they have different answers.
================================
https://dannyelectronics.wordpress.com/
 

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: Simple way to export data from EEPROM through AVR.
« Reply #3 on: October 07, 2013, 07:00:32 pm »
There's one question, I just didn't make it clear enough. I want to know the easiest way to export data from AVR (with an external EEPROM) through USB.
If anything can go wrong, it will.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Simple way to export data from EEPROM through AVR.
« Reply #4 on: October 07, 2013, 07:17:03 pm »
Quote
I want to know the easiest way to export data from AVR (with an external EEPROM) through USB.

That's like asking what's the best way to travel the ocean in your wagon.

You probably want to ask yourself which is more important to you: export data from the AVR or export data from the AVR through USB.

You have an option to make your life a lot easier (or a lot harder if you go the other way).
================================
https://dannyelectronics.wordpress.com/
 

Offline Mr Smiley

  • Frequent Contributor
  • **
  • Posts: 324
  • Country: gb
Re: Simple way to export data from EEPROM through AVR.
« Reply #5 on: October 07, 2013, 07:20:44 pm »
What I’d do, ( and do do on pics ) is either use, as mentioned above, the uart or bit bang to a single pin to a ttl><usb adaptor to a pc rs232 serial terminal which has the option of serial capture to file, then just open in a spread sheet.

You can, in windows, map a serial com port to a usb port, also in Linux.

On every byte sent also send a space or comma so the spread sheet can organize into rows/columns.

So with your RS232 terminal running on your pc in capture to file mode, the pc connected to a ttl><usb adaptor serial link, the link Tx connected to a pin on your uart or whatever on your data logger, press a button on your data logger to initiate a serial stream  and all will be captured.

You only need a single pin plus ground for no handshaking serial.

Or you could write your own dedicated pc end terminal in c and do whatever you want with the data.

 :-+

 :)

There is enough on this planet to sustain mans needs. There will never be enough on this planet to sustain mans greed.
 

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: Simple way to export data from EEPROM through AVR.
« Reply #6 on: October 07, 2013, 07:37:28 pm »
There's also the V-USB - http://www.obdev.at/products/vusb/index.html

But I somehow can't see it working for my purpose.
If anything can go wrong, it will.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf