0
\$\begingroup\$

I am implementing a Schmitt trigger using the circuit shown below. This circuit consists of one LM741 op-amp, which acts as an asymmetrical Schmitt trigger with a single power supply. According to this calculator, choosing a 5 V supply and 1 k-ohm resistors for R1, R2, and RFB should result in a lower threshold of 1.66 V and an upper threshold of 3.33 V.

I first simulated this Schmitt trigger in LTspice with an ideal op-amp (universal op-amp 2). A circuit diagram is shown below.

enter image description here

This resulted in the ideal behavior in which the output saturates to positive or negative rail (ground) when the input falls below the lower threshold or rises above the upper threshold, respectively:

enter image description here

I next replaced the ideal op-amp with an LM741 (what I am using in practice) and re-ran the simulation. I got the LTspice model for the 741 from TI's website. The circuit diagram is shown below:

enter image description here

Upon running the simulation, I find that the op-amp is not able to saturate all the way up to the positive rail or down to the negative rail:

enter image description here

I next built the device on a breadboard and measured the output voltage when input was either grounded (0 V) or tied to the +5 V supply. A figure showing my circuit is shown below. The green wire on the left is tied to ground, the green wire on the right is tied to +5 V, the red wire is the input, and the blue wire is the output.

enter image description here

When I measure the output voltage with an oscilloscope, I find that when the input is grounded, the output is +4.5 V and when the input is tied to +5 V, the output is 2 V.

Questions:

  1. Where does the non-ideality in the 741 op amp come from? What causes both the second simulation and the real circuit to deviate from the ideal op-amp in the first simulation?
  2. Is it possible to make the 741 behave more like an ideal op-amp? Or are there other op-amps I could consider using that have similar specifications for output current that behave more like the ideal op-amp (part numbers would be great)?
  3. Why doesn't the simulated result for the 741 match the experimental result?

Edit: Upon seeing @Felthry's comment, I simulated the same circuit but with an LM358 instead of LM741 using the model found here. My circuit and result are shown below:

enter image description here

enter image description here

\$\endgroup\$
17
  • 6
    \$\begingroup\$ 741 won't work with a 5v supply. You need an absolute minimum of 10v, 15v would be better. Use a low voltage rail 2 rail amp if you want to work at 5v. \$\endgroup\$
    – Neil_UK
    Jul 15, 2018 at 20:17
  • 2
    \$\begingroup\$ To answer your second question, the best solution is to just get a modern op-amp instead of using a design from the sixties. Try the LM358. Questions 1 and 3 require more explanation than I have time for right now, sorry. \$\endgroup\$
    – Hearth
    Jul 15, 2018 at 20:17
  • 2
    \$\begingroup\$ A search here on EE stack for 741 will answer your question. \$\endgroup\$
    – Marla
    Jul 15, 2018 at 20:25
  • 1
    \$\begingroup\$ That ^^ and more precisely why you should not use a 741 opamp and especially expect it to work on 5 V. The 741 is designed (and used) in the days when having a +/- 12 V or +/- 15 V was the norm. Use an MCP601 or such which is designed to work on 5 V. I long for the days when beginners stop using the 741. \$\endgroup\$ Jul 15, 2018 at 20:49
  • 3
    \$\begingroup\$ I hope the 741 sticks around. It has pretty much every possible wart that an opamp might have. Absolutely nothing is ideal about the 741. How better to learn?? If you can make a 741 jump through hoops and get the job done, then you'll definitely be able to handle anything a modern opamp might throw at you. \$\endgroup\$
    – jonk
    Jul 15, 2018 at 21:34

1 Answer 1

6
\$\begingroup\$

The National (now TI) LM741 really is not well characterized to run off of a single \$5\:\text{V}\$ supply rail. The LM741 datasheet suggests that with your loading, you are guaranteed to get within about \$3\:\text{V}\$ of each rail. The typical is better; within about \$1\:\text{V}\$ of each rail. But that's not the guarantee over their range of operation. So, a good argument can be made that the LM741 cannot be assured to work on a \$5\:\text{V}\$ rail.

That said, it's likely that you can make it work here.

To do so, though, I need to consider a way to make sure that a small excursion of the LM741 opamp's output is sufficient to drive something all the way to the rails. You may be able to get the output near \$1\:\text{V}\$, but I'd rather be conservative and figure no better than \$2\:\text{V}\$ above ground. You may also be able to get the output near \$4\:\text{V}\$, but I'd rather be conservative and figure no better than \$3\:\text{V}\$ above ground. Keep it as conservative as possible and work from there.

This discrete output stage can be added to your opamp:

schematic

simulate this circuit – Schematic created using CircuitLab

(Since you don't have a mid-point voltage to use, I had to construct one using the \$R_6\$ and \$R_7\$ voltage divider.)

That's about it. I think that will allow an LM741 to do pretty well in driving a comparator output close to the rails. And it will do so with a fairly credible loading, too (increased output current compliance!)

Of course, there is the obvious option of buying a better opamp for this purpose (or comparator.)

\$\endgroup\$
1
  • 1
    \$\begingroup\$ As much as I think the 741 should go away, I do like your comment above. People discovering the reality of the imperfections. Not bad. Worthy of upvote. \$\endgroup\$
    – Marla
    Jul 15, 2018 at 23:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.