Pages: [1]   Go Down
Author Topic: Mains AC voltage logging  (Read 1388 times)
0 Members and 1 Guest are viewing this topic.
South Africa
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there,

I'm wanting to make a simple stand alone device to record the mains voltage and store it to memory.
I'd like to be able to record the voltage every minute and then be able to download the data at a later stage onto my PC.
At this stage i don't need multiple readings and averaging over the minute etc. Just a simple instantaneous reading every 60s.

Any help on where to start?
Thoughts on this?

I've only got the Arduino UNO, but I am happy to purchase some memory or even a GSM add-on to transmit the data if that would be easier.
Thanks in advance.

Logged

Offline Offline
Faraday Member
**
Karma: 62
Posts: 3080
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It depends on how "instantaneous"  you mean.
Logged

0
Offline Offline
Edison Member
*
Karma: 17
Posts: 1414
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It depends on how "instantaneous"  you mean.

very useful michi

Openenergymonitorr.org
Logged

* Si preguntas, pon el código de tu programa, hace mucho mas fácil ayudarte. Y me ahorro un mensaje pidiendo que lo hagas.
* Si consigues solucionar tu problema, dedica unos minutos a explicar en tu post como lo conseguiste para beneficio de todos.
* Cambia el 'Subject' de tu hilo y añade 'SOLUCIONADO' cuando hayas llegado a una solución al problema que planteaste.
* Utiliza un 'Subject' para tu hilo que explique de que va el hilo.
Si estas empezando:
* Comienza a usar Arduino
* Guías de iniciación a Arduino
* Ejemplos
* Referencia del Lenguaje
* Conceptos básicos
Guia de usuario de arduino
Tutoriales en Ingles
Si necesitas que alguien te escriba el código: http://www.freelancer.com/  o esta  http://www.guru.com/

Offline Offline
Faraday Member
**
Karma: 62
Posts: 3080
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well the mains AC supply is a varying AC waveform.   Most people know this,  but not everybody.

If it is a 220 volt supply,  the actual voltage will vary between -311 and +311 voltages.    If you sample it
on a very small time scale,  you could any number,  which would be meaningless.   You could do this
with a simple resistor voltage divider, if you weren't concerned about blowing yourself up.

You could also try to measure the peak value, and you would get +311 volts.

You could also try to measure the RMS value,  which is not entirely simple to do.   You could measure
the RMS power more easily,  but then you have to make assumptions about the power factor.

You could get a 4 digit LED display designed for monitoring mains power,  and then try to hack it
somehow.   There are plenty of these for low voltage on ebay,  I have noticed any for A/C but I am sure
they exist somewhere.

You could build a tiny transformer,  and then rectify the output,  and then measure the DC voltage,
that might work.
Logged

UK
Offline Offline
God Member
*****
Karma: 17
Posts: 569
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You need to use a Voltage Transformer to step down the mains AC and then rectify it to a DC.

This is exactly how we do things in electricity distribution and metering, 11kV+ uses VT's to bring voltage down to 110V normally, plus CT's to measure current.

I'm not sure what the LV distribution system voltages are there in SA, but you want something that would get you down to at least 12V. You should be able to buy a transformer to do this quite easily. Rectify the output to DC and then use meters to equate your input AC RMS voltage to the output DC voltage. Use a voltage divider to get you down to the 0-5v range for an analog input and then use the product of the Primary AC to Secondary Rectified DC, plus the DIvider network, to give your ratio you need to program into the Arduino.

You'll then have the value that will allow you to scale any analog input to the equivalent RMS AC voltage on the Primary side.

You obviously need to take all necessary precautions with both sides of your design, ensuring you have the correct protective devices designed in.

This is exactly how High Voltage Metering and Protection measurements are taken. The VT and CT ratios are programmed into the meters or relays, so that they then display the Primary side values. I.e VT ratio of 11000/110 and CT ratio of 200:5 would cover an 11kV feeder up to 4MVA. I often test switchgear protection systems at 11kV that will be measuring up to 1600A primary current with 1600:1 CT's and standard 11000/110 VT's.
Logged

Offline Offline
Faraday Member
**
Karma: 62
Posts: 3080
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This might be useful

http://www.cigre.nl/media/40320/06_current-___voltage_transformers.pdf
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are many ways to do it, from the simplest of directly adc'ng the ac signal, to ieee-1057 7-parameter estimation / dft.

You will need to figure out their pros  / cons.
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How about using one of the digital voltmeters that comes with a built in serial port for logging ?

That should work - i guess

Might cost a little too much
Logged

SG
Offline Offline
God Member
*****
Karma: 11
Posts: 533
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can use circuit like this "HCPL-7520 linear optoisolator"
http://www.avagotech.com/pages/en/optocouplers_plastic/plastic_miniature_isolation_amplifier/hcpl-7520/

http://people.ece.cornell.edu/land/courses/ece4760/FinalProjects/s2008/cj72_xg37/cj72_xg37/index.html
Logged

NE PA
Offline Offline
Full Member
***
Karma: 5
Posts: 156
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you looking to measure voltage or wattage?
Logged


Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4093
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Interesting project, thanks for the link!
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Pages: [1]   Go Up
Jump to: