This is the circuit I'm trying to make:
This is the circuit I made for simulation in Proteus:
These are my measured values as a result of Proteus simulation.
This circuit is used to measure the voltage of 220V / 50Hz with 0V-5V at the output.
I cannot calculate the gain of this circuit.I know how to calculate the gain of the first op-amp at the junction of R1 and C1 that: We need to find the resistances of C2 and C1 at 50Hz and get their equivalents with R5 and R4, then we need to divide the results we find by each other and find the gain.
For example; 50Hz reactance for C1 is 3.183kOhm from 1/(2pif*C). Therefore, it makes 13.183k below. The 50Hz reactance for C2 is 31.831MOhm. Equivalent with R5 makes 99.686k. So I calculate the gain as 99.686k / 13.183k = 7.562. The same goes for the 2nd opamp, but somewhere I think I am thinking wrong.
According to the simulation result, the input voltage of the first opamp (U1.1) is 30mV and the output voltage is 550mV. Therefore, there is a gain of 18.3 times. Also, the second opamp (U1.2) has an input voltage of 550mV and an output voltage of 5V. Therefore, there is a gain of 9.09 times. I can't find how to calculate these gains and I can't understand why the gains are different even though the two opamp circuits are the same.
How can we calculate this? What am I doing wrong?