Tutorial.EEPROMRead History

Hide minor edits - Show changes to output

September 03, 2015, at 10:10 AM by Simone Maiocchi -
Deleted line 48:
* [[EEPROMGet| EEPROM Get]] – Get values from EEPROM and prints as float on serial.
September 03, 2015, at 09:54 AM by Simone Maiocchi -
Changed line 46 from:
* [[EEPROMClear | EEPROM Clear]] - Fills the content of the EEPROM memory with “0”
to:
* [[EEPROMClear | EEPROM Clear]] - Fills the content of the EEPROM memory with “0”.
September 03, 2015, at 09:53 AM by Simone Maiocchi -
Changed lines 1-6 from:
(:div class=breadcrumb:)
[[Tutorial.HomePage | Tutorials]] > [[Tutorial.Examples | Examples]] > EEPROM > eeprom_read
(:divend:)

(:*toc:)
to:
(:html:)
<div class="subHeader row">
<div class="breadcrumb columns large-10 medium-10">
<p>
<a class="wikilink" href="/en/Tutorial/HomePage">Tutorials </a>
> <a class="wikilink" href="/en/Tutorial/LibraryExamples"> Examples from Libraries </a> > EEPROM > eeprom_read
</p>
</div>
</div>
(:htmlend:)
Changed lines 46-52 from:
* [[EEPROMClear | EEPROM Clear example]] - Fills the content of the EEPROM memory with “0”
* [[EEPROMWrite | EEPROM Write example]] – Stores values read from A0 into EEPROM.
* [[EEPROMCrc | EEPROM Crc example]] – Calculates the CRC of EEPROM contents as if it was an array.
* [[EEPROMGet| EEPROM Get example]] – Get values from EEPROM and prints as float on serial.
* [[EEPROMIteration| EEPROM Iteration example]] – Programming examples on how to go through the EEPROM memory locations.
* [[EEPROMPut| EEPROM Put example]] – Put values in EEPROM using variable semantics (differs from EEPROM.write() ).
* [[EEPROMUpdate | EEPROM Update example]] – Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life.
to:
* [[EEPROMClear | EEPROM Clear]] - Fills the content of the EEPROM memory with “0”
* [[EEPROMWrite | EEPROM Write]] – Stores values read from A0 into EEPROM.
* [[EEPROMCrc | EEPROM Crc]] – Calculates the CRC of EEPROM contents as if it was an array.
* [[EEPROMGet| EEPROM Get]] – Get values from EEPROM and prints as float on serial.
* [[EEPROMIteration| EEPROM Iteration]] – Programming examples on how to go through the EEPROM memory locations.
* [[EEPROMPut| EEPROM Put]] – Put values in EEPROM using variable semantics (differs from EEPROM.write() ).
* [[EEPROMGet| EEPROM Get]] – Get values from EEPROM and prints as float on serial.
* [[EEPROMUpdate | EEPROM Update]] – Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life.
Added line 56:
August 18, 2015, at 03:16 PM by Simone Maiocchi -
Deleted line 46:
* [[EEPROMGet| EEPROM Get example]] – Get values from EEPROM and prints as float on serial.
August 18, 2015, at 01:49 PM by Simone Maiocchi -
Changed lines 48-51 from:
* [[EEPROMUpdate| EEPROM Update example]] – Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life.


to:
* [[EEPROMUpdate | EEPROM Update example]] – Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life.
\\

''Last revision 2015/08/18 by SM''
August 18, 2015, at 01:48 PM by Simone Maiocchi -
Changed lines 9-10 from:
The microcontroller on the Arduino and Genuino boards has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive).
to:
The microcontroller on the Arduino and Genuino boards have 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive).
August 18, 2015, at 01:48 PM by Simone Maiocchi -
Changed lines 1-11 from:
''Examples > EEPROM Library''

!!!EEPROM Read

The microcontroller on the Arduino board has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive).

This example illustrates how to read the value of each byte EEPROM using the [[Reference/EEPROMRead | '''EEPROM.read()''' ]] function, and how to print those values to the serial window.

(:div class=BOM :)
!!!Hardware Required
* Arduino Board
to:
(:div class=breadcrumb:)
[[Tutorial.HomePage | Tutorials]] &gt; [[Tutorial.Examples | Examples]] &gt; EEPROM &gt; eeprom_read
Added lines 5-17:
(:*toc:)

!!EEPROM Read

The microcontroller on the Arduino and Genuino boards has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive).

This example illustrates how to read the value of each byte EEPROM using the [[Reference/EEPROMRead | '''EEPROM.read()''' ]] function, and how to print those values to the serial window of the Arduino Software (IDE).

