Introduction to the LM358 op-amp
The LM358 is a dual op-amp IC, meaning it contains two independent operational amplifiers in a single package. It is designed to operate from a single power supply, making it ideal for a wide range of applications, from simple amplification to signal conditioning and filtering.
Key features of the LM358
- Dual op-amp in a single package
- Single power supply operation (3V to 32V)
- Low input bias current (50nA)
- High gain bandwidth product (1MHz)
- Low input offset voltage (2mV)
- Short-circuit protection
- Wide operating temperature range (-40°C to +85°C)
LM358 pinout and package information
The LM358 is available in several package types, including 8-pin DIP, SO-8, and TSSOP-8. The most common package is the 8-pin DIP, which has the following pinout:
Pin | Name | Description |
---|---|---|
1 | OUT1 | Output of op-amp 1 |
2 | IN1- | Inverting input of op-amp 1 |
3 | IN1+ | Non-inverting input of op-amp 1 |
4 | GND | Ground |
5 | IN2+ | Non-inverting input of op-amp 2 |
6 | IN2- | Inverting input of op-amp 2 |
7 | OUT2 | Output of op-amp 2 |
8 | VCC | Positive power supply |
Basic op-amp configurations using the LM358
The LM358 can be used in various op-amp configurations, each with its own unique characteristics and applications. Some of the most common configurations include:
1. Inverting amplifier
An inverting amplifier uses negative feedback to amplify and invert the input signal. The gain of the amplifier is determined by the ratio of the feedback resistor (Rf) to the input resistor (Rin).
Gain = -Rf / Rin
2. Non-inverting amplifier
A non-inverting amplifier also uses negative feedback but does not invert the input signal. The gain of the amplifier is determined by the ratio of the feedback resistor (Rf) to the input resistor (Rin), plus one.
Gain = 1 + Rf / Rin
3. Voltage follower (buffer)
A voltage follower, also known as a buffer, has a gain of 1 and is used to provide a high impedance input and a low impedance output. This configuration is useful for isolating circuits and preventing loading effects.
4. Summing amplifier
A summing amplifier combines multiple input signals and produces an output that is proportional to the sum of the inputs. The gain for each input is determined by the ratio of the feedback resistor (Rf) to the corresponding input resistor (Rin).
Vout = -Rf (V1/R1 + V2/R2 + … + Vn/Rn)

LM358 application examples
The LM358 is suitable for a wide range of applications, from simple amplification to more complex signal processing. Some common applications include:
1. Audio amplification
The LM358 can be used as a simple audio amplifier for low-power applications, such as portable devices or small speakers. By configuring the op-amp as a non-inverting amplifier, you can easily control the gain and volume of the audio signal.
2. Sensor signal conditioning
Many sensors, such as thermistors, photodiodes, and strain gauges, produce small voltage signals that require amplification and conditioning before they can be processed by a microcontroller or other digital systems. The LM358 can be used to amplify and filter these signals, making them suitable for further processing.
3. Voltage Comparator
The LM358 can be used as a voltage comparator by setting up one op-amp as a non-inverting amplifier with a reference voltage on the non-inverting input and the signal to be compared on the inverting input. The output of the op-amp will switch between high and low states depending on whether the input signal is above or below the reference voltage.
4. Active filters
Active filters are electronic circuits that use op-amps to perform frequency-selective filtering. The LM358 can be used to implement various types of active filters, such as low-pass, high-pass, and band-pass filters, by combining resistors and capacitors in specific configurations.
LM358 vs. other op-amps
While the LM358 is a popular choice for many applications, there are other op-amps with different features and specifications that may be more suitable for specific needs. Some common alternatives to the LM358 include:
- LM324: A quad op-amp with similar features to the LM358, but with four op-amps in a single package.
- LM741: A classic single op-amp with higher performance specifications, but requires a dual power supply.
- TL072: A dual op-amp with a JFET input stage, offering higher input impedance and lower input bias current compared to the LM358.
- OP07: A precision op-amp with very low offset voltage and drift, making it suitable for high-accuracy applications.
When choosing an op-amp, consider factors such as power supply requirements, input and output characteristics, noise performance, and cost.
Tips for working with the LM358
To get the most out of your LM358 op-amp, keep these tips in mind:
- Always ensure proper power supply decoupling by placing a 0.1uF ceramic capacitor close to the VCC pin.
- Pay attention to the input and output voltage ranges, which are limited by the power supply voltage.
- Use appropriate resistor and capacitor values to set the desired gain and filter characteristics.
- Consider the impact of input bias current on high-impedance sensors or sources.
- Be aware of the op-amp’s output current limitations and ensure that the load does not exceed these limits.
Frequently Asked Questions (FAQ)
-
Can the LM358 be used with a dual power supply?
Yes, although the LM358 is designed for single-supply operation, it can also be used with a dual power supply. However, keep in mind that the input and output voltage ranges will be different compared to single-supply operation. -
What is the maximum supply voltage for the LM358?
The LM358 can operate with a supply voltage ranging from 3V to 32V. However, the maximum supply voltage may be limited by factors such as power dissipation and output current requirements. -
How do I set the gain of an LM358 amplifier?
The gain of an LM358 amplifier is set by choosing appropriate values for the input and feedback resistors. For an inverting amplifier, the gain is -Rf/Rin, while for a non-inverting amplifier, the gain is 1 + Rf/Rin. -
Can I use the LM358 for high-frequency applications?
The LM358 has a gain-bandwidth product of 1MHz, which limits its usefulness for high-frequency applications. For higher-frequency applications, consider op-amps with higher gain-bandwidth products, such as the LM318 or TL071. -
Is the LM358 suitable for battery-powered applications?
Yes, the LM358 is well-suited for battery-powered applications due to its low power consumption and ability to operate from a single supply voltage. However, be mindful of the battery’s voltage range and the op-amp’s input and output voltage limits.
Conclusion
The LM358 op-amp is a versatile and cost-effective solution for a wide range of analog applications. By understanding its features, configurations, and limitations, you can effectively use the LM358 in your projects, from simple amplification to more complex signal processing tasks. Always consider the specific requirements of your application when selecting an op-amp and designing your circuit.
No responses yet