Perancangan Alat Pengendali Lampu dan Kipas Angin Dengan Jaringan Komunikasi Data Berbasis Mikrokontroler ATMega 32
50
LAMPIRAN
Gambar Alat Secara Keseluruhan
Gambar Alat Pada Keadaan Mati
Universitas Sumatera Utara
51
Gambar Alat Pada Keadaan Menyala
Universitas Sumatera Utara
52
Program Pada Alat
Receiver
/******************************************************
This program was created by the
CodeWizardAVR V3.12 Advanced
Automatic Program Generator
© Copyright 1998-2014 Pavel Haiduc, HP InfoTech s.r.l.
http://www.hpinfotech.com
Project :
Version :
Date
: 5/5/2016
Author
:
Company :
Comments:
Chip type
: ATmega32A
Program type
: Application
AVR Core Clock frequency: 11.059200 MHz
Memory model
: Small
External RAM size
: 0
Data Stack size
: 512
*******************************************************
/
#include
#include
#define lampu OCR1B
#define kipas OCR1A
// Alphanumeric LCD functions
#include
char input,n;
#include
void main(void)
{
Universitas Sumatera Utara
53
DDRA=(0
LAMPIRAN
Gambar Alat Secara Keseluruhan
Gambar Alat Pada Keadaan Mati
Universitas Sumatera Utara
51
Gambar Alat Pada Keadaan Menyala
Universitas Sumatera Utara
52
Program Pada Alat
Receiver
/******************************************************
This program was created by the
CodeWizardAVR V3.12 Advanced
Automatic Program Generator
© Copyright 1998-2014 Pavel Haiduc, HP InfoTech s.r.l.
http://www.hpinfotech.com
Project :
Version :
Date
: 5/5/2016
Author
:
Company :
Comments:
Chip type
: ATmega32A
Program type
: Application
AVR Core Clock frequency: 11.059200 MHz
Memory model
: Small
External RAM size
: 0
Data Stack size
: 512
*******************************************************
/
#include
#include
#define lampu OCR1B
#define kipas OCR1A
// Alphanumeric LCD functions
#include
char input,n;
#include
void main(void)
{
Universitas Sumatera Utara
53
DDRA=(0