定时浇花装置的设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

本科毕业设计(2014届)题目家用定时浇花装置的设计学院专业班级学号学生姓名指导教师完成日期2014年6月诚信承诺我谨在此承诺:本人所写的毕业论文《家用定时浇花装置的设计》均系本人独立完成,没有抄袭行为,凡涉及其他作者的观点和材料,均作了注释,若有不实,后果由本人承担。承诺人(签名):年月日摘要本毕业设计以单片机为核心,设计了一款简单实用的家用定时浇花装置。该系统主要包括土壤湿度检测控制和定时系统控制。其中土壤湿度检测控制包括土壤湿度的检测,湿度与时间的显示及浇水控制。土壤温湿度的检测以土壤湿度检测部件和LM393为核心部件,将检测到的土壤湿度值以电压的形式送入STC89C52单片机,再由其输出到LED数码管进行显示。本系统含有智能操作和手动操作两个部分:智能浇水部分通过预先对单片机程序设定一个浇水的警戒值而后与土壤湿度检测出来送入单片机的电压值进行比较,只有在送入单片机的电压值低于下限电压值时,单片机才会输出一个信号,控制浇花装置,使其将阀门打开,开始浇水。当电压值高于上限值时,单片机停止输出控制阀门打开的信号,使阀门关闭,系统停止浇水。手动部分分两方面:一方面,单片机可以手动输入一个定时,时间通过74HC573显示到数码管上,通过软件程序设定定时浇水的时间与浇水的量。另一方面可以直接操作按键对装置进行浇花和停止浇花进行控制。关键词:单片机;单片机定时;湿度检测;电压测控ABSTRACTThegraduationmicrocontrollerasthecore,designedasimpleandpracticalhouseholdtimedwateringdevices。Thesystemincludessoilmoisturedetectioncontrolandtimingsystemcontrol.Andthesoilmoisturedetectioncontrolincludemonitoringofsoilmoisture,displayandcontrol.SoilmoisturedetectionunitandLM393asthedetectionofthecorecomponentsofsoiltemperatureandhumidity,soiltemperatureandhumidityvaluesdetectedintheformofvoltageintoSTC89C52microcontroller,thenoutputtotheLEDdigitaldisplaysothatweobserve.Automaticwateringsystemdesignedforintelligentandmanual:SmartwateringpartissoilmoisturedetectionvoltagevaluefedintotheSCMandcomparedwiththeupperandlowerlimitswhichprogrammedbySCM,whenbelowthelowerlimit,themicrocontrolleroutputsasignaltocontrolwateringdevicetobeopenedtobeginwatering.Whileabovetheupperlimitoftheoutputsignalfromthemicrocontrollertocontrolasolenoidvalveisclosed,stopwatering;forthemanualsectionontheonehand,bythemicrocontrollermanuallyenteratimer,by74HC573digitaltubedisplayto.settingthetimingandamountofwateringwateringtimethroughthesoftwareprogram.OntheotherhandcanbedirectlymanipulateKeywords:scm;single-chiptiming;hunmitidydetection;voltagetecon目录1引言........................................................................................................................-1-2概述........................................................................................................................-3-2.1家用定时浇花概述......................................................................................-3-2.2本设计方案思路..........................................................................................-4-2.3研发方向和技术关键..................................................................................-4-2.4主要技术指标..............................................................................................-4-3总体设计................................................................................................................-5-3.1土壤湿度的检测..........................................................................................-5-3.2显示模块......................................................................................................-5-3.3时间系统......................................................................................................-6-3.4按键模块......................................................................................................-6-4硬件设计................................................................................................................-7-4.1芯片选择........................................................................................................-7-4.1.1STC89C52..........................................................................................-7-4.1.2ADC0804.........................................................................................-14-4.1.3SL74HC573.....................................................................................-15-4.2硬件电路....................................................................................................-16-4.2.1控制系统..........................................................................................-16-4.2.2AD转化模块...................................................................................-16-4.2.3数字显示模块..................................................................................-17-5软件设计..............................................................................................................-18-5.1总体方案....................................................................................................-18-5.2程序流图....................................................................................................-18-5.3模块说明....................................................................................................-19-5.3.1定义程序..........................................................................................-19-5.3.2延时程序..........................................................................................-19-5.3.3中断程序..........................................................................................-19-5.3.4键盘扫描程序..................................................................................-20-5.3.5显示程序..........................................................................................-21-5.3.6主程序..............................................................................................-24-6制作与调试........

1 / 39
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功