(:div class=BOM :)
!!!Hardware Required
* Arduino or Genuino Board
(:divend:)
Changed line 22 from:
%height=250px%[[Attach:Arduino_bb.png | Attach:Arduino_bb.png]]
to:
%height=250px%[[Attach:ArduinoUNO_bb.png | Attach:ArduinoUNO_bb.png]]
Added lines 25-28:

!!!Schematics
%height=250px%[[Attach:ArduinoUNO_sch.png | Attach:ArduinoUNO_sch.png]]
[-image developed using [[http://www.fritzing.org |Fritzing]]. For more circuit examples, see the [[http://fritzing.org/projects/|Fritzing project page]] -]
Changed lines 37-42 from:
* [[Reference/EEPROMRead | @@EEPROM.read()@@ ]]
* [[Reference/Serial | @@serial.begin()@@ ]]
* [[Reference/Serial | @@serial.print()@@ ]]

* [[EEPROMClear | EEPROM Clear example]]
* [[EEPROMWrite | EEPROM Write example]]
to:
* [[Reference/EEPROMRead | EEPROM.read]]()
* [[Reference/Serial | serial.begin]]()
* [[Reference/Serial | serial.print]]()
Changed lines 41-42 from:

to:
* [[EEPROMClear | EEPROM Clear example]] - Fills the content of the EEPROM memory with “0”
* [[EEPROMWrite | EEPROM Write example]] – Stores values read from A0 into EEPROM.
* [[EEPROMCrc | EEPROM Crc example]] – Calculates the CRC of EEPROM contents as if it was an array.
* [[EEPROMGet| EEPROM Get example]] – Get values from EEPROM and prints as float on serial.
* [[EEPROMIteration| EEPROM Iteration example]] – Programming examples on how to go through the EEPROM memory locations.
* [[EEPROMPut| EEPROM Put example]] – Put values in EEPROM using variable semantics (differs from EEPROM.write() ).
* [[EEPROMGet| EEPROM Get example]] – Get values from EEPROM and prints as float on serial.
* [[EEPROMUpdate| EEPROM Update example]] – Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life.


August 18, 2015, at 12:40 PM by Simone Maiocchi -
Changed lines 25-26 from:
(:source http://arduino.cc/en/pub/code/master/libraries/EEPROM/examples/eeprom_read/eeprom_read.ino lang=arduino tabwidth=4:)
to:
(:source https://raw.githubusercontent.com/arduino/Arduino/master/hardware/arduino/avr/libraries/EEPROM/examples/eeprom_read/eeprom_read.ino lang=arduino tabwidth=4:)
November 16, 2011, at 04:26 AM by Scott Fitzgerald -
Changed lines 25-26 from:
(:source http://arduino.cc/en/pub/code/master/libraries/EEPROM/examples/eeprom_read/eeprom_read.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/EEPROM/examples/eeprom_read/eeprom_read.ino lang=arduino tabwidth=4:)
September 28, 2010, at 01:21 PM by Tom Igoe -
Changed lines 25-26 from:
(:source http://arduino.cc/en/pub/code/master/libraries/EEPROM/examples/eeprom_write/eeprom_write.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/EEPROM/examples/eeprom_read/eeprom_read.pde lang=arduino tabwidth=4:)
September 28, 2010, at 01:20 PM by Tom Igoe -
Changed lines 25-58 from:
(:source lang=arduino tabwidth=4:)
#include <EEPROM.h>

// start reading from the first byte (address 0) of the EEPROM
int address = 0;
byte value;

void setup()
{
Serial.begin(9600);
}

void loop()
{
// read a byte from the current address of the EEPROM
value = EEPROM.read(address);

Serial.print(address);
Serial.print("\t");
Serial.print(value, DEC);
Serial.println();

// advance to the next address of the EEPROM
address = address + 1;

// there are only 512 bytes of EEPROM, from 0 to 511, so if we're
// on address 512, wrap around to address 0
if (address == 512)
address = 0;

delay(500);
}
(:sourceend:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/EEPROM/examples/eeprom_write/eeprom_write.pde lang=arduino tabwidth=4:)
September 23, 2010, at 10:45 PM by Christian Cerrito -
Changed lines 3-4 from:
!!EEPROM Read
to:
!!!EEPROM Read
September 20, 2010, at 02:16 PM by Christian Cerrito -
Changed lines 5-6 from:
The microcontroller on the Arduino board has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the [[Reference/EEPROMRead | '''EEPROM.read()''' ]] function, and how to print those values to the serial window.
to:
The microcontroller on the Arduino board has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive).

This example illustrates how to read the value of each byte EEPROM using the [[Reference/EEPROMRead | '''EEPROM.read()''' ]] function, and how to print those values to the serial window.
September 20, 2010, at 02:12 PM by Christian Cerrito -
Added lines 66-67:

September 20, 2010, at 02:11 PM by Christian Cerrito -
Changed lines 5-6 from:
The microcontroller on the Arduino board has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the [[Reference/EEPROMRead | @@EEPROM.read()@@ ]] function, and how to print those values to the serial window.
to:
The microcontroller on the Arduino board has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the [[Reference/EEPROMRead | '''EEPROM.read()''' ]] function, and how to print those values to the serial window.
Changed lines 14-15 from:
There is no circuit for this example, though your Arduino must be connected to your computer to enable serial communication.
to:
There is no circuit for this example.
Added lines 59-62:
* [[Reference/EEPROMRead | @@EEPROM.read()@@ ]]
* [[Reference/Serial | @@serial.begin()@@ ]]
* [[Reference/Serial | @@serial.print()@@ ]]
September 20, 2010, at 02:05 PM by Christian Cerrito -
Changed lines 14-15 from:
There is no circuit for this example.
to:
There is no circuit for this example, though your Arduino must be connected to your computer to enable serial communication.
September 20, 2010, at 01:58 PM by Christian Cerrito -
Added lines 7-20:
(:div class=BOM :)
!!!Hardware Required
* Arduino Board
(:divend:)

!!!Circuit
(:div class=circuit :)
There is no circuit for this example.

%height=250px%[[Attach:Arduino_bb.png | Attach:Arduino_bb.png]]
[-image developed using [[http://www.fritzing.org |Fritzing]]. For more circuit examples, see the [[http://fritzing.org/projects/|Fritzing project page]] -]

(:divend:)
September 20, 2010, at 01:58 PM by Christian Cerrito -
Changed lines 5-6 from:
The microcontroller on the Arduino board has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the [[Reference/EEPROMRead | @@EEPROM.read()@@ ]] function, and print those values to the computer via serial.
to:
The microcontroller on the Arduino board has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the [[Reference/EEPROMRead | @@EEPROM.read()@@ ]] function, and how to print those values to the serial window.
September 20, 2010, at 01:56 PM by Christian Cerrito -
Changed lines 5-6 from:
The microcontroller on the Arduino board has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to reads the value of each byte EEPROM using the [[Reference/EEPROMRead | @@EEPROM.read()@@ ]] function, and prints it to the computer via serial.
to:
The microcontroller on the Arduino board has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to read the value of each byte EEPROM using the [[Reference/EEPROMRead | @@EEPROM.read()@@ ]] function, and print those values to the computer via serial.
September 20, 2010, at 01:55 PM by Christian Cerrito -
Changed lines 5-6 from:
Reads the value of each byte of the EEPROM and prints it to the computer.
to:
The microcontroller on the Arduino board has 512 bytes of [[ http://en.wikipedia.org/wiki/EEPROM | EEPROM:]] memory whose values are kept when the board is turned off (like a tiny hard drive). This example illustrates how to reads the value of each byte EEPROM using the [[Reference/EEPROMRead | @@EEPROM.read()@@ ]] function, and prints it to the computer via serial.
September 16, 2010, at 11:10 PM by Tom Igoe -
Changed line 9 from:
[@
to:
(:source lang=arduino tabwidth=4:)
Changed lines 41-42 from:
@]
to:
(:sourceend:)
May 22, 2008, at 04:33 AM by David A. Mellis -
Changed lines 41-47 from:
@]
to:
@]

!!!See also

* [[EEPROMClear | EEPROM Clear example]]
* [[EEPROMWrite | EEPROM Write example]]
* [[Reference/EEPROM | EEPROM library reference]]
May 22, 2008, at 04:28 AM by David A. Mellis -
Added lines 1-41:
''Examples > EEPROM Library''

!!EEPROM Read

Reads the value of each byte of the EEPROM and prints it to the computer.

!!!Code

[@
#include <EEPROM.h>

// start reading from the first byte (address 0) of the EEPROM
int address = 0;
byte value;

void setup()
{
Serial.begin(9600);
}

void loop()
{
// read a byte from the current address of the EEPROM
value = EEPROM.read(address);

Serial.print(address);
Serial.print("\t");
Serial.print(value, DEC);
Serial.println();

// advance to the next address of the EEPROM
address = address + 1;

// there are only 512 bytes of EEPROM, from 0 to 511, so if we're
// on address 512, wrap around to address 0
if (address == 512)
address = 0;

delay(500);
}
@]

Share