+21622886281
Arduino DC Motor Industry Keypad 4x4 Project

Door security system controlled by Arduino

Purpose of this project:

In today’s life everything becomes simple and advanced, previously to lock something we used to have padlocks, combination locks. But due to the increase in theft and technology, new types of locks such as electronic locks, smart locks have been invented and people are widely using them to protect their property.

In this project, we will build a password-based door lock system by interfacing the Micro:bit board with a 4×4 keypad to enter the password.

We use a sliding door opening or closing by horizontal translation thanks to a 5V DC motor.

With this project we can build a security system that works with a password.

Description of how the door security system works

Necessary components

  • Arduino
  • 4×4 keypad
  • L298N driver
  • DC motor
  • connecting wires

Assembly of the Arduino board with the I2C LCD 1602 display and the 4×4 keyboard:

We connect the 8 outputs of the keyboard to the 8 pins of the Arduino (from 2 to 9).

For the I2C LCD 1602 display we connect:

  • the SDA pin to the A4 pin of Arduino

  • the SCL pin to the A5 pin of Arduino

  • the GND pin to the GND pin of Arduino

  • the VCC pin to the 5V pin of Arduino

Assembly of the Arduino board with the L298N board and the motor:

  • Connect pin 4 of the Arduino to the ENA pin of the L298N module.

  • Connect pin 3 of the Arduino to pin IN1 of the L298N module.

  • Connect pin 2 of the Arduino to pin IN2 of the L298N module.

  • Connect the GND pin of the Arduino to the GND pin of the L298N module.

  • Connect the GND pin of the Arduino to the (-) terminal of the 9V battery

  • Connect the 12V pin of the L298N module to the (+) terminal of the 9V battery

  • Connect the two motor terminals to the two pins OUT1 and OUT2 of the L298N module

Arduino program

Here is the Arduino program that allows the door to be opened or closed by the Arduino card.




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top