多功能数字温湿度计摘要温湿度参数的检测已经成为人们日常生产生活中的一个重要的参数指标。温湿度是环境参数中最为基础的两个参数,其在化工业、制药业等生产行业中有着重大意义,对于环境温湿度检测的一点点偏差就可能对生产形成非常严重的影响。随着社会的高速发展以及人们对于生活需求和生活水平的逐步攀升,温度与湿度这两个最基础的环境参数也逐渐步入人们的日常生活中。因此对于环境温湿度检测的研究有着重要的意义。本设计能实现实时检测当前环境下的温湿度参数值,并且通过LCD12864将数值显示出来,在超过设定的阈值时会进行声光报警。还可以实现时间和日历的显示功能,对时、分、秒进行显示,并且带有闹钟功能。通过按键,还可以调节温湿度的上下限;调节日期和时间;调节闹钟的时间以及闹钟的开关。采用DS1302时钟芯片、纽扣电池以及AT24C02芯片,这样可以对设置的报警值、闹钟、时间等信息实现掉电存储。关键词:单片机;温湿度;万年历;闹钟PAGE\*MERGEFORMATIIIMultifunctionaldigitalthermometerandhygrometerAbstractThedetectionoftemperatureandhumidityparametershasbecomeanimportantparameterindexinpeople'sdailyproductionandlife.Temperatureandhumidityarethetwomostbasicparametersofenvironmentalparameters,whichareofgreatsignificanceinthechemicalindustry,pharmaceuticalindustryandotherproductionindustries.Alittledeviationinthedetectionofenvironmentaltemperatureandhumiditymayhaveagreatimpactonproduction.Withthedevelopmentofsocietyandtheimprovementofpeople'slivingstandards,temperatureandhumidityastwobasicenvironmentalparametershavegraduallyenteredpeople'sdailylives.Therefore,itisofgreatsignificancetotheresearchofenvironmentaltemperatureandhumiditydetection.Thisdesigncanrealizereal-timedetectionoftemperatureandhumidityparametervaluesinthecurrentenvironment,anddisplaythevaluesthroughLCD12864,andsoundandlightalarmswillbeissuedwhenthesetthresholdisexceeded.Itcanalsorealizethedisplayfunctionoftimeandcalendar,displaythehours,minutes,andseconds,andhasanalarmclockfunction.Throughthebutton,youcanalsoadjusttheupperandlowerlimitsoftemperatureandhumidity;adjustthedateandtime;adjustthetimeofthealarmclockandtheswitchofthealarmclock.AdoptDS1302clockchip,buttonbatteryandAT24C02chip,thiscanrealizethepower-downstorageofthesetalarmvalue,alarmclock,timeandotherinformation.Keywords:Singlechipmicrocomputer;Temperatureandhumidity;Perpetualcalendar;AlarmclockPAGE\*MERGEFORMATIII目录多功能数字温湿度计......................................................................................................................I摘要..............................................................................................................................................IMultifunctionaldigitalthermometerandhygrometer.....................................................................IIAbstract...........................................................................................................................................II第一章引言...................................................................................................................................11.1设计背景和意义....................................................................................................................21.2设计目标................................................................................................................................2第二章系统总体设计方案...........................................................................................................32.1...