Electronic combination lock with ATMEL AVR
CodeLock AVR
     
Uvod

Programator

Alarm

GSM alarm

CodeLock 10b

CodeLock AVR

C-Lock 3000

CodeLock-s

BIOCAV lock

Ugodno

LCD V-A meter

Download

E-design

 

CodeLock AVR electronic combination lock is realised with AVR microcontroller AT89C2051 or AT90S2313 or ATtiny2313 or ATtiny45. Program in hex code is 2 kB long. One user code (Ver. 1) is consisted of 1 to 8 digits. One user code (Ver. 2.1, 2.2, 2.3) is consisted of 1 to 4 digits. If you buy the chip (Ver. 2.1, 2.2, 2.3) than you can enter 1 or 8 user codes that are consisted of 1 to 9 digits.
If the code is entered in the correct sequence, then after 1 second the relay and the electric striker (in the door) switch on for 1 second and then switch off again. User code can be changed via 3x4 matrix keypad. Keypad for CodeLock can be bought at local electronic shop.
HEX files ending with -D are demo files. In demo file is allowed to activate a relay up to 50 times.

Initial user code (1234) is set up with a jumper. The jumper must be inserted before the voltage (12V) connection. The jumper must be removed after 2 beeps (after 5 to 15 seconds).
For LCD display pictures (1 user code version) click here.
For LCD display pictures (8 user codes version) click here.
LCD display is an option! CodeLock AVR DIY, Electronic combination lock CodeLock AVR, DIY

 


Signaling: Each pressed key is immediately confirmed with one short beep. Two short beeps follow after entering the right user code. One long beep appears when entering the wrong user code. The keypad is blocked for 20 seconds for each incorrect action. User code is retained even in the event of a power failure.
You can use a LED diode instead of a Beeper. Look at the codelock electric circuit diagram.
The third row of the keypad (numbers 7, 8 and 9) can be unpluged. In that way you get 3x3 matrix keypad.
If the additional row (the second one) of the keypad is also unpluged you get 3x2 matrix keypad.
In that way you can use only: 1, 2, 3, *, 0 and # keys.
That is CodeLock AVR LT version. (1 user code - 1 to 8 digits - LCD is an option)

 

E-mail in the electronic lock projects below is no longer valid.
For a valid e-mail click on the page Uvod (Home).


Ver. 1:
For CodeLock AVR LT (Ver. 1) electronic lock project downloading click here.
Programmed ATtiny2313 (1 user code - 1 to 12 digits - LCD is on) = 6 EUR.
PCB
Program (1 code-8 digits) codelcdtinyLT.hex for ATtiny2313 => here.
Program (1 code-8 digits) codelcdLT.hex for AT90S2313 => here.

Ver. 2.1: (CodeLockAVR - LCD)
For CodeLock AVR (Ver. 2.1, 2.2, 2.3) electronic lock project downloading click
here.
Programmed ATtiny2313 (1 user code - 1 to 12 digits - LCD is on) = 12 EUR.
PCB  
PCB2   PCB2Top   PCB3   PCB3Top
Program (1 code-8 digits) codelcdtiny-D.hex for ATtiny2313 =>
here.
Program (1 code-4 digits) codelcdtiny.hex for ATtiny2313 => here.
Program (1 code-8 digits) codelcd-D.hex for AT90S2313 => here.
Program (1 code-4 digits) codelcd.hex for AT90S2313 => here.

Ver. 2.2: (CodeLockAVR - LCD - R)
PCB

Program (1 code-8 digits) codelcdtinyR-D.hex for ATtiny2313  => here.
Program (1 code-4 digits) codelcdtinyR.hex for ATtiny2313  => here.
Program (1 code-8 digits) codelcdR-D.hex for AT90S2313 => here.
Program (1 code-4 digits) codelcdR.hex for AT90S2313 => here.

Ver. 2.3: (CodeLockAVR - R)
PCB
Program (8 codes-8 digits) codetiny45R8-D.hex for ATtiny45  => here.

Program (1 code-4 digits) codetiny45R.hex for ATtiny45  => here.
After burning a hex code set FUSE bits.

Ver. 2.4: (CodeLockAVR - LCD - M)

PCB
Program (1 code-8 digits) codelcdtinyM-D.hex for ATtiny2313  => here.

Ver. 3: (CodeLockAVR - LCD - ADC)
For CodeLock AVR (Ver. 3) electronic lock project downloading click
here.
PCB   PCBTop
Program codelcdadc.hex for ATtiny26 =>
here.
Program codelcdadc-D.hex for ATtiny26 => here.
Program codelcdadc1.hex for ATtiny261 => here.
Program codelcdadc1-D.hex for ATtiny261 => here.



