Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Music Maker MP3 Shield not working properly
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Music Maker MP3 Shield not working properly

by adafruit_support_mike on Tue May 05, 2015 10:13 pm

Post a photo of your hardware showing the solder joints and any other connections and we'll take a look.

adafruit_support_mike
 
Posts: 61221
Joined: Thu Feb 11, 2010 2:51 pm

Re: Music Maker MP3 Shield not working properly

by cdtaylor51 on Thu May 07, 2015 2:38 am

Hello, I have a couple of the Music Maker MP3 Shields that I am using with Arduino MEGA 2560 R3s as part of talking clocks. They seem to work okay but the speed of the play back is maybe double what it should be and spoken words sound like chipmunks. Is there a way to slow down the play back? I saw that the VS1053 has a "playSpeed" function and a "FastPlay" function too but I cannot find any references to that function in any of the libraries that I have downloaded. I am rather new to the Arduino arena and would appreciate a pointer or two about how to get the shield to play at a normal rate. Any help would be very much appreciated. Thanks in advance.

Not sure what was happening but now everything is working correctly. I was reading filenames from PROGMEM, PER the example code I was using. Now I am no longer doing that and things are now working much better. More volume, sounds are at the correct speed. Thanks anyway.
Last edited by cdtaylor51 on Sat May 09, 2015 2:54 am, edited 1 time in total.

cdtaylor51
 
Posts: 2
Joined: Fri Dec 26, 2014 12:37 am

Re: Music Maker MP3 Shield not working properly

by HansvB on Fri May 08, 2015 7:56 pm

I have a similar problem. I have checked my soldering job & have used a ohm meter to make sure that all of the pins are getting a connection. When I upload and run the program I am getting the message:
Adafruit VS1053 Simple Test
Couldn't find VS1053, do you have the right pins defined?
Attachments
amm102.jpg
photo 1
amm102.jpg (325.23 KiB) Viewed 918 times
amm101.jpg
photo 2
amm101.jpg (305.26 KiB) Viewed 918 times
amm100.jpg
photo 3
amm100.jpg (344.61 KiB) Viewed 918 times

HansvB
 
Posts: 8
Joined: Fri May 08, 2015 7:31 pm

Re: Music Maker MP3 Shield not working properly

by adafruit_support_mike on Sat May 09, 2015 3:26 am

How are the files you're playing encoded?

adafruit_support_mike
 
Posts: 61221
Joined: Thu Feb 11, 2010 2:51 pm

Re: Music Maker MP3 Shield not working properly

by HansvB on Sat May 09, 2015 6:05 am

.mp3 track001.mp3 and track002.mp3 (8.3)
I can play the tracks from the SD card on my computer.

But I think that is not the problem. The Arduino does not see the shield.

HansvB
 
Posts: 8
Joined: Fri May 08, 2015 7:31 pm

Re: Music Maker MP3 Shield not working properly

by adafruit_support_mike on Sat May 09, 2015 9:22 pm

Try loading one of the example sketches from the SD library. Let's see if the Arduino can find the SD card.

BTW - what kind of Arduino are you using?

adafruit_support_mike
 
Posts: 61221
Joined: Thu Feb 11, 2010 2:51 pm

Re: Music Maker MP3 Shield not working properly

by cdtaylor51 on Sat May 09, 2015 9:59 pm

I am now using mp3 files that made with Audacity. Everything seems to be working now. Must have had some sort of different encoding. Thanks.

cdtaylor51
 
Posts: 2
Joined: Fri Dec 26, 2014 12:37 am

Re: Music Maker MP3 Shield not working properly

by HansvB on Sun May 10, 2015 3:45 am

I'am using a Arduino UNO. And the player_simple schets example for the Adafruit VS1053 Codec Breakout.

Code: Select all | TOGGLE FULL SIZE
// include SPI, MP3 and SD libraries
#include <SPI.h>
#include <Adafruit_VS1053.h>
#include <SD.h>

// define the pins used
#define CLK 13       // SPI Clock, shared with SD card
#define MISO 12      // Input data, from VS1053/SD card
#define MOSI 11      // Output data, to VS1053/SD card
// Connect CLK, MISO and MOSI to hardware SPI pins.
// See http://arduino.cc/en/Reference/SPI "Connections"

I've removed the clashes before the define statements. And with the clashes. It makes no difference.

