本科毕业设计(论文)
题目:无尘室温湿度监测系统
院 (系): 电子信息工程学院 专 业: 自动化 班 级: 090420 学 生: 刘永生 学 号: 090420306 指导教师: 王坤
2013年 06月
本科毕业设计(论文)
题目:无尘室温湿度监测系统
院 (系): 电子信息工程学院 专 业: 自动化 班 级: 090420 学 生: 刘永生 学 号: 090420306 指导教师: 王坤
2013年 06月
无尘室温湿度监测系统
摘 要
温度、湿度监测在人们现实生活生产中应用已日渐广泛,在发电厂、纺织、食品、医药、仓库、农业大棚等众多的应用场所,对温度、湿度参量的要求都非常严格,因此能否有效对这些领域的温、湿度数据进行实时监测是一个必须解决的问题。
本课题研究的内容是无尘室的温湿度监测系统,利用AT89C51单片机作为主控机,对无尘室的温湿度进行实时的监测。温度选用单线数字温度传感器DS18B20采集;湿度选用湿敏电容HS1101结合NE555定时器测量,把对湿度的测量转化为频率的测量,将采集到的数据送到单片机进行处理;由LED数码管对当前的温度、湿度进行显示;设置DS1302实时时钟电路,将整点时对应的温湿度数值存AT24C02中,监测人员通过按按键,可读取过去六小时温湿度信息;当温湿度超过设定的界限时启动报警功能,即蜂鸣器和发光二极管分别产生报警。
本次设计通过系统的调试与仿真,可以实现温湿度值的显示、超限报警、温湿度值的设定等,基本上完成了课题所要求的功能。
关键词: 温湿度; 单片机; DS18B20;HS1101;按键;数码管;
I
Monitoring System of Temperature and Humidity
of Clean Room
Abstract
Temperature and humidity are monitored in the practical application of life and
production; it has become increasingly widespread in the plant. Textile, food, medicine, warehouses, agricultural sheds and many other places the application of temperature, humidity parameter requirements are very strict, it is effective in those areas of the temperature and humidity data for real-time monitoring is a need to address an important prerequisite.
The contents of this research project is a monitoring system of temperature and humidity of clean room, using AT89C51 microcontroller as the main control unit, to monitor and control the temperature and humidity of the clean room in real time. Using digital temperature sensor DS18B20 to send the collected data, Variable humidity sensor HS1101 to measure humidity with the combination of 555 timers. The measurement is converted into frequency measurement of humidity. LED digital tube display the presented temperature and humidity; the hour of the temperature and humidity values are toured in the AT24C02 storage, setting the clock circuit, by pressing a button, you can read the temperature and humidity of an hour before, and so forth you can read the situation six hours before; Also it needs to design an alarm function, that we can use the buzzer because when the figure of the collected temperature and humidity higher than its upper or lower than its lower limit, you can start the alarm device to alarm timely.
The feasibility and correctness of this design are verified, through the debugging and simulation system.
Key Words: temperature and humidity; single chip microcomputer; ds18b20;
hs1101; keys; digital tube
II
目 录
中文摘要 .................................................................................................... I 英文摘要 .................................................................................................. II 1 绪论......................................................................................................... 1
1.1选题的目的和意义.......................................................................................... 1 1.2国内外研究现状.............................................................................................. 1 1.3本课题研究内容及论文安排.......................................................................... 2
2 系统总体方案设计 .............................................................................. 4
2.1系统功能.......................................................................................................... 4 2.2系统设计思路.................................................................................................. 4 2.3传感器元件的选择.......................................................................................... 5 2.4系统整体方案设计.......................................................................................... 5 2.5本章小结.......................................................................................................... 6
3 系统硬件电路设计 .............................................................................. 7
3.1单片机最小系统.............................................................................................. 7
3.1.1晶振电路............................................................................................... 7 3.1.2复位电路............................................................................................... 8 3.2传感器模块设计............................................................................................... 8
3.2.1DS18B20传感器简介及电路设计......................................................... 9 3.2.2DS18B20传感器电路实现................................................................... 10 3.2.3湿度测量选择及电路设计................................................................. 11 3.2.4湿度测量电路的实现......................................................................... 12 3.3DS1302时钟电路设计.................................................................................... 13
3.3.1DS1302工作原理................................................................................. 13 3.3.2DS1302电路设计................................................................................. 14 3.4存储电路设计................................................................................................ 14
3.4.1AT24C02芯片的介绍........................................................................... 14