The LM386 is a low-voltage audio power amplifier integrated circuit designed primarily for low-power consumer and industrial applications. Operating on DC supply voltages ranging from 4V to 18V, the LM386 provides internal voltage gains from 20 to 200 with minimal external components, making it a foundational chip for battery-powered audio devices, small speakers, and signal conditioning modules.
Architectural Overview and Working Principle
Developed to supply sufficient acoustic power while preserving battery power in portable electronics, the LM386 combines operational amplifier characteristics with an integrated power output stage. The internal architecture consists of an input differential stage, an intermediate voltage amplifier stage, and a complementary push-pull output driver.
Unlike general-purpose operational amplifiers that require dual positive and negative power rails, the LM386 is internally biased to operate from a single DC supply rail. Its inputs are ground-referenced, meaning signal sources can be directly coupled to the input pins without requiring DC-blocking capacitors, provided the input voltage remains within the safe differential limits of -0.4V to +0.4V relative to ground.
- Pin 1: Gain 1
- Pin 2: In-
- Pin 3: In+
- Pin 4: GND
- Pin 5: Vout
- Pin 6: Vs (+)
- Pin 7: Bypass
- Pin 8: Gain
The output terminal is internally biased to sit at half the supply voltage ($V_S / 2$). This automatic quiescent center-biasing allows maximum output voltage swing between the ground rail and the positive supply rail without clipping the waveform asymmetric. Because of this half-supply DC offset at the output pin, a coupling capacitor must always be connected in series between the output pin and the speaker to prevent direct current from passing through the voice coil.
LM386 Pinout Configuration and Functional Descriptions
The standard LM386 IC comes in an 8-pin Dual In-line Package (DIP-8) or Surface Mount (SOIC-8) footprint. Understanding the specific function of each pin is necessary for designing stable, low-noise audio circuits.
| Pin Number | Pin Name | Description | Functional Role |
|---|---|---|---|
| 1 | GAIN | Gain Control Terminal 1 | Connected to Pin 8 via external RC networks to set voltage gain between 20 and 200. |
| 2 | INPUT- | Inverting Input | Inverting signal terminal; typically grounded in single-ended non-inverting amplifier configurations. |
| 3 | INPUT+ | Non-Inverting Input | Main analog audio input pin; accepts AC-coupled audio signals from potentiometers or preamp stages. |
| 4 | GND | Ground | Negative supply connection and common reference point for all AC and DC signal paths. |
| 5 | VOUT | Amplifier Output | Amplified AC audio output; delivers power to the load via a series DC-blocking capacitor. |
| 6 | VS | Supply Voltage | Positive DC power supply pin (accepts 4V to 12V for standard models, up to 18V for high-voltage models). |
| 7 | BYPASS | Power Supply Bypass | Provides direct access to the internal non-inverting input biasing network to decouple power supply noise. |
| 8 | GAIN | Gain Control Terminal 2 | Paired with Pin 1 to adjust internal feedback resistance; left unconnected for baseline gain of 20. |
Pin Breakdown and Circuit Interfacing
- Pins 1 and 8 (Gain Adjustment): An internal $1.35\text{ k}\Omega$ feedback resistor sets the baseline voltage gain of the IC to 20 ($26\text{ dB}$) when Pins 1 and 8 are left open. Connecting a $10,\mu\text{F}$ capacitor across Pins 1 and 8 bypasses this internal resistor, raising the voltage gain to 200 ($46\text{ dB}$).
- Pins 2 and 3 (Differential Inputs): The inputs use PNP transistors, allowing signal voltages to sink to ground potential without clipping. Pin 3 receives the audio signal (often passed through a $10\text{ k}\Omega$ audio-taper potentiometer for volume control), while Pin 2 is typically tied directly to circuit ground.
- Pin 4 (Ground): Serves as the primary reference node. High ground-loop currents can introduce hum into the amplifier stage; therefore, standard star-grounding layout practices must be followed.
- Pin 5 (Output): Outputs the amplified audio signal overlaid on a $V_S / 2$ DC bias. A series electrolytic capacitor (typically $220,\mu\text{F}$ to $470,\mu\text{F}$) blocks the DC component while passing the AC audio spectrum to an $8,\Omega$ or $4,\Omega$ load.
- Pin 6 (Supply Voltage): Connects to the positive rail. A local bypass decoupling capacitor ($0.1,\mu\text{F}$ ceramic parallel to $100,\mu\text{F}$ electrolytic) placed physically close to Pin 6 is essential to prevent high-frequency oscillations.
- Pin 7 (Bypass Terminal): Connecting a $10,\mu\text{F}$ capacitor from Pin 7 to ground filters out ripple voltage coming from the power supply rail, preventing AC hum from reaching the sensitive input stages.
Voltage Gain Configurations and Circuit Calculations
The flexibility of the LM386 lies in its modifiable feedback loop. By placing external passive components between Pins 1, 8, and 5, circuit designers can tailor gain, frequency response, and tonal characteristics.
1. Default Minimum Gain ($A_V = 20$)
When Pins 1 and 8 are left unconnected, the internal feedback loop dictates the gain: $$A_V = \frac{2 \times 15\text{ k}\Omega}{1.35\text{ k}\Omega + 150\Omega} \approx 20 \quad (26\text{ dB})$$ This mode offers the lowest total harmonic distortion (THD), maximum bandwidth, and highest stability against spontaneous oscillations.
2. Maximum Gain ($A_V = 200$)
By placing a $10,\mu\text{F}$ electrolytic capacitor between Pin 1 (positive lead) and Pin 8 (negative lead), the internal $1.35\text{ k}\Omega$ resistor is effectively AC-bypassed. The resulting gain jumps to: $$A_V \approx 200 \quad (46\text{ dB})$$ This setup is ideal for micro-power transducers, dynamic microphones, or low-output guitar pickups, though it increases background hiss and susceptibility to power rail noise.
3. Intermediate Custom Gain ($20 < A_V < 200$)
To set a specific voltage gain between 20 and 200, a resistor ($R_{GAIN}$) is placed in series with the $10,\mu\text{F}$ capacitor across Pins 1 and 8. The effective voltage gain is estimated using the following formula: $$A_V \approx \frac{200}{1 + \left(\frac{R_{GAIN}}{135\Omega}\right)}$$
- A $1.2\text{ k}\Omega$ resistor yields a gain of approximately 50 ($34\text{ dB}$).
- A $150\Omega$ resistor yields a gain of approximately 100 ($40\text{ dB}$).
4. Bass Boost Configuration
Bass frequencies can be enhanced by inserting a series resistor and capacitor network between Pin 1 and Pin 5 (Output). Because Pin 1 connects to the internal feedback loop, placing an RC network from Pin 5 to Pin 1 alters frequency-dependent feedback. A standard bass boost circuit uses a $10\text{ k}\Omega$ resistor in series with a $0.033,\mu\text{F}$ capacitor between Pin 1 and Pin 5, selectively attenuating higher frequencies to yield a warmer, bass-heavy acoustic response.
Technical Specifications and Variant Comparisons
The LM386 family includes several sub-variants distinguished by operating voltage limits and power output capabilities. Complete datasheets for these variants can be referenced through official manufacturer documentation provided by Texas Instruments.
| Parameter / Variant | LM386N-1 / LM386M-1 | LM386N-3 | LM386N-4 |
|---|---|---|---|
| Operating Supply Voltage Range | 4V to 12V | 4V to 12V | 5V to 18V |
| Quiescent Current (No Signal) | 4 mA (typ), 8 mA (max) | 4 mA (typ), 8 mA (max) | 5 mA (typ), 10 mA (max) |
| Output Power ($R_L = 8,\Omega, \text{THD} = 10%$) | 325 mW ($V_S = 6\text{V}$) | 700 mW ($V_S = 9\text{V}$) | 1000 mW ($V_S = 16\text{V}$) |
| Voltage Gain Range | 20 to 200 | 20 to 200 | 20 to 200 |
| Total Harmonic Distortion ($\text{PO} = 125\text{mW}, 8,\Omega$) | 0.2% | 0.2% | 0.2% |
| Bandwidth (Small Signal) | 300 kHz | 300 kHz | 300 kHz |
| Input Impedance | $50\text{ k}\Omega$ | $50\text{ k}\Omega$ | $50\text{ k}\Omega$ |
| Package Options | PDIP-8, SOIC-8, VSSOP-8 | PDIP-8 | PDIP-8 |
Step-by-Step Practical Applications
Application 1: Standard Battery-Powered 9V Audio Amplifier
This foundational schematic provides general-purpose amplification for small tabletop speakers or audio project receivers.
- Power Connections:
- +9V Power Rail connects to Pin 6
- Capacitor C3 (100uF) connects from +9V Power Rail to GND
- Input Connections:
- Audio In connects to Pin 3
- Pin 4 connects to GND
- Output Connections:
- Pin 5 Out connects to C_out (220uF) leading to Speaker (8 Ohm), which connects to GND
- Pin 5 Out connects to Zobel Network (10 Ohm + 0.05uF to GND)
Required Components:
- IC: LM386N-1 or LM386N-3
- Power Source: 9V DC battery or regulated power supply
- Potentiometer: $10\text{ k}\Omega$ logarithmic (audio taper) across Input and Ground
- $C_{BYPASS}$: $10,\mu\text{F}$ 16V electrolytic (Pin 7 to Ground)
- $C_{GAIN}$: $10,\mu\text{F}$ 16V electrolytic (Pins 1 to 8, optional for max gain)
- $C_{POWER}$: $0.1,\mu\text{F}$ ceramic in parallel with $100,\mu\text{F}$ electrolytic (Pin 6 to Ground)
- $C_{OUT}$: $220,\mu\text{F}$ to $470,\mu\text{F}$ electrolytic (Pin 5 to Speaker)
- Zobel Network: $10\Omega$ quarter-watt resistor in series with $0.05,\mu\text{F}$ ($50\text{ nF}$) ceramic capacitor (Pin 5 to Ground)
- Speaker: $8,\Omega$, 1 Watt minimum rating
Construction Steps:
- Connect Pin 4 directly to the common ground plane.
- Place the $0.1,\mu\text{F}$ ceramic capacitor as physically close as possible to Pin 6 and Ground to eliminate high-frequency parasitic inductance.
- Connect the wiper (center terminal) of the $10\text{ k}\Omega$ potentiometer to Pin 3. Connect one outer terminal to the AC audio source and the other to Ground.
- Ground Pin 2 directly or through a small resistor to maintain low DC offset drift.
- Solder the $10,\mu\text{F}$ bypass capacitor between Pin 7 (positive lead) and Ground (negative lead).
- Connect the positive lead of the $220,\mu\text{F}$ coupling capacitor to Pin 5, and connect the negative lead to the positive terminal of the $8,\Omega$ speaker. Connect the negative speaker terminal to Ground.
- Attach the Zobel network ($10\Omega + 0.05,\mu\text{F}$ in series) from Pin 5 directly to Ground in parallel with the speaker branch.
Application 2: DIY Guitar Mini-Amplifier (Ruby Amplifier Variant)
The LM386 is widely recognized in the musical instrument community as the core engine of portable mini guitar amplifiers (such as the popular Ruby or Little Gem designs).
- Guitar Signal
- JFET Buffer (MPF102/2N5457)
- Volume Pot (10k)
- LM386 Pin 3
- Speaker
Because electric guitar pickups produce a high source impedance (typically $6\text{ k}\Omega$ to $15\text{ k}\Omega$), driving the LM386 directly through its $50\text{ k}\Omega$ input impedance can damp high-frequency harmonics (tone sucking).
Design Enhancements for Guitar Applications:
- JFET Buffer Front-End: Adding a junction field-effect transistor (such as a 2N5457 or MPF102) configured as a source follower before Pin 3 provides an input impedance greater than $1\text{ M}\Omega$. This preserves the natural bright tone of electromagnetic guitar pickups.
- Gain Trimming: Inserting a $1\text{ k}\Omega$ potentiometer in series with the $10,\mu\text{F}$ capacitor across Pins 1 and 8 allows guitarists to transition smoothly from clean acoustic reproduction to natural asymmetrical clipping overdrive.
Essential Circuit Stability and Troubleshooting
Due to its high bandwidth ($300\text{ kHz}$) and sensitive internal gain structure, the LM386 can develop high-frequency oscillations or unwanted power supply hum if layout guidelines are neglected.
- Pin 5 Vout connects to:
- (+) 220uF Capacitor (C_out) leading to Speaker Output
- Resistor 10 Ohm in series with Capacitor 0.05uF (50nF) leading to GND (Zobel Network)
1. Eliminating High-Frequency Self-Oscillation
The LM386 output stage often experiences ultrasonic oscillation (typically between $100\text{ kHz}$ and $1\text{ MHz}$) when driving inductive loads like speakers. This high-frequency oscillation causes excessive heat buildup, high battery current drain, and distorted sound output.
- Solution (Zobel Network): Always place a $10\Omega$ metal-film resistor in series with a $0.05,\mu\text{F}$ ceramic capacitor from Pin 5 directly to Ground. This Boucherot/Zobel network compensates for the rising inductive reactance of the speaker voice coil at high frequencies, dampening parasitic oscillations.
2. Preventing Mains Hum and Power Rail Ripple
Because the LM386 operates at high gain levels, voltage fluctuations on the positive rail can feed directly back into the input stage.
- Solution (Bypass Capacitor): Never leave Pin 7 floating in high-gain setups. Connecting a $10,\mu\text{F}$ to $100,\mu\text{F}$ low-ESR capacitor from Pin 7 to Ground increases the power supply rejection ratio (PSRR), filtering out supply hum and ripple noise.
3. Sizing the Output Coupling Capacitor
The value of the output capacitor ($C_{OUT}$) on Pin 5 determines the low-frequency cutoff point (high-pass filter) of the speaker system according to the cut-off frequency formula: $$f_c = \frac{1}{2 \pi \cdot R_L \cdot C_{OUT}}$$
For an $8,\Omega$ speaker load:
- A $100,\mu\text{F}$ capacitor yields $f_c \approx 198\text{ Hz}$ (attenuates bass significantly).
- A $220,\mu\text{F}$ capacitor yields $f_c \approx 90\text{ Hz}$ (standard balance for small enclosures).
- A $470,\mu\text{F}$ capacitor yields $f_c \approx 42\text{ Hz}$ (full bass pass-through for larger drivers).
Troubleshooting Common LM386 Issues
| Problem Observed | Primary Cause | Recommended Corrective Action |
|---|---|---|
| Severe sound clipping at moderate volume | Undersized power supply or DC output offset shorting. | Check supply voltage under load; verify presence of series output capacitor $C_{OUT}$ on Pin 5. |
| High-pitched squealing or oscillation | Missing Zobel network or improper breadboard grounding layout. | Install $10\Omega + 0.05,\mu\text{F}$ RC network from Pin 5 to GND; shorten signal wires. |
| Loud 50Hz/60Hz AC hum in speaker | Floating Pin 7 or unshielded signal input cables. | Connect $10,\mu\text{F}$ decoupling capacitor on Pin 7; use shielded coaxial wire for input signals. |
| IC feels hot to touch without audio playing | Ultrasonic high-frequency oscillation (>100kHz). | Inspect pin decoupling; place $0.1,\mu\text{F}$ bypass cap directly across Pin 6 and Pin 4. |
| Weak bass response / thin sound | $C_{OUT}$ capacitance value is too low. | Increase output coupling capacitor on Pin 5 from $100,\mu\text{F}$ to $470,\mu\text{F}$. |
Frequently Asked Questions
Can the LM386 directly drive a 4-Ohm speaker?
Yes, the LM386 can drive a $4,\Omega$ speaker, but operating at lower load impedances increases power dissipation inside the IC. When using a $4,\Omega$ load, keep the supply voltage moderate (e.g., 6V to 9V for LM386N-1) to avoid triggering thermal overload limits.
Why is there a DC voltage present on Pin 5?
Pin 5 is internally biased to half of the supply voltage ($V_S / 2$) to allow symmetrical AC signal swinging. Connecting a speaker directly between Pin 5 and Ground without an electrolytic coupling capacitor will force DC current through the speaker coil, damaging the speaker and overheating the IC.
What is the maximum voltage I can apply to an LM386?
For standard versions (LM386N-1, LM386N-3, LM386M-1), the absolute maximum supply voltage is 12V DC. For high-voltage versions (LM386N-4), the maximum operational limit is 18V DC. Exceeding these limits can cause junction breakdown and permanent chip failure.
What is the difference between LM386 and LM386N?
The base part number is LM386. The suffix "N" indicates the physical package type—specifically a standard Plastic Dual In-line Package (PDIP-8). The sub-number (such as -1 or -4) defines the output power grade and voltage handling capability.
How do I reduce static noise when using maximum gain ($A_V = 200$)?
When Pins 1 and 8 are bridged for maximum gain, the amplifier picks up minute electromagnetic interference. To minimize static noise, use shielded audio wiring, shorten trace lengths, shield the circuit inside a metal enclosure grounded to Pin 4, and ensure Pin 7 has a $10,\mu\text{F}$ bypass capacitor installed.
Project Optimization Checklist
Before completing your final LM386 PCB layout or project assembly, verify these implementation steps to ensure high audio performance:
- Supply Rail Decoupling: Place a $0.1,\mu\text{F}$ ceramic capacitor immediately adjacent to Pin 6 and Pin 4, backed by a larger $100,\mu\text{F}$ reservoir capacitor.
- Grounding Topology: Keep input ground (Pin 2, Potentiometer ground) separated from high-current output ground (Speaker ground, Zobel ground) until they converge at a single star-ground point at Pin 4.
- Signal Cable Shielding: Use grounded coaxial audio cable for input connection runs longer than 5 centimeters to prevent RF interference pickup.
- Heat Dissipation: If running the LM386N-4 near its 1-Watt limit into low-impedance loads, ensure adequate copper ground plane pouring around Pin 4 to act as a PCB heat sink.