LM386 Mini Audio Amplifier with Volume Control & 9V Battery

Build a pocket-size LM386 audio amplifier that drives an 8 Ω speaker from a phone or MP3 player, with a volume knob and a 9V battery. No code needed.

  • DifficultyEasy
  • Build time1–2 hours
  • Board / MCULM386 audio amplifier IC (no microcontroller)
  • Parts14 items
  • CodeNot needed

Need it ready-made? Buy Ready Project

This LM386 audio amplifier is a small, battery-powered speaker amp you can build in an evening. Plug in a phone, MP3 player, radio module or Arduino tone output, turn the volume knob, and an 8 Ω speaker plays it loud enough to fill a small room.

The LM386 is a fixed-function audio power amplifier chip, so there is nothing to program. With only a handful of capacitors it gives a gain of 20 or 200, runs from 5V to 12V and needs very little current when it is quiet, which makes it a great first audio project and a handy bench amplifier for testing other circuits.

LM386 mini audio amplifier on a breadboard with volume potentiometer, capacitors, 3.5 mm audio jack, 9V battery, power switch and 8 ohm speaker

How It Works

  • Mixing the input: phones send stereo sound. Two 10 kΩ resistors join the left and right channels into one mono signal so neither channel is shorted to the other.
  • Volume control: the mixed signal goes across a 10 kΩ log potentiometer. Its wiper feeds a smaller or larger part of the signal to the LM386 non-inverting input (pin 3). The inverting input (pin 2) is tied to ground.
  • Gain: inside the chip the gain is set to 20 by default. A 10 µF capacitor between pins 1 and 8 bypasses an internal resistor and raises the gain to 200. Put a 1.2 kΩ resistor in series with that capacitor for a middle gain of about 50.
  • Bypass capacitor: the 10 µF capacitor on pin 7 filters ripple on the input stage bias, which cuts hum and motorboating when the battery runs low.
  • Output stage: pin 5 sits at about half the supply voltage, so the 220 µF capacitor blocks that DC and passes only the audio to the speaker. The 10 Ω and 47 nF Zobel network across the output stops the amp from oscillating at high frequencies.
  • Power: with a 9V battery and an LM386N-1 you get up to about half a watt into 8 Ω. The 100 µF and 100 nF capacitors next to pin 6 supply short current peaks on loud beats.

Components Required

  • LM386N-1 audio power amplifier IC (8-pin DIP) – 1
  • 8-pin DIP IC socket – 1
  • 10 kΩ logarithmic (audio taper) potentiometer with knob – 1
  • 10 kΩ resistors (to mix the left and right channels) – 2
  • 10 µF 16V electrolytic capacitor (gain, pins 1 and 8) – 1
  • 10 µF 16V electrolytic capacitor (bypass, pin 7) – 1
  • 220 µF 16V electrolytic capacitor (output coupling) – 1
  • 100 µF 16V electrolytic capacitor and 100 nF ceramic capacitor (supply decoupling) – 1 each
  • 47 nF ceramic capacitor and 10 Ω resistor (Zobel network) – 1 each
  • 8 Ω 0.5 W speaker (57 mm or 66 mm) – 1
  • 3.5 mm stereo audio jack or a 3.5 mm male-to-wire cable – 1
  • 9V battery with snap connector – 1
  • SPST slide or toggle switch – 1
  • Breadboard or small perfboard and jumper wires – 1 set

Wiring Table

FromToNotes
9V battery +Switch, then LM386 pin 6 (Vs)Works from 5V to 12V
9V battery –GND railAll grounds meet here
LM386 pin 4 (GND)GND railKeep this wire short
100 µF (+) and 100 nFPin 6 to GNDPlace right next to the IC
Jack Left (tip)10 kΩ resistor to pot top (pin 3 of the pot)Mixes left channel
Jack Right (ring)10 kΩ resistor to pot topMixes right channel
Jack sleeveGND railAudio ground
Pot bottom (pin 1 of the pot)GND railTurn the knob the other way if volume works backwards, or swap top and bottom
Pot wiper (middle pin)LM386 pin 3 (+IN)Signal input
LM386 pin 2 (-IN)GND railUnused inverting input
10 µF (+)Pin 1 (Gain)Capacitor (-) to pin 8. Leave out for gain 20
10 µF (+)Pin 7 (Bypass)Capacitor (-) to GND
LM386 pin 5 (OUT)220 µF (+)220 µF (-) goes to speaker +
Speaker –GND rail8 Ω speaker, 0.5 W or more
10 Ω + 47 nF in seriesPin 5 to GNDZobel network for stability

