user26792: 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:


user27779: If you have one of the regular Arduino models, the hardware UART is connected to pins 0 and 1, which are also used by the USB programmer and in your case obviously your serial monitor, on which you expect to see some output.
Configuring a SoftwareSerial on pins 0 and 1 is probably not going to work at all. If you need the USB programmer to stay connected and the serial monitor for debugging, you have to use different I/O pins and setup your SoftwareSerial accordingly. 
I assume that you are aware that the ID12-LA chip only works on the 125 kHz band and is incompatible with common tags running on 13.56 MHz?

user11763: You created a SoftwareSerial connection to read from the module and then you're printing what you just read to the same module. You probably want to print to the serial monitor on your PC. You should add Serial.begin(9600); to your setup() and ensure that all print()s are to Serial and not rSerial().

26792: <p>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 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ</p>

<p>Any help on how to convert this into a proper ID would be much appreciated - btw I have tried other baud rates; no difference.</p>

<p>Thanks, Raihaan</p>

<p>Edit - the code I'm using is this:</p>

<pre><code>#include &lt;SoftwareSerial.h&gt;

SoftwareSerial rSerial(4,5);

void setup() {
    rSerial.begin(9600);
}

void loop() {
    if (rSerial.available() &gt; 0) {
        int b = rSerial.read();
        Serial.print(b);
        Serial.print(" ");
    }
}
</code></pre>

<p>This now returns <code>255</code> 6 times... Any ideas?</p>

<p>Schematic:</p>

<p><a href="https://i.stack.imgur.com/jXhIP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jXhIP.jpg" alt="enter image description here"></a></p>
 27779: <p>If you have one of the regular Arduino models, the hardware UART is connected to pins 0 and 1, which are also used by the USB programmer and in your case obviously your serial monitor, on which you expect to see some output.</p>

<p>Configuring a SoftwareSerial on pins 0 and 1 is probably not going to work at all. If you need the USB programmer to stay connected and the serial monitor for debugging, you have to use different I/O pins and setup your SoftwareSerial accordingly. </p>

<p>I assume that you are aware that the ID12-LA chip only works on the 125 kHz band and is incompatible with common tags running on 13.56 MHz?</p>
 11763: <p>You created a <code>SoftwareSerial</code> connection to read from the module and then you're printing what you just read <em>to the same module</em>. You probably want to print to the serial monitor on your PC. You should add <code>Serial.begin(9600);</code> to your <code>setup()</code> and ensure that all <code>print()</code>s are to <code>Serial</code> and not <code>rSerial()</code>.</p>
