Re: Data logging... how to.



Mich wrote:
I'm in a little project, trying to tackle a few problems.

I need to measure a temperature, and store it for later readout.
I will be using an AVR for temp. reading, and doing some other stuff.
The temperature will need to be stored in hourly samples, with a runningtime
for about nearly a year.

In my idea i would be storing  hour-day-month-year-temp. I calculated that a
needed about 4 bytes for this, so for nearly a year, i'd be oke with 256Kx8,
which i prolly need to do external from the AVR.
Now, after the year, the data will be shifted continously , so there will
always be the latest data reading about 12 months back.

Questions:
- Am i going the right route with simply storing in hhddmmyytt, or am i
wasting ram space?
- Would i need to shift every time all 256Kbytes one adress down, and place
the latest value on top, or would a 'current pointer' do the job,  which
could be used in the MSB from the 4 bytes, which is prolly not used.

Any help appriciated.


Thankx,

Mich




Hi,

Here's what I did for storing a lot of sample data...

http://members.cox.net/berniekm/spydar.html

Basically, only store delta times. I needed to know the absolute time, so I do that with the program that reads the data from the unit.

Some of this may apply to you.

--
Luhan Monat: luhanis(at)yahoo(dot)com
http://members.cox.net/berniekm
"Any sufficiently advanced magick is
indistinguishable from technology."
.



Relevant Pages

  • Re: Data logging... how to.
    ... > I need to measure a temperature, and store it for later readout. ... > which i prolly need to do external from the AVR. ... the user interface i.e. a kind of protocol that the user needs to follow to ...
    (sci.electronics.design)
  • Re: Poor performance from file system
    ... find a specific address on the disk. ... (I believe most hard drives now have multiple platters and multiple ... last reading ... disk temperature. ...
    (comp.os.linux.misc)
  • Re: Picking a row from each group
    ... So the primary key for the reading will need to be on both the station ... The temperature will be to some level of accuracy, ... NATURAL JOIN ( ... i.e. set operations like restrict, join, ...
    (comp.databases)
  • Re: Best Way to build a calibrated S meter
    ... If you derive the S-meter reading from the a.g.c. ... gain of simple IF-strips vary with temperature (and thus need a ... power level and temperature calibration points ... One vector for a specific band might contain the front end ...
    (rec.radio.amateur.homebrew)
  • Re: Router bit temperature
    ... The little HF pocket model goes on sale for $9.95 now and then. ... I took the reading with the nose about 3" from the router bit, so might have gotten a more or less decent reading of the average bit temperature. ...
    (rec.woodworking)