RFID란?
참고자료: collin's lab: RFID
RFID - 테스트 (아이디어)
- RFID 를 이용해 사용자 식별
참고자료 : Makercoure http://makecourse.weebly.com/week10segment1.html

하드웨어 연결

테스트 영상
테스트 결과 동영상 링크 - https://vimeo.com/116336097
Dump_RFID from Sangho Lee on Vimeo.
테스트한 소스코드
#include <SPI.h>
#include <MFRC522.h>
#define RST_PIN 9
#define SS_PIN 10
MFRC522 mfrc522(SS_PIN, RST_PIN); // Creat MFRC522 instance
void setup()
{
Serial.begin(9600); // Intialize serial communication with the PC
SPI.begin(); // Init SPI bus
mfrc522.PCD_Init(); // Init MFRC522
ShowReaderDetails(); // Show details of PCD - MFR522 card reader deatails.
Serial.println(" Scan PICC to see UID, type, and data blocks...");
}
void loop()
{
//Look for new cards
if(!mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if(!mfrc522.PICC_ReadCardSerial())
{
return;
}
//Dump debug info about the card; PICC_HAlta() is autimatically called.
mfrc522.PICC_DumpToSerial(&(mfrc522.uid));
}
void ShowReaderDetails()
{
//Get the MFRC522 software version.
byte v = mfrc522.PCD_ReadRegister(mfrc522.VersionReg);
Serial.print("MFRC Software Version : 0x");
Serial.print(v, HEX);
if ( v == 0x92)
Serial.print(" = v1.0");
else if ( v == 0x92)
Serial.print(" = v2.0");
else
Serial.print(" (unknow)");
Serial.println("");
// When 0x00 or 0xFF is returned, communication probably falied
if ((v == 0x00) || (v == 0xFF))
{
Serial.println("WARNING: Communication failure, is the MFRC422 properly connected?");
}
}

