Hi, I need help.
I have an ID-20 reader connected to an arduino (all working).
It's outputing this when I use a card :
310022FDA94 .
I've tried with different cards and all cards output in the same format.
This is the code I'm using :
/* 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);
}
}
I want the program to print to Serial : "card1" if the card
output is :310022FDA94 ( my card1 ).
How would I go on about distinguishing them?
Thanks in advance.
Sincerely
Paul