检测与控制(论文)说明书
题 目: 基于蓝牙控制的FM全自
动调谐立体声收音机
系 别: XXX工程系 专 业: XXXX工程 学生姓名: XXX 学 号: XXXXXXXX 指导教师: 莫荣
职 称: 高级讲师
题目类型: 理论研究 实验研究 工程设计? 工程技术研究 软件开发
2014年 7 月 6 日
摘 要
本次实训是在单片机的基础上做检测与控制的实训,通过对51单片机进行系统设
计,掌握单片机的基本原理。通过查找资料,对各个功能模块的电路设计,整体程序框架的规划,把整体方案设计出来,再逐一完善,最后进行调试,完成实训要求的任务。
本次实训基于单片机STC89C52利用IIC总线协议控制RDA5807模块做FM自动搜索电台和控制音量大小功能,用LCD1602显示电台频率信息。在此基础上还另外加了个蓝牙模块,利用手机控制换台和调音量大小的功能。此外还外加了个音响功放,用于音频的输出。
经过搜集资料、电路的研究设计,PCB的制作,在Keil环境下的程序编写,以及最后的程序烧录和调试,最终完成了本次实训的任务要求。
本次的检测与控制实训,提高了我们的资料查找能力以及动手能力,巩固了我们的课本知识。
关键词:IIC总线协议;RDA5807模块;LCD1602显示;单片机控制;蓝牙模块
Abstract
This is detection and control training which is based on MCU. Through carries on the system design of 51 single chip microcomputer, grasp the basic principles of mcu. By looking
for information, the circuit design of each function module, the overall framework of planning, the overall design scheme, and then get more better, final debugging, completed the training requirements of the mission.
This training is based on STC89C52 MCU using IIC bus control module of RDA5807 FM automatic station search and volume control function based on the radio frequency information, with LCD1602 display. On the basis of adding a Bluetooth module, control channels and change the volume size using mobile phone function.In addition, plus an audio power amplifier in audio output.
Through research and design data collection, circuit, PCB production, the program developed in Keil environment, and the final program writing and debugging, finally completed the training mission requirements.
Detection and control training this time, improve information search our ability and practical ability, consolidate our textbook knowledge.
Key word: The IIC bus protocol; The RDA5807 module; LCD1602 display;MCU control; Bluetooth module
目 录
引言 ........................................................... 1 1 蓝牙手机控制FM全自动调谐立体声收音机的概述 ................. 1 2 任务要求与整体设计框图 ...................................... 1
2.1 设计任务与要求 ................................................. 1 2.2 总体设计方案 ................................................... 1
3 硬件电路设计 ................................................ 2
3.1 单片机最小系统设计 ............................................. 2 3.1.1STC89C52 ................................................................................................... 2 3.1.2最小系统电路 .............................................................................................. 2 3.2 收音机模块电路设计 ............................................. 3 3.2.1RDA5807收音机模块 .................................................................................. 3 3.2.2收音机模块的电路图 ............................................... 4 3.3音频外放功放电路设计 ............................................ 6 3.3.1 TDA2822功放芯片 ................................................. 6 3.3.2 TDA2822功放电路 ................................................. 6 3.4 蓝牙模块 ....................................................... 7
4 系统软件编程设计 ............................................ 7
4.1 软件设计流程图 ................................................. 7 4.2 Keil环境程序编写 ............................................... 8 4.3 IIC总线协议 .................................................... 9 4.4 LCD1602显示 ................................................... 10 4.5 RDA5807程序编写 ............................................... 11
5 程序烧写 ......................................................... 12
5.1 程序烧写软件 .................................................. 12
6 调试 ....................................................... 12
6.1 硬件与软件测试 ................................................ 12
7 机械组装 .................................................... 12 8 结论 ........................................................ 14 谢辞 .......................................................... 15 参考文献 ...................................................... 16 附录 ........................................................ 17
相关推荐: