This is the data sheet of
MIFARE module.
I can also use other modules for:
SRIXICODEThe modules are from an italian reseller, i don't think it send single products worldwide...
Here you can found the
mifare 1k datasheetThis is the symple test i coded for testing:
#include <NewSoftSerial.h>
byte select[] = {0x02,
0x00,
0x04,
0x04,
0x00,
0x00,
0x02};
int rxPin = 3;
int txPin = 4;
int gndPin = 5;
int powerPin = 6;
int ledPin = 7;
byte readVal = 0x00;
NewSoftSerial mySerial = NewSoftSerial(rxPin, txPin);
void setup() {
pinMode(powerPin, OUTPUT);
digitalWrite(powerPin, HIGH);
pinMode(gndPin, OUTPUT);
digitalWrite(gndPin, LOW);
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
pinMode(ledPin, OUTPUT);
mySerial.begin(9600);
Serial.begin(9600);
}
void loop() {
delay(300);
int i = 0;
for (i=0;i<7;i++) {
mySerial.print(select[i],BYTE);
}
digitalWrite(ledPin, LOW);
while (mySerial.available() > 0)
{
readVal = byte(mySerial.read());
Serial.print(readVal);
if ( !(readVal == 0x02 ) && !(readVal == 0x00 )){
digitalWrite(ledPin, HIGH);
}
}
digitalWrite(powerPin, HIGH);
}
And i found an open source project for RFID reader, it cold be interesting to convert into arduino shield!!
http://www.openpcd.org/