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.

The best method for measuring AC voltage using MCU

Status
Not open for further replies.

Vicent Yang

Member level 5
Joined
Dec 31, 1999
Messages
88
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Taiwan
Activity points
697
Dear all, can any one help me for the best method for measuring AC volatge using MCU.

Vicent
 

site:www.edaboard.com ac voltage measurement

a voltage to freq converter

then measure the freq of the square wave will give a linear accurate scaler and using two of them cross intersection lock is possible
 

ad736+ac voltage

You can use RMS-to-DC Converters from Analog Devices like AD536A, AD636/7, AD736/7. From Analog Devices can request free samples.
:)
 

adc

It depends on if the AC is a sinewave and what parameter you want to measure (rms, average, or peak). If it is a true sine wave, you can take a series of random samples and find the average (inverting the negative values). Then multiply by a conversion factor to get rms or peak. You can also do the RMS calculations from these samples on any type of waveform if RMS is what you want.

For a little extra hardware complexity you can use an op amp rectifier circuit and a RC low pass filter to get the average and just take one ADC sample.
 

HI all,

flatulent is right, if you are using MCU, you can get samples and calculate RMS. But d'ont forget of power isolation (secure, etc..), maybe you must use a transformer that can geave you galvanic isolation....

NeuralC
 

Re: Measuring AC voltage

If you want to meause sine!! wave AC voltage, use single diode and capasitor and voltage divider (by 2 resistor). This is simple vay but 0.6v
voltage drop produce error at the low voltage measurement.

Divide ratio is 1.41 for sine wave voltage.
 

Use schotckydiode

NeuarlC
 

Re: Measuring AC voltage

I presume you want to measure rms voltage of a sinewave.
In my view the proper way is:
1. scale the voltage with resistors to match the measuring range. Be aware that overvoltage can harm your circuit, so use protection diodes if needed.
2. Rectify without using any diodes since diodes, schottky included cause too much error, are temperature sensitive etc. Use a fullwave rectifier with two opamps or a special rectifying circuit.
3. measure the rectified dc voltage with an AD converter, the simplest is to use a microcontroller that includes an adc.
4. Perform scaling and if apropriate a lowpass filter using software.
 

Hi

Actually there is no need for the rectifier while we have ADC . As far as I know ADC input range 0 - 2 V or something like that .
Make first voltage shift on ADC input via R-R divider such as voltage must be in middle of input voltage level range . (for 0-2 V ADC input you can have 1 V,
thus giving you possibility to measure 1 V in peak AC signals ).
R-R divider must be supplied with stabilized voltage and will give you constant DC level on ADC input .
Supply AC voltage to the ADC input via capasitor with capasity enough for RC circuit to pass lowest measured frequency > (10-15)/RC where R = Rd1*Rd2/(Rd1+Rd2) (assuming ADC input impedance is much higher) impedance of divider. Use amplifier before ADC input with output impedance much less than R-R divider resulting impedance to avoid divider influence on measurement .
As we are talking about AC sine voltage , when you will measure AC , get let say 1000 samples and calculate average middle - equals to DC constant supplied by divider . Then you can make software rectifier within your MCU via :
1. substract from each sample DC part calculated above
2. Revert sample sign if it is negative

Best Regards
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top