基于单片机的音乐播放器设计

word完整版可点击如下下载>>>>>>>>

基于单片机的音乐播放器设计-硬件开发文档类资源-CSDN下载内容包括详细设计文档word版,附带开题报告和相关PPT等文档,供大家参考学习。也可在本博客主页找到更多下载资源、学习资料请访问CSDN下载频道.基于单片机的音乐播放器设计https://download.csdn.net/download/u013253075/35459551 ;

目 录

摘要—————————————————————– I

ABSTRACT———————————————————— II

1 绪论————————————————————– 1

1.1 研究的背景————————————————– 1

1.2 研究的现状————————————————– 1

1.3 研究的主要工作———————————————- 2

1.4 论文工作的安排———————————————- 2

2 方案设计———————————————————- 4

2.1 总体方案设计———————————————— 4

2.2 元器件的选型分析——————————————– 5

2.2.1 单片机的选择—————————————— 5

2.2.2 显示电路的选择—————————————- 6

2.2.3 按键电路的选择—————————————- 7

2.3 设计要求分析———————————————— 7

3 硬件电路设计—————————————————— 9

3.1 设计思路—————————————————- 9

3.2 单片机最小电路——————————————— 10

3.3 语音识别电路———————————————– 11

3.4 蓝牙电路————————————————— 12

3.5 显示电路————————————————— 13

3.6 按键电路————————————————— 13

3.7 语音播报电路———————————————– 14

3.8 电源电路————————————————— 15

4 软件设计——————————————————— 17

4.1 设计思路————————————————— 17

4.2 编程环境及语言简介—————————————– 17

4.3 流程设计————————————————— 18

4.3.1 主流程设计——————————————- 18

4.3.2 按键扫描流程设计————————————- 19

4.3.3 语音识别流程设计————————————- 18

4.3.4 蓝牙模块流程设计————————————- 22

4.3.5 系统设计总结—————————————– 24

5 调试及分析——————————————————- 25

5.1 硬件调试————————————————— 25

5.2 软件调试————————————————— 26

5.3 整体调试————————————————— 27

5.4 调试分析————————————————— 28

6 总结与展望——————————————————- 29

  1. 1 总结——————————————————- 29

  2. 2 展望——————————————————- 29

参考文献———————————————————— 30

致谢—————————————————————- 32

附录—————————————————————- 34

随着社会的发展,人们的物质需求逐渐得到满足的同时,快节奏生活带来的压力也越来越大,精神需求尤为重要。听音乐也是满足人们精神需求的重要方式。音乐可以减轻压力,减轻负担。传统的音乐播放器大多不具备蓝牙通信、语音识别、即兴演奏等功能,操作不人性化、智能化。为了解决这些问题,我们设计了这款具有语音识别功能的无线蓝牙链接音乐播放器,可以给人们带来更智能、更舒适的音乐播放体验。

[En]

With the development of society, people’s material needs are gradually met, at the same time, the pressure from fast-paced life is also increasing, and spiritual needs are particularly important. Listening to music is also an important way to meet people’s spiritual needs. Music can relieve stress and lighten the burden. Most of the traditional music players do not have the functions of Bluetooth communication, voice recognition and improvisation, and the operation is not humanized and intelligent. In order to solve these problems, we have designed this wireless Bluetooth link music player with voice recognition function, which can bring people a more intelligent and comfortable music playing experience.

本次设计使用STM32单片机、LD3320语音识别模块、HC-06蓝牙模块、存储模块、0.96寸OLED液晶显示模块、独立按键模块、电源模块和WT588D语音播报模块组成了一个基于单片机的音乐播放器。

这款音乐播放器可以通过语音识别模块进行播放控制,结合按键模块进行演奏模拟,通过单片机处理信号,通过OLED模块完成显示,通过外扩存储模块完成数据存储,结合蓝牙模块链接通信,最后通过语音播报模块进行播放音乐,实现音乐播放器的使用管理。

关键词: 单片机 语音识别控制 蓝牙通信

With the development of society, people’s material needs are gradually met and the pressure from the fast pace of life, the spiritual needs are particularly important. Enjoying music is also an important way to meet people’s spiritual needs. Music can relieve the stress and reduce the burden. Most of the traditional music players do not have the functions of Bluetooth communication, voice recognition and improvisation, and the operation is not humanized and intelligent enough. For these problems, we have designed this wireless Bluetooth link music player with voice recognition function, which can bring people to a more intelligent and comfortable music playback experience.

