Skip to content
Voltomni
← All project kits

Password door lock with keypad and LCD

BeginnerBuild time 2 hours· You'll learn: Arduino, Keypads, Servos, EEPROM

The classic security project. The 4 × 4 keypad takes a PIN, the 16 × 2 LCD shows stars as you type, and the right code turns a servo to slide the latch open for a few seconds. Three wrong tries sound the buzzer and lock the keypad for a minute. Store the PIN in EEPROM so it survives a power cut, and let the owner change it from the keypad.

Complete kit

₹1,779

Every part below as one item: we collect, check and ship the whole set together, with one GST invoice. Ships in about 6 business days.

View complete kit

Parts only: available parts total

₹1,557

5 of 5 line items available now.

Electronics

PartRoleQtyUnitLineStatus
Arduino Nano compatible (CH340)BoardController (Arduino Nano compatible)1₹252₹252ships in about 6 business days
4x4 membrane keypad4 × 4 membrane keypad1₹192₹192ships in about 6 business days
16x2 LCD1602 Parallel LCD Display With IIC I2C InterfaceBlue · External IIC16 × 2 LCD with I2C1₹197₹197ships in about 6 business days
SG90 micro servoSingleLatch1₹201₹201ships in about 6 business days
Electronics fun kit with 830 breadboardKit830-point breadboard, jumper wires, LEDs, resistors, buttons and buzzer1₹715₹715ships in about 6 business days

How to build it

  1. Connect the keypad's eight wires to D2–D9 and test it with the Keypad library's example.
  2. Connect the LCD to A4 (SDA) and A5 (SCL) with 5 V and GND; if it stays blank, scan for its address (usually 0x27 or 0x3F) and turn the contrast trimmer on its back.
  3. Wire the servo to D10, and the buzzer and a green and red LED (with resistors) to spare pins.
  4. Upload the lock sketch: show stars as digits are typed, open the latch on the right PIN, and close it after five seconds.
  5. Count wrong tries: after three, sound the buzzer and ignore the keypad for a minute.
  6. Save the PIN in EEPROM and add a 'change PIN' menu that asks for the old one first.

Questions

Can it open a real door?
The servo suits a cupboard, drawer or model door. For a real door use a 12 V solenoid lock switched by a relay, and keep a mechanical key as a backup.
What happens if the power goes off?
The PIN is kept in EEPROM. The servo stays where it was, so mount it so the door stays locked without power.

Prices are final and follow what Indian distributors have in stock (refreshed nightly). Out-of-stock parts are not added to the cart.