Sistem Penerangan Rumah Cerdas Menggunakan Solar Cell Berbasis Mikrokontroller Atmega32
46
LAMPIRAN
Lampiran 1. Rangkaian Lengkap Mikrokontroller
Universitas Sumatera Utara
47
Lampiran 2. Gambar Rangkaian Sistem Kendali
Lampiran 3. Gambar Layout Sistem Kendali
Universitas Sumatera Utara
48
Lampiran 4. Gambar Alat Keseluruhan dari Solar Cell
Lampiran 5. Gambar Alat Keseluruhan dari Solar Cell Ketika LCD Tampil
Universitas Sumatera Utara
49
Lampiran 6. Konfigurasi Program Pengoperasian Solar Cell
/*******************************************************
This program was created by the
CodeWizardAVR V3.12 Standard
Automatic Program Generator
© Copyright 1998-2014 Pavel Haiduc, HP InfoTech s.r.l.
http://www.hpinfotech.com
Chip type
: ATmega32
Program type
: Application
AVR Core Clock frequency: 16.000000 MHz
Memory model
: Small
External RAM size
:0
Data Stack size
: 128
*******************************************************/
#include
#include
#include
#define solar1 PORTC.6
#define solar2 PORTC.5
#define batere1 PORTC.4
#define batere2 PORTC.3
#define lampu PORTC.7
// Alphanumeric LCD functions
#include
Universitas Sumatera Utara
50
// Declare your global variables here
// Voltage Reference: AVCC pin
#define ADC_VREF_TYPE ((0
LAMPIRAN
Lampiran 1. Rangkaian Lengkap Mikrokontroller
Universitas Sumatera Utara
47
Lampiran 2. Gambar Rangkaian Sistem Kendali
Lampiran 3. Gambar Layout Sistem Kendali
Universitas Sumatera Utara
48
Lampiran 4. Gambar Alat Keseluruhan dari Solar Cell
Lampiran 5. Gambar Alat Keseluruhan dari Solar Cell Ketika LCD Tampil
Universitas Sumatera Utara
49
Lampiran 6. Konfigurasi Program Pengoperasian Solar Cell
/*******************************************************
This program was created by the
CodeWizardAVR V3.12 Standard
Automatic Program Generator
© Copyright 1998-2014 Pavel Haiduc, HP InfoTech s.r.l.
http://www.hpinfotech.com
Chip type
: ATmega32
Program type
: Application
AVR Core Clock frequency: 16.000000 MHz
Memory model
: Small
External RAM size
:0
Data Stack size
: 128
*******************************************************/
#include
#include
#include
#define solar1 PORTC.6
#define solar2 PORTC.5
#define batere1 PORTC.4
#define batere2 PORTC.3
#define lampu PORTC.7
// Alphanumeric LCD functions
#include
Universitas Sumatera Utara
50
// Declare your global variables here
// Voltage Reference: AVCC pin
#define ADC_VREF_TYPE ((0