Made in/with/at Revspace
Basic usage video
Soldered assembly
With the box
- Mifare RFID reader (with MFRC522 chip)
- Arduino nano (with USB-to-TTL)
- USB cabel
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)
Dependencies:
- Arduino library for MFRC522
- Python 2.7
- Command line utility to unlock/lock computer (must be provided by user)
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)
- Install Arduino library for MFRC522
- Upload provided mfrc522-cardiolock.ino to Arduino
- 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.
- 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
- Launch
.run_cardiolock.sh
- Use you Mifare card as master card once
- Use the same card to unlock (or lock) your computer
- Enjoy having fun without typing your password.
- 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 !