论文总字数:14958字
摘 要
在当今社会的生产和生活以及工业控制等各个领域中,温度对环境来说是不可或缺的重要的一部分,对生产生活中现场温度的精确检测以及实时温度监控就变得尤为重要。例如,在农业的生产过程中,土壤的温度会对植物的正常生长有很大影响;在医院育婴室为了达到恒温也需要温度的测量。在工业生产过程中,生产设备的里外上下限温度对工件形成以后的性能也有重要影响。
本文研究的内容是基于RS485的远程温度检测系统,该系统通过硬件设计,在检测温度的现场放置多个数字温度传感器,通过利用单片机从而可以收集到温度数据并且显示出当下的温度,同时利用RS485 串口通信传回到主控计算机中,实现对环境现场多个位置温度的远程实时监测;在软件方面,从机采用C51编写DS18B20采集温度数据程序和1602液晶显示程序,主机采用c语言编写软件实现温度的实时显示、曲线绘制、高温报警等功能。由于该系统采用了单线多点数字化的测量技术,具有测量误差小、抗干扰能力强、快速、可靠、数字化与网络化等特点。该系统可以被广泛用在粮仓库、机房、矿井、养鸡场等场合,具有很好的使用价值。
关键词:单片机; RS485; DS18B20; 实时监测
Abstract
In actual production, living, industrial control and other fields, the temperature is an integral part of environmental factors, the precise on-site detection and real-time temperature monitoring is particularly important. For example, all levels of agriculture on the soil temperature will affect plant growth; Nursery at the hospital have in order to achieve constant temperature measurements. In industry, barrel ceiling inside and outside, and heat treatment in different temperature requirements in various parts of the workpiece after the formation of temperature on the performance of critical parts and so on.
The contents of this paper, RS-485 bus based remote multi-point distributed temperature monitoring system, the system through hardware design, placed in the environmental field over DS18B20 digital temperature sensor, through the RS- Returns the host computer serial port 485, to achieve distribution of points on the environment than the temperature field of remote real-time monitoring; On the software side, the next crew prepared using C51 DS18B20 temperature data collection procedures and liquid crystal display program 1602, the PC software using Visual Basic6.0 write real-time display of temperature, curve drawing, high temperature alarm. Because this system uses a single multi-point digital measurement technology, with measurement error is small, reliable, low cost, digital and network characteristics. This system can be widely used for grain storage, warehouse, mine, the engine room, coal pile, greenhouse, chicken and so on, have a good value in use.
Keywords:MCU;RS485;DS18B20;Real-time monitoring
目 录
中文摘要 I
ABSTRACT II
目 录 III
第一章 绪论 1
1.1 引言 1
1.2 课题背景及研究现状 1
1.3 本文的主要工作和结构安排 2
第二章 系统硬件电路设计 3
2.1 引言 3
2.2 硬件电路设计 3
2.3 RS-485串行通信模块的设计 4
2.4 供电模块 5
2.5本章小结.................................................................................................................................5
- RS485通信技术基本原理...................................................................................................6
3.1 RS485多机通信概述...................................................................................................... ......6
3.2多机通信基本原理.................................................................................................................6
3.3串行通信原理...................................................................................................................6
第四章 软件设计 ........7
4.1 引言 7
4.2 主机软件设计 7
4.3 从机软件设计 8
4.3.1.主程序模块的设计........................................................................................................... .8
4.3.2串行通信模块的设计.........................................................................................................9
4.3.3测温模块的设计................................................................................................................10
4.3.4 .液晶显示模块设计...........................................................................................................11
4.4 本章小结............................................................................................................................12
第五章 调试 13
第五六章 总结 15
致谢 16
参考文献 17
附录.................................................................................................................................................18
剩余内容已隐藏,请支付后下载全文,论文总字数:14958字
该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;