This design uses STM32 single microplayer, LD3320 voice recognition module, HC-06 Bluetooth module, memory module, 0.96 ” OLED LCD display module, independent button module, power module and WT588D voice broadcast module to form a single-chip machine-based voice broadcast module.

This music player can be controlled through voice recognition module, performance simulation combined with key module, processing signals through single-chip processor, display through OLED module, data storage through external expanded storage module, combined with Bluetooth module link communication, and finally broadcast music through voice broadcast module to realize the use and management of music players.

Keywords:Singlechip Speech Recognition Control Bluetooth Communication

绪论

研究的背景

随着生活节奏越来越快,压力逐渐加大,人们的精神需求也在增加。听音乐也是满足人们精神需求的重要方式。音乐可以减轻压力,减轻负担。传统的音乐播放器大多不具备蓝牙通信、语音识别、即兴演奏等功能,操作不方便。

[En]

With the faster and faster pace of life and the gradual increase of pressure, people’s spiritual needs are also increasing. Listening to music is also an important way to meet people’s spiritual needs. Music can relieve stress and lighten the burden. Most of the traditional music players do not have the functions of Bluetooth communication, voice recognition and improvisation, so the operation is not convenient.

音乐播放器效果已广泛应用于人们的生活中,例如将传统的上课铃声、起床铃声、中午广播等转换为有趣的音乐。将单片机技术应用于音乐播放器设计以播放音乐是基于单片机的音乐播放器的主要研究之一。STM32系统具有高性能、……。

研究的现状

单片机出现在二十世纪七十年代末,主要经历了三个阶段,这三个阶段分别是SCM、MCU、SOC。嵌入式系统之所以能够发展,还得依赖于单片机的进步。单……。

在科技强国的号召下,科学技术有了很大提高。单片机的功能也有了很大的提升,主要体现在内部结构、功耗、外部电压和制造工艺等方面。具体来看单片机的进步,我们可以从一个典型的例子来看:数字单片机。从目前单片微型计算机的发展来看,……

[En]

Under the call of a powerful country in science and technology, science and technology have been greatly improved. The function of single-chip microcomputer has also been greatly improved, mainly reflected in its internal structure, power consumption, external voltage and manufacturing technology. To specifically see the improvement of single-chip microcomputer, we can look at it from a typical example: digital single-chip microcomputer. Judging from the current development of single-chip microcomputer,…

研究的主要工作

本设计是一种基于单片微型计算机的音乐播放器。为了更好地设计系统,不仅要了解基于单片机的音乐播放器的要求和系统的工作原理,而且要了解其相关的检测方法。我们还应该学习如何实现单片机的硬件开发和电路设计,以及相关的理论研究和文献查询等。。搜索材料和文献的主要方法是:

[En]

This design is a music player based on single-chip microcomputer. in order to better design the system, we should not only understand the requirements of the music player based on single-chip microcomputer and the working principle of the system, but also its related detection methods. we should also learn how to realize the hardware development and circuit design of single-chip microcomputer, as well as related theoretical study and literature query and so on. . The main methods of searching materials and literature are:

……

(2)进行硬件模块的对比:……。

(3)还要进行模块的验证实验:…..。

论文工作的安排

导言:介绍音乐播放器的相关知识,以及传统类型音乐播放器的发展现状,并从各个层面说明各个模块的性能和工作要求。

[En]

Introduction: introduce the relevant knowledge about the music player, as well as the development status of the traditional type of music player, and explain the performance and work requirements of each module from all levels.

方案设计:通过专业科技进行开发研究。

[En]

Scheme design: through professional science and technology to carry out development and research.

硬件电路设计:设计合适的方案。

[En]

Hardware circuit design: design a suitable scheme.

软件设计:选好硬件模块后,进行软件设计。

[En]

Software design: after selecting the hardware module,.

调试与分析:对一个基于单片机的音乐播放器的研发过程进行测试,分析其结果是否能达到预期的要求。

[En]

Debugging and analysis: test a research and development process of music player based on single-chip microcomputer and analyze whether the result can meet the expected requirements.

总体方案设计

