天津工业大学
毕业论文
姓 名 苏广明
缝纫网
学 院 电气工程及其自动化
专 业 自动化抽油机模型
指导教师 军
职 称 讲 师
2013年 6月 2日
摘 要
本文旨在将无线蓝牙技术和数据采集技术相结合,集成在一起组成数据采集与无线数据传输模块,设计出一种体积小、低功耗、安装维护方便的便携式产品,实现了蓝牙无线数据采集和传输。基于蓝牙的无线数据采集系统由下位机和上位机两部分组成。其中下位机主要由温度传感器、蓝牙主模块和STC89C52RC处理器组成,主要完成数据的采集和处理等功能,并将处理后的数据发送给上位机;上位机由LCD1602显示器、蓝牙从模块和STC89C52RC处理器组成,主要完成数据的接收、显示和存储等功能,并向下位机发送命令。该系统主要实现现场数据高精度、高速度实时采集,利用蓝牙的无线传输特性实现数据的无线传输。本系统中STC89C52RC处理器是系统的核心部分,通过动作指令控制前端温度传感器模块进行数据采集,同时将采集到的数据经STC89C52RC处理,由蓝牙模块将数据传输给上位机,由上位机完成后续的相应处理工作。本设计最终结果经验证,可以达到设计基本要求:能够采集温度信息,将其发送到上位机,并将温度显示出来。
关键词:无线数据采集;蓝牙模块;STC89C52RC;温度传感器
ABSTRACT
This paper aims at the wireless Bluetooth technology and data acquisition technology, integrated together to form a data acquisition and wireless data transmission module. And design a kind of small volume, low power consumption, easy installation and maintenance of portable products, realize the wireless data acquisition and transmission of Bluetooth.Wireless data acquisition system based on Bluetooth is consists of two parts that are lower place machine and position machine. Lower place machine is mainly made up of several parts, for example, temperature transmitter, Bluetooth module and STC89C52RC processing module. The mainly function are completing data collection ,processing and transfer the data to position machine. Position machine is mainly made up of LCD1602 display, Bluetooth module and STC89C52RC processing module completing data receiving, display, storage and other functions. Position machine sends commends to lower place machine. This system mainly realizes high precision, high velocity field data real-time data acquisition, uses Bluetooth wireless transmission characteristics of the wireless transmission of data realization. STC89C52RC is the cente
r of this system and through sending commends to control front-end temperature transmitter collecting data.At the same time the collected data by STC89C52RC processing will be transferred to position machine by Bluetooth module. The position machine will complete the corresponding work.The final design results after verification can achieve the design requirement: can collect temperature information, send it to the host computer, and the temperature is displayed.
Key words: wireless data acquisition; Bluetooth module; STC89C52RC;
temperature transmitter
第一章 总述………………………………………………………………………1
1.1前言……………………………………………………………………………1
1.2课题的背景及意义 ……………………………………………………………1
1.3蓝牙技术的发展状况…………………………………………………………2
1.4 本设计简介……………………………………………………………………3第二章 无线数据采集系统的硬件设计………………………………………4
2.1 系统的整体设计方案…………………………………………………………4
2.2 港湾场站系统的整体结构………………………………………………………………4
2.3 系统的整体功能设计图………………………………………………………5 第三章 温度传感器模块………………………………………………………7
3.1 温度传感器的分类及其型号 ………………………………………………7
3.1.1 接触式温度传感器……………………………………………………7
3.1.2 非接触式温度传感器…………………………………………………8
3.1.3 常见的温度传感器及其型号…………………………………………9
3.2 温度传感器的选型…………………………………………………………9
第4章 STC89C52RC处理器…………………………………………………12
4.1 STC89C52RC单片机介绍………………………………………………12
4.2 STC89C52RC工作模式………………………………………………12
4.3 STC89C52RC引脚功能说明…………………………………………13
4.4 特殊功能寄存器………………………………………………………16 第五章 LCD1602液晶显示器………………………………………………18
5.1 液晶概述…………………………………………………………………18
5.2 通用1602液晶的操作方法………………………………………………18 第六章 大蒜破瓣机蓝牙模块 ……………………………………………………………23
6.1 蓝牙技术简介………………………………………………………………23
6.2 蓝牙芯片……………………………………………………………………23 第七章 无线数据采集系统的软件设计……………………………………28
7.1 数据采集软件设与实现……………………………………………………28
7.2 系统的软件调试……………………………………………………………30
第八章 结论………………………………………………………………………32 参考文献…………………………………………………………………………33
附 录I……………………………………………………………………………34
易揭膜
附 录II……………………………………………………………………………38
谢 辞………………………………………………………………………………48
第一章 总 述
1.1 前言
随着科技的不断进步和相关技术的不断创新,蓝牙技术越来越多的被应用到各行各业中,
蓝牙是一种短距离的无线通讯技术标准,具有使用方便、可靠性高、低功耗与低成本的特性,它的目的在于替代数字设备与计算机外设之间的线缆连接以及实现数字式设备间的无线组网。本文所研究的内容就是设计并实现借助蓝牙技术进行数据传输的数据采集系统。
数据采集系统是计算机、智能仪器与外界世界联系的桥梁,是获取信息的重要途径。数据采集技术是信息科技的重要分支,它不仅应用在智能仪器中,而且在现代工业生产、国防军事及科学研究等方面都得到广泛应用,无论是过程控制、状态检测,还是故障诊断、质量检测,都离不开数据采集系统。