A small project involving Arduino, Ruby and an RFID reader
Fundamentally I'm lazy and typing a password many times a day is tiring 😃, so I decided that I needed something more efficient.
[Arduino Leonardo](https://www.arduino.cc/en/Main/Arduino_BoardLeonardo
Sunfounder RFID-RC522
A common breadboard, a USB cable to power the board and some wiring
Place the RFID reader on the breadboard and use the following table to connect it to Arduino:
| RFID-RC522 PIN | Arduino PIN |
|---|---|
| GND | GND |
| Vcc | Vcc 3.3V |
| RST | Reset |
| MISO | ICSP MISO |
| MOSI | ICSP MOSI |
| SCK | ICSP SCK |
| NSS/SDA/Rx | PIN 10 |
| IRQ Not Used |
Plug Arduino and upload the file RFID_Unlocker_v2.ino, open a serial monitor and read the code of your card.
Use the secrets.yml.template file to create your secret file where you will associate a card to your password.
Close the serial monitor and start ./listener.rb.
Now lock your laptop and enjoy your new unlocker 😃
References:
RFID Arduino library MRFC522
Original Arduino Sketch guttih