基于单片机的音乐播放器主要通过硬件主机对检测器检测到的信号进行处理,然后进行结果处理判断,并将检测处理后的数据显示出来。研究过程可细分为以下几个方面:

[En]

The music player based on single-chip microcomputer mainly processes the signal detected by the detector through the hardware host, then carries on a result processing judgment, and displays the data after detection and processing. The research process can be subdivided into the following aspects:

  1. 选择各模块的电路……

  2. 以单片机为中心……

  3. 为本次各个不同……

  4. 对设计出来的产……

基于单片机的音乐播放器设计

图2-1 系统整体框图

元器件的选型分析

单片机的选择

在本设计中,可以选择两种类型的单片机:

[En]

In this design, two types of single-chip computers can be selected:

第一种类型的单片机是由STM32系列单片机。……

第二种类型的单片机是STC89C52单片机。该单片机是51单片机的核心设计。STC89C52单片机具有强大的内部资源,以及数不胜数的异步串行通信接口,……

通过对两种单片机的详细分析,然后对两者进行比较。

[En]

Through a detailed analysis of the two kinds of single-chip computers, and then compare the two.

STM32F103C8T6具有ARM 32位的Cortex™-M3 CPU作为内核,最高72MHz工作频率,在存储器的0等待周期访问时可达1.25DMips/MHz,2.0~3.6伏供电和I/O引脚,上电/断电复位,可编程电压监测器,4~16MHz晶体振荡器,……。

STM32F103C8T6单片机的参数如下:

……

显示电路的选择

在该设计中,提供了两个可选的显示电路:

[En]

In this design, two optional display circuits are provided:

数码管电路,这种显示电路的数码管一般用于需要显示的东西较少的系统中。

[En]

Digital tube circuit, the digital tube of this kind of display circuit is generally used in systems that need to display less things.

OLED液晶屏,该显示电路的显示区域比较大,并且能够在相对复杂的编程下实现功能,而且其对应的封装函数具有高度的成熟性。……

通过详细分析以上两种显示电路的优缺点,得出结论:为了检查。

[En]

Through the detailed analysis of one of the advantages and disadvantages of the above two display circuits, a conclusion is drawn: in order to check.

我们使用的是0.96寸OLED,高分辨率,分辨率为128*64;……。

按键电路的选择

对于键盘选择,有两个选项:

[En]

For keyboard selection, there are two options:

采用独立按键。独立按键为直接连接单片机I/O口的单个的电路,每个独立按键需要占用一个I/O,而按键之间为独立式的,不会互相影响[[4]]。独立按键在操作方面非常灵活,……

使用矩阵按键。矩阵按键有多种规格,如4‘4或2’3等。矩阵键通过行扫描和列扫描来读取按键,因此也可以称为行-行键盘。以4-4个矩阵键为例,一共有14个键。

[En]

Use matrix keys. Matrix keys have a variety of specifications, such as 4’4 or 2’3 and so on. Matrix keys read the keys by row scan and column scan, so they can also be called row-row keyboard. Take 4-4 matrix keys as an example, there are a total of 14 keys.

通过以上比较,当需要更多密钥时,矩阵密钥是一个很好的选择。

[En]

Through the above comparison, matrix keys are a good choice when more keys are needed.

设计要求分析

快速响应:目前,每个不同的工作场所和工作环境对其工作设备的硬件要求都在不断提高,我们的设计是基于单片微型计算机音乐播放器的。。

[En]

Quick response: at present, each different workplace and working environment has increasing hardware requirements for its work equipment, and our design is based on a single-chip microcomputer music player. .

依赖可靠:为了实现预期的功能,整个方案设计都是围绕设计的目标来展开的,如果在后续开发过程中系统无法达到预期的要求,那么设计是不合理的。……

方便后期排查:当设计实验来检测硬件功能时,在这次研发设计方案上,应该把用户的体验感放在首位来考虑,使用户更加青睐我们的产品,这些因素会影响产品在……

性价比指数:在这个科技飞速发展的时代,市场上有许多琳琅满目的产品。在完成系统所有功能的基础上,主要需要选择合适的设计方案。

[En]

Performance-price index: in this era of rapid development of science and technology, there are many dazzling products on the market. On the basis of completing all the functions of the system, we need to choose an appropriate design scheme, mainly.

设计思路