Price list for CodeLock AVR (All versions):
 
Programmed ATtiny2313, ATtiny26 (1 user code - 1 to 9 digits - LCD is on) = 12 EUR.
Programmed ATtiny2313 (8 user codes - 1 to 9 digits - LCD is on) = 22 EUR.
Programmed ATtiny2313, ATtiny45 (8 user codes - 1 to 9 digits - LCD is off) = 12 EUR. 
Programmed ATtiny2313, ATtiny45 (30 user codes - 1 to 9 digits - LCD is off) = 20 EUR.

Programmed ATtiny2313 (10 user cards - LCD is off) = 12 EUR. 
Programmed ATmega8 or ATmega88 (8, 16, 24 or 32 user cards - LCD is on) = 15 EUR. for

 

For DIY version (KIT) click on CodeLock 10b.


Post (via registered mail) & Package: 4 - 6 EUR (SI), 4 - 10 EUR (EU), 4 - 10 EUR (OTHER).

Any question about CodeLock AVR? Just send an e-mail.

e-mail


 






 



 


 

 

 

In short:

1. OPENING (For the first time):   1 2 3 4 #
     CodeLockAVR-LCD: The relay RE1 is activated 1 second.
     CodeLockAVR-LCD-M: The relay RE1 is activated.  SwitchOpen deactivates RE1. After 16 seconds the relay RE2 is activated. SwitchClosed deactivates RE2. SwitchBarrier deactivates RE2 and activates RE1.

2. WRITING YOUR CODE (For the first time):   * 1 2 3 4 # 5 5 1 0 #
     Two short beeps indicate that new user code is written.
     For opening the door press:   5 5 1 0 #   (5 5 1 0 is your code)
     CodeLockAVR-LCD: The relay RE1 is activated 1 second.
     CodeLockAVR-LCD-M: The relay RE1 is activated.  SwitchOpen deactivates RE1. After 16 seconds the relay RE2 is activated. SwitchClosed deactivates RE2. SwitchBarrier deactivates RE2 and activates RE1.

3. CHANGING THE CODE:   * OldCode # NewCode #
     Example:   * 5 5 1 0 # 6 6 1 0 #
     Two short beeps indicate that new user code is written.
     For opening the door press:   6 6 1 0 #
     CodeLockAVR-LCD: The relay RE1 is activated 1 second.
     CodeLockAVR-LCD-M: The relay RE1 is activated.  SwitchOpen deactivates RE1. After 16 seconds the relay RE2 is activated. SwitchClosed deactivates RE2. SwitchBarrier deactivates RE2 and activates RE1.


___   DEMO files (Bascom)  ________________

For ATtiny2313 codelcdtiny-D1.bas program downloading click here.
For AT90S2313 codelcd-D1.bas program downloading click here.

You can test the program on the virtual LCD and keypad in Bascom AVR Simulator.
For codelcd-D1SIM.bas program downloading click here.

___   DEMO files (Bascom)  ________________



_______________________________________________________________________________________________________






For CodeLock 8051 AT89C2051 electronic lock project downloading click here.
PCB   PCBTop

For AT89C2051 code11eng.bas program downloading click here.
For AT89C2051 code11-1.hex program downloading click
here.
For AT89C2051 code11-2-D.hex program downloading click
here.


________________________________________________________________________________________

________________________________________________________________________________________





For SmartCard4 Lock AVR electronic lock project downloading click here.
PCBjpg   PCBpdf   PCB*   PCB*pdf   (Additions)   Pnone cards DATA

For AT90S2313 smart.hex program downloading click here.
For ATtiny2313 smarttiny.hex program downloading click here.
For AT89C2051 smart8051.hex program downloading click here.


________________________________________________________________________________________

 


 

For SmartCard10 Lock AVR electronic lock project downloading click here.
PCBjpg   PCBpdf   (Additions)   Phone cards DATA

For AT90S2313 smart10-D.hex program downloading click here.
For ATtiny2313 smart10tiny-D.hex program downloading click here.

 

________________________________________________________________________________________ 

________________________________________________________________________________________

 

 


 

For SmartCard30 Lock AVR electronic lock project downloading click here(slo) and here(eng).
PCBjpg   PCBpdf   (Additions)   Phone cards DATA

For ATmega8 smart30-D.hex program downloading click here.
For ATmega88 smart30mega88-D.hex program downloading click here.


 
   
 

________________ Uvod Programator Alarm GsmAlarm CodeLock10b C-Lock3000 E-design Download LCD V-A meter