The LM386 is a popular low voltage audio power amplifier integrated circuit (IC) designed for battery-operated devices. It is capable of delivering up to 1 watt of power to a speaker, making it an ideal choice for portable audio devices, intercom systems, and small audio amplifiers. Its simplicity and ease of use have made it a favorite among hobbyists and professionals alike.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground reference for the IC and the common point for the input signal. |
2 | IN+ | Non-inverting input for the audio signal. |
3 | Vs | Supply voltage; connects to the positive terminal of the power source. |
4 | OUT | Output pin that connects to the speaker or output device. |
5 | Zobel Network | Connects to a Zobel network to improve high-frequency stability. |
6 | Bypass | Bypass pin for decoupling the internal nodes to reduce noise. |
7 | Gain | Sets the gain of the amplifier when connected with external components. |
8 | GND | Ground reference for the IC, often connected to pin 1. |
// Example code to drive an LM386 amplifier with an Arduino UNO
int speakerPin = 9; // Connect to the input of the LM386
void setup() {
pinMode(speakerPin, OUTPUT);
}
void loop() {
// Generate a 1kHz tone for 1 second
tone(speakerPin, 1000, 1000);
delay(1500); // Wait for 1.5 seconds
}
Q: Can I use the LM386 with a 3.3V supply? A: The LM386 is designed for a minimum of 4V. Operation below this may result in reduced performance or no function.
Q: How can I increase the gain? A: Connect a 10µF capacitor between pins 1 and 8 to increase the gain to 200.
Q: Is the LM386 mono or stereo? A: The LM386 is a mono amplifier. For stereo applications, use two LM386 ICs.
Remember to always consult the LM386 datasheet for the most accurate and detailed information.