硬件电路主要包括单片机的最小电路、语音识别电路、语音播报电路、按键电路、蓝牙电路、显示电路、电源以及各电路之间的I/O口连接等。……

在设计硬件电路时,尽量使用一些经典电路或熟悉的硬件器件,这样不仅节省了时间,而且设计更稳定,更容易避免电路错误。

[En]

When designing hardware circuits, try to use some classical circuits or familiar hardware devices, which not only saves time, but also makes the design more stable and easier to avoid circuit errors.

在设计硬件电路时,应在设计前期通过查阅数据的方式了解各部分的最佳工作状态,然后在设计电路时将此情况考虑在内。这不仅保证了电路运行的稳定性。

[En]

When designing the hardware circuit, we should understand the best working conditions of each part by means of consulting data in the early stage of the design, and then take this condition into account when designing the circuit. This not only ensures the stability of the circuit operation.

在设计硬件电路时,不仅要考虑具体的硬件问题,还要考虑软件设计。例如,如果使用添加硬件的方法来实现,某些功能可以通过硬件或软件来实现。

[En]

When designing the hardware circuit, we should consider not only the specific hardware problems, but also the software design. For example, some functions can be performed by hardware or software, if the method of adding hardware is used to achieve.

本设计的系统电路原理图如图3-1所示:

[En]

The system circuit schematic diagram of this design is shown in figure 3-1:

基于单片机的音乐播放器设计

图3-1 系统电路原理图

单片机最小电路

采用单片机最小电路STM32芯片和相应的外电路组成数据处理单元。该芯片具有很多的优点比如:高性能、低成本、功耗低等,该单片机是增强后的系类单片机类型。……该最小电路如图3-2所示:

基于单片机的音乐播放器设计

图3-2 单片机最小系统

语音识别电路

采用LD3320语音识别模块设计语音识别电路,当识别到播放、暂停、音量增大等语音指令时,语音识别模块将数据传输到单片机,通过单片机控制音乐播放器执行指令。LD3320提供的语音识别技术采用基于关键字列表的识别技术:ASR(自动语音识别)技术。……

LD3320语音识别模块功能如下:

  1. 高准确度和实用……

  2. 非特定人语音识别技术:不需要用户进行录音训练……

  3. 真正单芯片解决方案:不需要任何外接的辅助Flash和RAM,……

  4. 内置高精度A/D和D/A通道:不需要外接AD芯片,……

  5. 支持用户自由编辑50条关键词语条:在同一时刻,……。

  6. 可动态编辑的识别关键词语列表:只需要把识别的关键词……

  7. 工作供电为3.3V,如果用于便携式系统,……

语音识别模块的设计电路如图3-3所示:

[En]

The design circuit of the speech recognition module is shown in figure 3-3:

基于单片机的音乐播放器设计

图3-3 语音识别电路

蓝牙电路

通过HC-06蓝牙模块连接到手机进行对音乐播放器的控制。HC-06是一个蓝牙模块,连接到单片机的串行端口,允许单片机通过蓝牙连接与其他设备通信。……,并且可以用于各种应用,例如智能家居应用、远程控制、数据记录应用、机器人、监控系统等[[8]]。

HC-06蓝牙模块功能如下:

  1. 采用CSR主流蓝牙芯片,蓝牙V2.0协议……

  2. 模块供电电压: 3.33V~3.6V……

  3. 默认参数:波特率9600、配对码1234……

  4. 工作电流:不大于50MA……

  5. 通讯距离:空旷条件下10M,正常使用环……

  6. 可以与蓝牙笔记本电脑、电脑加蓝牙适配器……

  7. 可以对STC单片机无线升级和……

蓝牙模块设计电路如图3-4所示:

基于单片机的音乐播放器设计

图3-4 蓝牙电路

显示电路

通过OLED液晶显示屏进行数据的显示。该显示电路的优点也已经具体分析过,就是可以同时间显示两行多字节。该显示电路能够让用户了解逻辑编程,……显示模块设计电路如图3-5所示:

基于单片机的音乐播放器设计

图3-5 显示电路

按键电路

关键电路在设计中也起着重要的作用。在这次设计的音乐播放器中,可以通过按钮电路设置切换模式,并可以播放按键。因为使用的按钮更少。设计电路如图3-6所示:

[En]

