0
0
Arduinoprogramming~5 mins

EEPROM read and write in Arduino - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is EEPROM in Arduino?
EEPROM stands for Electrically Erasable Programmable Read-Only Memory. It is a small memory inside the Arduino that keeps data even when the power is off.
Click to reveal answer
beginner
How do you write a byte to EEPROM in Arduino?
Use the function EEPROM.write(address, value); where address is the memory location and value is the byte to store.
Click to reveal answer
beginner
How do you read a byte from EEPROM in Arduino?
Use the function EEPROM.read(address); where address is the memory location. It returns the stored byte.
Click to reveal answer
intermediate
Why should you be careful when writing to EEPROM?
EEPROM has a limited number of write cycles (usually 100,000). Writing too often can wear it out and cause data loss.
Click to reveal answer
intermediate
What is the difference between EEPROM.write() and EEPROM.update()?
EEPROM.write() writes a byte no matter what. EEPROM.update() writes only if the new value is different, saving write cycles.
Click to reveal answer
Which Arduino library is used to access EEPROM?
AEEPROM
BWire
CSPI
DServo
What does EEPROM.read(10) do?
AWrites the value 10 to EEPROM
BReads the byte stored at address 10 in EEPROM
CDeletes data at address 10
DInitializes EEPROM
Why use EEPROM.update() instead of EEPROM.write()?
ATo erase EEPROM
BTo read data faster
CTo save EEPROM write cycles by writing only if data changes
DTo increase EEPROM size
What happens to EEPROM data when Arduino is powered off?
AData is erased
BData is backed up to SD card
CData is corrupted
DData is kept intact
What is a typical limit for EEPROM write cycles?
A100,000 writes
B10 writes
C1,000,000 writes
DUnlimited writes
Explain how to store and retrieve a byte value using Arduino EEPROM.
Think about how you save and get data from a small notebook.
You got /4 concepts.
    Describe why it is important to minimize writes to EEPROM and how to do it.
    Imagine a pencil that can only be sharpened a few times.
    You got /3 concepts.