登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 通信工程 > 正文

基于单片机的粮库温度监测报警系统设毕业论文

 2021-03-21 21:11:51  

摘 要

俗语说:民以食为天。粮食问题在人类生产生活中的位置是显而易见的,粮食问题与人类生产生活有着紧密的联系。而我国作为一个人口大国,如何为全体国民提供充足的粮食供应,提高粮食存贮技术,避免粮食在存贮过程中的霉败变质,是一直以来我们所面对的问题。在这些问题当中,最要解决的就是在粮食存储过程中的粮仓温度监控工程,保证粮仓内温度一直处于适宜粮食存储的温度,从而保证粮食质量不发生改变。在我国,稻米和小麦一直是主要作物。这些粮食在粮仓中长时间堆放,由于种子本身的呼吸作用所释放的热量和水分,在粮仓的密闭条件下不易及时疏放出去,长期积聚,造成粮食内部温度升高,湿度加大,从而引起种子霉变,发芽,导致粮食不能使用而产生浪费。 自古以来,各个朝代都非常重视粮食的存储问题,而我国长期以来缺乏先进的技术支持,导致我国粮食在贮存过程中大量损坏变质。自从建国以来,党和政府高度重视粮食问题,鼓励了一批又一批的科学人才在粮食存贮的问题上取得技术性的突破,为解决我国粮食问题贡献了巨大的力量。

作者主要的研究工作如下:

1.构思本次设计的大体思路。本次设计采用的是STC89C52型单片机作为整个系统的控制单元,八位七段数码管构成的显示模块以及蜂鸣器和LED组成的报警模块,通过外扩的四个温度传感器作为温度数据采集模块。通过单片机控制IO口读入温度数据进行数据处理,然后送到显示模块进行显示,并通过判断决定报警模块是否工作。

2.搭建系统仿真电路。在确定好基本方案之后,利用单片机仿真软件proteus进行硬件电路的设计。 利用单片机的P0口作为数据显示端口,P2.3,P2.4,P2.5三个端口配合3-8译码器作为位选端口。同时利用P3.7,P1.4,P1.5,P1.6四个端口连接四个DS18B20传感器,P1.5连接蜂鸣器,P2.0连接LED。

3.设计系统软件。根据芯片技术手册查阅关于DS18B20的相关工作时序,通过读写操作相应的进行拉低或者拉高电平,并及时检测总线上的电平对其进行初始化。通过定义变量将读到的温度数据赋值给P0,定义三个变量分别对应P2.3,P2.4,P2.5作为位选端口,P1.4,P1.5,P1.6,P3.7四个端口作为温度传感器的连接端口,根据参考相关程序,完成软件编写。

关键词:STC89C52 ;DS18B20;温度监测;循环显示 ;报警

Abstract

As the saying goes: Hunger breeds discontentment. The food problem occupies an irreplaceable position in human life, and the food problem is closely related to human life. How can China provide a sufficient food supply for all citizens, improve food storage technology, and avoid the deterioration of food in the storage process, which is the problem we have always faced. Among these problems, the most important solution is in the grain storage process of the granary temperature monitoring project to ensure that the temperature inside the granary has been in the appropriate food storage temperature, so as to ensure that food quality does not change. In China, rice and wheat have been the main crop. These grains in the granary for a long time piling up, due to the respiration of the seeds of the release of heat and moisture, in the barn under the confined conditions are not easy to drain out, long-term accumulation, resulting in increased internal temperature of the grain, humidity increased, causing Seed moldy, germination, leading to food can not be used and waste. Since ancient times, the dynasties have attached great importance to the storage of grain, and China's long-standing lack of advanced technical support, leading to China's food in the storage process a lot of damage to deterioration. Since the founding of the People's Republic of China, the party and the government have attached great importance to the food problem and encouraged a batch of scientific talents to make technical breakthroughs in the food storage, and have made great contributions to solving the food problem in China.

The main research work of the author is as follows:

1. The general idea of this design. This design uses the STC89C52 single-chip as a control unit, eight seven-segment digital control module consisting of a display module and a buzzer and LED alarm module, through the expansion of four temperature sensors for temperature data acquisition. Through the microcontroller to control the IO port to read the temperature data for data processing, and then sent to the display module for display, and through the decision to determine whether the alarm module is working.

2. Build the system simulation circuit. After determining the basic program, the use of single-chip simulation software proteus hardware circuit design. Use the microcontroller 0 port as the data display port, P2.3, P2.4, P2.5 three ports with 3-8 decoder as a bit selected port. At the same time using P3.7, P1.4, P1.5, P1.6 four ports to connect four DS18B20 sensor, P1.5 connected buzzer, P2.0 connected LED.

3. Design the system software. According to the chip technical manual access to the relevant work on the DS18B20 timing, by reading and writing operations corresponding to pull down or pull high, and timely detection of the level of the bus to initialize it. Assign the temperature data to P0 by defining the variable, define three variables corresponding to P2.3, P2.4, P2.5 as the bit select port, P1.4, P1.5, P1.6, P3.7 A port as a temperature sensor connection port, according to the relevant procedures to complete the preparation of the software.

Key words: STC89C52 ;DS18B20 ;temperature monitoring;cycle display;alarm

目录

第1章 绪论 1

1.1 研究背景,目的及意义 1

1.2 国内外研究现状 1

1.3 主要研究内容及组织结构 2

第2章 粮仓温度监测系统的相关技术和需求分析 4

2.1 单线总线技术 4

2.2 需求分析 4

第3章 粮仓温度监测系统的总体方案设计 6

3.1 三种设计方案 6

3.2 设计方案的比较与选择 7

第4章 粮仓温度监测系统的软,硬件方案设计 8

4.1 硬件方案设计 8

4.1.1 温度采集模块 8

4.1.2 显示模块 12

4.1.3 报警模块 15

4.1.4 数据处理模块 16

4.2 软件方案设计 19

4.2.1 软件开发工具的选择 19

4.2.2 模块软件设计 20

第5章 粮仓温度监测系统的调试与仿真 28

5.1 仿真电路及分析 28

5.2 实物及分析 29

第6章 总结与展望 30

6.1 总结 30

6.2 展望 30

参考文献 31

附录 32

致谢 45

第1章 绪论

1.1 研究背景,目的及意义

我国是世界粮食的生产大国同时也是世界粮食的消费大国,所以做好粮食的贮存工作具有重大的意义,关系着人民生活,也关系着国家的安定和社会的稳定。从古至今,每个朝代都特别重视粮仓的建设,并传承了丰富的粮食安全存储和管理经验.粮食的安全存储是个整个世界的困扰,根据联合国粮农组织的调查和统计,全世界每年因为粮仓设施和管理的问题而导致的粮食损失高达所有粮食的8%。

虽然在常温下粮食的含水量只有13%-14%,而且常温下植物的呼吸作用也很弱,但是粮食堆积在一起,导致粮食的湿度加大,呼吸作用加强,使粮食内部的温度升高。所以,为了防止粮食因为内部温度升高而导致的粮食的自燃,从而导致粮食的损耗,我们要在粮仓的内部设置温度监控系统,一旦发现粮食内部有局部温度升高的现象,就要立刻采取通风,翻仓等防范措施。所以,及时而有效的监测粮食的温度对其贮存的影响尤为重要。

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图