NFC Smart Access Control System

Skill LevelArea of FocusOperating System
IntermediateIoT, Smart Cities,
Smart Home

Many large office buildings allow entry by door access control systems using RFID modules. An NFC module is typically more expensive than simply an RFID module, but also usually features more powerful functions and security features. This project is designed to simulate a door access control system based on an NFC module. An NFC module is loaded on the DragonBoard™ 410c from Arrow Electronics using libnfc open-source code to provide access control, and a two-color LED light is used to indicate if an NFC card passes through the access control system.

Years ago, I loaded an RFID module onto a system via a serial port. However, the operating system was Win CE. With the rise of NFC, I had an idea to study the NFC module and make use of the opportunity to learn HDMI, LED and other module controls. Main learning content:

  • Learning the NFC module. Presently, the NFC concept is very popular and its future application prospects such as secure payment will be extensive
  • Learning to use a program to control LED light switch-on/off
  • Learning the libnfc open-source framework
  • Research on developing the mainboard-carried HDMI module

Materials Required / Parts List / Tools

Source Code / Source Example / Application Executable

Build / Assembly

Connect the PN532 NFC module to the DragonBoard 410c development board via PCA9306 strictly in accordance with the IIC wiring mode and prepare two different NFC cards.

Usage Instructions

Power on the DragonBoard 410c, manually start the nfc-poll application after system startup, swipe different NFC cards, respectively. The program will read out each unique ID number and compare it with the pre-set value. If the ID number is found, the green LED will light up, indicating passing; if the ID number is not found, the red LED will light up, indicating no passing. Restricted by Dupont line, two cases should be tested separately.

Swipe Fail

Red LED on
NFC card swiping failed

Swipe OK

Green LED on
NFC card swiping succeeded