Am getting as to how to go for making AC voltmeter but what abt energy meter? Am i to design a voltmeter then ammeter and then go 4 power measurement? Thnx a lot!
you are using LCD or seven segment for display, if seven segment better go for 16f873 because of more I/O pins. you can measure current using the same pic and calculate the power. i just give the circuit only to show how ac volt can measure with simple resistor divide methode
you are using LCD or seven segment for display, if seven segment better go for 16f873 because of more I/O pins. you can measure current using the same pic and calculate the power. i just give the circuit only to show how ac volt can measure with simple resistor divide methode
Attached is a schematic of Digital Energy meter as available on the site: www.enerjar.net
Now working on the code to convert Analog input to digital, I've attempted this (am using PIC 16F877A)
Code:
TRISA=%11110000 '2 set 4 bits of PortA
TRISB=%00000000
TrisC=%00000000
TRISD=%00000000
DEFINE ADC_BITS 4
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 100
ADCON1=%11110000 ' To set 4 bits of the converter
ABC:
ADCIN 0,B0 ' To send the analog i/p at 0th location to B0
'Will add aftwards as to what to do with the info in B0
PAUSE 10
GOTO ABC
Kindly some1 tell me if am heading for the right thing?