Power Supply Adjust 12 Volt, 10a Menggunakan Sensor Acs712 Berbasis Atmega8
Lampiran Rangkaian Lengkap
Universitas Sumatera Utara
Lampiran Program Lengkap
/*******************************************************
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
: 2/2/2016
Author
:
Company :
Comments:
Chip type
: ATmega8A
Program type
: Application
AVR Core Clock frequency: 8.000000 MHz
Memory model
: Small
External RAM size
: 0
Data Stack size
: 256
*******************************************************/
#include
#include
#include
// Alphanumeric LCD functions
#include
int datavolt,dataarus;
float volt, arus;
Universitas Sumatera Utara
char buff[10];
// Declare your global variables here
// Voltage Reference: AREF pin
#define ADC_VREF_TYPE ((0
Universitas Sumatera Utara
Lampiran Program Lengkap
/*******************************************************
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
: 2/2/2016
Author
:
Company :
Comments:
Chip type
: ATmega8A
Program type
: Application
AVR Core Clock frequency: 8.000000 MHz
Memory model
: Small
External RAM size
: 0
Data Stack size
: 256
*******************************************************/
#include
#include
#include
// Alphanumeric LCD functions
#include
int datavolt,dataarus;
float volt, arus;
Universitas Sumatera Utara
char buff[10];
// Declare your global variables here
// Voltage Reference: AREF pin
#define ADC_VREF_TYPE ((0