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.

  • 2,707 views
  • 2 comments
  • 21 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
  • 8 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 13 others

See similar projects
you might like

Similar projects you might like

Arduino Apple Watch

Project tutorial by Karlstrom

  • 17,485 views
  • 3 comments
  • 67 respects

Arduino101 / tinyTILE BLE: Match-Making Sunglasses

Project tutorial by Kitty Yeung

  • 11,336 views
  • 2 comments
  • 35 respects

Gesture Drive: Accelerate with Freedom

Project tutorial by Shahariar

  • 2,936 views
  • 0 comments
  • 12 respects

'Roger Bot' the Pet Rover

Project showcase by hannu_hell

  • 1,875 views
  • 0 comments
  • 12 respects

Android App-Based Home Automation System Using IOT

Project tutorial by Team Autoshack

  • 24,825 views
  • 17 comments
  • 75 respects

Smart 3D Printer Filament Counter (FilamentBot)

Project tutorial by ArtSuzhou

  • 8,682 views
  • 3 comments
  • 24 respects
Add projectSign up / Login