Arduino Mega 2560

EEPROMs contain special memory registers to keep data even if the microcontroller is unpowered. EEPROM size depends on the type of microcontroller you use. The ATmega328P contains 1024 bytes while the ATmega2560 contains 4096 bytes. In Ozeki the EEPROM is divided into blocks. Each block is identified by it's blockindex. You can always read or rewrite EEPROM registers.

Required hardware

  • Arduino Mega 2560

Source code to install on controller


Before you upload this code to your Arduino, please format the EEPROM...

#include <OzIDManager.h>

OzIDManager* manager;

void setup()
{
  Serial.begin(115200);

  manager = new OzIDManager;
  manager->_sendACK = true;
  manager->_checksum = true;

  OzCommunication::setIDManager(manager);

  manager->sendLinkSetup();
  manager->PrintEEPROMWelcome();
}

void loop()
{
  OzCommunication::communicate();
}