bhaskar
Published © Apache-2.0

Interface RFID Shield With Arduino

Working with RFID is so much fun, you can do alot with these tags like controlling relay, turing lights on off, access control, door lock.

BeginnerProtip18 minutes5,146
Interface RFID Shield With Arduino

Things used in this project

Hardware components

ControlEverything.com Arduino RFID Shield
×1
Arduino Nano R3
Arduino Nano R3
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Arduino RFID shield wiring duagram

Code

Code snippet #1

Plain text
int count = 0;                                          // count = 0char input[11];                                         // character array of size 12 
                                 
void setup()
{
   Serial.begin(9600);                                  // begin serial port with baud rate 9600bps
}
void loop()
{
   
   if(Serial.available())
   {
      count = 0;
      while(Serial.available() && count < 12)          // Read 12 characters and store them in input array
      {
         input[count] = Serial.read();
         count++;
         delay(5);
      }
      Serial.print(input);                             // Print RFID tag number 
      Serial.print("\n");   
   }
}

Github file

https://github.com/bhaskar-anil429/Arduino-RFID-Shied/blob/master/Arduino_RFID.ino

Credits

bhaskar
6 projects • 14 followers
Hardware engineer

Comments