Contents

Interfacing DY-SV17F Audio MP3 Player Module with Arduino

DY-SV17F Audio Player Module Features

The 5-watt DY-SV17F MP3 Player module has 4MB of internal memory that can upload music via USB.
This module can be programmed in 3 modes: IO, serial and one line. In this tutorial, we will interface this module in serial mode.

You can download the DY-SV17F player audio module datasheet here.

DY-SV17F Player Audio Module Pinout

This module has 8 IO pins for addressing and 3 CON pins for interfacing the working mode.

Check the datasheet table to set the working modes. You can see pinout of this module in the following figure. 

Required Materials

Hardware Components

Arduino UNO R3 × 1
DY-SV17F × 1
Male to Female jumper wire × 1

Interfacing DY-SV17F Audio Player Module with Arduino (Serial Mode)

Step 1: Circuit

Connect the wires according to the following diagram. This circuit is designed to interface the module via serial mode.

Step 2: Code

The following code is written to interface the Dy-SV17F module in serial mode.

First download the https://github.com/SnijderC/dyplayer library and then install it on your Arduino.

Note

If you do not know how to install a library in Arduino, read this tutorial: How to Install A Library in Arduino.

Then upload the following code to your Arduino.

/*   
modified on June 5, 2018
by SnijderC Chris from github.com/SnijderC/dyplayer/tree/master/examples/PlaySoundByNumber
Home
*/ #include <Arduino.h> #include "DYPlayerArduino.h" // Initialise the player, it defaults to using Serial. DY::Player player; void setup() { player.begin(); player.setVolume(30); // 100% Volume } void loop() { player.playSpecified(1); delay(5000); }
Liked What You See?​
Get Updates And Learn From The Best​

Comments (11)

  • terry Reply

    tried the example sketch it worked great, but how would i go calling 3 different sounds

    January 18, 2022 at 5:24 am
    • Mehran Maleki Reply

      Hi.
      You can plug in your module to a computer via a USB to microUSB cable and store the sound files you want on it. You can store up to 255 files on this module, and you should name them 00001.mp3, 00002.mp3, 00003.mp3, …, 00255.mp3. Then, you can play your desired sound file by this command “player.playSpecified(file_name);” just like line 18 of the code in this tutorial.

      January 18, 2022 at 12:25 pm
      • Martin Martinez Reply

        hi, DY-SV17F powers up when connected via USB to PC. However, flash drive is not detected. I cannot upload any files. Any idea what would cause this?

        April 11, 2022 at 6:57 am
        • Mehran Maleki Reply

          Well, it can be due to many reasons. First, try another cable and USB PORT. Some cables just don’t work properly. If it still didn’t work, there might be something wrong with the DY-SV17F module itself.

          April 13, 2022 at 5:24 pm
  • Tan Çağatay Acar Reply

    Hello, Connecting CON3 pin directly connecting to 5V caused me some problems. I suggest putting 10k ohm res in between or directly connecting to 3.3v out of the DY-SV17F module.

    February 11, 2022 at 10:21 pm
    • Mehran Maleki Reply

      Hi.
      You are correct. Thanks for sharing your experience.

      February 12, 2022 at 6:07 am
  • Justin Reply

    I can see the sound is playing at the DAC outputs, but the speaker outputs don’t work. I notice the SD pin on the amplifier pin 1 is HIGH, which I think means shutdown, but I haven’t been able to find how the module drives this pin…. cant find any schematic for the module itself… This problem sound familiar to anyone?

    December 19, 2022 at 4:15 pm
    • Ali Abdolmaleki Reply

      Hi.
      which type of speaker did you use?
      how did you know sound is playing?

      March 1, 2023 at 11:55 am
  • Eagle Reply

    Thanks a lot for the usefull information.
    I hope to use this module with Raspberry Pi.
    1. Are there any libraries for RPi?
    2. Is there any way to interface with RPi only using USB port,
    without connection to RX/TX?
    Thanks in advance.

    October 16, 2023 at 2:08 am
    • Mohammad Damirchi Reply

      Hello Eagle,
      The USB port is only for file uploads. Once you’ve uploaded your file to the module, you should disconnect the USB cable to activate the TTL port.
      If you’re using a Raspberry Pi, you can use the AUX output with an amplifier to play sound directly

      October 16, 2023 at 5:25 am
  • Eagle Reply

    Hi Damirchi,
    Thank you for your comments.
    I hope to use the separate mp3 module because rpi aux sound generates the noise.
    To avoid the noise, I want to connect this module to rpi usb, and gpio (sw serial),
    mount and copy mp3 file onto sound module, and unmount it.
    After that, send the play command to it by using sw serial.
    Any comments for rpi library?

    October 19, 2023 at 2:44 am

Leave a Reply

Your email address will not be published. Required fields are marked *