The key circuit also plays an important role in the design. In the music player designed this time, the switching mode can be set through the button circuit, and the key can be played. Because fewer buttons are used. The design circuit is shown in figure 3-6:

基于单片机的音乐播放器设计

图3-6 按键电路

语音播报电路

本次设计使用WT588D语音播报模块进行音乐的播放,功能如下:

  1. 支持插入静音模式,插入静音……

  2. MP3控制模式下,迎合市场上MP3的播放/暂停、……

  3. 并口控制模式可用8个I/O口进……

  4. 一线串口控制模式可通过发码端控制语音播放、……

  5. 三线串口控制模式和三线串口控制I/O口扩展输出模式……

  6. USB下载方式,支持在线下载/脱机下载;……

  7. 支持MP3控制模式、按键控制模式、……

语音播放模块的设计电路如图3-7所示:

[En]

The design circuit of the voice broadcasting module is shown in figure 3-7:

基于单片机的音乐播放器设计

图 3-7 语音播报电路

电源电路

电源电路是系统的动力支撑,通过对设计中各部分电路的最佳供电进行研究分析后,选择采用USB电源供电的方式,使用3.3V电压,结合稳压电路确保电路电压稳定输出,因为单片机中已经存在有电源转换的模块,其经过处理的模块完全能满足语音识别电路……其设计电路图如图3-8所示:

基于单片机的音乐播放器设计

图3-8 电源电路

设计思路

软件的设计是本系统实现的重要部分。在完成了硬件电路的设计后,以下是软件设计方面的内容。本系统涉及多种功能的实现,软件设计中有大量的代码。如果采用一体化的设计方案,不仅会使程序结构复杂化,还会增加各功能代码之间的耦合度。

[En]

The design of the software is an important part of the implementation of this system. After completing the design of the hardware circuit, the following is the aspect of the software design. This system involves the realization of multiple functions, so there is a lot of code in the software design. if the integrated design scheme is adopted, it will not only complicate the structure of the program, but also increase the coupling of each functional code.

编程环境及语言简介

程序的设计是本次系统功能实现的基础条件,选择合适的编译工具可以大大缩减编程的时间,提高软件设计的效率。常用于单片机编译的工具包括Keil和IAR等,……

流程设计

系统的主要流程是通过单片机对语音识别模块检测到的数据和按键模块发送的信号进行处理和判断。

[En]

The main flow of the system is to process and judge the data detected by the speech recognition module and the signal transmitted by the key module through the single-chip microcomputer.

主流程设计

系统的运行是对数据进行检测和处理。首先,每个模块都会对引脚信息进行初始化,这有利于系统的后续操作和机器自检工作。当系统通过按下按键模块控制模式开关时。具体流程图如图4-1所示。

[En]

The operation of the system is to detect and process the data. first of all, each module will initialize the pin information, which is conducive to the follow-up operation of the system and the machine self-test work. When the system controls the mode switch by pressing the key module. The specific flow chart is shown in figure 4-1.

基于单片机的音乐播放器设计

图4-1 主流程图

按键扫描流程设计

本设计使用独立的按键,在键盘扫描程序启动后,首先对模块进行初始化,然后确定是否按键,确定按下的是哪一个键。每当检测到某个键被按下时,。流程如图4-2所示:

[En]

This design uses independent keys, after the keyboard scanning program starts, the first thing is to initialize the module, and then determine whether or not to press the key and determine which key is pressed. Whenever it is detected that a key is pressed,. The process is shown in figure 4-2:

基于单片机的音乐播放器设计

图4-2 按键扫描流程图

4.3.3 语音识别流程设计

本次设计采用LD3320语音模块。语音识别软件设计分成两个部分。

第一部分是语音识别模块的程序设计。程序流程如图4-3所示。

[En]

The first part is the program design of speech recognition module single-chip microcomputer. The program flow is shown in figure 4-3.

基于单片机的音乐播放器设计

图4-3 语音识别流程图

第二部分是主控单片机的程序设计。程序流程如图4-4所示。

[En]

The second part is the program design of the main control single-chip microcomputer. The program flow is shown in figure 4-4.

基于单片机的音乐播放器设计

图4-4 主控制单片机流程图

4.3.4 蓝牙模块流程设计

蓝牙模块分为主蓝牙模块和从蓝牙模块。程序流程如图4-5所示:

[En]