Is it possible that you send me two samples that will work with the MM?

HansvB
 
Posts: 8
Joined: Fri May 08, 2015 7:31 pm

Re: Music Maker MP3 Shield not working properly

by adafruit_support_mike on Sun May 10, 2015 10:21 pm

All the examples included with the VS1053 library have been tested on the hardware and are known to work.

As I mentioned before, try ditching the VS1053 code completely for now. Load one of the SD library sketches and see if the Arduino can find the card. That will tell us whether the basic SPI bus is working.

adafruit_support_mike
 
Posts: 61221
Joined: Thu Feb 11, 2010 2:51 pm

Re: Music Maker MP3 Shield not working properly

by HansvB on Mon May 18, 2015 4:37 pm

I've used the following sketch:

Code: Select all | TOGGLE FULL SIZE
#include <SPI.h>
#include <SD.h>

File myFile;

void setup()
{
   Serial.begin(9600);
   Serial.print("Initializing SD card...");
   // On the Ethernet Shield, CS is pin 4. It's set as an output by default.
   // Note that even if it's not used as the CS pin, the hardware SS pin
   // (10 on most Arduino boards, 53 on the Mega) must be left as an output
   // or the SD library functions will not work.
   pinMode(10, OUTPUT);
   
   if (!SD.begin(10)) {
      Serial.println("initialization failed!");
      return;
   }
   Serial.println("initialization done.");
   
   // open the file. note that only one file can be open at a time,
   // so you have to close this one before opening another.
   myFile = SD.open("test.txt", FILE_WRITE);
   
   // if the file opened okay, write to it:
   if (myFile) {
      Serial.print("Writing to test.txt...");
      myFile.println("testing 1, 2, 3.");
      // close the file:
      myFile.close();
      Serial.println("done.");
      } else {
      // if the file didn't open, print an error:
      Serial.println("error opening test.txt");
   }
}

void loop()
{
   // nothing happens after setup
}


And received the following message:

Opening port
Port open
Initializing SD card...initialization failed!

HansvB
 
Posts: 8
Joined: Fri May 08, 2015 7:31 pm

Re: Music Maker MP3 Shield not working properly

by adafruit_support_mike on Thu May 21, 2015 3:04 am

You need to use pin #4 for the SD card's CS signal rather than pin #10.

adafruit_support_mike
 
Posts: 61221
Joined: Thu Feb 11, 2010 2:51 pm

Re: Music Maker MP3 Shield not working properly

by HansvB on Sat May 23, 2015 3:06 pm

Yes, it's working on pin #4, Thanks :)

Output:

Opening port
Port open
Initializing SD card...initialization done.
Writing to test.txt...done.


What is the next step?

HansvB
 
Posts: 8
Joined: Fri May 08, 2015 7:31 pm

Re: Music Maker MP3 Shield not working properly

by HansvB on Sat May 23, 2015 5:34 pm

Sorry, I have found the problem.
I did not read the manual correctly. And the change of the code overlooked.
Code: Select all | TOGGLE FULL SIZE
 Adafruit_VS1053_FilePlayer musicPlayer =
// create breakout-example object!
//Adafruit_VS1053_FilePlayer(BREAKOUT_RESET, BREAKOUT_CS, BREAKOUT_DCS, DREQ, CARDCS);
// create shield-example object!
Adafruit_VS1053_FilePlayer(SHIELD_RESET, SHIELD_CS, SHIELD_DCS, DREQ, CARDCS);

It seems to works fine now :)

Port open
Adafruit VS1053 Simple Test
VS1053 found
Playing track 001
Playing track 002
Done playing music


Thank for your time

HansvB
 
Posts: 8
Joined: Fri May 08, 2015 7:31 pm

Re: Music Maker MP3 Shield not working properly

by adafruit_support_mike on Sat May 23, 2015 6:17 pm

Glad to hear it's working for you. Happy hacking!

adafruit_support_mike
 
Posts: 61221
Joined: Thu Feb 11, 2010 2:51 pm

Re: Music Maker MP3 Shield not working properly

by HansvB on Sat May 23, 2015 6:36 pm

Thanks Mike,

I've another question. Only one track is playing. Is this correct?
I'am using the player_simple sketch.

HansvB
 
Posts: 8
Joined: Fri May 08, 2015 7:31 pm

Please be positive and constructive with your questions and comments.