Unlock PC With RFID | Arduino

by Aced Inventor in Circuits > Arduino

2584 Views, 5 Favorites, 0 Comments

Unlock PC With RFID | Arduino

Unlock PC with RFID | Arduino

In this project, I will show you how to unlock your PC with an RFID tag. I use an RFID reader to be able to scan the RFID tags. In the code, you can add up to two RFID tags but if you would like to add more you can modify the code. When you scan the correct RFID tag the Arduino Pro Micro enters the password to your PC in under one second. It also turns on the Green LED for one second to indicate that the tag scanned was correct. If the RFID tag scanned is not registered the RED led will turn on and your PC will not unlock.

This project can still be improved.

Supplies

Supplies.png

RFID Wiring

RFID Wiring.png

Connect the RFID reader as the following:

Arduino > Logic Level > RFID

GND > GND > GND

5V > HV > 3.3V

D9 > N/A > RST

D14 > HV4 > MISO

D16 > HV3 > MOSI

D15 > HV2 > SCK

D10 > HV1 > SDA

Note: The logic level is used in this project because the Arduino Pro Micro outputs 5V, and the RFID reader needs 3.3V.

LED Wiring

LED Wiring.png

Connect the LED lights as the following:

Arduino > LED

D3 > LED Green

D2 > LED RED

Dump Info

image_2021-07-16_095952.png
image_2021-07-16_124315.png

Open Arduino IDE and then go to examples and go down to "MFRC522." From this library, select dump info and upload it to the board. Open serial monitor and scan the two RFID tags. Copy the UID from both of the tags and past them in the main code.

Programming

image_2021-07-16_100322.png

Change the password and then upload the code onto your Arduino Pro Micro. Once the code has been uploaded, the Green LED will flash. You can test if the RFID reader is working by scanning any tag. If the tag is not registered, the RED LED should flash, and if the tag is registered, the Green LED should flash.

For more information about this, please visit my Patreon:
https://www.patreon.com/acedinventor

Testing the Project

testing.png

To test the project plug the Arduino Pro Micro into your PC. Scan a registered tag on the RFID reader and your PC should unlock. To make sure there are no glitches scan an unauthorized tag and your PC should stay locked.

If there is still something you don't understand, you can comment down below.