Wish List 0

Lm386 Audio Amplifier Module

Rs. 34.00 Rs. 41.00

  • Brand: https://www.ti.com/product/LM386
  • Product Code: SEN-AUDIO-AMP
  • SKU -
  • Availability: In Stock
  • For Bulk Order 9962060070
    Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
-If your project needs an audio amplifier, this module should be useful.
-It is a miniature module for amateur projects.
-Simply connect a 4-8 Ohm speaker and amplify your sound. It can be used with the FM receiver kit or WTV020SD-16P music module.
-You can definitely use this module for other musical projects also.
-The chip pin leads can directly input audio signal.

Features:
-Onboard LM386 Chip.
-200 multiplier benefits circuit design.
-On-board speaker wiring Block.
-On-board 10K variable resistor, you can adjust the volume of the enlarged.
-Onboard power indicator.

SPECIFICATIONS:

-Chip                                  LM386
-Operating Voltage(V)     4 – 12

OVERVIEW:

-Onboard LM386 Chip.

-200 multiplier benefits circuit design.

-On-board speaker wiring Block.

-On-board 10K variable resistor, you can adjust the volume of the enlarged.

-Onboard power indicator.


PACKAGE INCLUDES:

1 PCS x Lm386 Audio Amplifier Module


/*SOURCE CODE TAKEN FROM BELOW LINK

https://www.arduino.cc/en/Tutorial/SimpleAudioPlayer


  Simple Audio Player


 Demonstrates the use of the Audio library for the Arduino Due


 Hardware required :


 * Arduino shield with a SD card on CS4


 * A sound file named "test.wav" in the root directory of the SD card


 * An audio amplifier to connect to the DAC0 and ground


 * A speaker to connect to the audio amplifier


 Original by Massimo Banzi September 20, 2012


 Modified by Scott Fitzgerald October 19, 2012


 Modified by Arturo Guadalupi December 18, 2015


 This example code is in the public domain


 http://www.arduino.cc/en/Tutorial/SimpleAudioPlayer


*/


#include <SD.h>

#include <SPI.h>

#include <Audio.h>


void setup() {


  // debug output at 9600 baud


  Serial.begin(9600);


  // setup SD-card


  Serial.print("Initializing SD card...");


  if (!SD.begin(4)) {


    Serial.println(" failed!");


    while(true);


  }


  Serial.println(" done.");


  // hi-speed SPI transfers


  // 44100kHz stereo => 88200 sample rate


  // 100 mSec of prebuffering.


  Audio.begin(88200, 100);

}


void loop() {


  int count = 0;


  // open wave file from sdcard


  File myFile = SD.open("test.wav");


  if (!myFile) {


    // if the file didn't open, print an error and stop


    Serial.println("error opening test.wav");


    while (true);


  }


  const int S = 1024; // Number of samples to read in block


  short buffer[S];


  Serial.print("Playing");


  // until the file is not finished


  while (myFile.available()) {


    // read from the file into buffer


    myFile.read(buffer, sizeof(buffer));


    // Prepare samples


    int volume = 1024;


    Audio.prepare(buffer, S, volume);


    // Feed samples to audio


    Audio.write(buffer, S);


    // Every 100 block print a '.'


    count++;


    if (count == 100) {


      Serial.print(".");


      count = 0;


    }


  }


  myFile.close();


  Serial.println("End of file. Thank you for listening!");


  while (true) ;

}

15 days

Write a review

Please login or register to review