HS-S51-L Mini MP3 Adapter Board

HS-S51-L Mini MP3 Adapter Board

1. Introduction

Use the Mini MP3 module to play MP3 songs from a storage card, it is necessary to add a speaker and connect the Mini MP3 module separately, and then connect the Mini MP3 module to the main control board such as Arduino via DuPont wires to achieve the MP3 playback function.Our product has integrated a speaker and is equipped with two rows of 8P single-row female sockets, which can directly insert the Mini MP3 module (the direction of the storage card slot and the 4P terminal port are the same), and is compatible with LEGO bricks. It can be connected to the main control board such as Arduino through the 4P terminal to DuPont wires for program design, thereby realizing simple MP3 playback function.

2. Schematic

Module Parameters

Pin Name

description

GND

GND (Negative Power Input)

VCC

VCC (Positive Power Input)

RX

Signal receiving interface

TX

Signal transmitting interface

  • Power Supply Voltage: 3.3V / 5V

  • Connection Method: PH2.0 4P Terminal

  • Installation Method: Double Screw Fixed

4, Circuit Board Size

5 of Arduino IDE example program

Example program (UNO development board): Click to download

#include <SoftwareSerial.h>
#include "Arduino.h"
#include "DFRobotDFPlayerMini.h"

SoftwareSerial mySerial(5,6);
DFRobotDFPlayerMini myPlayer;

void setup(){
  mySerial.begin(9600);
  myPlayer.begin(mySerial);
  myPlayer.setTimeOut(500);
  myPlayer.outputDevice(DFPLAYER_DEVICE_SD);
  myPlayer.EQ(DFPLAYER_EQ_NORMAL);
  myPlayer.volume(50);
}

void loop(){
  myPlayer.play(1);
  delay(1000);
  myPlayer.play(2);
  delay(1000);
  myPlayer.play(3);
  delay(1000);

}

Example Program (ESP32 Development Board โ€” Based on Python language, cannot be uploaded using Arduino IDE):

6, Miciqi Mixly Example Program (Graphical Language)

Example program (UNO development board):Click to download

Example Program (ESP32 Development Board): Click to Download

7, Test Environment Setup

Prepare Components:

  • HELLO STEM UNO R3 PRO DEVELOPMENT BOARD *1

  • UNO R3P expansion board*1

  • USB TYPE-C DATA CABLE *1

  • Mini MP3 adapter (HS-F51-L)*1

  • PH2.0 4P wire 1 pc.

Circuit wiring diagram:

8. Video tutorial

Video tutorial: Click to view

9. Test conclusion

After the device is connected to the wire, after the above program is burned to the Arduino UNO development board, 3 songs will be played in order.