DIY Smart Door Lock using Raspberry Pi with Apple HomeKit integration
cavelock is a D.I.Y. smart door lock that is running on Raspberry Pi. It opens and closes a simple storm door deadbolt using Apple Home app. It is simply created for my personal uses, hoping it is useful for anyone else.
- Raspberry Pi
- A servo (SPEKTRUM A5030) and a relay to connect in to the Raspberry Pi
- Compiler (GNU C++)
- Visual Studio 2019 (for remote debugging)
- Some knowledge on HomeKit (HAP, SRP)
- Run on Raspberry Pi Zero W in Linux console (or as systemd)
- Control a deadbolt from 90 to zero degree with a servo
- A relay shuts down the current once the servo moved to the target angle (it saves power consumption)
- A push button overrides the control of deadbolt for manual operation
- No need to have Home Bridge as HomeKit Accessary Protocol (HAP) and Secure Remote Password (SRP) are included, you can pair with iOS Home app directly
- HAP implementation relies on Gera Kazakov. It is great inspiration and I cannot thank him enough for utilizing the clean implementation to my project
- A 5V solar cell and rechargeable batteries
- Autodesk Fusion 360 for 3D modeling of container
- Tested only with Raspberry Pi Zero W only and a SPEKTRUM A5030 servo
- MIT License