Automating your smart home with a Raspberry Pi is a popular idea in the Raspberry Pi community and there are plenty of unique ways to implement the SBC into various designs. Today we’re sharing another home automation-based project created by maker and developer Dillon McCardell who’s using a Pi to operate a door locking system using facial recognition known as AuraLock.
The system works just as you would expect—it uses a camera to capture images of potential faces. If a recognized and approved face is detected, the Pi will trigger the deadbolt to unlock. Once the deadbolt has been unlocked, users can enter the room and either manually lock the door or do so using the corresponding mobile application.
The mobile app was created from scratch by McCardell just for the AuraLock project. It’s Android-based and provides a slew of features that take the project from a basic idea to a full-fledged smart home system. The app allows users to remotely control the lock, manage user accounts, access the camera in real-time and even enable a mode that automatically unlocks for any face rather than a specific one—ideal for times when one might be expecting company.
AuraLock is powered by a Raspberry Pi with the help of a Servo PWM Pi HAT as well as a few additional components. It uses a 12 MP camera module, an LED, a servo, a magnetic door sensor, and an MCP3008 Analog to Digital Converter (ADC). All of these components work together using a custom PCB McCardell developed for the AuraLock project. Everything is housed inside of a custom, 3D-printed housing created using SolidWorks and Fusion360.
The software side of the project is rather intricate and McCardell was kind enough to share all of the juicy details about how it works on the project page. To summarize, the mobile app uses a Firebase database to communicate with the Raspberry Pi. The mobile app is designed with a custom GUI with various buttons for things like locking, unlocking, capturing images, monitoring the usage history, and adding new faces to the unlock registry.
If you want to recreate this Raspberry Pi project or just get a better idea of how it works together, visit the official AuraLock project page and be sure to follow McCardell for more impressive developments in the future.