EEPROM

In this project, you'll learn how to read and write data to the EEPROM.

There may be times when you need to remember some data even after you turn off power to the Arduino. If this is the case then you'll need to save the data into the EEPROM. Like your thumb drive, the EEPROM is a non-volatile memory, meaning that it will remember the data stored in it even after power is turned off. However, the EEPROM memory has a specified life of 100,000 write/erase cycles, so you may need to be careful about how often you write to it.

The Arduino has a built-in EEPROM with a 1024 byte capacity.

Parts needed: Arduino
1 Need to use the EEPROM library.
2 Here's the code to write and read a number to the EEPROM EEPROM write
3 Here's the code to write and read any data type or object to the EEPROM EEPROM data type