The system presented here allows me to lock and unlock my front door remotely. It consists of an actuator connected to the door's original locking mechanism and controlled by an Wemos D1 mini ESP8266 WiFi module. The ESP8266 receives commands through either its self-hosted web server or MQTT and controls the actuator to lock or unlock the door.
I chose an MG996R as an actuator for its sufficient torque, built in angle controller and input voltage which matches that of the Wemos D1 mini. Most of the parts for this project have been 3D printed and designed using Fusion 360. The servo's shaft and the door's locking mechanism are connected with a specially designed part that allows indepedant rotation of both up to 90 degrees. This allows the lock to be operated normally without having the servo interfering. Feedback is provided using two limits switches.
- Wemos D1 Mini
- MG996R servo
- 2x Limit switch
- 2x LED + resistor
- 1mF decoupling capacitor
Here's a picture of the mechanical assembly of the 3D printed parts on Fusion 360:
STL files available on Thingiverse
Code Available on GitHub.