基于单片机的无线温度采集系统的设计.doc

约93页DOC格式手机打开展开

基于单片机的无线温度采集系统的设计,摘要随着信息领域各种技术的发展,在数据采集方面的技术也取得了长足的进步,采集数据的信息化是目前社会的发展主流方向。各种领域都用到了数据采集,在石油勘探、地震数据采集领域已经得到应用。本课题提出一种基于单片机的无线温度采集系统方案,该方案是利用单片机控制ds18b20温度传感器采集温度、...
编号:20-111610大小:1.18M
分类: 论文>通信/电子论文

内容介绍

此文档由会员 huangbinbest 发布

基于单片机的无线温度采集系统的设计

摘要
随着信息领域各种技术的发展,在数据采集方面的技术也取得了长足的进步,采集数据的信息化是目前社会的发展主流方向。各种领域都用到了数据采集,在石油勘探、地震数据采集领域已经得到应用。
本课题提出一种基于单片机的无线温度采集系统方案,该方案是利用单片机控制DS18B20温度传感器采集温度、控制LED数码管实时显示温度值、控制NFR240L1进行数据的无线传输,并由单片机去把温度数据传至计算机进行存储。本系统中所用到的器件是STC 公司的STC89C52 单片机、数字温度传感器DS18B20和无线芯片NFR24L01,测量结果用七段段LED数码管显示采集的数字信息,并利用单片机串行口,通过RS-232 总线及通信协议将采集的数据传送到PC 机,进行进一步的存档、处理,并对测量结果进行显示和存储。

关键词 单片机;温度采集;NFR24L01;数据传输;串口通信;
 
Abstract
With the development of various technologies of information in the field,in data collection techniques have also made great progress,collect data,information and social development is the mainstream. Various areas of data collection used in oil exploration, seismic data acquisition in the field has been applied.
This issue presents a collection based on single chip system solutions for wireless temperature, the program is the use of microcomputer control the temperature DS18B20 temperature sensor acquisition, real-time control of LED digital display temperature control, control NFR240L1 wireless data transmissionby the microcontroller to the temperature data transmitted to the computer for storage. This system is a device used in the STC's STC89C52 microcontroller, digital temperature sensor DS18B20 and wireless chips NFR24L01, measured with a seven-segment LED digital display segment of digital information collectionand use Serial port, RS-232 bus and through the communication protocol to collect data to the PC, for further archiving, processing, and measurement resultsare displayed and stored.
Keywords  SCM    Temperature collection    NFR24L01    Data transmission              Serial communication  
 
目       录
1 绪论 1
1.1 课题背景 1
1.2 数据采集系统简单介绍 1
2 温度采集系统的设计 3
2.1 系统硬件电路构成 3
2.1.1 单片机部分 3
2.1.2 温度传感器部分 7
2.1.3 LED数码管部分 15
2.1.4 NRF24L01无线数据传输部分 16
2.2 系统软件设计 29
2.2.1 DS18B20 程序的设计 29
2.2.2 数码管显示程序的设计 31
3 串口通信 36
3.1 通信简介 36
3.2 单片机串口通信接口 37
3.2.1 单片机串口结构 37
3.2.2 单片机与PC 机之间电平转换硬件接口 38
3.2.3 单片机串口通信设置及程序设计 40
4 上位机程序设计 43
4.1 Visual Basic 语言简介 43
4.2 串口通信的实现 43
4.2.1 MSComm 控件的操控原则 44
4.2.2 MSComm 的属性 44
4.3 上位机程序设计 45
4.4 数据库设计 47
总结 49
致谢 50
参考文献 51
附录 52
附录1 52
附录2 57
附录3 80