Andrew R Gross
Published © CC BY

Raspberry Pi RFID Access Control System

An access control system for doors or equipment that checks RFID tags against a list of approved users.

AdvancedFull instructions providedOver 1 day28,306
Raspberry Pi RFID Access Control System

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
Any Raspberry Pi should work. The Pi receives data from the two sensors and sends a signal to the relay to unlock the door.
Adafruit 5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable
This is the power supply for the Raspberry Pi
Electric Door Strike
Ours was a found item, but this is an example. Anything similar should do, just make sure it's usage voltage, the relay board, and the power supply for the strike match.
Parallax 12V Relay Board
This relay board unlocks the electric strike when it is on.
Adafruit 12V DC 1000mA (1A) regulated switching power adapter
125kHz USB RFID Reader
RGB Backlight LCD - 16x2
Adafruit RGB Backlight LCD - 16x2
I actually used the SparkFun LCD, but I think this is the same.

Software apps and online services

Raspberry Pi Raspbian
Python 3
Rclone is an amazing open source cross-platform cloud-sync program developed by Nick Craig-Wood and hundreds of individual contributors.

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Extraction Tool, 6 Piece Screw Extractor & Screwdriver Set
Extraction Tool, 6 Piece Screw Extractor & Screwdriver Set
Heat shrink


Read more

Custom parts and enclosures


A plastic enclosure designed to mount on existing screw holes. You may want to place screw holes to fit your project.

Front plate

Use this as a template to laser cut an acrylic front plate

Antenna Post

These posts are glued into the housing to hold the RFID antenna where desired.


Circuit Diagram

Full system schematic

The full system with all connections

GPIO pin connections

A detailed view of the Raspberry Pi GPIO hookups


RFID Access control code

Python code to detect an RFID badge swipe, check if the user is authorized for access, and open a door using a 12V relay


Andrew R Gross

Andrew R Gross

7 projects • 19 followers
Biomedical engineer by profession, wanna-be roboticist on the weekends