How does an op-amp work?

Op-amp is short for operational-amplifier. You can use it as a comparator, buffer a signal, or amplify a signal.

A bunch of common op-amps

Table of Contents

These are some op-amps I have; they are the LM358 and the LM4562. The first is a generic op-amp and the second one is designed for audio purposes. Both however, have the same pin-out and should work roughly the same in identical circuits.

The same goes for many other models and brands, but not all. So, always check the datasheet.

There are two op-amps in this IC, each with a positive and negative input terminal and an output. The positive and negative power supplies are shared by both.

Op-amp as a comparator

Simple op-amp circuit

This is a simple circuit that drive two LED s to indicate whether the output signal of the op-amp is high or low.

I have made my power supply output two separate voltages that go to the input pins.

You can see the output of the op-amp change as soon as the inputs switch places in order of voltage level.

Op-amp behavior described by a formula

ChatGPT describing an op-amp in pseudo code

We can describe the working of the op-amp as a formula.

output = (positive_input - negative_input) * gain

Because the gain of the op-amp is often a number in the millions, any voltage difference between the inputs gets multiplied to a very large voltage.

The op-amp however can not deliver more than we feed it, so the output voltage gets clipped.

Voltage follower

Voltage follower using an op-amp

If the voltage difference gets just as small as the gain factor is large, then the op-amp can output an analog voltage instead of just high or low. Like in this circuit here.

The output is directly connected to the negative input pin. Which causes the output to follow the voltage of the positive input pin. It does that not with precision, but with speed.

The output of the op-amp goes to the negative input.

My power supply goes to the positive input, and I initially set it to 1 volt.

The output starts at ground.

Voltage difference between the pins is 1 volt positive, multiplied by the gain of 10 million is … ten million volts. The op-amp does not have that … obviously, so it sends 5 volts.

Now for the fun part.

The output takes time to get to 5 volts. And the op-amp is really fast.As the voltage shoots up, the calculation is updated, over a million times a second.

Once it gets within a fraction of a volt of the positive terminal, the equation starts to calm down, outputting less and less as it approaches its target. From that point on, the output sticks to the positive terminal like glue, mirroring every change in voltage.

Because the equation can also handle a negative difference, the op-amp could just as easily start at 5 volts output instead of ground.

The output voltage will always run towards the positive voltage and stop just in time.

Here are some of the most popular op-amp circuits used by electronics hobbyists:

  1. Non-inverting Amplifier: A basic op-amp circuit that amplifies the input signal while preserving its phase.
  2. Inverting Amplifier: An op-amp circuit that amplifies the input signal while reversing its phase.
  3. Summing Amplifier: An op-amp circuit that combines multiple input signals into a single output.
  4. Difference Amplifier: An op-amp circuit that amplifies the difference between two input signals.
  5. Instrumentation Amplifier: An op-amp circuit used for low-level signals, such as those from sensors.
  6. Voltage Follower: An op-amp circuit that provides a high impedance input and a low impedance output, allowing it to be used as a buffer.
  7. Comparator: An op-amp circuit used to compare two input voltages and provide a digital output indicating which is higher.
  8. Schmitt Trigger: An op-amp circuit that provides hysteresis, making it useful for converting analog signals into digital signals.
  9. Integrator: An op-amp circuit that integrates the input signal over time and provides a ramp output.
  10. Differentiator: An op-amp circuit that differentiates the input signal and provides a pulse output.
  11. PWM Generator: An op-amp circuit that generates a pulse-width modulated (PWM) signal, which is commonly used for controlling the duty cycle of a switch or for providing a variable voltage source.

Here are the top 10 most popular op-amp ICs used by electronics hobbyists:

  1. LM741: A general-purpose op-amp with good stability and a wide range of operating voltage.
  2. LM358: A dual operational amplifier with low power consumption and a wide range of operating voltage.
  3. LM324: A quad operational amplifier with low power consumption and a wide range of operating voltage.
  4. TL084: A high-speed JFET input operational amplifier with good input characteristics.
  5. NE5532: A high performance dual operational amplifier with low noise and high gain.
  6. TL072: A high-speed JFET input operational amplifier with low input bias current.
  7. TL062: A low-noise JFET input operational amplifier with low input bias current.
  8. LM386: A low power audio amplifier that is designed for use in battery-powered applications.
  9. MCP6002: A low power, dual channel op-amp with rail-to-rail input and output.
  10. LMC6482: A low power, dual channel op-amp with rail-to-rail input and output, and a low offset voltage.

Where to buy

There are several popular places to buy op-amps, both online and offline. Some of the most popular include:

  1. Digi-Key: A large online electronics distributor with a wide selection of op-amps and other electronic components.
  2. Mouser Electronics: An online electronics distributor with a large selection of op-amps and other components.
  3. Amazon: An online retailer that offers a wide selection of op-amps and other electronic components, including those from major brands.
  4. Newark / element14: An online electronics distributor with a wide selection of op-amps and other components.
  5. Jameco Electronics: An online and offline electronics distributor that offers a wide selection of op-amps and other components.
  6. Fry’s Electronics: A large electronics retailer with physical stores in several US states, offering a wide selection of op-amps and other components.
  7. RadioShack: A retail chain that offers a limited selection of op-amps and other electronic components in their stores and online.
  8. Arrow Electronics: A global electronics distributor with a wide selection of op-amps and other components, both online and through their network of physical locations.
  9. eBay: An online marketplace that offers a wide selection of op-amps and other electronic components from individual sellers and businesses.
  10. AliExpress: An online marketplace that offers a wide selection of op-amps and other components from Chinese manufacturers and suppliers.

As always, it’s a good idea to compare prices and check for any applicable discounts or special deals before making a purchase.

Video

Leave a Reply

Your email address will not be published. Required fields are marked *