Arduino Uno ID Manager Control Code

ID Manager is not a physical electronic device. It is a virtual device controlling ID-s of other devices. Every device has a position in the ID manager by knowing the position you can find out the device ID. You are capable to control any device, for example motors or sensors by simply providing their device ID. You can also rewrite ID-s and delete existing devices. You can add devices by plugging them to the microcontroller and building them into the main programcode. When restarting the microcontroller all deleted device will return with a new ID.

Required hardware

  • Arduino Uno

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);

  int x = 1;
  manager->sendLinkSetup();
  manager->PrintWelcomeLine(manager, x++, "DeviceIDManager");
}

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

More information