module Grove - MP3 v2.0 problems for working

Hi i have some trouble to make work my knew module Grove - MP3 v2.0.
Sorry the message is long but there is a lot of code.

Here is the circuit i use:

https://www.carnetdumaker.net/images/vue-prototypage-du-montage-de-test-dun-module-lecteur-mp3-serie/

Here is the code i use:

/*

  • MP3_Play_Test.ino
  • A quick start example for Grove-Serial MP3 Player V2.0
  • Note: The MP3 chip of Grove-Serial MP3 Player V2.0 is different from Grove-Serial MP3 Player V1.0
  • Description: This demo let you can send instruction 1-8 to control the Grove-Serial MP3 Player, via the serial port.
  • Copyright (c) 2015 seeed technology inc.
  • Website : www.seeed.cc
  • Author : Wuruibin
  • Created Time: Dec 2015
  • Modified Time:
  • The MIT License (MIT)
  • Permission is hereby granted, free of charge, to any person obtaining a copy
  • of this software and associated documentation files (the "Software"), to deal
  • in the Software without restriction, including without limitation the rights
  • to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  • copies of the Software, and to permit persons to whom the Software is
  • furnished to do so, subject to the following conditions:
  • The above copyright notice and this permission notice shall be included in
  • all copies or substantial portions of the Software.
  • THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  • IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  • FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  • AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  • LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  • OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  • THE SOFTWARE.
    */

#include <SoftwareSerial.h>
#include <MP3Player_KT403A.h>

// Note: You must define a SoftwareSerial class object that the name must be mp3,
// but you can change the pin number according to the actual situation.
SoftwareSerial mp3(2, 3);

void setup()
{
mp3.begin(9600);
Serial.begin(9600);
delay(100);

SelectPlayerDevice(0x02); // Select SD card as the player device.
SetVolume(0x0E); // Set the volume, the range is 0x00 to 0x1E.
}

void loop()
{
char recvChar = 0;
while(Serial.available())
{
recvChar = Serial.read();
}
Serial.print("Send: ");
Serial.println( recvChar );

switch (recvChar)
{
case '1':
SpecifyMusicPlay(1);
Serial.println("Specify the music index to play");
break;
case '2':
PlayPause();
Serial.println("Pause the MP3 player");
break;
case '3':
PlayResume();
Serial.println("Resume the MP3 player");
break;
case '4':
PlayNext();
Serial.println("Play the next song");
break;
case '5':
PlayPrevious();
Serial.println("Play the previous song");
break;
case '6':
PlayLoop();
Serial.println("Play loop for all the songs");
break;
case '7':
IncreaseVolume();
Serial.println("Increase volume");
break;
case '8':
DecreaseVolume();
Serial.println("Decrease volume");
break;
default:
break;
}

delay(1000);

// printReturnedData();
}

Endd

The audio files that i use is downloaded here: Free Mp3 Downloads - mp3INT.com - We Make Music Come To You
, i have write leo le chat and downloaded the second file which i named 000.mp3 and he is saved on my card on a file named 00.

When i open the serial plotter i read:
send so i write :
1
he answer:
specify the music index
i write:
2
he answer
pause the mp3 player

But there is no sound i don't get the problem.

Thanks by advance

Anyone to help ? :slight_smile:

I have the same problem any help ?

Hi,

Try this solution :

  • Go to sketch > include a library > Manage library > instal grove mp3
  • Connect the grove mp3 to D18 and 19 if you use an arduino mega + shield, like me
#include <MP3Player_KT403A.h>

SoftwareSerial mp3(19,18);

void setup()
{

  // the grove module is configured to talk at 9600 bauds, so this is the speed that we choose
  mp3.begin(9600);

  // small delay to make sure everything starts well
  delay(100);
  
 // We configure the library to use the SD card
  SelectPlayerDevice(0x02);

  // Set the volume to 15, allowable values ​​are 0 to 30
  SetVolume(15);

  // index of the song between 0 and 65535 (unsigned int - uint16_t)
  //WARNING: files are ordered by creation date!
  SpecifyMusicPlay(12);

}

void loop()
{
    
}