Droid Build sound player

Hey all,

I have been struggling here with a LOLA droid build and wanted to get your input on how I should proceed with generating sound for it. Currently I am using 2 nanos, one to drive servos and the other to manage the sound. I have it working pretty well on the servo side, but I cannot seem to get the sound side of things. I originally got an SD card reader, tried some wav files, but they were very very quiet(had to hold it to my ear to hear it), they popped and crackled, and just over all did not sound good at all. I switched to using the tone() and the sound quality is great but very difficult to generate the tones i am looking to achieve.

hardware i am using is : SD card reader, LM386, and an 8ohm 2w speaker (i know these are not supposed to be hooked up to the board, but it is ok running through an amp, correct?)

testing code is basic and as follows

#include <Arduino.h>
#include <SD.h>
#include <TMRpcm.h>
#include<SPI.h>

#define speakerPin 9
#define SD_ChipSelectPin 4

TMRpcm sd;

bool soundPlaying = false;

void setup() {
 Serial.begin(38400);
 if (!SD.begin(SD_ChipSelectPin)) // returns 1 if the card is present
 {
  Serial.println("SD fail");
  return;
 }
 Serial.println("SD Success");
 sd.setVolume(6);

}

void loop() {
  
if(!soundPlaying){
  soundPlaying = true;
  sd.play("22Test.WAV");
  delay(2000);
  soundPlaying = false;
}

}

I am looking to switch to a DFP player as i cant seem to figure this out, and seems i am not the only one with this problem. My questions for you are:

  1. Do you see something I am missing?
    and
  2. Will the DFP be louder and more clear sound?

before i go throwing more money at this project i want to make sure i am not missing something and that the DFP will help.

Hi,

From my short experience, the DF player would be better, it has its own amplifier with direct output to a speaker.
I used one in a Halloween prop, and its quality and volume were very good.

DFPlayer - A Mini MP3 Player
SKU: DFR0299 Brand: DFRobot

Sing for the moment! The DFPlayer Mini is a small and low cost MP3 module with an simplified output directly to the speaker.
The module can be used as a stand alone module with attached battery, speaker and push buttons or used in combination with an Arduino UNO or any other with RX/TX capabilities.

Tom.. :smiley: :+1: :coffee: :australia:

1 Like

Thank you Tom! just wanted to make sure i wasnt going to buy something that was gonna give me the same issues i am having now

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.