Hello, I have a question what kind of data record is the best?
now it's writing to SD but it would be cheaper to do it on falsh or some other one.
My project is to save the temperature every minute, which means that I sleep most of the time.
later, after a few days, he will send data to android bluetooth applications.
There are 1440 minutes in a day. There are 2048 bytes of SRAM in a 328P. Unless you compress, you'll run out of memory real quick.
I need 2-4 MB because sometimes it can work longer
You could add external RAM or EEPROM (depending if you want it to survive a power out or not). But yeah, depending on the resolution and what "a few days" is, a sd-card doesn't sound wrong / overcomplicated / over expensive.
I vote SD card.
DKWatson:
I vote SD card.
just with the card there is such a problem that when the processor has (LowPower.powerDown) this card pulls a lot of power, probably 3-4m.
I do not like to reduce it because unless I turn it off I will have to initialize it again before the next measurement
and I want him to consume 50ua in sleep time
can you do a high impedance state here atmega328p?
An SD card should never be written to byte-by-byte as the overheads are the same regardless - SD card writes in 256 word blocks (512 bytes). Store your readings in a buffer and write to the card when the buffer is full, maybe only twice a day.
DKWatson:
An SD card should never be written to byte-by-byte as the overheads are the same regardless - SD card writes in 256 word blocks (512 bytes). Store your readings in a buffer and write to the card when the buffer is full, maybe only twice a day.
a great idea can actually be done
you have how to do it (guide) this record in blocks because I have never done it
and what do you think about ESP-WROOM-32 is it easy to use? because he has 4MB of flash
Google arduino write to sd card
DKWatson:
Google arduino write to sd card
Yes, I can, but how to make these blocks of data and then send it to the card