Arduino Projects

OTP Based Door Lock Using Arduino And SIM800L

OTP Based Door Lock Using Arduino And SIM800L GSM Module

Introduction

In this article, we will guide you through the process of creating an OTP (One-Time Password) based door lock system using Arduino and various components like I2C 16×2 LCD, relay, 4×4 keypad, and GSM SIM800L module.

The OTP-Based Door Lock System is designed to enhance the security of doors by implementing a one-time password authentication mechanism.

OTP Based Door Lock Using Arduino And SIM800L

The system will enhance the security of your doors by requiring a unique password each time someone wants to gain access. Let’s get started!

Bill Of Materials

S.N

Component's

Quantity

Link To Buy

1

Arduino Uno 

1

2

16x2 LCD Display With I2C

1

3

4x4 Keypad

1

4

Sim800l GSM Module

1

5

5v Realy Module

1

6

Zero PCB

1

7

Buzzer

1

8

9V Battery

1

Arduino Uno

Arduino Uno is a popular microcontroller board that is part of the Arduino family. It is widely used in various electronic projects and prototyping due to its simplicity and versatility. Here’s an explanation of the Arduino Uno

10

16×2 LCD Module With I2C

A 16×2 LCD refers to a liquid crystal display with two rows and 16 characters per row. It is a commonly used alphanumeric display in many electronic projects and devices. The I2C (Inter-Integrated Circuit) interface is a communication protocol that allows for easy and efficient communication between microcontrollers.

Component2

  • When an LCD is connected using the I2C interface, it typically requires fewer pins compared to a direct parallel connection, making it more convenient for projects with limited available pins on the microcontroller.
  • I2C Interface: The I2C interface uses a master-slave communication protocol. The microcontroller acts as the master and the LCD module as the slave. The I2C interface allows for multiple devices to be connected on the same bus, each with a unique address.
  • I2C Address: The LCD module with an I2C interface has a specific address that is set by the manufacturer. This address can usually be found in the documentation or can be identified using an I2C scanner program.

Relay module

A relay module is an integrated circuit board that incorporates a relay and additional components for easy integration into electronic projects. It provides a convenient way to control higher voltage or current loads using a lower voltage signal, such as the output from a microcontroller or Arduino.

Smart Bike Helmet With Accident Alert System9

The relay itself is the primary component of the module. It consists of an electromagnet and a set of contacts. The contacts can be normally open (NO), normally closed (NC), or both, depending on the relay type. When the coil of the relay is energized, the contacts change their state.

4×4 keypad

A 4×4 keypad, also known as a matrix keypad, is a commonly used input device that provides a convenient interface for entering numerical or alphanumeric data. It consists of a grid of buttons arranged in a 4 by 4 configuration, where each button represents a specific input.

4x4Keypad

  • A 4×4 keypad consists of 16 buttons arranged in a grid of four rows and four columns. Each button is a separate switch that can be pressed or released to generate a specific input.

GSM SIM800L module

GSM SIM800L is a popular module that enables communication over GSM (Global System for Mobile Communications) networks. It provides functionalities for making calls, sending and receiving SMS messages, and connecting to the internet.

Motion Detection And Temperature Monitoring System Using Arduino3

Sim800l
GSM Sim800l
  • The module requires a power supply of around 3.7 to 4.2 volts. It can be powered using an external power source. It is important to ensure a stable power supply to ensure reliable operation.
  • The module communicates with other devices, such as microcontrollers or computers, using serial communication. It typically utilizes the UART (Universal Asynchronous Receiver-Transmitter) protocol.

Circuit Diagram

  • Connect the I2C 16×2 LCD module to the Arduino using the SDA(A4) and SCL(A5) pins.
  • Connect the relay module to the Arduino’s digital pin 4, which will control the door lock mechanism.
  • Connect the 4×4 keypad to the Arduino using digital pins (13,12,11,10,9,8,7,6) for both row and column connections.
  • Connect the GSM SIM800L module to the Arduino’s serial pins (3 and 2) and power it using a separate power supply.
  • Connect the IR Sensor module to the Arduino’s Analog pins A0.



circuit diagram 8

Code

Before you Upload the Code is required to install the library First.

I2C lib e1726999112904

Keypad e1726506349400



Video

Arduino Based Projects

Conclusion

This system provides additional security to your doors, ensuring that only authorized individuals with the correct OTP can gain access.

Prateek

Hi, Prateek Here I’m interested in Electronics That's why I Make Soo Many Projects, I’m currently Pursuing M Tech.. if you Relay Like To My Blog Plz Comment Below...Thanks To All Electronics Lover...❤️

One Comment

  1. Dear Sir,

    I hope this message finds you well. I am working on a project involving OTP-based door lock access using Arduino, and I would appreciate your guidance. This project is a key part of my work, and your advice would be invaluable to me.

    Thank you for your time and consideration.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker