I need to store sensor data in memory

Hello everyone!
I need to store sensor data in on-board memory. Data should be available even if the power is not available. This data will be retrieved later through bluetooth. Do microcontrollers have such type of memory or some other component is required? Please share your ideas.

Thanks

Which Arduino board are you using ?
How often will data be stored and for how long and what data type is it ?

Read up on the types of memory in microcontrollers: https://docs.arduino.cc/learn/programming/memory-guide/#memory-types

Next consult the datasheet of the processor that you're planning to use to see if you need an external component (EEPROM, FRAM or SD module).

At the moment, I am just planning and gathering info so no Arduino Board. I need to collect acceleration using 3-axis accelerometer. Reading frequency may be expected twice per second. So the storage should be sufficient to hold data for at least 3 hours.

So how much data, in bytes, do you need to store ?

Have you calculated how much storage you will need for that? 3 hours * 60 minutes * 60 seconds * 2 equals roughly 21000 readings. Times 3 values per reading times N (4?) bytes for each value.

I suggest that you store in external memory as mentioned in my previous post. SD will probably be the easiest.

It's not possible to store or retrieve data when the Arduino has no power, no matter what type of memory is used.