Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use LM386: Examples, Pinouts, and Specs

Image of LM386
Cirkit Designer LogoDesign with LM386 in Cirkit Designer

Introduction

The LM386 is a low-voltage audio power amplifier designed for use in low-power applications. It is capable of driving small speakers and headphones, making it ideal for portable and battery-powered devices. The LM386 is widely used in audio amplification circuits due to its simplicity, low power consumption, and adjustable gain, which ranges from 20 to 200.

Explore Projects Built with LM386

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Solar-Powered Battery Charging and Monitoring System with TP4056 and 7-Segment Voltmeter
Image of CKT: A project utilizing LM386 in a practical application
This circuit is a solar-powered battery charging and monitoring system. It uses a TP4056 module to charge a Li-ion 18650 battery from solar cells and a DC generator, with multiple LEDs and a voltmeter to indicate the charging status and battery voltage. The circuit also includes transistors and resistors to control the LEDs and a bridge rectifier for AC to DC conversion.
Cirkit Designer LogoOpen Project in Cirkit Designer
Solar-Powered LED Light with Battery Charging and Light Sensing
Image of ebt: A project utilizing LM386 in a practical application
This circuit is a solar-powered battery charging and LED lighting system. The solar cell charges a 18650 Li-ion battery through a TP4056 charging module, which also powers a 7805 voltage regulator to provide a stable 5V output. A photocell and MOSFET control the power to a high-power LED, allowing it to turn on or off based on ambient light conditions.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Laser Emitter with Solar Charging and LED Indicator
Image of rx: A project utilizing LM386 in a practical application
This circuit is a solar-powered laser emitter system with an LED indicator. The solar panel charges a 18650 battery via a TP4056 charging module, and a push button controls the activation of the laser emitter and the LED through a MOSFET switch.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Solar-Powered Current Monitoring System with OLED Display
Image of Solar Tracker and Monitoring System: A project utilizing LM386 in a practical application
This circuit features an ESP32 microcontroller interfaced with a 0.96" OLED display, multiple LDR sensors with voltage dividers, an ACS712 current sensor, and two servomotors. The ESP32 reads analog values from the LDRs and the current sensor, and controls the servomotors. The LM2596 module steps down voltage for the circuit, which is powered by a combination of a solar panel and a 12V battery, with the current sensor monitoring the load current.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with LM386

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of CKT: A project utilizing LM386 in a practical application
Solar-Powered Battery Charging and Monitoring System with TP4056 and 7-Segment Voltmeter
This circuit is a solar-powered battery charging and monitoring system. It uses a TP4056 module to charge a Li-ion 18650 battery from solar cells and a DC generator, with multiple LEDs and a voltmeter to indicate the charging status and battery voltage. The circuit also includes transistors and resistors to control the LEDs and a bridge rectifier for AC to DC conversion.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ebt: A project utilizing LM386 in a practical application
Solar-Powered LED Light with Battery Charging and Light Sensing
This circuit is a solar-powered battery charging and LED lighting system. The solar cell charges a 18650 Li-ion battery through a TP4056 charging module, which also powers a 7805 voltage regulator to provide a stable 5V output. A photocell and MOSFET control the power to a high-power LED, allowing it to turn on or off based on ambient light conditions.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of rx: A project utilizing LM386 in a practical application
Battery-Powered Laser Emitter with Solar Charging and LED Indicator
This circuit is a solar-powered laser emitter system with an LED indicator. The solar panel charges a 18650 battery via a TP4056 charging module, and a push button controls the activation of the laser emitter and the LED through a MOSFET switch.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Solar Tracker and Monitoring System: A project utilizing LM386 in a practical application
ESP32-Based Solar-Powered Current Monitoring System with OLED Display
This circuit features an ESP32 microcontroller interfaced with a 0.96" OLED display, multiple LDR sensors with voltage dividers, an ACS712 current sensor, and two servomotors. The ESP32 reads analog values from the LDRs and the current sensor, and controls the servomotors. The LM2596 module steps down voltage for the circuit, which is powered by a combination of a solar panel and a 12V battery, with the current sensor monitoring the load current.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Portable audio devices
  • Intercom systems
  • AM/FM radio amplifiers
  • DIY audio projects
  • Signal amplification for small speakers or headphones

Technical Specifications

The LM386 is a versatile and efficient audio amplifier. Below are its key technical specifications:

