Shenzhen ZTRON Microelectronics Co., Ltd
Telephone
0755-8299 4126

Personal consumer electronics

MP3 player control board development and design


The MP3 system based on the single-chip microcomputer has a wide application prospect in daily life. This paper designs a MP3 control system based on the single-chip microcomputer. Realize the display of music information. As shown in Figure 1, it is the overall block diagram of the system.


The functions realized by this system mainly include two aspects: (1) buttons to switch and play different music; (2) real-time display of the information of the current playing song.

1. MP3 player hardware design


This system is mainly composed of four parts to realize the function of single-chip MP3. The button module is used as an input module to realize functions such as song switching.


(1) Single-chip core circuit module: The main control circuit of the single-chip microcomputer mainly realizes two functions, the system power-on reset and manual reset functions, and provides basic functions for the entire single-chip microcomputer module at work.


(2) LCD display circuit module system: select the LCD module to display the detected temperature value, select the LCD1602 display module, and read and write operations with the data of the LCD through the P0 port of the single-chip microcomputer, and the single-chip microcomputer outputs the music information to P0 data port, control LCD through P0 port, realize data display, P24, P25 and P26 pins control LCD command pins, two pins realize read and write operation instructions according to LCD read and write timing .


(3) Button circuit module: The button function is also an important module. The main four functions of the button function are play, stop, previous song and next song. The four buttons are respectively connected from P1.0 to P1.4 of the single-chip microcomputer. Corresponding to the functions of play, stop, next song and previous song respectively.


(4) Sound playback circuit module: The buzzer circuit is shown in Figure 2. The speaker sound playback circuit is controlled by the P2.4 pin of the single-chip microcomputer. Since the signal directly output by the pin is weak, a The triode amplifies the signal to drive the speaker, and the pin P2.4 outputs different pulse frequency signals to realize different audio output. After the signal is amplified by the triode, it drives the speaker to play music.


图 2 声音播放电路


2. MP3 player system software design


(1) Main program introduction: Software is the core of realizing functions, and the work of CPU is controlled through codes, so perfect software codes play an irreplaceable role in realizing functions. The initialization program includes memory initialization, clock initialization, LCD liquid crystal display module initialization, etc. The main program first initializes each module and parameter, and then enters the while loop, and reads the n parameter by continuously calling the button sub-function to realize the call and play of the song.


(2) Song subroutine: The song subroutine function mainly selects which song to play according to the value of n. The song playing sub-function is mainly to display the related information of the song by calling the display sub-function, by reading the audio value of the corresponding song, modifying the timing parameters to realize the output of different pulse signals of the song, and realizing the playback of the song.


Summarize


Through the theoretical design, software algorithm design and final joint debugging of the MP3 system based on the single-chip microcomputer, the MP3 automatic control system still has a very large room for improvement. The summary mainly includes the following two points.


(1) The current wireless control technology is widely used in intelligence, so it is a very urgent problem to integrate wireless technology into the single-chip microcomputer-based MP3 system;

(2) All systems not only need to be fully functional, but cost is also a very critical factor, so improving the design of hardware circuits and reducing the design cost of MP3 automatic control systems also need to be considered.


The above is the design and development example of the MCU-based MP3 player introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have bluetooth headset solution development needs, you can trust us. We represent a variety of single-chip microcomputers, voice chips, dual-mode Bluetooth ICs, and wifi chips. Brands include Songhan MCU, Yingguang MCU, Jerry Bluetooth, Ankai Bluetooth, Allwinner, and Realtek. Our technical services include: PCB design, microcontroller development, Bluetooth solutions, software and hardware custom development, APP development, small program development, WeChat official account development, etc. It can also undertake the design of intelligent electronic products, the development of living appliances, the research and development of beauty equipment, the application of Internet of things platform, the smart home control system, the development of TWS earphones, Bluetooth earphone speakers, the development of children's educational toys, the design of electronic education products, etc.

  • TOP