Problem about Arduino storage

delete post delete post

Your question might receive more views and answers in the 'project guidance' or 'programming' topics. Click 'report to moderator' to request this be done.

In the meantime, how many readings, and of what variable type, are to be stored?

delete post

delete post

Never used one but I'd suggest an SD card.

Which Arduino do you have?

delete post

delete post

It would be around 2000 readings but it can be less if necessary. The variable type is int.

I have an Arduino Uno and a mega.

At 2 bytes per int, the internal EEPROM on the Uno can store 512 ints. The The Mega has more capacity and can hold 2046.

Be aware that the EEPROM cells are specified for a limit of 100,000 writes but that should be enough for your application.

Take a look at the EEPROM library which is bundled with the IDE and see how EEPROM.put() and EEPROM.get() can handle the interger writes and reads.

I don't recall the details, but I think that Virtual Wire has a maximum buffer size for reads and writes and you will need to work around that if you are trying large block writes.

delete post

Do you think that's a better solution than sd card.

Define "better". The internal eeprom is certainly more simple to use than an sd card.

Have a look at “I2C fram “chips for storage - very easy to use and cheap .

You could save space by only recording temperature when it changes above/below a certain amount . You might need a real time clock

delete post

delete post

What is wrong with using the Mega's EEPROM?

Nothing wrong with eeprom , except read write cycles .

For fram , just google the words I suggested.

If you don’t have a clock , then you can’t relate the temperature measurements to anything

delete post

hammy:
Nothing wrong with eeprom , except read write cycles .

For fram , just google the words I suggested.

If you don’t have a clock , then you can’t relate the temperature measurements to anything

Speaking of which, many DS3231 RTC modules also have an on board EEPROM. You could use that storage along with the RTC.