Posts

Showing posts from April, 2024

Self Healing Cutting Mat

Self Healing Cutting Mat:- https://amzn.to/49BAvMn

RFID Main Arduino Code

 #include <Servo.h> #include <LiquidCrystal_I2C.h> #include <SPI.h> #include <MFRC522.h> #define SS_PIN 10 #define RST_PIN 9 #define buzzer 2 #define servoPin 3 String UID = "93 1C CF A9";//Enter your card or keychain ID byte lock = 0; Servo servo; LiquidCrystal_I2C lcd(0x27, 16, 2); MFRC522 rfid(SS_PIN, RST_PIN); void setup() {   Serial.begin(9600);   servo.write(45);   lcd.init();   lcd.backlight();   servo.attach(servoPin);   SPI.begin();   rfid.PCD_Init();   pinMode(buzzer, OUTPUT); } void loop() {   lcd.setCursor(4, 0);   lcd.print("Welcome!");   lcd.setCursor(1, 1);   lcd.print("Put your card");   if ( ! rfid.PICC_IsNewCardPresent())     return;   if ( ! rfid.PICC_ReadCardSerial())     return;   lcd.clear();   lcd.setCursor(0, 0);   lcd.print("Scanning");   Serial.print("NUID tag is :");   String ID = "";   for (byte i = 0; i < rfid.uid.size; i++) {     lcd.print(".");     ID.concat(S

RFID Card Scan Arduino Code

#include <LiquidCrystal_I2C.h> #include <SPI.h> #include <MFRC522.h> #define RST_PIN 9 #define SS_PIN  10 byte readCard[4]; byte a = 0; LiquidCrystal_I2C lcd(0x27, 16, 2); MFRC522 mfrc522(SS_PIN, RST_PIN); void setup() {   Serial.begin(9600);   lcd.init();   lcd.backlight();   while (!Serial);   SPI.begin();   mfrc522.PCD_Init();   delay(4);   mfrc522.PCD_DumpVersionToSerial();   lcd.setCursor(2, 0);   lcd.print("Put your card"); } void loop() {   if ( ! mfrc522.PICC_IsNewCardPresent()) {     return 0;   }   if ( ! mfrc522.PICC_ReadCardSerial()) {     return 0;   }   lcd.clear();   lcd.setCursor(0, 0);   lcd.print("Scanned UID");   a = 0;   Serial.println(F("Scanned PICC's UID:"));   for ( uint8_t i = 0; i < 4; i++) {  //     readCard[i] = mfrc522.uid.uidByte[i];     Serial.print(readCard[i], HEX);     Serial.print(" ");     lcd.setCursor(a, 1);     lcd.print(readCard[i], HEX);     lcd.print(" ");     delay(500)

RFID Circuit Diagram

Image
 

Materials Required

Arduino UNO:- https://amzn.to/3mhamzG Jumper Wires:- https://amzn.to/3GvV1SW   LCD Display With I2C Module:- https://amzn.to/3Vd1Gtt Servo Motor:- https://amzn.to/3PqtfMt   5V Buzzer :- https://amzn.to/3KkLNK9 Breadboard:- https://amzn.to/3Ulqv3G    RFID Module:- https://amzn.to/3PRArky