Arduino door access control – RFID-RC522

Hello world! Today i made a Arduino door access control 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!

Schematic:
Arduino door access control

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)

Code:

facebook-profile-picture
Danny van den Brande

http://www.arduinosensors.nl

Programmer, Game Designer, 3D Designer, Web Designer, Graphic Designer. Jup this website looks crappy.. :) But enjoy the projects! Everything you need is here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.