
蔬菜公司恒温库微机监控系统.doc
49页郑州航空工业管理学院毕业论文(设计)2013 届 电气工程及其自动化 专业 1106971 班级题 目 蔬菜公司恒温库微机监控系统姓 名 张宁 学号 110697137指导教师 何琳琳 职称 副教授二ОО 年 月 日郑州航空工业管理学院毕业设计(论文)蔬菜公司恒温库微机监控系统摘 要如今随着农业的飞速发展, 产业规模的提高, 传统的温度控制措施就呈现出很大的局限性 所以,在现代化的蔬菜管理中出现了恒温库的微机监控系统, 它在保证蔬菜质量、 减少蔬菜损耗等方面发挥了巨大的作用 在政府以及市场的引导下,恒温库将规范化发展, 逐步的淘汰不符合节能减排和可持续发展战略要求的,日益成熟化本设计主要阐述了基于 AT89C51单片机的蔬菜公司恒温库微机监控系统的设计原理,包括了主要的电路设计及软件设计等 该系统采用 AT89C51单片机作为温度控制器, 可以实现把恒温库的温度控制在设定值允许的误差范围内 同时采用了数字式温度传感器 DS18B20,对温度进行采样显示部分采用 4 位 LED数码管以动态扫描方式实现温度显示,设计上下限,超限报警关键词: 恒温库; AT89C51; DS18B20;单片机;传感器; LED显示器II郑州航空工业管理学院毕业设计(论文)Microcomputer monitoring system of constant temperature storehouse in vegetable companyABSTRACTIn modern times,with the development of agriculture and its largesize,traditionaltemperaturecontrolmeasuresshowedgreatlimitations.Therefore,the microcomputer monitoring system of constanttemperaturestorehouseappeared inmodern vegetablemanagement.Itplaysan important role in ensuring the quality of the vegetable and reducingthelossofvegetable.Underthe guidance of government andmarket,constanttemperaturestorehousewilldevelopnormative,eliminatethose do not meet the requirements of energy-saving emission reductionand sustainable development strategy, becomes more and more mature.This design mainly expounds the design principle of microcomputermonitoringsystem ofvegetablecompany's constanttemperaturestorehouse.It'sbased on AT89C51singlechipmicrocomputer and includingthe main circuit design and software design.This system uses AT89C51 asthetemperaturecontroller,itcanmake thestorehouse'stemperaturecontrollingin the errorrange thatthesettingpointallowed.Atthe sametimeuses digitaltemperaturesensorDS18B20, samplingof thetemperature.The displaypartuses 4 LEDdigital tubeand a dynamic scan modetorealizethetemperaturedisplay.Besides,italsodesignslimits.Whenthetemperature exceeds the set point,it will alarm.KEY WORDS: constant temperature storehouse;AT89C51;DS18B20;single chip microcomputer;sensor;LED display1郑州航空工业管理学院毕业设计(论文)目 录前 言 ....................................................3第一章 蔬菜公司恒温库微机监控系统概述 ....................51.1蔬菜公司恒温库微机监控系统的目的 ............................51.2蔬菜公司恒温库微机监控系统的功能 ............................6第二章总体设计方案 ......................................72.1简述........................................................72.1.1实现的基本功能 .........................................72.1.2技术参数 ...............................................72.2总体设计方案确定 ............................................82.2.1系统框图 ...............................................82.2.2控制部分 ...............................................82.2.3显示部分 ...............................................92.2.4温度采集部分 ...........................................9第三章 系统硬件设计 .....................................103.1单片机模块的设计 ...........................................103.1.1单片机的特性介绍 ......................................103.1.2单片机的管脚介绍 ......................................113.2温度采集系统的设计 .........................................133.2.1DS18B20 的主要特性 ....................................133.2.2DS18B20 的结构 ........................................143.2.3DS18B20 的工作原理 ....................................153.3显示模块的设计 .............................................173.4按键及声光报警电路的设计 ...................................183.5单片机与 PC机的通讯 ........................................193.6温度调节系统的设计 .........................................20第四章系统的软件设计 ...................................214.1软件设计的整体思想 .........................................214.2主程序流程图 ...............................................224.3温度检测子程序流程图 .......................................244.4按键扫描子流程图 ...........................................25结 论 ...................................................26致 谢 ...................................................27参考文献 ................................................282郑州航空工业管理学院毕业设计(论文)附 录 29。












