**1)**

**Attenuating Line voltage to the level that can be applied to microcontroller pin.**

Here is the circuit used to measure AC line voltage (230V,50 Hz) this circuit converts line voltage to the level of 0 to 5 volts. This can be understood by most of microcontroller and ADCs.Here is an op amp based circuit to do the job.

This a simple adder circuit to add some offset to your signals.

Here is the link to developer’s website where he has given value and reasons of selecting every component in very well manner.

So half of our work is done.

**2)Software to measure AC RMS Voltage value**

You can directly measure DC value with ADC if you take a reading but that is not the case with AC signals.

To calculate RMS value of AC signals you should sample at least 3-4 cycles and then calculating RMS value.

Rather than developing our own algorithm from scratch we have found out this nice post about Power measurement with the help of Arduino (basically an AVR)

The guy has well explained the techniques to measure the AC voltage and currents with coding.

Here is another project of AC RMS measurement with Atmega 8535 microcontroller.

#### Incoming search terms:

- ac voltage measurement using microcontroller
- ac current measurement using microcontroller
- ACRMSvoltagemeasurementwithAVRmicrocontroller-GeniusDevils
- arduino measure ac voltage
- measure ac voltage with arduino#safe=off
- arduino ac voltage sensor
- ac voltage measurement using arduino
- how to measure ac voltage using arduino
- how to measure rms value arduino
- measure ac voltage using avr
- how to measure AC voltage using aurduino
- measure ac voltage with avr
- measure AC voltage with avr microwcontroller program c code
- how to read ac voltage 0-230 volt using arduino
- measuring ac voltage arduino
- true rms arduino
- rms voltage measurement microcontroller
- rms voltage measure in c
- rms value in microcontroller
- reading rms voltage with atmega328
- read rms arduino
- measuring ac voltage with arduino
- measuring ac voltage using arduino
- voltage measurement using atmega16
- high ac voltage measurements using arduino
- high ac voltage measurement using microcontroller
- ac power measurement using arduino
- AC voltage measurement microcontroller
- Ac voltage measurement using avr
- ac voltage measurement using microcontroller avr

where should the neutral wire be conneted ??

To know about how to measure analog voltage using analog module of PIC16F877A microcontroller go through PIC microcontrollers tutorials.