1、 粮仓温度巡检系统的设计 The Design of Granary Temperature Detecting System 学 生 姓 名 : 学 生 学 号 : 专 业 名 称 : 电子信息科学与技术 指 导 教 师 : 计算机与信息工程学院 2013 年 6 月 17 日 独创性声明 本人声明所呈交的毕业设计是本人在指导教师指导下进行的研究工作和取得的研 究成果,除了文中特别加以引用标注之处外,论文中不包含其他人已经发表或撰写过的 研究成果,没有伪造数据的行为。 毕业设计作者签名: 签字日期: 年 月 日 毕业设计版权使用授权书 本毕业设计作者完全了解学校有关保留、 使用论文的规定。
2、同意学校保留并向有关 管理部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。本人授权天津城 市建设学院可以将本论文的全部或部分内容编入有关数据进行检索,可以采用影印、缩 印或扫描等复制手段保存和汇编本论文。 (保密的毕业设计在解密后适用本授权说明) 毕业设计作者签名: 指导教师签名: 签字日期: 年 月 日 签字日期: 年 月 日 摘 要 本文设计了一个基于热敏电阻测温,通过总线传输的粮仓温度巡检系统 硬件设计分三个部分:下位机检测部分,总线部分和上位机部分。下位机检 测模块通过铂电阻(PT100)对温度进行检测。测量的数据通过带有非线性校正 的运算放大器进行放大,然后把数据传输到下位
3、机单片机内。单片机通过数据总 线 RS485 把测量数据传送到上位机处的 485 接收器。使用 RS485/RS232 转换器, 把测量数据输入到 PC 机。为了防止在雷暴天气产生的过压影响,485 发送器和 RS485/RS232 转换器采用光电隔离技术。 软件部分采用上位机软件 Visual Basic6.0。通过该软件,把测量的数据以 图表的形式显示出来,当温度超过合理范围时,上位机发出警报。 这种温度巡检系统可以实时测量粮仓的温度,上位机用图形表达直观有效。 关键词:粮仓;温度采集;总线传输;单片机; ABSTRACT Here is a writings about temperat
4、ure measurement,which is based on thermistors and transmitted through the bus. The hardware design can be divided into three parts: the lower machine parts, bus parts and PC parts.The lower machine survey temperature by platinum resistance (PT100) .After measuring,the data is transported to the micr
5、ocontroller by amplifying circuit which have nonlinear correction. And then,the data is transported from microcontroller to the receptor through the RS485 bus.At last,the data is put into the computer by using RS485/RS232 converter. In order to protect the electric circuit when voltage is larger, 48
6、5 transmitter and RS485/RS232 converter should be made by optical coupler.We use Visual Basic6.0 to collect data and process data,and the computer show the data by graph.It warning when the temperature above a stationary numerical. We can survey temperature in real time .We can know the temperature diversification easily. In short,the machine is up-to-date. Key words:Granary; temperature collector; bus transfer; microcontroller; 目 录 第一章 绪论 1 1.1 粮仓温度巡检仪的课题背景