Arduino Hands-on - Mini MP3 Player Made by YX5200-24SS Chip
Experiment: MP3 Player Open-source Mini MP3 Player with SD Card Music DF Player Module (YX5200-24SS Chip)
YX5200-24SS is an MP3 chip that provides a serial interface and integrates perfect hard decoding for MP3 and WMV. It supports software for TF card driving, USB driving, and external FLASH. It is compatible with FAT16 and FAT32 file systems. With simple serial commands, you can play specified music and perform other functions without the need for complex low-level operations. Easy to use, stable, and reliable, these are the key features of this product.
YX5200-24SS Serial Voice Chip Specifications:
•l MP3 File Format: Supports all bit rates 11172-3 and ISO13813-3 layer audio decoding, Sampling Support (KHZ): 8/11.025/12/16/22.05/24/32/44.1/48, supports music styles like Normal, Lazz, Classic, Pop, ROCK, etc.
•l USB Interface: Standard 2.0
•l UART Interface: Standard serial port, TTL level, adjustable baud rate
•l Input Voltage:3.3-5V
•l Rated Current: 15mA (without USB drive)
•l Dimensions:8.4*8mm
•l Package: SSOP24
•l Operating Temperature:-40°C to 80°C
•l Humidity:5% -95%
Key Features:
•l Supports Sampling Rates (KHz):8/11.025/12/16/22.05/24/32/44.1/48
•l 24-bit DAC output, dynamic range support of 90dB, signal-to-noise ratio support of 85dB
•l Full support for FAT16, FAT32 file systems, maximum support for 32G TF cards and USB drives
•l Multiple control modes: parallel control mode, serial mode, key control mode
•l Broadcast language interlude function, can pause the background music being played
•l Audio data sorted by folders, supports up to 100 folders, each folder can be assigned up to 1000 songs
•l Supports line-in function
•l Supports microphone amplification and paging function
•l Supports sound card function and also supports inline control headphone function
•l 30-level adjustable volume,10 adjustable EQ settings
•l Supports external NORFLASH and NANDFLASH. Onboard default support for NORFLASH
Application Areas:
•l Automotive navigation voice prompts
•l Highway transportation inspectors, toll booth voice reminders
•l Railway and bus safety inspection voice prompts
•l Voice alerts for power, communications, and financial operations rooms
•l Vehicle access gates for verification voice prompts
•l Border channel voice prompts
•l Multi-channel voice alarm or voice navigation device operation
•l Electric sightseeing buses with safety announcements
•l Electromechanical equipment failure alarms
•l Fire alarm voice prompts
•l Automatic playback devices for scheduled playback
Mini MP3 Player Module is a compact and cost-effective MP3 module that can be directly connected to a speaker. The module, when paired with a power supply battery, speaker, and buttons, can be used independently or controlled via serial port as a module for UNO or any microcontroller with a serial interface. The module itself integrates perfect hard decoding for MP3, WAV, and WMA formats. The software supports TF card driving and FAT16, FAT32 file systems. With simple serial commands, you can play specified music and perform other functions without the need for complex low-level operations. Easy to use, stable, and reliable.
Module Pinout Diagram
Module Wiring Application Diagram
Module Operating Modes
1. Serial Mode The module supports asynchronous serial communication mode, receiving control commands through the serial port.
2. AD Key Mode The module also supports AD key control mode, replacing the traditional matrix keyboard connection method. This approach fully leverages the increasingly powerful AD function of the MCU. The design is simple yet sophisticated, with our module default configured with 2 AD ports and resistance distribution for 20 keys.
3. IO Mode This module also supports a simple IO mode
Experimental Setup Diagram
Some Points to Note When Using the Module:
•l DFPlayer Mini can read MP3 & WAV file formats, but it cannot play files shorter than 1 second.
•l All music files must be placed in the /mp3 folder.
•l Music file names must consist of 4 characters, such as 0001.mp3, 0002.mp3...0255.mp3.
•l There are no restrictions on music file names longer than 4 characters, for example, 0001_Bruno_Mars_Count_On Me.mp3 is acceptable.
•l Even if you delete a file from the SD card, the DFPlayer Mini may still be able to play it. I successfully played the desired music files only after reformatting the SD card.
•l The Delay(sec) command tells Arduino the length of the music to be played. If the given time is insufficient and the next command is to play another song, Arduino will interrupt the current playback and proceed to the next one.
•l The mp3_play (74) command plays the 0074.mp3 file.
•l Do not directly supply the DFPlayer Mini with 5V from Arduino; make sure to provide separate power to the DFPlayer Mini to avoid loud noise from the speaker.
•l During testing, the average current consumption is around 150mA, and the module may get hot, so it's important to monitor and control the current.
•l It was discovered that using different libraries for this module results in completely different control statements.Recommend Reading: