文档介绍:编号:
毕业设计说明书
题目: 基于RS485总线的远程
温度监测系统
题目类型: 理论研究实验研究√工程设计工程技术研究软件开发
2010年 6 月 10 日
摘要
控制领域中的分布式监控系统具有节点多、传输距离远以及现场工作条件恶劣等特点,因此需要一种能够支持多节点、远距离通信以及传输信号安全可靠的总线构成网络。本文给出的一种基于RS485总线的远程监测实时温度的方法,具体介绍了RS485总线的通信原理、串行通信原理、监控系统的组成和功能电路模块,并且着重介绍了RS485总线的特点和通信协议的设计,电路连接和通信软件的设计方法。在此基础上设计了一套完整的远程温度监控系统,每个从机都能实时对环境周围的温度采集,并且将所采集到的数据发送给主机;而主机可以对接收到的每个从机所发送的信息进行相应的处理,并且向所需要控制的从机发送相应的命令。
本系统应用STC89C52单片机完成数据的采集、处理、对所采集到的温度进行处理和对数据的传输进行处理,通过矩阵键盘输入命令,并用LCD12864液晶屏显示实时状态、设定信息和所采集到的温度。RS485串口通信实现了主机对从机的监控和控制。通过硬件和软件的联合调试证明,系统能实现实时温度采集,并对温度超出范围时进行了处理,由于使用的是DS18B20数字温度传感器进行温度采集,使所采集到的温度的精确度也比较好。该监测系统具有体积小,价格便宜、实用性好和方便携带等优点,可以在生活小区、工厂、楼宇等领域使用。
关键词:单片机;数字温度传感器DS18B20;液晶显示;RS485总线;串行通信
Abstract
Control the field of distributed control system with multiple nodes, transmission distance and on-site working conditions and other characteristics,Therefore,it needs a bus which with multi-node support, munications, and signal transmission of safe and reliable to work. This paper presented a method which based on RS485 bus to remote monitoring of the real-time temperature, detailed description of the RS485 munication theory, munication theory, control ponents and functions of circuit module., and emphatically introduced the characteristics of the RS485 bus and the design munication protocols, circuit connection munication software design. On this basis designed plete set of remote temperature monitoring system, each slave can real-time capture the temperature which around of the environmental , and the data collected will be sent to the host; The host can dock each received information sent from the machine and make the appropriate treatment, and sends the mand to l the slave of need control.
MCU plete the system application STC89C52 data collection, processing, the temperature of the collected data for processing and transmission of processed, mands through the matrix key-board , and uses LCD12864 display real-time status, the set information and the temperature of collected . RS485