Built-in project · no microcontroller

741 vs LM358 on 5 V

A 741 and an LM358 follow the same knob on a 5 V supply: the LM358 goes from 0 to 3.5 V, the 741 never leaves 1.5 to 3.5 V. There is no microcontroller in it: the simulator solves the 5 parts as a circuit, so it runs the moment you press Run, and nothing needs compiling.

Teaching? Assign it to your class in one click.

Beginner Runs in your browser. Free, and no account needed.

The parts retail for about $6.05. On Mokxi they're free.

741 vs LM358 on 5 Vlive0.000 s 0.00x
Click to open it in the editor
The circuit itself, running here on the simulator. Press what can be pressed; click anything else to open it in the editor.

How it works

There is no microcontroller in this one, so nothing is compiled: the simulator solves the circuit itself. The file in the editor is the notes that come with it.

sketch.ino
// A 741 and an LM358 on the same 5 V, both as followers of one knob.
//
// A follower has its output wired straight back to its - input, so its gain
// is exactly 1: the output should copy the + input, whatever the knob sets.
// The meter on the left reads the LM358's output, the one on the right the
// 741's.
//
// Turn the knob from one end to the other:
//
//   knob    LM358   741
//   0.00 V  0.005 V 1.50 V
//   2.50 V  2.50 V  2.50 V
//   5.00 V  3.50 V  3.50 V
//
// In the middle both are perfect. Near the ends they are not, and they are
// not wrong in the same way. The LM358 is a single-supply part: its output
// goes all the way down to ground but stops 1.5 V under its supply. The 741
// is a split-supply part, made for +-12 V or +-15 V: its output stops 1.5 V
// short of BOTH rails, so on 5 V it lives between 1.5 V and 3.5 V and nothing
// near ground ever comes out of it.
//
// That is why a 741 circuit copied from a textbook (drawn on +-15 V) does not
// work on an Arduino's 5 V, and why the LM358 is the op-amp in most kits.
//
// The two chips do not share a pinout either. The LM358 has two amplifiers,
// with 1OUT on pin 1 and the supply on pins 8 and 4. The 741 has one, with
// OUT on pin 6, V+ on pin 7 and V- on pin 4; pins 1 and 5 are for an offset
// trimmer and pin 8 is not connected.

Parts list

5 parts, plus the jumper wires and 2 bench instruments. The parts retail for about $6.05; on Mokxi they're free, and so are the instruments.

How it is wired

6 connections, pin by pin, read from the circuit itself. Each line is one set of pins joined together, by a jumper wire or a breadboard strip.

  • 5 V: LM358 dual op-amp pin VCC; LM741 op-amp (uA741) pin V+; Potentiometer pin 1
  • Ground: LM358 dual op-amp pin GND; LM358 dual op-amp pin 2IN+; LM741 op-amp (uA741) pin V-; Potentiometer pin 3; Multimeter (1) pin COM; Multimeter (2) pin COM
  • LM358 dual op-amp pin 1OUT; LM358 dual op-amp pin 1IN-; Multimeter (1) pin V
  • LM358 dual op-amp pin 1IN+; LM741 op-amp (uA741) pin IN+; Potentiometer pin 2
  • LM358 dual op-amp pin 2IN-; LM358 dual op-amp pin 2OUT
  • LM741 op-amp (uA741) pin IN-; LM741 op-amp (uA741) pin OUT; Multimeter (2) pin V

Change it and keep it

Open it in the editor, change the circuit or the code, and keep your version in a free account.