newrudeman

MP3 player based on STM32

 
Overview

The audio player based on STM32F103 microcontroller can support multiple music formats and supports the lossless format Flac. Music songs are stored in the TF card, but please note that only memory cards with FAT32 partitions are supported, and the font files must be placed under the root directory of the memory card. It is powered by a large-capacity lithium battery and has a TP4056 lithium battery charging IC integrated on the board, which can play nearly 10 hours of low-bitrate audio in mp3 format. The main control chip is STM32f103RCT6 and uses the hardware decoding chip VS1053.

one. illustrate

1. Function description:



Charging input voltage: Typical value is 5.0V, cannot exceed 5.5V Lithium battery capacity: 1500mAh, fully charged can play continuously for about 10 hours Charging input: TYPE-C interface inputs 5V voltage for charging, you can directly use ordinary mobile phone charging heads , the maximum charging current is 1A. If the heating is serious during charging, the charging current can be reduced by setting the sampling resistor of TP4056. Charging time: about 1.5 hours

2. Others

Supported music formats: support MP3, WMA and lossless FLAC format music storage device: support SD card (note FAT32 partition), maximum support 16G Optional sound effects: enhanced, treble, normal, bass, surround playback mode: sequential playback, single playback , all loop play, single loop play other functions: browse sd card files, one-click power on and off, battery display, normal shutdown can keep the current settings, automatic shutdown when the battery is low, support song switching, fast forward, fast rewind, pause

2. Operation process

1.Flowchart

The display page has a total of 4 pages. After starting up, you can mainly switch between these four pages: startup page, setting parameter page (no effect, for decoration), browsing file page, and playing song page. On any page, you can press and hold the function switch/power off button for about 2 seconds to shut down. The function switching key, function - key, and function + key are only available when playing the song page. Note: The volume button is set on the side and uses SMD side-mounted buttons. If it is found to be upside down, it can be changed by the program. }8II1G)4LH6M72~V)~_~M7V.png

2. Browse files

Short press or long press the previous song button and next song button to browse files, short press the play/stop button to enter the song play page or continue browsing the next layer of folders.

3.Play page

On the song play page, short press the previous song LAST or next song NEXT button to play the previous song or next song, and long press the previous song or next song button to fast forward and rewind. Short press the function switch/power off button to switch between the three functions of mode, sound effects and volume. 

3. Production process

Due to circuit problems before, revisions were made, and this issue is the third revision. The bare board is very inconvenient to use, and the appearance is not good-looking, so I made a shell, which is 3D printed. 

IMG_20190620_104834.jpg

4. Program part

Since it uses a state machine and does not run the system, the program is relatively complicated. For specific details, please refer to the operation process mentioned earlier. If you need a program, you can download the attachment for extraction. At the same time, the attachment contains Chinese font files. For font installation instructions, see readme.txt . Note: The reserved program burning interface is SWD, which does not support serial port burning.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 17:08:21

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号