Bluetooth module is divided into master Bluetooth module and slave Bluetooth module. The program flow is shown in figure 4-5:

基于单片机的音乐播放器设计

图4-5 主蓝牙模块流程设计图

当从蓝牙模块接收到来自主蓝牙模块的命令时,从蓝牙模块向主蓝牙模块发送数据。程序流程如图4-6所示:

[En]

The slave Bluetooth module sends data to the master Bluetooth module when it receives a command from the master Bluetooth module. The program flow is shown in figure 4-6:

基于单片机的音乐播放器设计

图4-6 从蓝牙模块流程图

系统设计总结

本次设计的电路和功能模块在设计中参考了相关数据,综合考虑了各种情况进行开发,从显示和操作的人性化到系统的可行性都取得了一定的提高。。

[En]

This design of the circuit and functional modules in the design to consult the relevant data, taking into account a variety of situations for development, from the display and operation of the humanization to the feasibility of the system have achieved a certain improvement. .

硬件调试

硬件调试是本设计中不可缺少的重要一步。在根据设计的电路原理图完成各模块的连接后,第一个关键点是耐心检查连接顺序是否与设计相同。

[En]

Hardware debugging is an indispensable and important step in this design. after completing the connection of each module according to the circuit schematic diagram of the design, the first key point is to patiently check whether the connection sequence is the same as that of the design.

二是电源的调试。在上电设计之前,需要检查输入电源电压是否在硬件组件的可接受范围内,否则很可能会导致系统崩溃,并在系统上电前尽量使用限流可调稳压电源。并预置过流保护电流,上电后观察各硬件的运行状态。

[En]

The second is the debugging of the power supply. before powering up the design, it is necessary to check whether the input power supply voltage is within the acceptable range of the hardware components, otherwise it is likely to cause the collapse of the system, and use the current-limiting adjustable voltage-stabilized power supply as far as possible before powering up the system. and make the over-current protection current in advance, and observe the running status of each hardware after power-up.

上电运行时正常运行的物理示意图如图5-1所示:

[En]

The physical diagram of normal operation during power-on operation is shown in figure 5-1:

基于单片机的音乐播放器设计

图5-1 通电运行实物图

整个调试过程比较枯燥、单调。要想把这个过程做好,就需要一步步保持学术研究的耐心。

[En]

The whole process of debugging is relatively boring and monotonous. if we want to do this process well, we need to maintain the patience of the spirit of academic research step by step.

软件调试

软件调试是实现系统功能的重要基础,设计者定义的功能逻辑需要通过程序调试的工具来判断是否可行。有三种方法可以将程序刻录到单片微型计算机中:

[En]

Software debugging is an important basis for the realization of the system function, and the functional logic defined by the designer needs to determine whether it is feasible or not through the tool of program debugging. There are three ways to burn a program into a single-chip microcomputer:

  1. MDK软件烧录方式,使用Keil uVision5软件,……

  2. 串口烧录方式,使用串口进行烧录…….

  3. 软件,此软件需要使用STLINK仿真烧录器,……

考虑到实际情况和操作的方便性。软件截图如图5-3所示:

[En]

Considering the actual situation and the convenience of operation,. The screenshot of the software is shown in figure 5-3:

基于单片机的音乐播放器设计

图5-3 软件调试图

因为整体功能设计采用了内容耦合的方式,不仅减少了各个模块的耦合,也为本次调试提供了极大的便利。首先打开编写的main函数,其中调用了各个功能模块的方法。

[En]

Because the overall functional design adopts the way of content coupling, which not only reduces the coupling of each module, but also provides great convenience for this debugging. First of all, open the written main function, in which the methods of each functional module are called.

整体调试

在确认硬件连接和程序设计没有问题后,设计中最重要的一步是硬件和软件的联合调试。硬件设计和软件设计的调试只能被视为系统功能的雏形实现的调试,硬件和软件的联合调试是具有完善的系统功能的调试。。

[En]

After confirming that there is no problem with the connection of the hardware and the design of the program, the most important step in the design is the joint debugging of hardware and software. The debugging of hardware design and software design can only be regarded as the debugging of the embryonic realization of the system function, and the joint debugging of hardware and software is a debugging with perfect system function. .

在本设计中,先后对设计的各个功能模块进行了测试:

[En]

