Hello Arduino world,
I have a RFID reader (
http://robotics.org.za/index.php?route=product/product&path=114_96&product_id=243)
and
Arduino UNO R3
I connected it like the following instructable
http://www.instructables.com/id/Arduino-and-RFID-from-seeedstudio/?ALLSTEPSThis is my code
#include <SoftwareSerial.h>
SoftwareSerial mySerial(11, 12);
void setup()
{
Serial.begin(9600);
Serial.println("Serial Ready");
mySerial.begin(9600);
Serial.println("RFID Ready");
}
void loop()
{
if(mySerial.available()>0)
Serial.print("Reading");
}
Now my problem is when I open my Serial Monitor, It gives me Serial Read and RFID Ready.
Thats all good.
Now when I first scan my card/tag I get Reading printed over and over but when I remove my card/tag it still prints Reading? Why is that?
I understand that .available function reads when my card/tag is nearby and should stop reading if my card/tag is removed but I am wrong and I have tried many things now.
Can anyone send me in some new direction to help me out.
Kind Regards
Jaco