Smart IoT device for Home Security Lock
Overview:
For our project, we decided to make home security lock. With our smart device, the homeowners no longer have to manually come to the main door to open it for the people. They can now open the door with just a touch of their phone button for safe and secure entry of people. Our prototype consists of two main components: sensor and actuator. Whenever the sensor, which will be attached to the main door, senses movement of a person in front of the door, our device will send an email notification to the homeowner. This will let the owner know that there is someone in the main door. The owner can then open the lock of the door remotely with a touch of a button. With a touch of their phone button, the motor in our device will actuate a mechanism to open the door for the guest. This provides the homeowner safe and easy access to the main door lock remotely from anywhere with their phone. We have used MQTT in conjunction with the MQTT broker to publish message data via the internet. We also used IFTTT in order to use a smartphone app to interface with the microcontroller for controlling our IoT device.
Sensor:
AM312 PIR Motion Sensor
Specifications:
The sensor can detect motion up to 20 feet (6 meter).
The static power consumption is less than 0.1 mA. It is small in size and easy to install.
It has repeatability trigger mode.
If the body is in its induction range of activities, the output will go high until the person is out of range. Then it will turn low.
When the Sensor senses a person in the door, it sends an email notification to the user.
Sensor Circuit Setup
Actuator:
We use a servo motor as an actuator to control the movement of the deadbolt lock slider via a simple crank-slider mechanism.
The method to control the motor is via PWM signal generated by our code. This signal will turn the servo motor, hence move the lock to those positions we desire. This actuating process is activated via the internet by tapping a switch on one of our smartphones. The slider initial position is the lock position. It then moves to the unlock position after we activate the switch. After a set amount of time, the slider will return to the lock position to ensure users’ house is secured.
Project Code:
Script link:
https://drive.google.com/file/d/1r6jGRRrYYaVoUxmgN0ERTljyB2ZBYNHO/view?usp=share_link
Video of our prototype working