Home > News & Updates > Electronics News Updates > RFID Computer login

RFID Computer login

Summary of RFID Computer login


This article details a DIY project to create a secure, password-free computer login system using an Arduino and RFID technology. The setup allows users to log in by tapping a specific RFID card, which triggers the Arduino to simulate keyboard input and type the stored password automatically.

Parts used in the RFID Computer Login Project:

  • RC522 RFID tag reader (3.3v)
  • Arduino Leonardo clone (based on Sparkfun Pro Micro)
  • Arduino library for MFRC522
  • SPI bus connection components
  • Serial terminal software

I wanted a simple way of quickly logging on to my computer without having to typing my password in and did not want to have no security either.

RFID Computer login

There are various products on the market that would solve this problem from fingerprint readers to proximity dongles but I decided to see what I could knock up with parts I mainly already had.

Looking in my micro stuff I had a RC522 RFID tag reader 3.3v :

Also an 3.3v Arduino Leonardo clone as well based on a Sparkfun pro micro which also can act as a USB device such as a keyboard. This is useful as if a 5v Arduino was used a level shifter would be required due to the RC522 not being 5v torrent.

How it works

When the chosen cards is presented the Arduino will act as a keyboard and simply type the stored password in followed by a carriage return .

Wiring

As mentioned, both devices being the same voltage ,3.3v made wiring so easy !.

Code

I used the Arduino library for MFRC522 by Miguel Balboa , so you will need to add this library to Arduino.
Please note this is only a very basic example and the password is stored in plain text in your Arduino document ,  so this is very much proof of concept and has just been thrown together. It may also be a good idea after uploading to Arduino to and save your Arduino document with the password blank.

UPDATE!  Please also see RFID Login software Update ! for the latest software example .

 

 

How to use

1) First Set “#define enable_serial” = 1  to enable serial output.
2) Open a serial terminal with 9600 baud
3) Swipe a card and make a note of  UIDs .
4) Add recorded card UID to line 27.
5) Add login information to the keyboard section line 113 , modify the key squence for other OS’s and applications .

Read more: RFID Computer login

 

 

 

Quick Solutions to Questions related to RFID Computer Login:

  • How does the Arduino act during the login process?
    The Arduino acts as a keyboard, typing the stored password followed by a carriage return when the chosen card is presented.
  • Why was an Arduino Leonardo clone chosen over a standard 5v Arduino?
    A 5v Arduino would require a level shifter because the RC522 reader operates at 3.3v, whereas the Leonardo clone matches this voltage directly.
  • What library is required to make this code work?
    You need to add the Arduino library for MFRC522 by Miguel Balboa to your Arduino environment.
  • Is the password stored securely in the provided example?
    No, the password is stored in plain text within the Arduino document, making it a proof of concept rather than a secure solution.
  • How do you identify the unique ID of your RFID card?
    You must set enable_serial to 1, open a serial terminal at 9600 baud, swipe the card, and note the UID displayed.
  • Can this code be used for operating systems other than Windows?
    Yes, you can modify the key sequence in the code section to accommodate different OSs or applications.
  • What pins are defined for the SS and RST connections?
    The code defines SS_PIN as 10 and RST_PIN as 5.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top