| Author |
Message |
arup
Joined: 06 Sep 2004 Posts: 34
|
17 Dec 2005 7:50 Idea of measuring RMS voltage and current using MCU ADC |
|
|
|
|
Dear sir,
I have a project which needs to measure Supply Voltage and Current.I want to measure them using only MCu adc (ST7 with 10 bit ADC and 6 analog i/p channel).Could anybody help me ??I want a tested circuit and also want the design idea/steps to develope this firmware to measure voltage and current rms value.I believe supply input voltage is always RMS if it is not mentioned.so i don't have to take voltage sample ,square ,take average and take root of it.Or do I??Pls correct me if i am wrong.
pls note the max voltage and current for the system to measure are 260 V and 30 A respectively.And I know how to configure the adc for this particular MCU
Thanks,
arup
|
|
| Back to top |
|
 |
Google AdSense

|
17 Dec 2005 7:50 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
smxx
Joined: 18 Aug 2005 Posts: 188 Helped: 8 Location: iran(ahwaz)
|
18 Dec 2005 8:02 Re: Idea of measuring RMS voltage and current using MCU ADC |
|
|
|
|
hi
Analoge Device have some Ic that give a signal and give rms value in output (analog output).
for sine wave ,if you have 2 sample with 90 angle(y(Θ)and y(Θ+90))
you can calculate peek of signal
Ym˛=y(Θ)˛+y(Θ+90)˛ Yrms=Ym/√2
|
|
| Back to top |
|
 |
amrstaha
Joined: 29 Aug 2005 Posts: 141 Helped: 6 Location: Egypt
|
19 Dec 2005 17:58 Re: Idea of measuring RMS voltage and current using MCU ADC |
|
|
|
|
You will have to sample the voltage (or current) signal at a fixed rate if the signal is not sinusoidal. The sampling frequency should be as high as possible to accurate results. After taking n samples you can caculate the RMS from
frms=√(Σ(sample(i)^2)/n) where i=1 to n
|
|
| Back to top |
|
 |
arup
Joined: 06 Sep 2004 Posts: 34
|
20 Dec 2005 9:31 Re: Idea of measuring RMS voltage and current using MCU ADC |
|
|
|
|
yes, The i/p supply wave form is sinusoidal.Max analog signal to the ADC pin is 5V .If any body is having the ckt pls post here.
thanks,
arup
|
|
| Back to top |
|
 |
narender_aec_eee
Joined: 02 Jan 2006 Posts: 3
|
02 Jan 2006 9:37 Idea of measuring RMS voltage and current using MCU ADC |
|
|
|
|
| hi can anyone upload a circuit which can measure ac voltage using parallel port or microcontroler and adc.
|
|
| Back to top |
|
 |
sam_manchali
Joined: 14 Jun 2003 Posts: 105 Helped: 3 Location: sharjah
|
02 Jan 2006 10:22 Re: Idea of measuring RMS voltage and current using MCU ADC |
|
|
|
|
hi,
check out this link , it may be helpful...
http://www.atmel.com/dyn/resources/prod_documents/doc2566.pdf
regards
sam
|
|
| Back to top |
|
 |
auto_mitch
Joined: 14 Oct 2004 Posts: 212 Helped: 20
|
02 Jan 2006 10:44 Re: Idea of measuring RMS voltage and current using MCU ADC |
|
|
|
|
Check out this link
http://www.zilog.com/docs/z8encorexp/appnotes/an0216.pdf
|
|
| Back to top |
|
 |