Parameter Value
Supply Voltage (Vcc) 4V to 12V
Output Power 0.325W at 8Ω (Vcc = 6V)
Input Resistance 50 kΩ
Voltage Gain 20 (default), adjustable up to 200
Quiescent Current 4 mA (typical)
Output Load Resistance 4Ω to 32Ω
Frequency Response 300 Hz to 300 kHz
Total Harmonic Distortion Less than 0.2%

Pin Configuration and Descriptions

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) Ground connection.
5 Output Amplified audio output.
6 Vcc Positive power supply (4V to 12V).
7 Bypass Optional pin for bypassing the internal circuitry to reduce noise.
8 Gain Connect to Pin 1 via a capacitor to increase gain (default gain is 20).

Usage Instructions

The LM386 is straightforward to use in audio amplification circuits. Below are the steps and considerations for using the LM386:

Basic Circuit Configuration

  1. Power Supply: Connect Pin 6 (Vcc) to a power source (4V to 12V) and Pin 4 (GND) to ground.
  2. Input Signal: Feed the audio signal to Pin 3 (Non-Inverting Input). Pin 2 (Inverting Input) is typically connected to ground.
  3. Output: Connect Pin 5 to the speaker or headphone. Use a coupling capacitor (e.g., 220 µF) to block DC components.
  4. Gain Adjustment: To increase the gain, connect a capacitor (e.g., 10 µF) between Pins 1 and 8. For the default gain of 20, leave these pins unconnected.
  5. Bypass Pin: Optionally, connect a capacitor (e.g., 10 µF) to Pin 7 to reduce noise.

Example Circuit

Below is a simple circuit diagram for using the LM386 to drive an 8Ω speaker:

   +Vcc (4V-12V)
       |
       R (10kΩ)
       |
       +--- Pin 6 (Vcc)
       |
       C (10µF)
       |
Input --- Pin 3 (Non-Inverting Input)
       |
       GND --- Pin 2 (Inverting Input)
       |
       +--- Pin 4 (GND)
       |
       C (220µF)
       |
Output --- Pin 5 (Output) --- Speaker (8Ω)

Arduino Example

The LM386 can be used with an Arduino to amplify audio signals. Below is an example code snippet to generate a simple tone:

// Arduino example to generate a tone for the LM386 amplifier
// Connect the LM386 input (Pin 3) to Arduino Pin 9 (PWM output)

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 square wave
  tone(tonePin, 1000); // Play a 1 kHz tone
  delay(1000);         // Play for 1 second
  noTone(tonePin);     // Stop the tone
  delay(1000);         // Wait for 1 second
}

Important Considerations

  • Use decoupling capacitors (e.g., 0.1 µF) near the power supply pins to reduce noise.
  • Ensure the speaker impedance matches the LM386's output load resistance (4Ω to 32Ω).
  • Avoid exceeding the maximum supply voltage (12V) to prevent damage to the IC.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output Sound:

    • Check the power supply connections (Pin 6 and Pin 4).
    • Verify the input signal is properly connected to Pin 3.
    • Ensure the speaker or headphone is connected to Pin 5 with a coupling capacitor.
  2. Distorted Output:

    • Reduce the input signal amplitude to avoid overdriving the amplifier.
    • Check the gain configuration (Pins 1 and 8) and ensure the capacitor value is appropriate.
    • Verify the speaker impedance is within the recommended range (4Ω to 32Ω).
  3. High Noise or Humming:

    • Add a capacitor (e.g., 10 µF) to the Bypass pin (Pin 7) to reduce noise.
    • Use shielded cables for the input signal to minimize interference.
    • Place decoupling capacitors near the power supply pins.

FAQs

Q: Can the LM386 drive a 4Ω speaker?
A: Yes, the LM386 can drive speakers with an impedance as low as 4Ω. However, ensure the power supply voltage is sufficient to deliver the required output power.

Q: How do I increase the gain of the LM386?
A: To increase the gain, connect a capacitor (e.g., 10 µF) between Pins 1 and 8. The gain can be adjusted up to 200.

Q: What is the maximum input voltage for the LM386?
A: The maximum input voltage depends on the supply voltage and gain configuration. Ensure the input signal does not exceed the amplifier's input range to avoid distortion.

Q: Can I use the LM386 for stereo audio?
A: The LM386 is a single-channel amplifier. For stereo audio, you will need two LM386 ICs, one for each channel.