How drmakerr/diy-smart-door-lock works
This is a DIY smart-lock controller: a phone uses a local Open/Close page to command an ESP32, which moves a servo to turn the existing indoor lock. The README documents AP and home-Wi-Fi station modes, plus printable case and mount parts. Source excerpts were unavailable, so the diagram follows documented behavior and does not infer internal code structure.
Main entry points: DIY_Door_Opener_Code.ino ESP32 controller
Components 11
Web and Wi-Fi
- Open/Close page
DIY_Door_Opener_Code.ino - ESP32 controller
DIY_Door_Opener_Code.ino - Access Point mode
DIY_Door_Opener_Code.ino - Station mode
DIY_Door_Opener_Code.ino
Lock actuation
- MG995 servo
- Existing indoor lock
Printed hardware
- Lock case
DoorLockCase.stl - Door spacer
DoorSpacer.stl - Key rotator
KeyRotator.stl
Other components
- Phone user
- Home Wi-Fi
Connections 8
- Phone user → Open/Close page: uses controls
- Open/Close page → ESP32 controller: sends commands
- ESP32 controller → MG995 servo: positions
- MG995 servo → Existing indoor lock: rotates
- ESP32 controller → Access Point mode: creates network
- Phone user → Access Point mode: connects to
- ESP32 controller → Station mode: connects as
- Station mode → Home Wi-Fi: joins