Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Counting pulses from Energy meassurment IC's

Status
Not open for further replies.

ADGAN

Full Member level 5
Joined
Oct 9, 2013
Messages
295
Helped
4
Reputation
8
Reaction score
4
Trophy points
18
Activity points
1,837
Hi! I want to count pulses coming from an energy measurement IC. It produces a pulse proportional to the active power. Energy measurement IC's such as ADE7757 or MCP3905 seems to be quite similar and I'm referring to those kind of IC's. Both have HFout, Fout0 and Fout1 pins. HFout produces a high frequency output proportional to the instantaneous power and Fout0 and F1out produces a frequency output proportional to average active power and can be used to drive mechanical counters. I use the timer1 of PIC16F887 and I want to measure the energy consumption in KWh. My problem is which pin should I use ?

https://www.analog.com/static/imported-files/application_notes/AN-679.pdf

ww1.microchip.com/downloads/en/AppNotes/00994b.pdf
 

I suppose you will use the output through optoisolator (not for stepper motor)
You can use Timer0 and input on RA4 for counting pulse as so low frequency
with prescaler = 1/16 so 100 pulses per KWH. and interrupt when reach value counting of 100

for 12KVA installation
maxi is 12x1600= 19200 pulse/hour
so 19200/3600=> 5,3Hz

and another timer to average the count with the time
within hour to get direct KwH.
 

Sorry sir I didn't get what your telling. What should I use to obtain KWh? In another forum one said that I should use Fout0 to obtain the energy in Kwh. I'm bit confused. Have you been involved in this kind of a project?
 

I just did a proposal !
(not for stepper motor).
= HFout produces a high frequency output proportional to the instantaneous power

if you mix your answer with other forum response , it will be difficult to follow your mean.
If you want to use Stepper motor output, it's up to you..
just tell us your final choice.
 

Sir what you suggest? using the Hfout or F0out. I tried both and both seems to be ok only thing is imp/KWh is largely different.
 

hello,

Are you using ADE7757 or MCP3905 ?
on AN-679 AD7757 specsheet ,

the The ADE7757 also provides a high frequency output at the CF pin for a selected meter constant of 1600 imp/kWh.

see post #2

if you use HF out pin CF on the specsheet drawing trough an optosolator
you can drive RB0 input , and use interupt to count every pulses....

or RA4 intput with timer0 used as a counter ..
if you use also the prescaler 1/16 timer0 will count 1/100 de KWH per count.
After you check timer0 value , for example , every minute to get KWH/60 value
and after 60 minutes you have direct kwh*100 value inside the timer0 .

Don't forget to calibrate the U voltage... see specsheet..
 

I'm using MCP3905. I'm also confused why calibrating is required. I guess it is to determine the meter constant or set it to the desired meter constant (100imp/Kwh). I'm planing to count the no of pulses for a known load (100W) for a certain time period (about 10s) to determine the meter constant and multiply it with the no of pulses.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top