Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
David Smith
Published © MIT

Facial Recognition/RFID Lock with Raspberry Pi

Python web application for a smart lock powered by Raspberry Pi. It features facial recognition, RFID, and control via a webapp.

ExpertShowcase (no instructions)20 hours9,720
Facial Recognition/RFID Lock with Raspberry Pi

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1
Breadboard (generic)
Breadboard (generic)
Also requires the connector for the RPi
×1
RFID reader (generic)
RFID-RC522
×1
Futaba S3003 Servo
This is the lock (a motor which spins clockwise and counter-clockwise)
×1
Camera (generic)
Just a generic webcam compatible with RPi
×1

Software apps and online services

AWS EC2
Amazon Web Services AWS EC2
This was used to host the Django server and the Flask server.
OpenCV
OpenCV – Open Source Computer Vision Library OpenCV
This library was used for the facial detection and recognition.

Story

Read more

Schematics

The basic equipment

Here are the components you need: The RPi, breadboard with connector, RFID scanner and card (the blue keychain thing), a webcam, and a motor (has a green arrow taped to it to show it rotating when locked/unlocked).

Breadboard close-up.

The wires going to the top of the image are to the RFID scanner. The wires heading downwards are to the motor. Here are the connections:
scanner | board
-------------------------------
SDA | CEO
SCK | SCLK
MOSI | MOSI
MISO | MISO
IRQ | (None)
GND | GND
RST | GPIO (#25)
3.3v | 1

For the motor:
motor | board
-------------------------
white | 18
black | GND
red | power

Code

Secured-Pi (Django site)

There are 3 repos here. One is for the Flask server, one for the Django server, and one for the Raspberry-Pi code: https://github.com/Secured-Pi

Flask Server

This is the code for the Flask server

Raspberry Pi Code

This is the code for the Raspberry Pi.

Credits

David Smith
1 project • 3 followers
Software developer with a chemistry background. Loves Python.
Contact

Comments

Please log in or sign up to comment.