您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 企业文化 > 51单片机控制并显示室内温湿度
南京工程学院毕业设计说明书(论文)-1-摘要温湿度在生产生活中起着越来越重要的作用,在生活生产中常用温湿度作为主要被控参数。温湿度是一个基本的物理量,几乎所有的科研和生产过程都和温湿度密切相关。因而,准确地测量和控制温湿度,对于获得正确的科研数据和保证产品质量都是十分重要的。而目前很多室内的温湿度还依然靠开关门窗来调节,这种方法不仅费时费力,效率低,准确度也不高,随机性大,当然也就不够科学。因此,需要研制一种结构简单、价格低廉的测控系统来达到自动调节温湿度的目的。本课题采用AT89C52做为核心芯片,通过单片机发送指令DHT11对现场进行温湿度采集,并将采集到的温湿度传输给单片机,单片机对得到的数字量温湿度值进行处理,利用LED动态的显示测量的温湿度,同时可以用按键设定理想的温湿度值,通过对设定温湿度和现场温湿度的比较,利用单片机控制现场进行“加热加湿”或“制冷干燥”等处理,使得温湿度保持在一定的范围之内。关键词:单片机、温湿度控制、DHT11南京工程学院毕业设计说明书(论文)-2-ABSTRACTInproductionlifetemperatureandhumidityplaysamoreandmoreimportantrole,productionasthemainaccusedinthecommonparametersofthetemperatureandhumidity.temperatureandhumidityisabasicphysicalquantity,almostalloftheresearchandproductionprocessandtemperatureandhumidity.Thus,toaccuratelymeasureandcontroltemperatureandhumidity,forthecorrectscientificdataandensureproductqualityareveryimportant.Atpresentalotofstoragetemperatureandhumidityarestillyettoadjustbyswitchingwindowsanddoors,thismethodnotonlytimeconsuming,inefficient,accuracyisnothigh,randombig,ofcourse,alsonotscientificenough.Therefore,theneedtodevelopasimple,inexpensivemonitoringsystemtoautomaticallyadjustthetemperatureandhumiditytoachievethepurpose.AsthecoreoftheissueusingAT89C52chips,ThroughtheSCMtosendcommandsDHT11collectingtemperatureandhumidityonthescene,andcollectedtemperatureandhumiditytransfertotheSCM,SCMonthetemperatureandhumidityarethedigitalvaluesforprocessing,LEDdynamicdisplayusingtemperatureandhumiditymeasurements,keyscanalsosettheidealtemperatureandhumidityvalues.Setthetemperatureandhumidityandon.sitecomparisonoftemperatureandhumidity.SCMsiteusingwetheatorcoolingdryandotherprocessing,makingthetemperatureiskeptwithinacertainrange.Keywords:SCM,temperaturecontrol,DHT11南京工程学院毕业设计说明书(论文)-3-目录摘要......................................................................1第一章绪论..............................................................51.1选题背景...........................................................51.2选题意义...........................................................51.3研究任务...........................................................61.4研究思路...........................................................71.5论文结构...........................................................7第二章系统的硬件电路设计.................................................92.1系统硬件电路构成....................................................92.2主控电路设计.......................................................102.2.1AT89C52.......................................................102.2.2晶振..........................................................122.2.3电路图设计环境................................................132.2.4PROTELDXP简介................................................132.2.5设计理念......................................................132.2.6元件硬件......................................................142.2.7作图流程......................................................172.3显示电路设计.......................................................172.4复位电路计...............................................................................................................................192.5按键电路设计.......................................................192.6控制电路设计.......................................................192.7检测电路设计.......................................................202.7.1传感器性能说明.................................................222.7.2接口说明......................................................232.7.3电源引脚......................................................242.7.4串行接口......................................................242.7.5测量分辨率....................................................262.7.6应用信息......................................................262.7.7电气特性......................................................262.7.8DHT11引脚说明.................................................27第三章软件设计与编程....................................................283.1单片机C语言.......................................................283.2KEILC51开发环境..................................................29南京工程学院毕业设计说明书(论文)-4-3.3系统的主程序设计...................................................353.3.1按键说明.......................................................353.3.2编程流程......................................................363.3.3程序内容......................................................36第四章结论..............................................................394.1总结.............................................................394.2设计特色与创新...................................................394.3感想心得.........................................................40致谢.....................................................................41参考文献.................................................................42附录A硬件设计原理图....................................................43附录B硬件设计PCB图....................................................45附录C实物零件分布......................................................46附录D源程序............................................................47附录B英文资料..........................................................57附录B外文资料译文.........
本文标题:51单片机控制并显示室内温湿度
链接地址:https://www.777doc.com/doc-1856507 .html