---
title: "Smart Lock"
url: "https://maker.wiznet.io/scarlet/projects/smart-lock/"
markdown_url: "https://maker.wiznet.io/scarlet/projects/smart-lock/md"
type: "UCC: User Created Content"
author: "Simuli"
author_url: "https://docs.simuli.co/stm32-projects/smart-lock"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Simuli"
original_url: "https://docs.simuli.co/stm32-projects/smart-lock"
published: "2022-09-30"
language: "en"
tags: ["Home Automation", "Internet of Things"]
hardware: ["WIZnet W5500"]
likes: 5
views: 6586
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Smart Lock

> t, we will learn to create a basic Smart Lock system where it takes input from a keypad and then compares whether it is correct or not.

Original author: Simuli (source: https://docs.simuli.co/stm32-projects/smart-lock)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Article

In this project, we will learn to create a basic Smart Lock system where it takes input from a keypad and then compares whether it is correct or not. If the code is correct then a particular LED is switched on expressing that the password is correct otherwise it simply prints that it is wrong.
Later on, a stepper motor can also be connected and turned to a specific angle if the password is correct, thereby unlocking the compartment it was securing. For Keypad we will be using adafruit virtual keypad present in the dashboard to send the password using the MQTT protocol.
To learn more about MQTT and how it works, follow our guide on the topic:

chapter1.Prerequisites for Smart Lock
https://docs.simuli.co/stm32-projects/smart-lock/prerequisites-for-smart-lock
chapter2.Implementing the Smart Lock
https://docs.simuli.co/stm32-projects/smart-lock/implementing-the-smart-lock

---

Source: https://maker.wiznet.io/scarlet/projects/smart-lock/
