Week 12: Segment 2: Using the Arduino EEPROM for Non-Volatile Data Storage
This segment focuses on using the EEPROM memory on the Arduino. In addition to the regular 2 kb SRAM memory where variable and arrays are stored, the ATmega328p chip also has 1 kb of non-volatile EEPROM (Electrically Erasable Programmable Read-Only Memory ), which can be used to store data. This is useful if persistence of the data during shutdown periods is desired. Examples would be to store user-defined settings, or to log sensor data that needs to survive a loss of power of the Arduino.
Goals:
Materials for this segment:
|
Main Arduino sketch used in the tutorial:
|