Toggle Nav

Interfacing DY-SV17F Audio MP3 Player Module with Arduino

Author

Category

Table of Contents

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
https://electropeak.com/learn/ 
*/ 
#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

More To Explore

Leave a Reply

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