cool!
1) The output of a op-amp can not get higher than VCC and lower than ground. Actually the outputs do not do well near the power supply pin's voltage.
2) You are over driving the output.
View attachment 83779
Here I set the gain of the op-amp to one. (-)pin connected to (out) pin
The two 4k resistors look like a 2k resistor connected to 2.5 volts.
I chose resistor values to make thinking easy.
-At 110vac the peak voltage will be near 160 volts so 160k ohms for 160 volts. "easy"
-The (two 4k resistors) is 2k ohms so there will be about 2v peak.
So:
0V on the power line =2.5V
160V=4.5V (2.5+2)
-160V=.5V (2.5-2)
The resistors make a voltage divider to get the voltage down to a safe level.
Divider is 160k/(4k//4k) or 160/2k at 2.5V
First from all... thank you!
And yes... yesterday precisly I was watching some videotutorial of opams, and this caracteristic is
clearly pointed out... They can reach neither the positive or negative supply voltage.
Know I got some questions regarding your design, well among others... I just want to be pointted
in the rigth direction to learn the basic theory.
Here is the same circuit, using the Lm 188 as you intended. (This opam got a 70V rating)
The power supply is 127VAC and I put the resistors as you desing.
I got this screen capture from the scope:
For the litte I know... I got the chanel A as Ac input measuring the 127V and we got a nice sinusoidal wave.
Know as for the output... The probe is in the output of the OPAM, and is also an AC input... but the range
for the measurement is 2mV
In this capture Im measuring the input of the opam, on the chanel B, AC and its the same wave but is on
the rangue of 0.5V.
I think the circuit is working as intended, but perhaps, Im miss interpretating the results:
The questions;
1.- I do understand the refrence voltage of 2.5V across the voltage divider, to "mount" on it the more small
sinusoidal wave thath came out of the reduced tension trougth the 160K resistor...
And I understand the gain of the OPAM is 1... as a voltage follower (I think)
But this will no result in the wave of the probe B, being center around 2.5V and around 4.5V and 0.5V peak to peak? ... why this is
making an sinusoidal wave resulting around +-1mV ... When the input is around 1V ???
2.- I make a second measure on the input and output of the resistor 160K... and was around 127VAC In as expected
and 1VAC Out... ¿ How you determine with so much precision the voltage loss on this resistor?
I can make the math of the simple 5 to 2.5 vt divider, But I can see or uderstant how this becomes
160/ ( 4//4) (Witch is 80k rigth?)
So the current going in to the opam is 2mA Rigth?
Is this solved using kirchhoff ?
4.- In proteous this opam got some more ports than yours.... hope this is not doing weird stuff with simulation.
Thank you in advance !!!
I really am trying to understand the theory of operation, not just an a circuit I can build without
know whath is going on.