LAMPIRAN 1
PROGRAM PADA ALAT
*****************************************************
This program was produced by the
CodeWizardAVR V2.04.9 Evaluation
Automatic Program Generator
© Copyright 1998-2010 Pavel Haiduc, HP InfoTech s.r.l.
http://www.hpinfotech.com
Project :
Version :
Date : 11/03/2016
Author : Freeware, for evaluation and non-commercial use only
Company :
Comments:
Chip type : ATmega8
Program type : Application
AVR Core Clock frequency: 11,059200 MHz
void Open_Lock1(void){
PORTC.1 = 2;delay_ms(200);
}
void Open_Lock3(void){ //rutin menjalankan motor step buka locker 1
void Close_Lock3(void){
// Func7=Out Func6=Out Func5=Out Func4=Out Func3=Out Func2=Out
Func1=Out Func0=Out
// State7=0 State6=0 State5=0 State4=0 State3=0 State2=0 State1=0 State0=0
PORTB=0x00;
DDRB=0xFF;
// Port C initialization
// Func6=In Func5=In Func4=In Func3=Out Func2=Out Func1=Out Func0=Out
// State6=P State5=P State4=P State3=0 State2=0 State1=0 State0=0
PORTC=0x00;
DDRC=0x3F;
// Port D initialization
// Func7=In Func6=In Func5=In Func4=Out Func3=Out Func2=Out Func1=Out
// State7=P State6=P State5=P State4=0 State3=0 State2=0 State1=0 State0=T
PORTD=0xE0;
DDRD=0x1E;
// USART initialization
// Communication Parameters: 8 Data, 1 Stop, No Parity
// USART Receiver: On
(E=='1'){Open_Lock1();x = 0;goto XT;}}}}}x++;}//buka locker 1 jika password
LAMPIRAN 2
LAMPIRAN 3
GAMBAR ALAT
Gambar 3.1 Foto Alat dari Depan
Gambar 3.3 Foto Sistem Rangkaian Alat
Gambar 3.5 Foto Pintu Locker 1 saat Terbuka
Gambar 3.7 Foto Pintu Locker 3 saat Terbuka
Gambar 3.9 Foto Pintu Locker 2 saat Tertutup