Arduino RFID Keycard Access


Keys are so last century, and now that you can easily replicate a physical key just by snagging a photo it might be time to upgrade our locks! This project outlines a framework for you to get started implementing your own unique locking mechanisms.

Arduino RFID Keycard Access

In this project you’ll authenticate individuals using Mifare Classic RFID Tag UIDs and display a message on the LCD screen. Once you get this working we’re curious to see where you take it next. We’re thinking about maybe logging access stats to a google sheet, customizing the lighting in the room based off who just entered, or even 2 factor authentication door locks using a service like twilio! Imagine having to respond to a text from your car before you could get in? Let’s dive in!

***Disclaimer*** Don’t lock up anything too precious with UIDs only! Mifare Classic ISO 14443A with 4 byte UIDs are totally not that secure. You can brute force guess the UID, buy RFID tags and customize the UIDs prior to shipping, intercept the unencrypted transmission, etc… UID duplicates undoubtedly exist in the wild as well as there are no strict standards for “uniqueness”. You can combine these with other forms of authentication or create you’re own schema utilizing more data than just the UID to create more secure systems.

Getting Started

To start with this demo you’ll need an Arduino Zero or Due paired with an anduinoWiFi shield, and some RFID tags. We chose to use these Mifare Classic RFID keycards although any ISO 14443-A NTAG-203 compatible tags will work!

If you haven’t yet used NFC on the anduinoWiFi swing by our getting started guide to make sure everything is setup and working properly. Much like we do in the guide, let’s run the File>>examples>>AnduinoNFC>>readRFIDTag to grab our tags UIDs.

Read some RFID tags!

Run the sketch, scan a tag, and the output in the serial terminal should look something like:

Read more: Arduino RFID Keycard Access

Leave a Comment

= 4 + 4

(Spamcheck Enabled)

Read previous post:
Multi-Sensor Data Plotting using Arduino IDE

Monitoring of various process variables such as temperature, pressure, viscosity, humidity, pH and flow-rate is very important in steel plants,...

Scroll to top