Skip to content

asomov/cardiolock

Repository files navigation

Card IO lock

Made in/with/at Revspace

Basic usage video

Soldered assembly

Connected to computer

With the box

Hardware

The doc folder contains the pictures of the hardware.

MFRC522 -> Arduino Nano

  • 3.3 V -> 3.3 V
  • RST -> D9
  • GND -> GND
  • IRQ -> not used
  • MISO -> D12
  • MOSI -> D11
  • SCK -> D13 (SPI SCK)
  • SDA -> D10 (SPI SS)

Software

Dependencies:

The project has:

  • The Arduino program to read UIDs (mfrc522-cardiolock.ino)
  • The Python 2 program to communicate to Arduino via USB (should also work with Python 3, but not tested)

Usage

  1. Install Arduino library for MFRC522
  2. Upload provided mfrc522-cardiolock.ino to Arduino
  3. Configure connection to USB without root privileges
  • groups ${USER}
  • sudo gpasswd --add ${USER} dialout

You then need to log out and log back in again for it to be effective.

  1. Use your favorite text editor to configure cardiolock.py
  • check which USB port is used by Arduino and define it as USB_NAME (ls /dev/tty*)
  • find out the way to unlock your computer from the command line and define it as PROGRAM_UNLOCK
  • if you want to lock the computer with the card define also PROGRAM_LOCK, otherwise assign it to None and lock the computer manually
  1. Launch .run_cardiolock.sh
  2. Use you Mifare card as master card once
  3. Use the same card to unlock (or lock) your computer
  4. Enjoy having fun without typing your password.
  5. If you are afraid to forget your password because you do not use it anymore just write it down and stick it to your monitor.

Your feedback is welcome !

About

Unlock your computer with a Mifare card

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages