基于单片机的粮库温湿度智能监控系统设计 联系客服

发布时间 : 星期六 文章基于单片机的粮库温湿度智能监控系统设计更新完毕开始阅读e37030e17e192279168884868762caaedd33baf5

本科毕业设计

基于单片机的粮库温湿度智能监控系统设计

Based on MCU intelligent monitoring system design of grain

depot temperature and humidity

学 院(系): 机械电子工程学院 专 业: 测控技术与仪器 学 生 姓 名: 学 号: 指 导 教 师: 评 阅 教 师: 完 成 日 期:

Eastern Liaoning University

基于单片机的粮库温湿度智能监控系统设计

摘 要

粮食的储藏是为了防备一些突发性事件而采取的措施,比如一些自然灾害。“民以食为天”,粮食是人类生存的必要物品,对我们来说,粮食的重要性不言而喻。想要生存就离不开它。所以采用高科技的技术来保证粮食的安全有着非常重要的社会意义和经济价值。

每当粮食收获的时候,各个粮库的监控工作的压力是非常的巨大,如若管理不当,损失是非常大的。粮库中温、湿度是能否保证粮食安全储存的重要因素,因此,温度和湿度的监控对保护粮食有着重要的意义,所以,设计性价比高的粮库温湿度智能监控系统已经到了急如星火的地步。

本系统是基于单片机的粮库温湿度智能监控系统,为的是保证存储粮食的安全,所采用的单片机是AT89C52,此单片机作为温、湿度智能监测系统的核心控件,以SHT11为温、湿度的测量装置,SHT11是一款当前比较先进的数字式的温湿度传感器,LM016L为显示元件,报警装置由蜂鸣器和LED灯组成。当传感器检测到的温、湿度值不在预设范围内,可实现声、光实时报警,并控制相应继电器,使执行部分做出相应处理,让粮库中的温、湿度值维持在设置范围内。系统设计了按键模块,当因一些现实存在的因素而需要改变系统控制的温、湿度范围时,可由按键修改,LCD显示模块可实时显示采集的温湿度值。

关键词:单片机;智能;温度;湿度

- I -

基于单片机的粮库温湿度智能监控系统设计

Based on MCU intelligent monitoring system design of grain depot

temperature and humidity

Abstract

Grain storage is measures to guard against some unexpected events, such as some natural disasters. \importance of food is self-evident. Want to live without it. So scientific and protection has important social significance and economic value.

When there is a harvest, each grain monitoring work pressure is very big, if poorly managed, the loss is very big. In the grain depot temperature and humidity is one of the important factors to ensure food security storage, therefore, the monitoring of temperature and humidity is of great significance to protect the food, so the design performance of grain price higher temperature and humidity intelligent monitoring system is imminent.

This design is integrated the detection and control of single-chip design of grain depot temperature and humidity. System is adopted by the single chip microcomputer AT89C52, the single chip microcomputer as the core of the intelligent temperature and humidity monitoring system controls, with digital temperature and humidity sensor SHT11 temperature and humidity for detecting element, LM016L for display components, alarm device is composed of buzzer and LED warning lights. When the sensor detects the temperature and humidity value is beyond the scope of the preset, which can realize real-time sound and light alarm, and control the corresponding relay, makes the executive part accordingly, keep grain depot temperature and humidity value in the range of Settings. This design can also be through the threshold button to change the temperature and humidity, LCD display module can be real-time acquisition of temperature and humidity values. Key Words:MCU;Intelligence;Temperature;Humidity

- II -

基于单片机的粮库温湿度智能监控系统设计

目 录

摘 要 ..................................................................................................................................... I Abstract ..................................................................................................................................... II 1 绪论 ...................................................................................................................................... 1

1.1 研究背景 ................................................................................................................... 1 1.2 粮库监控系统国内外现状以及发展趋势 ............................................................... 1 1.3 本设计主要工作内容 ............................................................................................... 1 2 系统总体设计 ...................................................................................................................... 3

2.1 系统硬件电路设计 ................................................................................................... 5

2.1.1 温湿度检测模块 ............................................................................................ 5 2.1.2 单片机控制模块 ............................................................................................ 8 2.1.3 报警电路模块 .............................................................................................. 12 2.1.4 显示模块 ...................................................................................................... 13 2.1.5 继电器模块 .................................................................................................. 14 2.1.6 按键模块 ...................................................................................................... 15 2.2 系统软件设计 ......................................................................................................... 16

2.2.1 主程序设计 .................................................................................................. 16 2.2.2 温湿度子程序设计 ...................................................................................... 17 2.2.3 报警子程序设计 .......................................................................................... 18

3 PROTEUS仿真 ................................................................................................................. 20

3.1 本设计仿真结果 ..................................................................................................... 20 3.2 仿真案例 ................................................................................................................. 20 4总结 ....................................................................................................................................... 22 参 考 文 献 ............................................................................................................................ 23 附录A 系统电路图 .............................................................................................................. 24 致 谢 .................................................................................................................................. 25

- III -