Introduction

The voice prompt module integrates an intelligent MP3 music playback chip with a speaker. Designed for ease of use, it can operate directly with a power supply, battery, and buttons, or be controlled via serial commands. Featuring seamless MP3, WAV, and WMA hardware decoding, this module boasts a 16MB memory capacity, enabling easy playback of specified tracks and sequences through simple serial commands. Its user-friendly design, wide applicability, good sound quality, and reliable performance make it superior to previous MP3 player and speaker solutions.

Size

size

Pin definition

Pin

No Pin Description Note
1 5V Input Voltage Input voltage should not exceed 5.2V
2 U+ USB+ DP USB Port
3 U- USB- DM USB Port
4 GND GND Power GND
5 TX UART serial output If connecting to a 5V TTL, a resistor should be connected in series
6 RX UART serial input If connecting to a 5V TTL, a resistor should be connected in series
7 Busy Playing Status Low means playing \high means no
8 P1 1-channel digital input interface Ground-triggered function
1. Short press: Next track
2. Double press: Previous track
3. Long press: Pause/Play

Arduino tutorial

Requirements

Wiring diagram

Wiring diagram

Sample code (sample codes are provided by the library files)

  • Connect the module to the UNO controller according to the wiring diagram above. Of course, you can also use an expansion board for a more convenient and quicker prototype construction.
  • Download and install the DFRobot_SerialMP3 library.
  • Open the Arduino IDE, upload the following code to the UNO controller.
  • Open the serial monitor of the Arduino IDE, adjust the baud rate to 115200, and observe the serial print results.