A Smartlock are a highly convenient way to secure a house, and they can have their number of connectivity options expanded even further by connecting them to an IoT home assistant service such as Google Assistant or Amazon Alexa.
July 16th, 2022—
Jithin Sanal’s project uses Amazon’s Alexa skill to automatically secure a custom door locking mechanism without the need for Bluetooth or a fingerprint.
Other than the Nano, Sanal designed a simple PCB. With pads for a buzzer, voltage regulator, and several LEDs for monitoring.
The circuit also includes a relay that applies power to a solenoid.
Which acts as a deadbolt when power is applied.
After receiving the bare PCB and soldering each component onto it, Sanal moved onto writing the code for his creation. In simple terms, the Arduino Cloud project contains a single variable for getting/setting the value of the lock.
A method is called in the fw that sets the solenoid to this new state and makes a few beeps with the buzzer.
Associating the Arduino Alexa skill with the IoT device, thus letting someone set the lock as a dedicated Smartlock device.
You can see more details on this project in Sanal’s Hackster.io write-up.