Phone

    00852-6915 1330

DIY Simple Audio Player with Amplifier LM386

  • Contents

ⅠIntroduction

This project mainly introduces how to DIY a Simple Audio Player with  Amplifier LM386 . But before this project, it is very essential to know some basics of LM386. Therefore, the first of this article is about LM386 audio amplifiers and the second part we will have a look at the practical appliance of Simple Audio Player with Amplifier LM386.

Catalog

ⅠIntroduction

Ⅱ Amplifier LM386 Related Video:

Ⅲ LM386 Basics

3.1 LM386 Datasheet

3.2 LM386 Pinout

3.3 LM386 Features

Ⅳ  Project Introduction

4.1 Hardware Required

4.2 Getting Ready with Your WAV Audio Files:

4.3 Circuit

4.4 Code

4.5 Working of this Arduino Music Player:

Ⅴ FAQ

How to make an LM386 audio amplifier circuit

Amplifier LM386 Video Description: In this Video, We will explore how to use the popular LM386 class AB audio amplifier IC to build a simple mono 1 watt audio amplifier.
 

Ⅲ LM386 Basics

Despite the fact that LM386 audio amplifiers are quite old. They do, however, have a lot of useful information. Assume your audio player has poor sound quality. You want to boost the volume. They are a good option. Because of the low voltage supply and the fact that it works well with a battery.

 

3.1 LM386 Datasheet

You completed an audio circuit  . However, the sound is too faint. Many people use the LM386 to boost the sound to a speaker. The LM386 is a low-power audio amplifier. Also, you should be able to work with a battery,  It has a similar shape to  IC-741  and DIP-8. So, small and simple. Even if it's small, it makes a big sound.

But...better. it's If you have previously read the LM386 Datasheet.

 

3.2 LM386 Pinout

Figure1:pinout

In DIP-8, we frequently use the LM386. There are only a few pin connections. Other packets are also the same. For example, SOP-8, TSSOP-8, and so on.

 

3.3 LM386 Features

 

Ⅳ  Project Introduction

Including sounds or music in our project will always make it look and sound much more appealing. If you're working with an  Arduino  and have a lot of free spins, you can easily add sound effects to your project by purchasing an extra SD card module and a standard speaker. In this article, I'll show you how to play music and add sound effects with your  Arduino board, as well as introduce the IC LM386 Amplifier  , which we'll use in this process.

We will play the.wav music files stored on an SD card in this project. The Arduino will be programmed to read these.wav files and play the audio on a speak through an LM386 Audio amplifier.

 

Figure2: Project

 

 

4.1 Hardware Required

  • Arduino Due Board
  • 8-ohm speaker or headphones
  • Arduino shield with an SD card with cs CS 4 (like the Ethernet shield)
  • Components to build an external audio amplifier
  • LM386 (low power audio amplifier)
  • 10 kohm potentiometer
  • 10 ohm resistor
  • 2 x 10 µF capacitor
  • 0.05 µF (or 0.1 µF) capacitor
  • 250 µF capacitor

 

4.2 Getting Ready with Your WAV Audio Files:

The audio file to be stored on the SD card must be in.wav format and have 44100 Hz, 16-bit stereo quality. We need audio files in.wav format to play sounds from an SD card using Arduino because the Arduino Board can only play audio files in a specific format, which is wav format. There are many mp3 shields available for use with Arduino to create an Arduino mp3 player. Alternatively, to play mp3 files in Arduino, there are websites that will convert any audio file on your computer into that specific WAV file.

 

4.3 Circuit

The shield is placed on top of the Due, and a micro-SD card is inserted into the slot. The card's root directory contains a.wav file called "test.wav." For a quick test, connect a pair of headphones to the ground and DAC0 while keeping the polarity in mind.

To add a speaker to the board, connect an amplification circuit between the DAC0 pin and the speaker. The amplification circuit will boost the speaker's volume,  There are numerous audio amplifiers available, with the LM386 being one of the most common. The following scheme demonstrates how to construct the circuit using the LM386 and a variety of components. You can power the LM386 by connecting the Vs pin to various voltage sources, such as the +5 V on the Arduino Due's 5V pin or an external 9V  battery,  The capacitor is connected to pins 1 and 8 of the LM386 provides the amplifier's gain. The gain is set to 200 with the 10 F capacitor, and 50 without the capacitor. The volume of the amplifier can be adjusted using the potentiometer.

Caution: Do not connect the speaker directly to the Arduino Due's pins.

 

Figure3 : Circuit

 

Figure4: LM386 mounting on breadboard

 

4.4 Code

 

4.5 Working of this Arduino Music Player:

Simply press the button connected to pin 2 after programming your Arduino, and your Arduino will play the first song (saved as 1.wav) for you. You can now press the button again to change your track to the next song, 2.wav. Similarly, you can listen to all four songs.

You can also play/pause the song by pressing the pin 3 button. Press it once to pause the song and once more to resume it from where it left off. Watch the video below to see the entire process in action (or maybe to relax with some songs).

I hope you had a good time with the project. It is now up to your imagination to incorporate them into your projects. You can create a speaking clock, voice assistant, talking robot, voice alert security system, and many other things.

 

Ⅴ FAQ

1. How many watts is LM386?

700mW, mono, 5- to 18-V, analog input Class-AB audio amplifier.

2. How do you calculate LM386 gain?

Voltage Gain Analysis:

Without any external components, it has a gain of Gv = 2x15K/(150+1350) = 20 (26 dB).

With a capacitor (or shortcutting) between pins 1 and 8 , it has a gain of Gv = 2x15K/150 =200 (46dB).

3. Is LM386 any good?

The LM386 is a well-designed, basic workhorse that does a decent job when its hooves are kept clean and it's well-fed. Aside from having a slow op-amp stage by today's standards, it has decent performance. It can also sound horrible if you neglect it.

4. What is an audio amplifier circuit?

The circuit of the audio amplifier consists of a transistor a device to apply the input signals and a speaker at the output. The transistors are connected based on the necessity. The important factors that need to be considered while designing a audio amplifier is gain,noise, frequency response and distortion.

5. Which amplifier can be used for audio amplifier?

An audio power amplifier (or power amp) is an electronic amplifier that amplifies low-power electronic audio signals such as the signal from radio receiver or electric guitar pickup to a level that is high enough for driving loudspeakers or headphones.

6. What is the need of power amplifier?

The function of a power amplifier is to raise the power level of input signal. It is required to deliver a large amount of power and has to handle large current. The characteristics of a power amplifier are as follows − The base of transistor is made thicken to handle large currents.

Kynix

Kynix was founded in 2008, specializing in the electronic components distribution business. We adhere to honesty and ethics as our business philosophy and have gradually established an excellent reputation and credibility in our international business. With the accurate quotation, excellent credit, reasonable price, reliable quality, fast delivery, and authentic service, we have won the praise of the majority of customers.

Join our mailing list!

Be the first to know about new products, special offers, and more.

Leave a Reply

We'd love to hear from you! Feel free to share your thoughts and comments below. Rest assured, your email address will remain private.

Name *
Email *
Captcha *
Rating:

Kynix

  • How to purchase

  • Order
  • Search & Inquiry
  • Shipping & Tracking
  • Payment Methods
  • Contact Us

  • Tel: 00852-6915 1330
  • Email: info@kynix.com
  • Follow Us

authentication

Kynix

© 2008-2026 kynix.com all rights reserved.