On Fri, May 16, 2025 at 03:01 PM, <guilhermesouzam01@...> wrote:
After completing the setup, I tested it and noticed that the output from my comparator was a triangular waveform with a peak-to-peak voltage in the megavolt range, which is obviously incorrect.
Why is that obviously incorrect?
?
The ideal op-amps you used have no power supplies, and they are capable of driving infinite voltages, both positive and negative.? If that is not what you wanted, then you should have used a different one.? Consider using "UniversalOpAmp2" instead of "opamp".
?
That is especially important for U2 and U3,, which are both open-loop, without any negative feedback.? Configured that way, they act like comparators, with outputs that are unbounded.? The only thing keeping their output voltages from increasing indefinitely, is that they have a finite slew-rate, and the outputs are still slewing (ramping) when the input changes polarity and they start slewing in the opposite direction.
?
FYI, you should not have used ".lib"C:\Users\guilh\AppData\Local\Programs\ADI\LTspice\lib\lib\sub\opamp.sub"".? The instructions you saw when you added the "opamp" component was to add ".lib opamp.sub".? The full path is unnecessary and should not have been used.
?
Could someone help me figure out where I might be going wrong?
Could it be that the generic op-amp I'm using isn't suitable for this circuit ...
I would say so, yes.
?
... and I should use a different model? If so, which one?
Use "UniversalOpAmp2".? It is located in the same section of the components picker, just a little further down alphabetically.
I will upload my .asc
file named invmono_controle to the library. Feel free to test it.
When uploading your files, always upload them
only into the "Temp" directory.? (I fixed yours.)
?
Andy
?