MAC address board

MAC1.0

New

This little module comes with a 24AA02e48 2Kb (256Byte) i2c EEPROM with Pre-programmed Globally Unique, 48-bit Node Address (MAC address). 

More details

This product is no longer in stock

$5.00

More info

Need a MAC address for a project?

You could just make one up like FE:ED:DE:AD:BE:EF for your Arduino project but is not scalible and can create issues as you making up and using address that could be issued to and used by someone else. 

Or you could go to the IEEE and buy a OUI or IAB address assignment but can be cost prohibiting for most people (not to mention creating and tracking all issued address)

Or you can just use a 24AA02E48 which comes with a pre assigned EUI-48(MAC) address. Just add to your project with a little code(below) and you get a real valid MAC address.

Datasheets and more info on the 24AA02E48 can be found here
http://www.microchip.com/wwwproducts/Devices.aspx?product=24AA02E48

Here is some sample Arduino code to get you started. 

// EUI48 24AA02E48 I2C sample code
// Robert Sturzbecher 2014 Bearocratic Designs
#include <Wire.h>
byte mac[] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 };

void setup(){
    Serial.begin(9600);
    Serial.println(F("checking MAC address "));
    Wire.begin();      // join i2c bus (address optional for master)
    mac[0] = i2c_readbit(0xFA);
    mac[1] = i2c_readbit(0xFB);
    mac[2] = i2c_readbit(0xFC);
    mac[3] = i2c_readbit(0xFD);
    mac[4] = i2c_readbit(0xFE);
    mac[5] = i2c_readbit(0xFF);
    for (uint8_t i = 0; i < 6; i++){
        Serial.print(mac[i],HEX);
        Serial.print(" ");
    }
    Serial.println();
}


void loop() {
}  


byte i2c_readbit(byte address){
    Wire.beginTransmission(0x50);
    Wire.write(address); //MAC starts from FA and 6bytes long
    Wire.endTransmission();
    Wire.requestFrom(0x50, 1); //request a single byte
    return Wire.read(); // Return what we get
}
//end of code

Reviews

No customer comments for the moment.

Write a review

MAC address board

MAC address board

This little module comes with a 24AA02e48 2Kb (256Byte) i2c EEPROM with Pre-programmed Globally Unique, 48-bit Node Address (MAC address). 

Write a review