electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

True RMS measurement


Post new topic  Reply to topic    EDAboard.com Forum Index -> Professional Hardware and Electronics Design -> True RMS measurement
Author Message
techie



Joined: 05 Feb 2002
Posts: 850
Helped: 43
Location: Pakistan


Post03 Jun 2003 9:24   

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
Back to top
C-Man



Joined: 19 Jul 2001
Posts: 1235
Helped: 73


Post03 Jun 2003 9:43   


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


Last edited by C-Man on 03 Jun 2003 9:55; edited 1 time in total
Back to top
Google
AdSense
Google Adsense




Post03 Jun 2003 9:43   

Ads




Back to top
tjalps



Joined: 28 May 2001
Posts: 266
Helped: 2


Post03 Jun 2003 9:49   


Hello!

Check at www.analog.com RMS . They have solution for you.

Regards!
Back to top
billano786



Joined: 26 Apr 2001
Posts: 370


Post03 Jun 2003 10:08   


AD536 from analog devices may help you.
Back to top
techie



Joined: 05 Feb 2002
Posts: 850
Helped: 43
Location: Pakistan


Post03 Jun 2003 10:38   


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
Back to top
tmk



Joined: 20 Dec 2003
Posts: 11


Post31 Dec 2003 9:40   

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[i]*sample[i]);
}//for
RMS = sqrt(total / SMP_CNT);

you can use this code as you want.

tmk Wink
Back to top
km



Joined: 26 May 2004
Posts: 32


Post27 May 2004 10:00   

Re: True RMS measurement


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

tmk wrote:
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[i]*sample[i]);
}//for
RMS = sqrt(total / SMP_CNT);


I'm going to do a PIC project and this is the link to my project:
http://www.edaboard.com/ftopic78357.html

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?
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Professional Hardware and Electronics Design -> True RMS measurement
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
True RMS measurement digitally with PIC (2)
measure true rms (2)
true rms to dc convertor (2)
True RMS voltage sensor (2)
non true rms instrument ??? (3)
How Calcaulate True RMS (3)
True RMS Digital Multimeter (8)
The Significance of True RMS (6)
true rms voltmeter without dedicated ics (1)
RMS mmt VS True RMS mmt (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS