How to read the ID (serial number) of an Arduino?

You can also assign or code generated by the software ID eg 485fcba0-e61a-11df-9492-0800200c9a66, and left as a global variable. (This number may be repeated once every 100 years)
So no need to remove the FTDI or an EEPROM.

Or the second option is with the Dallas DS2401, separates a unique pin (Wire one), this number is unique.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1260959358/11
http://www.famkruithof.net/uuid/uuidgen
http://pdfserv.maxim-ic.com/en/ds/DS2401.pdf

Code:
/ / WRITES TO SERIAL EEPROM Arduino
/ /
/ / Do this only eleven on an Arduino,
/ / Write the Serial of the Arduino in the
/ / First 6 bytes of the EEPROM

Include <EEPROM.h>

sID char [7] = "CD6484";

void setup ()
{
Serial.begin (9600);
for (int i = 0; i <6; i + +) {
EEPROM.write (i, sID );

  • }*
    }
    void loop () {
  • Serial.println (sID);*
    }
    Code:
    / / Arduino READS FROM SERIAL EEPROM
    / /
    / / Reads the Serial of the Arduino from the
    / / First 6 bytes of the EEPROM
    # Include <EEPROM.h>
    sID char [7]
    void setup ()
    {
  • Serial.begin (9600);*
  • for (int i = 0; i <6; i + +) {*
    _ sID = EEPROM.read (i)_
    * }*
    }
    void loop () {
    * Serial.println (sID);*
    }