Using RFID to Lock/Unlock computer


In this DIY we are going to make a device to unlock our computer running on any operating system using an RFID card.   We just needed to pass the card above the RFID reader, in my case I have placed it inside my laptop housing.

As you can see in the picture, I have removed the CD drive and placed an SSD and on top of that, you can see our RFID reader with Arduino Leonardo.

Hardware Required

ComponentsDIY UsthaddiyusthadAmazon.comamazonBanggoodbanggoodAliExpressali expressUtsource
utsource logo
RFID RC522cart iconcart iconcart iconcart icon
Arduino Leonardocart iconcart iconcart iconcart iconcart icon

Pinout Diagram

RFID RC522 Pinout by
Arduino leonardo pinout ICSP


As shown in the circuit give the connections as follows:

Arduino Leo              RFID        
 PIN 10     SDA
 3.3V  VCC


After building the circuit please upload the program and open the serial monitor and scan your RFID which you need to set as your computer key and note down the RFID number which is printed on the serial monitor and update that number in the program (line 10);

Also, update your password (line 48) in the program and upload the program again. Now We are ready to go.

Watch the video