Simple RFID control servo motor for smart door lock system using arduino

preview_player
Показать описание
Hello everyone,
In this video I will show you how you can make a simple RFID home security system for you door lock

Components required...(affiliate link present)

6. Led
7. Buzzer

RFID Library

Code

Thanks for watching
Рекомендации по теме
Комментарии
Автор

A pesar de que parezca tanto cablerio es realmente sencillo, lo arme en unos cuantos minutos. Excelente video!

nazarenofranco
Автор

#include <SPI.h>
#include <MFRC522.h>
#include <Servo.h>

#define SS_PIN 10
#define RST_PIN 9
#define SERVO_PIN 8 // Define the servo pin

MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.
Servo myServo; // Create servo object to control the SG90

void setup()
{
pinMode(7, OUTPUT);
pinMode(6, OUTPUT);
myServo.attach(SERVO_PIN); // Attach the servo on pin 8 to the servo object
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 ( !
{
return;
}
// Select one of the cards
if ( !
{
return;
}
//Show UID on serial monitor
Serial.print("UID tag :");
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
< 0x10 ? " 0" : " ");
Serial.print(mfrc522.uid.uidByte[i], HEX);
< 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
Serial.println();
Serial.print("Message : ");
content.toUpperCase();
if (content.substring(1) == "B3 05 D4 11") //change here the UID of the card/cards that you want to give access
{
Serial.println("Authorized access");
Serial.println();
digitalWrite(6, HIGH);
delay(200);
digitalWrite(6, LOW);
myServo.write(180); // Rotate the servo to 180 degrees
delay(3000); // Wait for 3 seconds
myServo.write(0); // Rotate the servo back to 0 degrees
}
else
{
Serial.println(" Access denied");
Serial.println();
digitalWrite(7, HIGH);
delay(200);
digitalWrite(7, LOW);
}
}

rayapudihindusri
Автор

thanks yyar bhai aur bhi nayi video banatai raho


its my school project and i got 1 position thanks once again

aniruddhsingh
Автор

Thank you very much for this video. My project works now. I appreciate it. Great video.

pault
Автор

Sir your video is osm...to I Am your Big fain....

pritammondal
Автор

Thank you so much Love from PH dude you did well and my project works... 🔥

chubielester
Автор

Makasih banget codingannya buat kerjain tugas

asep
Автор

Superliked!!!
I would like to thank you for your informative video. You illustrated all that therein and I could build my security access in less than an hour. I want to add a LCD display to show few information as under:
1."Authorized" message with Name (attached to Card ID) on Successful login
2."You are not authorized" message on wrong cards
3."Use your card" on Idle mode
4.Other messages related to Card
Hope to get reply from you asap.

I appreciate your time and efforts.Keep it up!

amitabheer
Автор

I have been try this, it's work.
Thank you very much

binairwanda
Автор

What’s the music? 5:27 Bty very nice video!

tfmg
Автор

How can I make the circuit open with both cards?

MsLuis
Автор

Why I can’t used with battery 9v or 12v ? Please tell me how should I do ❤

bczin
Автор

bro, why my arduino IDE cant detect the rfid cant connect When I execute it, I get the message:

Firmware Version: 0x0 = (unknown)

WARNING: Communication failure, is the MFRC522 properly connected?

Scan PICC to see UID, SAK, type, and data blocks...

I have re-checked the connections a thousand time but it's not working, the pins are connected as the example says to, and the LED D1 is on (red). Do you can help me?

andriharii
Автор

Sir can I use this coding for arduino uno R3 in mobile phone in arduino Droid app please fast reply I am making this for my school submission 🙏🙏🙏

electronichacks
Автор

Buen día.
En este proyecto el servo no funciona. Sólo funciona un led y el buzer.

luzdollylopezguerra
Автор

Good day sir. Did you try already 2 rfid at thesame time

leonardcainguitan
Автор

can you make a security system with akeypad and rfid

Assassxndev
Автор

That servo motor probably isnt strong enough to throw a deadbolt. Any lock that could be thrown by that tiny servo could be ripped off so easily, but it's a cool theoretical project.

ATLTraveler
Автор

Give direct link for code and circuit diagram

arceditor
Автор

How about by using wemos d1? When i touch the card to the sensor, both led will off and after that both led are on at the same time. Can you help me to fixed it. ASAP thank you

felconero