PC-PASS

PC-PASS © GPL3+

This project uses RFID to log in or out of a Windows PC using Arduino Pro Micro and MFRC522 module.

  • 4,483 views
  • 2 comments
  • 22 respects

Components and supplies

Necessary tools and machines

Apps and online services

About this project

Video

Overview

Wanted a simple way of quickly logging on / off my computer without having to typing my password in.

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.

For this project you do use an Arduino/Genuino Leonardo on Pro Micro. The reason is implicit on the project. When you use the rfid tag near the Arduino, it send the letters of your password to your system. Your computer read the atmega32u4 like a keyboard. In the code of Arduino there is your system password. This password will be wrote on screen when you present the TAG. For this reason, the connections to RFID RC-522 of this tutorials are fits for an Arduino Leonardo or Arduino Micro (China). Follow the scheme and see the image. Connect all the pin. Pay more attention to connect the 3.3V pin of RFID shield to voltage regulator. You can burn the shield.

You can use also an Arduino Pro Micro 3.3V, without voltage regulator.

"THE UPDATE OF LOGOUT OPTION TOO HAS BEEN ADDED!"

Code

RF_PC_PASSArduino
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.

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 .
#include <Keyboard.h>
#include <SPI.h>
#include <MFRC522.h>
#define SS_PIN 10
#define RST_PIN 5
#define KEY_RETURN 0xB0
 
MFRC522 mfrc522 ( SS_PIN, RST_PIN ) ;
char ctrlKey = KEY_RETURN;
 
void setup ( ) {
Serial. begin ( 9600 ) ;
Keyboard. begin ( ) ;
SPI. begin ( ) ;
mfrc522. PCD_Init ( ) ;
}
 
void loop ( ) {
if ( ! mfrc522.PICC_IsNewCardPresent ( ) ) {
return ;
}
 
if ( ! mfrc522.PICC_ReadCardSerial ( ) ) {
return ;
}
 
mfrc522. PICC_DumpToSerial ( & ( mfrc522.uid ) ) ; // serial monitor
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('l');
Keyboard.releaseAll();
 delay (300) ;
Keyboard. press (ctrlKey) ;
Keyboard. release (ctrlKey) ;
delay (300) ;
 
// You can add another character like '@' here.
//Keyboard.print('@ ');
//Keyboard.print('# ');
 
for (byte i = 0 ; i < 4 ; i ++) {
Keyboard. print ( mfrc522. uid . uidByte [ i ] , HEX ) ; // eg C4AD6FB2
}
 
// You can add another character like '@' here.
//Keyboard.print('3 ');
//Keyboard.print('4 ');
 
Keyboard. releaseAll ( ) ;
delay ( 200 ) ;
 
Keyboard. press ( ctrlKey ) ;
Keyboard. releaseAll ( ) ;
}

Schematics

connect as shown in pro micro and rfc522
Screenshot (24) ljoazumhc4
ckt digram
Rfid based pc security system bb zav7ymhsrd

Comments

Team MUVARA- The Idiots

Vasee
Vasanth Vasee
  • 2 projects
  • 14 followers

Additional contributors

  • All round supporter...... by Muhamed musthafa M
  • Local guide and best "speaker" :) :) by Ragesh R V
  • For motivating me.. by My beloved parents... And Friends

Published on

August 24, 2017

Members who respect this project

16142398 686461068181058 6206270803155892522 n12745819 924107174343539 1974794831546897285 n12540590 741555235974555 3535889509737692135 n u3tbvajh6hVaseeDefaultIsaac10013442418 1642853919370464 5074787275359383368 n11863424 10207685700728894 5547778685985456489 n 7bldjvxvvd

and 14 others

See similar projects
you might like

Similar projects you might like

Amazing 6WD Off-Road Robot | Arduino RC Robot

Project tutorial by Jithin Sanal

  • 9,981 views
  • 0 comments
  • 54 respects

Android App-Based Home Automation System Using IOT

Project tutorial by Team Autoshack

  • 49,261 views
  • 22 comments
  • 141 respects

Emergency Power Bank

Project tutorial by Tadeas Dvoracek

  • 5,204 views
  • 1 comment
  • 17 respects

Security Access Using RFID Reader

by Aritro Mukherjee

  • 349,281 views
  • 62 comments
  • 394 respects

Arduino Apple Watch

Project tutorial by Karlstrom

  • 20,790 views
  • 4 comments
  • 71 respects

The Arduino Gatekeeper

Project tutorial by Timothy Le

  • 17,395 views
  • 0 comments
  • 52 respects
Add projectSign up / Login