基于stm32的简易电台系统设计

 2022-10-23 02:10

论文总字数:18711字

摘 要

随着当代科学技术的迅猛发展,越来越多的智能化以及个性化的商业产品逐渐进入人们的生活与学习当中,在现代人追求高质量的生活的过程中,普通模拟收音机因为操作繁琐,运行部稳定和抗干扰能力差等因素已经不能满足人们的需求。为此,准备设计一款采用单片机进行数字调频的收音机控制器,此设计选择的STM32系列单片机,比较切于实际地可以设计出可进行数字调频的收音机。

本设计的完整的系统主要包括STM32单片机最小系统、收音机模块电路、音频放大电路、液晶显示电路、按键电路和电源电路等组成。通过按键切改变收音机的频率,再经过单片机处理后发出指令给收音机模块,从而改变不同的频道。利用KEIL MDK开发环境对程序进行设计,程序采用模块化思想,运用C语言进行编写最终降低了程序开发难度。最后,经过实际试验,表明了该系统在实际应用方面,具有令人信服的稳定性,并且极大的降低了对电能的浪费,对以后数字调频收音机的发展提供了很好的情景。

本设计由STM32F103C8T6单片机电路、液晶1602显示电路、收音机模块TEA5767电路、按键电路、LM386喇叭功放电路组成。收音机的频率是由LCD1602液晶模块进行实时显示的。通过按键可以调节频率,当调制解调成功后,喇叭输出广播或者通过耳机进行收听。频率调节范围:87.5MHZ--108MHZ。

关键词: STM32单片机;收音机;LM386功放;LCD1602

Design of simple radio system based on stm32

Abstract

Science and technology is developing nowadays, intelligent commodity are entering people's lives gradually. In order to pursue high quality of life, ordinary analog radios cannot meet people's needs because of the cumbersome operation, stable operation and poor anti-interference ability. . In order to design a microcontroller-based digital FM radio controller, this design uses the STM32 series of single-chip microcomputers to design a digital FM radio control system.

The complete system of this design mainly includes STM32 single-chip minimum system, radio module circuit, audio amplifier circuit, liquid crystal display circuit, button circuit and power supply circuit. Change the frequency of the radio by pressing the button, and then send the command to the radio module after processing by the MCU, thus changing the different channels. Using the KEIL MDK development environment to design the program, the program adopts the modular idea, and the use of C language to write ultimately reduces the difficulty of program development. Finally, after actual experiments, it is verified that the system has good practicability and stability, greatly reducing the waste of electric energy, and provides a good scenario for the development of digital FM radio in the future.

This design consists of STM32F103C8T6 single-chip circuit, LCD 1602 display circuit, radio module TEA5767 circuit, button circuit, LM386 speaker power amplifier circuit. The frequency of the radio is displayed in real time through the LCD1602 liquid crystal. The frequency can be adjusted by pressing the button. When the modulation and demodulation is successful, the speaker outputs broadcast or listens through the earphone. Frequency adjustment range: 87.5MHZ--108MHZ.

Key words: STM32 single chip microcomputer; radio; LM386 power amplifier; LCD1602

目 录

摘 要 I

Abstract II

第一章 绪 论 1

1.1单片机日前的发展 1

1.2单片机现实应用 1

1.3设计的背景及其意义 2

1.4 简易电台的研究状况 2

1.5此设计的主要探讨内容文章结构简介 2

第二章 方案的设计与论证 4

2.1引言 4

2.2简易电台的调控方式 4

2.2.1 选择STM32系列的单片机的原因 4

2.2.2简易电台的频率显示模块 4

2.2.3简易电台中扬声器的确定 5

第三章 硬件电路的设计 6

3.1简易电台的各个功能的分析以及结构设计 6

3.1.1简易电台设计功能简介 6

3.1.2简易电台的总体构架 6

3.2各个模块电路的总体设计 6

3.2.1 STM32单片机主要介绍 6

3.2.2 LCD液晶1602模块设计 8

3.2.3 按键电路(含上拉电阻)设计 11

3.2.4 LM386声音功率放大器电路设计 11

3.2.5 TEA5767简易电台模块的电路设计 13

第四章 简易电台的软件设计 15

4.1 STM32简易电台的编程语言选择 15

4.3 ARM的软件开发流程 16

4.4 FlyMcu的程序烧录软件介绍 17

4.5 PL2303串口程序烧写模块介绍 18

4.6 简易电台的程序流程图 19

第五章 设计焊接与调试 21

5.1 电路焊接 21

5.2 简易电台系统调试 21

5.2.1 系统程序调试 21

5.2.2硬件测试 22

5.3 简易电台的实物测试 22

致 谢 24

参 考 文 献(References) 25

  1. 绪 论

1.1单片机日前的发展

在20世界50年代中期,全世界第一台用数字运算计算机从美国著名大学实验室出现以来,从此以后电子计算机经过飞速的成长,主要有以下四个时期:初代是以电子管进行设计的,之后的一代是以晶体管进行设计的,其次更新后的一代是以集成电路进行设计的,而最新一代是以超大规模集成电路进行设计的。目前使用的计算机都会采用最新一代的超大规模集成电路进行设计各种电子商品,主要是有很好的性能,主要表现在性价比高,体积小,性能稳定等特色;主要的成长方向是功能强大化,体积越小化,系统化和智能化。体积越小化是目前计算机主要的研究方向,其中主要研究的是把控制器的组成部分融合在一块集成板上。因此就诞生了广泛大规模的集成控制器的微小电子计算机——简称单片微型计算机,英文缩写为MCU,因为MCU的主要运用场所是高性能智能化电子产品上,大多数产品都是要内含陷入的设备的系统。在单片机迅速发展的过程中,出现了一些知名的单片机制造商,比如Motorola,Microchip,东芝,富士通等世界闻名的公司,每个公司生产出来的单片机都有各自的特色,主要运用场合也不尽相同[1]。 

剩余内容已隐藏,请支付后下载全文,论文总字数:18711字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;