Arduino RFID-RC522 - DOOR ACCES CONTROL/ RFID DOOR LOCK
Intro: Arduino RFID-RC522 - DOOR ACCES CONTROL/ RFID DOOR LOCK
Hello world! Today i made a RFID door lock. The lamp acts as a Electric door lock because i don't have a electrical lock, you simply add the door lock to the relay instead of the lamp. Check out the link for the Schematic code & Parts list. I could not find much about the module, i have the RFID-RC522 in blue color, so this might be useful for the ones who have the same problem as me because the red one has the pins different... i only found wrong schematics.. SO here is the right code & schematic.. it works fine to!
STEP 1: Parts List, Schematic & Code.
Simply wire it up like the schematic, upload the code and it should work.
There is a button to clear the database. How this works is simple, Just hold the button and reset arduino. Hold it for 6 second and it will clear all cards added. After that you need to add the new master card and key cards.
the video should explain enough.
You can uncomment this line below (line 68) in the code it will increase reading distance : mfrc522.PCD_SetAntennaGain(mfrc522.RxGain_max);
Parts list.
- Arduino uno, I used the RobotDyn Uno.
- RFID RC522 - Blue colored version.
- 1 channel Relay KY-019
- KY-004 Button module. (to clear the database)
- Jumper wires set. MM/FF/MF.
- Electrical door lock, (Optional, Not needed to test the code.)
- Mini Bread Board (Optional, i used it so the RFID module stands vertical)
Good luck!
24 Comments
fklan 1 year ago
control reaches end of non-void function [-Werror=return-type]"
SzymonS26 6 years ago
How to power the arduino in this setup?
vandenbrande 5 years ago
bishaldutta 6 years ago
You can power it via adapter or battery. You can also power it via solar panel. https://www.instructables.com/id/Solar-Powered-Charger-for-18650-Lithium-Ion-Cells/
tirth.27patel 5 years ago
how can i add a solenoid lock to this circuit?
opampca 5 years ago
opampca 5 years ago
pinink 25 5 years ago
Hi , pleas where are you get library for this project
mitchell.corcoran.3 6 years ago
This is an amazing instructable, thank you for your time and effort, greatly appreciate it!
just wanting to know how to change it so you could have more than one master cards? I am wanting to make it so that the mastercards are set within the actual code before the system turns on, so if the system resets, I don't need to make a new mastercard.
aboodd1 7 years ago
BlueCore Tech Acces Control
MFRC522 Version: 0x92 (unknown)
and then it doesnt scan.
Any Help
vandenbrande 6 years ago
Do you have mosi and miso reversed?
douwe123 7 years ago
could you pleas help mine gives a error message saying the mfrc522.h file isn't found
vandenbrande 6 years ago
You need the library mfrc522.h
LuckyLuke245 6 years ago
Hey, I just made this, and it works perfectly. Awesome design!!!
I just have one problem, when I read the master card, it says that there are 117 existing record of key cards, even though I didn't add any yet.
Any help?
Maybe it is because I don't have the KY-044 button, and I can't reset the Database...
Thanks
vandenbrande 7 years ago
Follow me for more!
batchit 7 years ago
Hi, thank you for an excellent instructable, is there a way I can add extra tags and have say 4 or 5 that will all read.
Regards Geoff
manisware 7 years ago
can you please share the connections details of relay to magnetic door lock
ferypro 7 years ago
please teach me how to add servo ?
vandenbrande 7 years ago
MC RYO 7 years ago
One Question.........
How many data size stored in Arduino EEPROM for one user?