Electronic Combination Lock Using PIC16F628A

This electronic combination lock can be use with an outdoor gate. The functionality is implemented in software. It turns on a relay (usually to open a door) for a few seconds if someone enters the valid code. The relay can operate a power to open type electric strike with a shorting contact or a power-to-hold type electromagnetic lock with a breaking contact (we need the relay because these locks usually work with AC, not DC). The code can be changed any time after entering the current code. Current consumption of the circuit is low, because the PIC sleeps most of the time, and wakes up only for processing key presses. The 16F628A already contains an internal RC oscillator, so no crystal is needed. Type in the correct code and use # as 'enter'. The initial code is 623342. You can change the length of code as well. * is used to change the code. Type in the actual code then press *. If you didn't miss the actual code, the code change indicator LED will light up. Then type in ...