沈阳理工大学学士学位论文I摘要温湿度控制已经成为了21世纪热门研究。无论是从生产还是生活,温湿度都与我们人类都是息息相关的。而智能化的温湿度控制系统的发展方向已成为一种必然趋势。我们思维方式不可能一直原地不动,不能再坚守旧时代利用大量人力资源来控制温度和湿度的变化。这样不但浪费大量的人力财力资源,而且控制系统功能也比较单一化,适用场合也有很大的局限性。而使用自动的智能控制的方式,既节省了人力财力,更加体现出了与时俱进的辩证思想,世界在进步,而这种进步就该体现在生活中的各个细节方面。传统的温湿度测量方法周期长,效率低,管理很不方便,发生故障时,更要花费大量人力物力来查找。尤其是用于温室采样数据频繁情况条件下,采用无线传输系统更显现出他的优越性。该系统可对温度实现现场和远程智能化在线检测和预警。该系统在测温精度上达到了一定的水平。而在温度采集速度上,由于使用了独立的温度补偿电路,有效地提高了温度测量的灵敏度和系统稳定性。另外,由于使用了存储芯片,可以保存实时数据,提高了系统的可靠性,是一种价格低廉方便实用的系统,可在生产上推广应用。为了实现这种对环境状况监测,于是设计了一种基于Arduino的环境状况监测系统。该系统以ArduinoUNO为研究重点、编写出ArduinoUNO程序、实现将传感器数据上传到监测平台。以及用计算机作为客服端查看连接到ArduinoUNO上的传感器数值。实验表明、这种设计能够以经济、高效的方式实现无线数据采集、可用于境状况的快速监测。关键词:Arduino;程序设计;环境状况监测沈阳理工大学学士学位论文IIAbstractTemperatureandhumiditycontrolhasbecomeahotresearchinthe21stcentury.Bothintermsofproductionandlife,ourhumanbeingsarecloselylinkedtotemperatureandhumidity.Andthedevelopmentdirectionofintelligenttemperatureandhumiditycontrolsystemhasbecomeaninevitabletrend.Thewayofourthinkingcanbechanged.Weareunabletosticktocontrolthechangeoftemperatureandhumiditywithsomanypeopleinoldstage.Itisnotonlywastealotofmanpowerresource,butalsothefunctionofcontrolsystemissimplifiedanditisappliedinoccasionsignificantlimitations.Whileusingautointelligentcontrolnotonlysavemanpowerbutalsoreflectsthedialecticalthoughtofkeepingpacewiththetime.Theworldhaschanged.Thisprogressshouldbereflectedineverydetailoflife.Thetraditionalmethodoftemperatureandhumiditymeasurementcycleislong,theefficiencyislowandthemanagementisnotveryconvenient.Whenafailureoccurs,peopleshouldspendalotofmanpowermaterialresourcestofindit.Especiallyforgreenhouseundertheworkingconditionsoffrequentsamplingdata,usingwirelesstransmissionsystemshowedhissuperiority.Thesystemcanbeachievedonthetemperaturefieldandremoteintelligenton-linedetectionandwarning.Thesystemontemperaturemeasurementaccuracyachievesacertainlevel.Duetothespeed,thetemperaturemeasurementsensitivityisimprovedeffectivelyandstabilitywiththeuseofindependenttemperaturecompensationcircuit.Inaddition,withtheuseofmemorychipsthatcansavethereal-timedataandimprovethereliabilityofthesystem.Itisakindoflowcost,convenientandpracticalsystemthatcanbeappliedintheproduction.InordertorealizeenvironmentalconditionmonitoringsystembasedonArduinowasdesigned.FocusedonArduinoUNO,weprogramedtheArduinoUNOforsendingthesensordatatopublicserver.Testsshowthatthiskindofdesignprovideenvironmentalconditionmonitoringsystemmoreeconomyandconvenient.Keywords:ArduinoUNO;Programming;Environmentalconditionmonitoring沈阳理工大学学士学位论文III目录1绪论....................................................................................................................................11.1课题研究背景............................................................................................................11.2国内外发展现状及发展趋势....................................................................................11.3软件技术的发展........................................................................................................21.4无线通信技术的发展及研究现状............................................................................31.4.1IEEE802.11....................................................................................................31.4.2蓝牙(Bluetooth)技术........................................................................................31.4.3NRF2401..........................................................................................................41.5论文的主要内容........................................................................................................42系统方案的总体设计..........................................................................................................62.1系统方案的确定........................................................................................................72.1.1传感器方案......................................................................................................72.1.2系统控制及数据处理模块方案......................................................................82.1.3无线传输方案..................................................................................................92.1.4数字式温湿度传感器选择............................................................................103系统硬件电路的设计........................................................................................................133.1温湿度采集部分电路设计......................................................................................133.1.1关于单总线的说明........................................................................................143.1.2传输数据的格式............................................................................................143.1.3数据时序图及传送接收的步骤....................................................................153.2环境因素对器件性能的影响..................................................................................183.3无线收发模块NRF2401的配置............................................................................183.3.1NRF2401状态机..........................................................................................203.3.2NRF24L01固件编程的基本思路.....