Mturk Jobs

Mturk Jobs
Mturk Jobs

Tank

Sunday, May 13, 2018

Arduino Permanent Memory - How to use Arduino EEPROM Memory

Have you ever built an embedded system and wanted to store memory that lasts after you switch off the power of the system?

Arduino boards is based around the AVR microcontroller that has built in EEPROM memory which is not volatile after you switch off the power of the circuit.

This means that you don't need any external hardware or ICs when you need to store some small amount of data or system settings.

Circuit

When you test this code you only need Arduino UNO board as your circuit.



Code

#include

void setup()
{
  for (int i = 0; i < 255; i++)
    EEPROM.write(i, i);
}

void loop()
{
}

Source: Arduino Website





Check our books on Amazon:





Learn By Making: Embedded Systems Tutorial for Students and Beginners








Embedded Systems, Electronics: My Projects Collection From Instructables




No comments:

Tank