← 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 kitParts only: available parts total
₹1,557
5 of 5 line items available now.
Electronics
| Part | Role | Qty | Unit | Line | Status |
|---|---|---|---|---|---|
| Arduino Nano compatible (CH340)Board | Controller (Arduino Nano compatible) | 1 | ₹252 | ₹252 | ships in about 6 business days |
| 4x4 membrane keypad | 4 × 4 membrane keypad | 1 | ₹192 | ₹192 | ships in about 6 business days |
| 16x2 LCD1602 Parallel LCD Display With IIC I2C InterfaceBlue · External IIC | 16 × 2 LCD with I2C | 1 | ₹197 | ₹197 | ships in about 6 business days |
| SG90 micro servoSingle | Latch | 1 | ₹201 | ₹201 | ships in about 6 business days |
| Electronics fun kit with 830 breadboardKit | 830-point breadboard, jumper wires, LEDs, resistors, buttons and buzzer | 1 | ₹715 | ₹715 | ships in about 6 business days |
How to build it
- Connect the keypad's eight wires to D2–D9 and test it with the Keypad library's example.
- 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.
- Wire the servo to D10, and the buzzer and a green and red LED (with resistors) to spare pins.
- Upload the lock sketch: show stars as digits are typed, open the latch on the right PIN, and close it after five seconds.
- Count wrong tries: after three, sound the buzzer and ignore the keypad for a minute.
- 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.
- Needs a USB Mini-B cable and a 5 V USB charger or power bank, not included.
Prices are final and follow what Indian distributors have in stock (refreshed nightly). Out-of-stock parts are not added to the cart.