OLED Current Meter PIC12F675
Picture Frame PIC16F690
Talking Clock PIC16F628A
OLED Thermometer PIC12F629
OLED Thermostat PIC16F628A
TFT Counter PIC16F628A
SSD1306 Counter PIC16F628A
SSD1331 Counter PIC16F628A
Color OLED Picture Frame
Arduino Counter for PC
Arduino Oled Code Lock
PC digital I/O without MCU
PC Analog Input without MCU
Arduino Oscilloscope for PC
Arduino OLED Oscilloscope
Arduino Picture Frame
OLED Bitmap Arduino / PIC
OLED Arduino Counter
OLED Timer Thermometer
OLED Frequency Counter
Android Oscilloscope
OBD2 Engine Rev Counter
OBD2 Diagnostic app
TFT Clock and Thermometer
WiFi, Ethernet
WiFi Thermometer
WiFi ESP8266
Doorbell with SD / EEPROM
SD FAT16/32 for .bmp
PETIT FAT bmp Display
TFT Timer, Thermometer
TFT Oscilloscope
SD Talking Clock
Android Talking Clock
SD Sound Recorder
SD FAT32 wav Player
SD Arduino Recorder
LED Thermometer
LED Timer
LCD Timer
TFT 10MHz Counter
100KHz Counter For PC
1MHz Counter For PC
8 Digits LED Counter
Scope Screen Counter
LCD 16 x 2 Counter
LCD Arduino Counter
6MHz Android Counter
NIXIE Android Counter
Bluetooth Counters
USB Counter
USB TFT display BMP
USB DS18B20 Sensor
USB Thermometer
USB Meter
USB Oscilloscope
USB Input-Output
USB Input-Output Android
USB 16x2 LCD
Serial TFT Text
Serial Inputs Outputs
Serial Port LCD
MCP3201 on Serial Port
Serial Thermometer
Analogue Signal to Serial
Serial Thermostat
MCP3201 on LPT
Analogue Signal to LPT
LCD Display on LPT
Water Softener
3.7V to 5V
Solar Charger
Infrared Decoder
PIC Music
Code Lock
Code Lock with LCD
HOME fr  ru  de  in  ro  ar  tr  nl  il  Technical Tips

ARDUINO CODE LOCK WITH OLED DISPLAY

Electronic code lock with the ability to rewrite the entry code. Usind Arduino Uno or Nano, OLED 128x64, I2C, SSD1306 driver and matrix 3x4 keypad. Can be used for entrance door, car door or a locker. Any number (0-9) can be used. Pressing the right code activates the relay for 2 seconds. To change the 4 digits code press 'Change Code' pushbutton and key 4 new numbers. The pushbutton has to be mounted in an area not accessible to the public. The 4 digits are stored in the chip's EEPROM, so the numbers are retained when the power is off.
The codelock can be used without the OLED. Ready LED is used instead of the OLED screen.

codelock code

CODE LOCK WITH OLED DISPLAY

Electronic code lock with the ability to rewrite the entry code. Can be used for entrance door, car door or a locker. Any 4 digits number can be used. Pressing the right code activates the relay for 2 seconds. Using microcontroller PIC16F876A. To change the 4 digits code press 'Change Code' pushbutton. The pushbutton has to be mounted in an area not accessible to the public. The 4 digits are stored in the chip's EEPROM, so the numbers are retained when the power is off.

CODE LOCK WITH LCD

Electronic code lock with the ability to rewrite the entry code. Can be used for entrance door, car door or a locker. The LCD simplify the interaction by the user. Any 4 digits number can be used. Pressing the right code activates the relay for 2 seconds. Not pressing any key for more than 30 seconds resets the display. Using microcontroller PIC16F870. To change the 4 digits code press 'New Code' pushbutton. The pushbutton has to be mounted in an area not accessible to the public. The 4 digits are stored in the chip's EEPROM, so the numbers are retained when the power is off.

CODE LOCK

Electronic code lock with the ability to rewrite the entry code. Can be used for entrance door, car door or a locker. Any 4 digits number can be used (the digit 0 is not used). Using microcontroller PIC16F628A with C source code. To change the 4 digits code press 'code change' switch, the LED will indicate ready state, press the 4 new digits, the LED will switch off. The code changing switch has to be mounted in a hidden area. There is a max 5 seconds delay between pressing any two digits, after the 5 seconds delay the 4 digits code has to be re-entered. The 4 digits are stored in the chip's EEPROM, so the numbers are retained when the power is off.

CODE LOCK 5 NUMBERS PIC16F628A
The relay operates after entering 5 numbers (0-9). Enter numbers when READY LED is on, if wrong number entered relay stays off and READY LED comes on after 30 seconds.

You are free to use the circuit diagram and the software with no limitations.

 oled

Circuit Description
See also Technical Tips

Supply 12 to 24V for the relay, 5V for the PIC is from 78L05 voltage regulator.
The NO contact of the relay is connected to the door electric latch.
Key pad can be any matrix switches.

All transistors are BC237 or equivalent.
LCD module is 1 line 16 characters. It has 14 way connector, 10 connections are used, 4 bits data bus is selected. There is a big selection of LCD modules, and they are very similar in characteristics i.e. DM1601, ACM1601.
Contrast pot must be set because in one end of the pot it is totally dimmed.
New Code pushbutton is for entering new 4 digits code.


lock3

Circuit Description
See also Technical Tips

78L05 is the regulator for the IC. The 12V supply is for the relay, you can use 24V relay and supply voltage.
Key pad can be any matrix switches. The on resistance 1K max.
The digit 0 is not used.

The EEPROM retains the code when the power is off.
22K resistor and 22pF cap determine the microcontroller frequency, increasing the value will decrease the frequency hence increasing the 5 seconds delay.



      


Name:

Comments and questions

Copy the number from the picture It stops net-robots from adding comments.



14.09.2017 - 18:33
Name: Joe
Comment: This is a great project. It is possible to publish a program with a 5-number code? I would be glad. HJS

21.05.2017 - 22:01
Name: Moty
Comment: Try downloading the software to a PC or another computer.

21.05.2017 - 12:07
Name: saheed
Comment: how can I get code please? my e-mail address: mustech05@gmail.com

11.01.2017 - 19:45
Name: Agbolade Oluwole
Comment: Thanks alots

08.12.2015 - 21:08
Name: Easir
Comment: thanks...

15.06.2015 - 07:00
Name: Absee.
Comment: Yes its very interesting and thanks. I would be very pleased if you could illustrate a door lock circuit with Rf card and smart phone reader.Once again thanks a lot. Hoping to see more advanced circuits from your site. Absee from Maldives. abseekudabe@gmail.com

23.05.2015 - 17:48
Name: VALJIHAI
Comment: PLES.

moty22.co.uk  2008-2021