The LM358, manufactured by HeroMicro, is an extremely classic and widely used dual, high-gain, internally frequency-compensated operational amplifier. Its greatest strength lies in its ability to operate from a single supply, with an input common-mode voltage range that extends down to ground (GND). This makes it the go-to choice for battery-powered devices, sensor signal conditioning, industrial control, and countless general-purpose analog circuits.
1. Key Features Overview
Based on the datasheet provided by HeroMicro (LM358.pdf), key features include:
Flexible Power Supply Options:
Single Supply: 3V to 32V
Dual Supply: ±1.5V to ±16V
True Single-Supply Operation:
Input Common-Mode Voltage Range (VICR): From 0V (GND) to (VCC - 1.5V). This allows it to amplify signals referenced to ground without needing a negative supply.
Output Voltage Swing: Can swing very close to ground (typical VOL = 5mV @ RL=10kΩ), but cannot reach VCC (typically about 1.5V below VCC).
Low Power Consumption: Supply current is independent of supply voltage, with a typical value of only 0.7mA (for both channels combined), making it ideal for battery-powered applications.
Internal Frequency Compensation: Guarantees stability in unity-gain (voltage follower) configurations, simplifying circuit design.
High DC Gain: Open-loop differential voltage gain is typically as high as 100dB, ensuring high precision in closed-loop amplification.
Packages: SOP8, DIP8
2. Pin Configuration (8-Pin)

| Pin | Amp Channel | Function |
|---|---|---|
| 1 | A | Output (1OUT) |
| 2 | A | Inverting Input (1IN-) |
| 3 | A | Non-inverting Input (1IN+) |
| 4 | - | GND (in single-supply apps) / V- (in dual-supply apps) |
| 5 | B | Non-inverting Input (2IN+) |
| 6 | B | Inverting Input (2IN-) |
| 7 | B | Output (2OUT) |
| 8 | - | VCC |
3. Critical Design Guidelines
(1) Single-Supply Operation is its Core Strength
How to Connect: In a single-supply system, connect Pin 4 to system ground (GND) and Pin 8 to the positive supply (VCC).
Biasing the Input Signal: Since the output cannot go below GND, to amplify AC or bipolar signals, you must bias the non-inverting (or inverting) input at a suitable DC voltage (often VCC/2). This is typically done with a resistive divider, bypassed to ground with a large capacitor to provide an AC ground.
Example: To amplify a 0.1Vpp audio signal, bias the non-inverting input at VCC/2 (e.g., 2.5V if VCC=5V) using two 10kΩ resistors. The output signal will then swing above and below this 2.5V DC level.
(2) Understand Output Voltage Limitations
The LM358 has a non-rail-to-rail output.
To Ground (GND): It can get very close, typically just a few millivolts.
To VCC: There is a saturation voltage drop, and it typically cannot exceed VCC - 1.5V. For example, with a 5V supply, the maximum high-level output is around 3.5V.
Design Impact: This limitation must be accounted for in your design. If full rail-to-rail output is required, choose a Rail-to-Rail Output (RRO) op-amp.
(3) Power Supply Decoupling
Although the LM358 is not highly sensitive to power supply noise, it's still good practice to place a 0.1μF ceramic decoupling capacitor close between VCC (Pin 8) and GND (Pin 4) for optimal performance and stability.
(4) Leverage High Input Impedance
The LM358 has a high input impedance (BJT input stage, typically > 1MΩ), making it an excellent buffer (voltage follower) to isolate high-impedance signal sources (like certain sensors) from loading effects.
(5) PCB Layout Considerations
Input Traces: Keep them as short as possible and away from noisy nodes (e.g., digital lines, switcher nodes).
Feedback Resistors: For high-gain applications, avoid excessively large feedback resistors (usually keep them under 100kΩ) to minimize thermal noise and offset errors caused by bias current.
Grounding: Ensure a clean, low-impedance ground plane or star ground point.
(6) Difference from a Comparator
While an op-amp can be used as a comparator, the LM358 is not designed for high-speed comparison. It has a slow response (unity-gain bandwidth is only 0.7MHz) and no internal hysteresis. For applications requiring fast, clean switching, use a dedicated comparator (like the LM393).
4. Typical Applications
Sensor Signal Amplification: Amplifying weak signals from temperature, pressure, light-sensitive, and other sensors.
Active Filters: Building low-pass, high-pass, band-pass, etc.
DC Level Shifting: Adding or removing a DC offset from a signal.
Buffers/Impedance Converters: Isolating circuit stages and providing drive capability.
Simple Oscillators: Such as square wave generators.
5. Summary
HeroMicro's LM358 has earned its place as one of the most fundamental and commonly used op-amps in an engineer's toolkit, thanks to its excellent single-supply operation, low power consumption, high reliability, and low cost. By understanding its input/output voltage range limitations and correctly implementing single-supply biasing, you can successfully apply this classic dual op-amp in countless projects.


