Dr. Kayarvizhy N Dr. Kayarvizhy N

Internet of Things

RFID

July 12, 2016All posts

Read the RFID Tag value and prints in the serial Monitor

Pin Configuration


RFID Reader         Arduino

5V                             5V

Tx                             Pin 9 ( This is the pin used in the softwareserial)

GND                        GND

 

 

 

 #include <SoftwareSerial.h>

SoftwareSerial mySerial(9, 10);
void setup()
{
  mySerial.begin(9600); // Setting the baud rate of Software Serial Library  
  Serial.begin(9600);  //Setting the baud rate of Serial Monitor 
 }void loop()
{
    
 if(mySerial.available()>0)
  {
  Serial.write(mySerial.read());
  }
}

 

0 0 votes
Article Rating
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted