Introduction: Arduino RFID Unlock Mac (Linux and Win)
I've a macbook pro, I've also a big password on my macbook. When the mac goes on stop, I do write the pass for open the system. In a normal day I digit the password something like 100 times. Now I've found the solution! The RFID TAG!
I use an Arduino micro, and an RFID sensor tag for unlock my computer by keychain.
Follow my Instructables, and UNLOK your computer without touching keyboard.
Materials
Step 1: Connect the Hardware
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 Instructables 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.
1 SDA 10
2 SCK SCK1
3 MOSI MOSI1
4 MISO MISO1
5 IRQ *
6 GND GND
7 RST Reset
8 +3.3V Volt regulator --> 3.3V
Step 2: Upload the Code
Before uploading the code, write your TAG code, and install the MFRC522 library by using https://github.com/ljos/MFRC522.
After this connect the Arduino to computer, and upload the code in the file.
Attachments
Step 3: Try the Code
Well! it's time to try!
Open a Text Editor, and connect your Arduino to computer. Try to approach your TAG to the RFID reader. If all is OK, you can see your password on text editor. It works?!

Participated in the
Circuits Contest 2016

Participated in the
IoT Builders Contest
19 Comments
3 years ago
all your info is gone, how to read the code in serial how to paste it in the code and all that stuff is gone.
???? why??
please update ( restore ) your ible
i wanted to update my code ( password ) and then i saw your IBLE was missing all the important info.
4 years ago
i keep getting this what should I do
Reply 3 years ago
Oh my same but only on the keyboard.print one do you know how to fix it??
3 years ago on Step 3
Hi I was uploading the code to my Arduino can I got this error message on the Keyboard.print bit I put in my password but computer won't upload it am I missing a library I have the MFCR552 one but any other and links??
Question 4 years ago
i proved it on my asus with an Arduino Mega 2560 and an RIFO-RC522 but it doesn't work and Arduino IDE get me this error (the error is in the images )
Answer 4 years ago
You can’t use the Arduino Mega for this kind of project. Arduino Micro or Leonardo are good. Also the connections to the rfid socket are wrong. Because the mosi pin for Arduino Mega are different.
6 years ago
Dear,
I've correct the error. Now you can download the file.
Reply 4 years ago
i am still having an issue with the download
5 years ago
How to do "control+alt+canc"? My laptop need it for unlock before to insert user and password
Reply 5 years ago
See the keyboard library. https://www.arduino.cc/en/Reference/MouseKeyboard
Reply 5 years ago
TNX
6 years ago
Dear,
this is for library: https://www.arduino.cc/en/Guide/Libraries
6 years ago
and you have also a mistake typt in the cade .look at the firts 2 pins pin 9 and 10 you typt (SAD RST)?? must that not be SDA? on pin 10??
Reply 6 years ago
Yes is SDA
6 years ago
the link is NOT working to the github??
help.
and can you also tel me the pin connections for the NANO, i dont get it, you use a micro with orher pinouts and so, i am rather new to Arduino so a bit of help is needed to say I MADE IT, i also am first trying it with a breadbord on a UNO. but also there is the pin outs and colors different.??
os it possible to assist.
for the NANO and UNO and the github code thats not working or so
Reply 6 years ago
You can't use nano for this project. You can use only a Arduino Leonardo type.
https://www.arduino.cc/en/Guide/ArduinoLeonardoMic...
https://learn.sparkfun.com/tutorials/arduino-compa...
http://amzn.to/2fsaCFN
6 years ago
Great! Follow the Instructable :-)
6 years ago
Cool project.
Reply 6 years ago
Thank's :-)