MP3 player module trigger / control serial port audio playback - description
MP3 player module trigger / serial port control voice audio playback card
Features
It supports MP3 and WAV decoding formats.
Supported sampling rate (KHz): 8 / 11.025 / 12/16 / 22.05 / 24/32 / 44.1 / 48
24-bit DAC output, support 90dB dynamic range, support 85dB signal-to-noise ratio.
Fully support FAT16 / FAT32 file system, maximum support for 32Gb SD card
Comes with 5W class D power amplifier, can directly drive 4Ω, 3 ~ 5W speakers.
UART serial port control voice transmission function, can control playing, pausing, selecting songs, adding and subtracting volume, etc.
The largest selection of 65,535 songs, 9600 bit / s bit rate.
Support IO trigger play function, 8 IO ports trigger 8 tracks or 8 IO ports trigger 255 tracks.
Support One_line single bus serial port control, can control play, pause, song selection, volume add and subtract and other functions.
Support 3 configuration I / O to select up to 7 working modes, selector settings are simple.
Module interface and function definition
PIN description
PIN name Description PIN
5V power supply
Connect the 5V positive power supply
TXD / IO0 In IO trigger mode, it is the IO0 input pin; in UART control mode, it is the TX pin, connected to the RX of the control terminal (MCU)
RXD / IO1 In IO trigger mode, it is the IO1 input pin; in UART control mode, it is the RX pin, which is connected to the TX of the control terminal (MCU)
IO2 IO trigger mode input pin IO2
IO3 IO trigger mode input pin IO3
IO4 / ONE_LINE IO trigger mode input pin IO4; One_Line one-line serial port control mode data receiving pin
IO5 IO trigger mode input pin IO5
IO6 IO trigger mode input pin IO6
IO7 IO trigger mode input pin IO7
BUSY Low level (0V) output when playing a track, high level (3.3V) output at the end of playback
Instructions for using the UART serial port mode
5.1 Communication format
Adopt full-duplex serial communication;
The baud rate is 9600, the data bit is 8, the stop bit is 1, and the control bit is N.
Start code-instruction type-length data (n) -data 1-data n-e check (SM)
Instruction code: fixed as AA.
Instruction type: Used to distinguish types of instruction.
Data Length: The number of bytes of data in the command.
Data: the relevant data in education. When the data length is 1, it means there is only CMD and no data bits.
Sum check: The lower 8 bits of the sum of all previous bytes, i.e. the lower 8 bits are taken after the start code and data is added.
Data format: For the data or command to be sent, high 8-bit data is in front and low 8-bit data behind.
Communication protocol
The following is the definition of the data returned and recognized by this chip.
Playback state definition: The system is in a stopped state when it is turned on. 00 (stop) 01 (play) 02 (pause)
Drive letter definition: After changing the drive letter, it stops. USB: 00 SD: 01 FLASH: 02 NO_DEVICE : FF
Volume: The volume is 31 levels in total, 0-30 levels and the power-on default setting is 20 levels.
Playback mode definition: Power on default setting is single stop.
※ Full loop (00): Plays the entire track in order and looped after playback.
※ Single loop (01): always plays the current track in a loop
※ Single stop (02): Stop once after playing the current track.
※ Full random (03): Random play of the songs in the drive letter.
※ Directory cycle (04): Plays the tracks in the current folder in order and, after playing, the directory contains no subdirectories.
※ Directory Random (05): Random play in the current directory, the directory contains no subdirectories.
※ Play in list order (06): play songs in current folder in order, stop after playing, list contains no subdirectories.
※ Sequential Play (07): Plays the entire track in sequence and stops after playback.
EQ Definition: The default EQ is NORMAL (00) after power on. NORMAL (00) POP (01) ROCK (02) JAZZ (03) CLASSIC (04)
Combined playback definition: Combined playback must be combined by file name.
The files must be stored in the "XY" folder.
Payment options
- Bank transfer
- PayPal
- VISA
- MasterCard
Delivery options
- Collection in person
- National delivery
- International delivery