

The LM386 is a low-voltage audio power amplifier designed for applications requiring minimal power consumption. It is capable of driving small speakers and headphones, making it ideal for portable, battery-powered devices. The LM386 can amplify audio signals with a default gain of 20, which can be increased up to 200 using external components. Its compact design and ease of use make it a popular choice for audio amplification in hobbyist and professional projects alike.








The LM386 is an 8-pin IC. Below is the pinout and description:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | Gain | Connect to Pin 8 via a capacitor to increase gain (default gain is 20). |
| 2 | Inverting Input | Negative input for the audio signal. |
| 3 | Non-Inverting Input | Positive input for the audio signal. |
| 4 | Ground (GND) | Connect to the circuit ground. |
| 5 | Output | Amplified audio signal output. |
| 6 | Vcc | Positive power supply (4V to 12V). |
| 7 | Bypass | Connect a capacitor to ground to reduce noise and improve stability. |
| 8 | Gain | Connect to Pin 1 via a capacitor to increase gain (default gain is 20). |
Below is a basic example of an LM386 circuit for driving an 8Ω speaker:
+Vcc (4V-12V)
|
R (10kΩ)
|
+--- Pin 6 (Vcc)
|
---
--- C1 (10 µF)
|
+--- Pin 7 (Bypass)
|
---
--- GND
|
Audio Input
+--- Pin 3 (Non-Inverting Input)
|
R (10kΩ)
|
+--- Pin 2 (Inverting Input)
|
GND
|
+--- Pin 4 (GND)
|
---
--- C2 (220 µF)
|
Speaker
+--- Pin 5 (Output)
The LM386 can be used with an Arduino to amplify audio signals. Below is an example of generating a simple tone using the Arduino and driving it through the LM386:
/*
Example: Generate a tone using Arduino and amplify it with LM386.
Connect the LM386's input (Pin 3) to Arduino's PWM output (Pin 9).
Ensure proper connections for power, ground, and output as per the circuit.
*/
const int tonePin = 9; // PWM pin connected to LM386 input
void setup() {
pinMode(tonePin, OUTPUT); // Set the pin as output
}
void loop() {
// Generate a 1 kHz tone for 1 second
tone(tonePin, 1000, 1000);
delay(2000); // Wait for 2 seconds before repeating
}
No Output Signal:
Distorted Audio:
Excessive Noise:
Overheating:
Q1: Can I use the LM386 to drive a 4Ω speaker?
A1: Yes, the LM386 can drive a 4Ω speaker, but ensure the supply voltage does not exceed 9V to avoid overheating.
Q2: How do I increase the gain of the LM386?
A2: Connect a capacitor (e.g., 10 µF) between Pins 1 and 8 to increase the gain up to 200.
Q3: What is the purpose of the bypass capacitor on Pin 7?
A3: The bypass capacitor reduces noise and improves the stability of the amplifier.
Q4: Can I use the LM386 with a 3.3V power supply?
A4: No, the minimum operating voltage for the LM386 is 4V. Use a power supply within the 4V to 12V range.