Pin 1 of the LM386 is next to the notch or dot on the top of the chip. Pins count down the left side (1 to 4) and back up the right side (5 to 8).

Connection Diagram

The illustration above shows a typical breadboard layout and is a guide only. Follow the pin-accurate drawing below, which matches the wiring table exactly.

LM386 Mini Audio Amplifier – Pin-Accurate Wiring Power (9V) Battery + to switch, switch to pin 6 (Vs) Battery – to GND rail, pin 4 to GND 100 µF + 100 nF from pin 6 to GND, close to the IC Audio input Jack L to 10 kΩ, jack R to 10 kΩ, both to pot top Jack sleeve and pot bottom to GND Pot wiper to pin 3 (+IN), pin 2 (-IN) to GND Gain + bypass 10 µF from pin 1 (+) to pin 8 (-): gain 200 Leave pins 1 and 8 open for gain 20 10 µF from pin 7 (+) to GND (-) Output Pin 5 to 220 µF (+), 220 µF (-) to speaker + Speaker – to GND 10 Ω + 47 nF in series from pin 5 to GND (Zobel) LM386 pins: 1 Gain, 2 -IN, 3 +IN, 4 GND, 5 OUT, 6 Vs, 7 Bypass, 8 Gain (notch/dot marks pin 1)
Pin-accurate connection diagram for the LM386 mini audio amplifier.

Code

No code is needed. The LM386 is a fixed-function analog amplifier IC, so the circuit works as soon as it is wired and the switch is turned on.

Setting Up and Testing

  • Build the circuit with the battery unplugged and the IC out of its socket. Check every polarised capacitor: the stripe on the can marks the negative leg.
  • Insert the LM386 with its notch facing the correct way, set the volume knob to minimum and connect the battery.
  • With a multimeter, check about 9V on pin 6 and about 4.5V on pin 5. If pin 5 is far from half the supply, recheck pins 2, 3 and 4.
  • Plug in your phone, start some music at half volume on the phone, and slowly turn the knob up.
  • For the cleanest sound keep the phone volume at about 70 percent and use the knob for the rest. If it still distorts, remove the 10 µF gain capacitor to drop to gain 20.

Troubleshooting

ProblemFix
No sound at allCheck that the switch is on, pin 6 has 9V and pin 4 is grounded. Make sure the 220 µF capacitor is between pin 5 and the speaker, with (+) on pin 5.
Loud hum or buzzThe input ground is floating. Connect the jack sleeve and pot bottom to the same ground as pin 4, and keep the input wires short or use shielded cable.
Motorboating (put-put sound) or squealAdd or check the 100 µF and 100 nF capacitors at pin 6, the 10 µF on pin 7 and the 10 Ω + 47 nF Zobel network. A weak battery also causes this.
Sound is distorted even at low volumeThe gain is too high for your source. Remove the gain capacitor on pins 1 and 8, or add a 1.2 kΩ resistor in series with it.
Volume knob works backwardsSwap the wires on the two outer pins of the potentiometer.
IC gets hotThe speaker is less than 4 Ω or the output is shorted. Use an 8 Ω speaker and check the output wiring.

Ideas to Extend

  • Build two copies for a stereo amplifier with a dual-gang 10 kΩ pot.
  • Add a bass boost by connecting 10 kΩ in series with 33 nF between pins 1 and 5.
  • Fit the board and speaker inside a small wooden or 3D-printed box with a 9V battery holder.

1 thought on “LM386 Mini Audio Amplifier with Volume Control & 9V Battery”

Leave a Comment