What is the best way to store this data structure.

In my head i'm picturing a database. a new "row" would be created every half second. the first column would be time, every half second, probably in milliseconds. the next would be gps location data. the next would be compass data. the next potentiometer data

this might be out of the scope of arduino. the eeprom is limited. I can get more space with an sd card. but what format can i store this kind of data?

I’d forget the EEPROM . Maybe you save your data as an organised text stream with deliminatirs to an SD card &123567# - you identify the start and end and if you use a consistent format , split up the data fields. I’m sure there are lots of other ways

You need to work if you can do this every 1/2sec. Google how to use an SD card with Arduino. There will be examples .

CSV

What I did was define the data structure with all the required elements and then Union that to a Byte Array.

Then I just write the Byte Array straight to the sd Card. That was much more efficient for me because for example a float variable may be -123.45678 which in a delimited stream contains ten Bytes, plus the delimiter for each field plus a record delimiter at the end but writing the Byte values, that same value is still only four Bytes. Of course, when reading the data back out, you have to reconstruct the exact (!) same structure.

In my case, I had lots of fields (timestamp, Volts, amps, Status flags, etc.) but each record only took 32 Bytes to store in this way. Writing is fast, reading is fast, file size is small.

The disadvantage is of course that the data file is not readable for a human.

JaBa:
What I did was define the data structure with all the required elements and then Union that to a Byte Array.

Then I just write the Byte Array straight to the sd Card. That was much more efficient for me because for example a float variable may be -123.45678 which in a delimited stream contains ten Bytes, plus the delimiter for each field plus a record delimiter at the end but writing the Byte values, that same value is still only four Bytes. Of course, when reading the data back out, you have to reconstruct the exact (!) same structure.

In my case, I had lots of fields (timestamp, Volts, amps, Status flags, etc.) but each record only took 32 Bytes to store in this way. Writing is fast, reading is fast, file size is small.

The disadvantage is of course that the data file is not readable for a human.

Byte can contain decimal points? Ill be reading analog data from a pentameter

Pentameter
From Wikipedia, the free encyclopedia
Jump to navigationJump to search
Pentameter (from Greek: πεντάμετρος 'measuring five (feet)') is a poetic meter. А poem is said to be written in a particular pentameter when the lines of the poem have the length of five feet, where 'foot' is a combination of a particular number (1 or 2) of unstressed (or weak) syllables and a stressed (or strong) syllable. Depending on the pattern of feet, pentameter can be iambic (one of three two-syllable meters alongside trochaic and spondaic) or dactylic (one of two three-syllable meters alongside anapestic) (see links below).

This class of meters includes:

Dactylic pentameter of antiquity
Iambic pentameter of modernity

You have 3 answers to your question now, what's left to do?

couka:
Pentameter
From Wikipedia, the free encyclopedia
Jump to navigationJump to search
Pentameter (from Greek: πεντάμετρος 'measuring five (feet)') is a poetic meter. А poem is said to be written in a particular pentameter when the lines of the poem have the length of five feet, where 'foot' is a combination of a particular number (1 or 2) of unstressed (or weak) syllables and a stressed (or strong) syllable. Depending on the pattern of feet, pentameter can be iambic (one of three two-syllable meters alongside trochaic and spondaic) or dactylic (one of two three-syllable meters alongside anapestic) (see links below).

This class of meters includes:

Dactylic pentameter of antiquity
Iambic pentameter of modernity

You have 3 answers to your question now, what's left to do?

google voice to text fail.

well. first i have to google the acronym you gave me. Then I have to google how to use an sd card on arduino. the text stream sounds complicated.