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.

AdvancedWork in progressOver 1 day5,987
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.
×1
Adafruit 5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable
This is the power supply for the Raspberry Pi
×1
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.
×1
Parallax 12V Relay Board
This relay board unlocks the electric strike when it is on.
×1
Adafruit 12V DC 1000mA (1A) regulated switching power adapter
×1
125kHz USB RFID Reader
×1
RGB Backlight LCD - 16x2
Adafruit RGB Backlight LCD - 16x2
I actually used the SparkFun LCD, but I think this is the same.
×1

Software apps and online services

Raspbian
Raspberry Pi Raspbian
Python 3
Rclone
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

Story

Read more

Custom parts and enclosures

Enclosure

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.

Schematics

Circuit Diagram

Full system schematic

The full system with all connections

GPIO pin connections

A detailed view of the Raspberry Pi GPIO hookups

Code

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

Credits

Andrew R Gross

Andrew R Gross

3 projects • 3 followers
Engineer by training, biologist by profession, wanna-be roboticist on the weekends

Comments