I want to connect an animal tag reader module 134.2KHz FDX-B EM4305 (low frequency RFID) to my arduino uno, which sends the transponder data through a TX pin. I tried to connect this TX pin to an assigned RX pin of the arduino uno, and uploaded a little program to check if it's receiving any data at all.
#include <SoftwareSerial.h>
SoftwareSerial RFID(2, 3); // RX and TX
int i=0;
void setup()
{
//pinMode(13,INPUT);
RFID.begin(9600); // start serial to RFID reader
Serial.begin(9600); // start serial to PC
}
void loop()
{
if (RFID.available() > 0)
{
Serial.print("CHECK");
i = RFID.read();
Serial.print(i);
delay(100);
}
}
The problem is when I place the tag in the antenna, I don't recieve any data in the serial monitor of the arduino. I doubled checked my connections and tried different tags. I suspect the problem is either my programming is wrong, or the module is not working. It is far more likely that the problem is that my programming, or approach to the problem, has something wrong. My question is, is this the right way to read data from the RX pin in the arduino? What do you think should be changed in order to make this work?