Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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


This post first appeared on Embedded Systems In Egypt, please read the originial post: here

Share the post

Arduino Permanent Memory - How to use Arduino EEPROM Memory

×

Subscribe to Embedded Systems In Egypt

Get updates delivered right to your inbox!

Thank you for your subscription

×