![Screenshot 2024-06-23 at 3.23.45 AM.png Screenshot 2024-06-23 at 3.23.45 AM.png](https://forum.allaboutcircuits.com/data/attachments/312/312827-096494e74561ddb33ca5bc665f483566.jpg)
I'm gonna take the L and agree with everything you said, thanks man :,)It happens because you don't know what you are doing and you are using an operational amplifier as a comparator. On top of that the second operational amplifier is operating open loop which is a big Bozo [the clown] no-no.
Bozo the Clown - Wikipedia
Here is my rendering of the initial conditions.
View attachment 325209
If you want the function of a comparator, then use a freakin' comparator!!
There are however disadvantages to doing so.You can use an opamp as a comparator. You can look up how it is done.
you're a god sent miracle. I hope your pillows are always cold, you find cash in your pockets, and every meal you eat is at the perfect temperature. Thank you for being so niceIf you want an actual comparator with an analog output, as opposed to an open collector output, you can use an LT1017. The homework problem is to look at the output waveform and assume that output is always at one of the rails to figure out what the voltage divider is doing. I've attached the .asc file for your convenience.
View attachment 325224
Thank you. You are most welcome. If you can figure out the voltages for the upper and lower trip points, please post them. If you are still stumped, I'll post my solution in a day or two.you're a god sent miracle. I hope your pillows are always cold, you find cash in your pockets, and every meal you eat is at the perfect temperature. Thank you for being so nice![]()
You can find a model for the LM358/LM258/LM158 from online sources.sorry, I think there was confusion. I have to use the op-amp as a comparator. I have to configure the second op-amp in an LM258P as an open-loop comparator. (using LT1413 as LTspice doesn't have that component.)
mannnn if I could i'd use a comparator as well but I gotta follow my lecturer's commands. thanks for your help though, really appreciate itYou can find a model for the LM358/LM258/LM158 from online sources.
Opamps have internal frequency compensation components that inhibit their use as comparators, but hey it's your life and your time to utilize any way you see fit.
by Jake Hertz
by Duane Benson
by Aaron Carman
by Aaron Carman