In this design, each functional module of the design is tested successively:

蓝牙模块:与手机、电脑有良好的通信能力。蓝牙连接显示模块如图5-4所示:

[En]

Bluetooth module: good communication with mobile phones and computers. The display module for Bluetooth connection is shown in figure 5-4:

基于单片机的音乐播放器设计

图5-4 蓝牙模式显示图

语音识别模块:可准确识别播放、调高音量、暂停等语音命令并执行。

[En]

Speech recognition module: can accurately recognize “play”, “volume increase”, “pause” and other voice commands and execute.

显示模块:字符显示清晰。如图5-5所示:

[En]

Display module: characters can be displayed clearly. As shown in figure 5-5:

基于单片机的音乐播放器设计

图5-5 OLED显示图

扬声器模块:播放音乐清晰,无噪音。

[En]

Speaker module: play music clearly without noise.

按键模块:如图5-1所示,位于单片……

调试分析

整个调试过程极具挑战性;在硬件调试过程中,我们对硬件之间连接的实现有了更深刻的认识,锻炼了实际操作能力,积累了处理硬件连接方式错误的经验。

[En]

The whole debugging process is very challenging; in the process of hardware debugging, we have a deeper understanding of the realization of the connection between the hardware, exercise the ability of practical operation, and accumulate experience in dealing with the wrong way of hardware connection.

总结

本次设计使用STM32单片机、LD3320语音识别模块、HC-06蓝牙模块、存储模块、0.96寸OLED液晶显示模块、……

在设计中通过HC-06蓝牙模块实现了蓝牙通信功能、LD3320语音识别模块实现了语音控制功能、使用独立按键实现了模拟演奏功能同时使用OLED进行显示。……

展望

设计了基于单片机的音乐播放器,实现了预期的功能。但同时,由于时间和资金有限,一些功能仍有改进的空间。

[En]

The music player based on single-chip microcomputer is well designed to achieve the expected function. But at the same time, due to the limited time and funds, there is still room for improvement in some functions.

  1. 可以提高语音识别功能的精度、……

  2. 用触摸屏将按键模块与显示模块结合起来……

  3. 添加智能语音交互功能可以在识别指令的同时与用户……

有了这段宝贵的设计经验,我在编程方面有了很大进步,了解了每个模块的工作原理,动手能力大大提高,对各种软件的应用也更加熟练。

[En]

With this valuable design experience, I have made great progress in programming, understood the working principle of each module, greatly improved my hands-on ability, and became more proficient in the application of all kinds of software.

我四年的大学生涯将在这个炎热的夏天结束。我个人认为是这样的。

[En]

My four-year college career will end in this hot summer. Personally, I think.

在这里,我非常感谢我可爱的同学和那些耐心地教我的人。

[En]

Here, I am very grateful to my lovely classmates and those who patiently taught me.

在此,我要特别感谢指导我撰写论文的老师。

[En]

Here, I would like to express my special thanks to the teacher who guided me in writing my thesis.

基于单片机的音乐播放器设计

include

void System_Init1(void)

{ RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO|RCC_APB2Periph_GPIOB|RCC_APB2Periph_GPIOF, ENABLE);

GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE); //½ûÓÃJTAG

……

小意外,为了方便参考,打包在一起的材料如下,可以在下面的链接中下载。

[En]

Small surprise, for easy reference, the materials packed together are as follows, which can be downloaded in the link below.

基于单片机的音乐播放器设计

word完整版可点击如下下载>>>>>>>>

基于单片机的音乐播放器设计-硬件开发文档类资源-CSDN下载内容包括详细设计文档word版,附带开题报告和相关PPT等文档,供大家参考学习。也可在本博客主页找到更多下载资源、学习资料请访问CSDN下载频道.基于单片机的音乐播放器设计https://download.csdn.net/download/u013253075/35459551 ;

本文介绍了在设计的过程的关键点,供大家参考学习,如果下载链接失效、对其他单片机硬件设计感兴趣、有不明白的或者错误的,可以添加微信 biyezhan007

基于单片机的音乐播放器设计

郑重声明,此文章提供给大家做参考模板,杜绝一切不良学术不良行为。

Original: https://blog.csdn.net/u013253075/article/details/121461015
Author: 咸鱼弟
Title: 基于单片机的音乐播放器设计

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/525441/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球