"rfid rc522 arduino" Code Answer's

You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "rfid rc522 arduino" answered properly. Developers are finding an appropriate answer about rfid rc522 arduino related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like rfid rc522 arduino. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on rfid rc522 arduino. 

rfid rc522 arduino

By Arrogant AardvarkArrogant Aardvark on Jun 01, 2020
/*
 * 
 * All the resources for this project: https://randomnerdtutorials.com/
 * Modified by Rui Santos
 * 
 * Created by FILIPEFLOP
 * 
 */
 
#include <SPI.h>
#include <MFRC522.h>
 
#define SS_PIN 10
#define RST_PIN 9
MFRC522 mfrc522(SS_PIN, RST_PIN);   // Create MFRC522 instance.
 
void setup() 
{
  Serial.begin(9600);   // Initiate a serial communication
  SPI.begin();      // Initiate  SPI bus
  mfrc522.PCD_Init();   // Initiate MFRC522
  Serial.println("Approximate your card to the reader...");
  Serial.println();

}
void loop() 
{
  // Look for new cards
  if ( ! mfrc522.PICC_IsNewCardPresent()) 
  {
    return;
  }
  // Select one of the cards
  if ( ! mfrc522.PICC_ReadCardSerial()) 
  {
    return;
  }
  //Show UID on serial monitor
  Serial.print("UID tag :");
  String content= "";
  byte letter;
  for (byte i = 0; i < mfrc522.uid.size; i++) 
  {
     Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ");
     Serial.print(mfrc522.uid.uidByte[i], HEX);
     content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
     content.concat(String(mfrc522.uid.uidByte[i], HEX));
  }
  Serial.println();
  Serial.print("Message : ");
  content.toUpperCase();
  if (content.substring(1) == "BD 31 15 2B") //change here the UID of the card/cards that you want to give access
  {
    Serial.println("Authorized access");
    Serial.println();
    delay(3000);
  }
 
 else   {
    Serial.println(" Access denied");
    delay(3000);
  }
} 

Source: randomnerdtutorials.com

Add Comment

-1

All those coders who are working on the Whatever based application and are stuck on rfid rc522 arduino can get a collection of related answers to their query. Programmers need to enter their query on rfid rc522 arduino related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about rfid rc522 arduino for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of rfid rc522 arduino while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "rfid rc522 arduino". Visit this developer's friendly online web community, CodeProZone, and get your queries like rfid rc522 arduino resolved professionally and stay updated to the latest Whatever updates. 

Whatever answers related to "rfid rc522 arduino"

View All Whatever queries

Whatever queries related to "rfid rc522 arduino"

Browse Other Code Languages

CodeProZone