Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Help me understand this circuit - AC measurement

Status
Not open for further replies.

gregmcc

Member
Taken from here

Basically its a project using a microcontroller to measure the mains AC voltage.

The voltage is measured using an AC to AC step down power adapter. The power adapter steps the voltage down from 230V AC to around 9V AC. Using the power adapter method rather than making a direct measurement on the high voltage side maximizes safety as no high voltage work is needed.

Sensor Electronics

As with the current measurement the voltage produced by the power adapter needs to be converted to a voltage that the arduino can read.The two 1M and RsensV resistors make a voltage divider that reduces the voltage waveform amplitude further and the 6.8K and 27K resistor biases the resultant waveform by about 4.0V.

When the voltage adapter is also used for powering the arduino there is some interference with the voltage measurement circuit. Biasing by 4.0V instead of 2.5V and using the two 1M resistors minimizes this interference.

Taking a voltage measurement allows us to gain more information about the energy use than a current measurement alone, real power and power factor can now be calculated and its also easier to measure the grid frequency than with current measurement only.

While I understand the use of the voltage divider to drop the level to a lower voltage that the uC can read - the bit that confuses me is the 28k and 6k8 resistor. How can you connect the the 6k8 resistor to the arduino's 5V. That 5V will be an AC voltage - correct? How can they power the arduino from that?
 

Attachments

  • V2.png
    V2.png
    5.4 KB · Views: 230
The uC has an analog input of 0 to some DC level. The problem is the AC waveform goes below 0 volts. What the circuit does is place the AC component (AC signal) on about a 4 volt DC level. The AC signal is riding on a DC level so the negative peaks of the AC signal do not go below zero volts. That does not "power" the Arduino, it only conditions an input for the Arduino ADC input.

<EDIT> If you scroll down this link to the bottom of page 5 there is an example showing another way to go about it. The biggest difference is the link does not use a transformer however, you should see the resemblance and it is explained. Circuits like this are common and the key word is bias. :) </EDIT>

Ron
 
Last edited:
Ron - awesome. Thanks for the file - very useful.

Of course - the 5V to the arduino is not powering the uC - its from a 5V source to the circuit. Why didnt I see that :)
 
Glad you have a handle on it.

Ron
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top