How can I save data on Arduino after reloading it?

Good afternoon! :raised_back_of_hand:t3:

I have a small issue, because I don't know how can I save data(some int numbers in my case) after turning Arduino off. As long as I am turning on my Arduino all data resets.

Do I need to write something in my code or to buy some components for solution?:information_source:
Please answer me, I have no idea. :bulb:

What type of arduino?

Many types have EEPROM memory.

1 Like
1 Like

I use Arduino Nano 3.0 Atmega328
Does it have EEPROM?

Great. That has 1K EEPROM. Check out the examples in @oldcurmudgeon 's link.

What are the values you want to save in your project? What is their purpose and when do they change?

1 Like

Of course, you can't save data after the Arduino turns off. But you could do it just before it turns off.

Better still is to save the values when they change, then it doesn't matter when the Arduino turns off.

1 Like

I was only thinking about project with time manager. As Arduino has EEPROM I'll check that library.
Thank you very much! :blush:

You can use a SD-card board.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.