Hi folks, I’ve been trying to use LM311 to compare for a simple project, and it is depressing (to say the least) that my friends and I have not been able to get the comparator to work, I suspect that it is due to a knowledge gap, but our lab instructors keep saying, well the equipments here are for Educational Purposes and no one certifies them, and the LM311’s are cheap and unreliable so it’s not a big deal to not be able to compare voltages properly, for your project get IC’s which are reliable and more expensive I personally hate this mindset, what are your thoughts, and if the problem indeed is knowledge gap (which it certainly is according to me, as I don’t fully understand why the heck you need a pull up resistor with the thing) then do please tell me what I should be doing to catch up.
Thanks a lot for going through this post… All answers are appreciated.
P.S. the project involves comparing a sine wave to get a square wave which is then fed to a T flip flop (made using JK flops that we have) to generate phase shifted waves as shown in the image attached, which is an LTspice simulation with the LM741s


Not what you were asking about, but you reminded me of this video arguing that the LM741 is a relic and not a good choice for a modern circuit. IIRC the video also shortly explains some standard characteristics of an opamp, which could be interesting to you if you suspect a knowledge gap.