i am posting pics of the design....
a.here is the pic of scaling down 240V rms ac to 3.65V rms (approx 5V peak).
measuring the voltage on oscilloscope as shown in figure below .with respect to neutral.
This much part is fine i am able to scale the ac voltage down to 5v peak ac wrt neutral .i.e oscillosope one lead to neutral and other lead to the resistor divider...
- - - Updated - - -
The problem is how do i connect this scaled voltage to :
1. LM324 circuit , which i am using to add an offset so that i can have the waveform going from 0v to 5V positive peak only .i.e
a. -5V peak : 0V .
b. 0V : 2.5V .
c. +5V peak : 5V .
I am again scaling down the 10V peak to peak ,of this 5V peak waveform as shown above post .
The problem is that when i connect this scaled ac voltage directly to opamp circuit the wave form output from the opamp is very distorted , it is no more a sine wave ,
i am running my lm324 with +-8V supplies.
I will post the pic as shown below the moment i connect my opamp pin2 through the resistor 2k .
I want to make a true rms meter , plz help me how to read the samples of the waveform , how to get a perfect waveform.....
Can i connect neutral to ground ? I know sounds strange but how do i measure ac voltage with uC which measures according to the ground .