If what you're looking for is missing, call us — we'll help you find it

Electronics Projects

Keypad Door Lock

Type a code on a membrane keypad to open a servo latch.

Keypad Door Lock — main component

Overview

The keypad is scanned as a matrix of rows and columns. A correct code swings the servo to release the latch; a wrong code blinks the red LED and beeps.

Build Steps

  1. Wire the keypad

    Connect the eight rows and columns to digital pins and set them as inputs with pull-ups; the library handles the matrix scan.

  2. Read key presses

    Accumulate digits into a buffer, with * to clear and # to submit the code.

  3. Drive the latch

    On a correct code, move the servo to the open angle, light the green LED, wait three seconds and re-lock.

  4. Handle wrong codes

    Blink the red LED, sound the buzzer and require a short lockout after three failures.

Related Projects