I just got a ID-12 from Sparkfun. How do I set it up to interface with the Arduino mega?
I think this might help you out:
http://www.arduino.cc/playground/Main/InterfacingWithHardware#RFID
How do I connect the hardware? I think I might have put a wire in the wrong place.
There are details on the links on that site.
This is the code I am using, which I got from one of the websites. I find that the time to print each RFID tag is very inconsistent. And the read range may be apart of that. Sometimes I held the RFID button right up to the reader and it never noticed the button. I hope this is a coding issue.
/* RFID ID12
*/
char val = 0; // variable to store the data from the serial port
void setup() {
Serial.begin(9600); // connect to the serial port
}
void loop () {
// read the serial port
if(Serial.available() > 0) {
val = Serial.read();
Serial.print(val, BYTE);
}
}