Home > Projects > RFID - NFC projects > Making a RFID Card Reader with Arduino Yún

Making a RFID Card Reader with Arduino Yún

Summary of Making a RFID Card Reader with Arduino Yún


Surya Mattu developed an in-house RFID-controlled entry system for NYU's ITP floor using an Arduino Yún. The solution reads standard university cards via a HID Multiclass reader, verifies access rights against a secure JSON API to protect personal data, and triggers an existing electromagnetic door lock. Designed for simplicity and offline reliability, the system leverages the Yún's Bridge feature to integrate Python scripts with the microcontroller, ensuring minimal maintenance and robust performance even during network outages.

Parts used in the RFID-controlled Entry System:

  • HID Multiclass RFID card reader
  • Arduino Yún
  • Electromagnetic mechanism for unlocking the door

Surya Mattu is a creative technologist who loves to make things. He’s based in NYC and working at ITP, a two-year graduate program exploring the imaginative use of communications technologies. Today he’s sharing with us how feasible it could be to build an RFID-controlled entry for students using Arduino Yún. Read  other guest posts on Arduino Yún.

I work at ITP as the student floor-staff programmer. At the start of the semester I was asked to set-up a system to allow students entry to the ITP floor from the fire escape using their university cards. Although this is something that would normally fall under the NYU IT departments domain its a long and arduous process involving lots of different departments so we decided to go with something that was developed in-house.Making a RFID Card Reader with Arduino YúnAlthough this is a relatively simple task it has a few steps that can be clunky. The objective was to design a simple solution that doesn’t require much maintenance.

Things that we kept in mind while designing the system:

  • Card Reader: It was necessary to use the standard card reader used by NYU as it was part of the policy requirements. Luckily I managed to get my hands on this and wrote a little Arduino library to help decode the incoming data. Its available here.
  • Ensure its secure: We wanted to ensure that student and staff personal information would not be exposed to allow them access. The system needed to have the minimum information necessary to allow the right users access. This basically meant using just the cards RFID number and exposing no other data about the user.
  • Keep it simple: It was necessary to make a system that would be easy to hand-off to someone else once I graduated.
  • Minimise network interaction: Since this door was to allow access to students and staff at all times it couldn’t go down if the network went down for maintenance or any other reason

Before this project started I was fortunate enough to get my hands on an Arduino Yún from Zoe. I had been playing around with it for a while and felt this application was really well suited to what the Yún can do.

Something that I’ve found particularly exciting about the Yún is the Bridge. The Bridge allows the 32u4 (the microcontroller) to talk to the Linino (Linux) chip straight from the .ino sketch!

Also, the Linino chip comes with a full implementation of Python which means you can do things like text parsing and web scraping and integrate it with your Arduino in a really seamless way straight from your sketch.Making a RFID Card Reader with Arduino Yún SchematicSo the components we needed to use were pretty few.

  • HID Multiclass RFID card reader
  • Arduino Yún as it matched our requirements perfectly
  • Electromagnetic mechanism for unlocking the door from a button press that was already in place.

This was the system we came up with for this application:

The great thing about using the Yún is that it has Python on board. It was really easy to write a script that periodically got a JSON dump of the card ID information for all the persons who needed access to the floor. Because it was possible to do a periodic dump so easily we set up an API from the main database that only provided card IDs that had access rights and no other information. This meant that no student or staff personal information was exposed.

 

For more detail: Making a RFID Card Reader with Arduino Yún

Quick Solutions to Questions related to RFID-controlled Entry System:

  • Why was an in-house system chosen instead of the standard IT department process?
    The standard process is long and arduous involving many departments, so an in-house solution was developed for efficiency.
  • How does the system ensure security regarding user data?
    The system uses only the card RFID number and exposes no other personal information about the user.
  • What role does the Linino chip play in this project?
    The Linino chip provides a full implementation of Python, allowing for text parsing and web scraping integrated directly into the sketch.
  • How does the system maintain access if the network goes down?
    The design minimizes network interaction so the door can still function if the network is down for maintenance.
  • What specific hardware was used to read the university cards?
    A HID Multiclass RFID card reader that matches the standard policy requirements was used.
  • How is the database accessed by the Arduino Yún?
    A script periodically gets a JSON dump of card IDs from an API that only provides access rights without other data.
  • What makes the Arduino Yún suitable for this application?
    The Yún allows the 32u4 microcontroller to talk to the Linino Linux chip straight from the .ino sketch using the Bridge.
  • Who is the creator of this project and where are they based?
    Surya Mattu, a creative technologist based in NYC working at ITP.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top