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.

True RMS measurement - how to do it?

Status
Not open for further replies.

techie

Advanced Member level 3
Advanced Member level 3
Joined
Feb 5, 2002
Messages
839
Helped
58
Reputation
116
Reaction score
9
Trophy points
1,298
Location
Pakistan
Activity points
7,805
True RMS measurement

How to measure the True RMS voltage and current of 50/60Hz mains (sine wave with harmonics) using a successive approximation ADC and a microcontroller. What is the sampling rate required, ADC resolution, computation involved and technique used.

thanks for any suggestions
 

There was an article in circuit cellular:
hxxp://www.chipcenter.com/circuitcellar/november99/c119dp1.htm

sourcecode can be found here:
fxp://ftp.circuitcellar.com/pub/Circuit_Cellar/CConline/1999/Nov99/Perkins.zip

best regards
 

AD536 from analog devices may help you.
 

The AD7754 seems the best suited IC for this purpose. Thanks for pointing that out. This IC has all the front end required for the purpose, a PGA, an ADC and rms convertions etc. great design
 

Re: True RMS measurement

the True RMS chips are available at the market but all of them are expensive. you can realized this with a MCU.

if you want to work at 50-60 Hz you should sample the signal at the 100-120 Hz. but these restricts are theorical. I realized this projects at speaking frequency with Cypress PSoc.(www.cypressmicro.com) and in my opinion you should sample the signal at least 200 Hz. (for 50 Hz.) and sample count should be 128 at least.
the RMS calculation C sample code is below

total = 0;
for (i=0; i<SMP_CNT; i++)
{
total += (sample*sample);
}//for
RMS = sqrt(total / SMP_CNT);

you can use this code as you want.

tmk :wink:
 

Re: True RMS measurement

:eek: hi tmk, I just saw your post and I have some related question to ask you.

tmk said:
if you want to work at 50-60 Hz you should sample the signal at the 100-120 Hz. but these restricts are theorical. I realized this projects at speaking frequency with Cypress PSoc.(www.cypressmicro.com) and in my opinion you should sample the signal at least 200 Hz. (for 50 Hz.) and sample count should be 128 at least.
the RMS calculation C sample code is below

total = 0;
for (i=0; i<SMP_CNT; i++)
{
total += (sample*sample);
}//for
RMS = sqrt(total / SMP_CNT);


I'm going to do a PIC project and this is the link to my project:


Do you have the C code for the frequency, peak-to-peak, average, and duty cycle calculations of an analogue waveforms.

My project is also going to measure these values for an analogue waveforms 50/60Hz mains using an ADC (TLC 548 8-bit resolution) and a PIC 16F628. What is the sampling rate required? ADC resolution? computation involved and technique used? Is it same as what you have said?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top