My new RFID reader ID12-LA by SparkFun can recognise an RFID tag, but it can't read its tag number - the Arduino IDE outputs the tag as ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Any help on how to convert this into a proper ID would be much appreciated - btw I have tried other baud rates; no difference.
Thanks, Raihaan
Edit - the code I'm using is this:
#include <SoftwareSerial.h>
SoftwareSerial rSerial(4,5);
void setup() {
rSerial.begin(9600);
}
void loop() {
if (rSerial.available() > 0) {
int b = rSerial.read();
Serial.print(b);
Serial.print(" ");
}
}
This now returns 255
6 times... Any ideas?
Schematic:
Serial.read()
if there is no data (actually it returns -1 which is 0xFFFF in this case however that will look like 0xFF if you stuff it into one byte). Possibly there is a gross mismatch in baud rates. An occasional 0-bit will look like a start bit, and then if you get all 1-bits after that, you would get 0xFF returned.