Tuesday, March 19, 2024

RFID-Based Automatic Desktop/Mobile Phone Login Device

Ashwini Kumar Sinha

- Advertisement -

We have so many login passwords to remember in order to access our laptops, emails or online banking. And forgetting password is something that we often face, and when we are in an urgent situation, it is quite annoying.

With cameras all around today, it is also not safe to type our password in public places. Now, you won’t be required to remember any passwords to open your laptop/computer. The device we are going to build today will do the task for you.

This is a radio-frequency identification (RFID)-based automatic desktop login and password filling device. When we plugin this device in our laptop or mobile phone, it asks for the right RFID tag and when you put the unique RFID tag, it automatically fills the password and do the login or any tasks as programmed. When given wrong RFID tag, it simply rejects and ask for the right RFID tag. This means only the person who has the right RFID tag can access the system.

- Advertisement -

Note: – This is the first version of the project, we will soon update with more functions.

Components Required

  • RFID RC522 Module kit
  • Arduino Leonardo/Arduino Pro micro

Coding

Open the Arduino IDE and install the RC522 RFID library form library manager as in Fig 1.

Fig 1. Installing Library

Now, let’s understand the code. First, we have included the required library and then we create some variables to store the RFID card and tags UUID and values. Refer Fig 2.

Fig 2. Arduino Code

Next we create a set-up function where the RFID and Spi are initialized. A statement then checks the card UUID to match it with the stored card.  After that we make another statement that automatically types the password that is set in code i.e. Keyboard.println (“password”).

Fig 3. Arduino code initializing RFID
Fig 4. Arduino code checking the RFID tag and typing password

Download the code and make changes as stated and then upload the code to Arduino Leonardo.

Connection

After uploading the code, make the connection as illustrated below. (Refer Fig 5.)

Arduino Pro Micro RS522 RFID
RST Reset
Pin 10 SDA
Pin 16 MOSI
Pin 14 MISO
Pin 15 SCK
VCC VCC
GND GND

 

Fig 5. Connection

Testing

Now, plug the Leonardo to your PC and then open the serial monitor. After that bring the master card provided with RFID Kit near the RFID reader module. When it reads the master card, the program turns into card storage mode. As we bring the tag or any NFC card near RFID reader, the program automatically reads the card and store its UUID in EEPROM.

Whenever you want to login to your PC, just plug the device in and bring your unique RFID tag near it. The device will automatically fill the password and do the login for you.

This is like a physical key for digital world. You can also delete/change the tag. To do so, bring the master card near the RFID reader to enter in programming mode. Then bring the tag to add or remove for verification.

Download Code 

Download Code With Oled 

 

16 COMMENTS

SHARE YOUR THOUGHTS & COMMENTS

Electronics News

Truly Innovative Tech

MOst Popular Videos

Electronics Components

Calculators