Smart Lock

The Smart Lock was created as part of my Internet of Things class’s final project. The requirements for the final project were to create a device that would interface with the cloud, whether it be through telemetry or remote actuation.

The Smart lock was created by wiring an ESP32 microcontroller to a DC motor. The ESP32 was then programmed using embedded C++ and connected to Microsoft Azure services. The connection was created via MQTT protocol. With this cloud connection, the device was able to provide telemetry (status of the lock) and was also able to receive commands from the cloud (lock/unlock). The enclosure for the device was created in OnShape and printed using PLA.

Smart Lock

The Smart Lock

System architecture

Overall system architecture

Messaging interface

Messaging interface between client and cloud. Left side is the ESP32 client messaging. Right side is the Azure IOT explorer interface that allows a message with commands to be sent to the microcontroller