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. 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...
Ok, let's get started!!
1 x USB Type-B Cable
1 x RFID RC522 Card Reader Detector Module Kit
1 x 1 Channel Relay (KY-019)
1 x KY-004 Button Module (To clear the database) (Can be Found in 37 Types Sensor in 1 Starter Learning Sensor Kit) or PushButton
1 x Mini Breadboard (for RFID module stands vertical) or PCB Donut board
Female-to-Male Jumper Wires
1 x Computer with Arduino IDE installed
Optional
Electrical Door Lock
Male-to-Male Jumper Wires
Arduino Compatible UNO Ultimate Starter Kit / Learning Kit (All the component can be found in this EXCEPT Door lock)
USB To Power Jack Cable
Soldering Iron and Solder (in case use PCB board)
You can uncomment this line below (line 68) in the code it will increase reading distance :
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.
http://news.chivindo.com/674/door-access-control-with-arduino-and-rfid-rc522.html
Step 1: What You Need?
1 x Arduino UNO1 x USB Type-B Cable
1 x RFID RC522 Card Reader Detector Module Kit
1 x 1 Channel Relay (KY-019)
1 x KY-004 Button Module (To clear the database) (Can be Found in 37 Types Sensor in 1 Starter Learning Sensor Kit) or PushButton
1 x Mini Breadboard (for RFID module stands vertical) or PCB Donut board
Female-to-Male Jumper Wires
1 x Computer with Arduino IDE installed
Optional
Electrical Door Lock
Male-to-Male Jumper Wires
Arduino Compatible UNO Ultimate Starter Kit / Learning Kit (All the component can be found in this EXCEPT Door lock)
USB To Power Jack Cable
Soldering Iron and Solder (in case use PCB board)
Don't have components? Don't worry. Just click the component's name.
Step 2: Build Your Circuit.
Connect wire like the schematic above.
Step 3: Upload The Code.
You can uncomment this line below (line 68) in the code it will increase reading distance :
mfrc522.PCD_SetAntennaGain(mfrc522.RxGain_max);
Step 4: Test!
The video should explain enough.
You also can refer to this Security Access Using RFID Reader. (You also can refer this if you don't have the library for RFID)
Comments
Post a Comment