2009122812刘宝元1张玉虹1姜旭2段存丽1胡加兴1(1.西安工业大学光电工程学院西安710032;2.西安应用光学研究所西安710065):AT89S52,STH101602,,,,,,:;;SHT10;;:TP212.1,TP273.5:AThedesignoftemperatureandhumiditymonitoringsystembasedonSCMLiuBaoyuan1ZhangYuhong1JiangXu2DuanCunli1HuJiaxing1(1.SchoolofOptoelectronicEngineering,XipanTechnologicalUniversity,Xipan710032,China;2.XipanInstituteofAppliedOptics,Xipan710065,China)Abstract:Thetemperatureandhumidityareoneoftheimportantfactorswhicheffectproductionofnitrofilmsanddetec-tionofthickness.UsingAT89S52SCMasthecontrolcenter,themonitoringsystemiscomposedoftemperatureandhu-miditysensorSTH10,1062characterLCMmodule,whichachievesprecisionmeasurementandcontrolling.Practicehasprovedthatthesystemhasstabletask,simplecircuit,highintegration,convenientdebugging,whichcertificatesqualityofnitrofilms.Thereforethesystemhasacertainpracticalvalue.Keywords:singlechipmicrocomputer;temperatureandhumidity;STH10;automaticdetection;sensor;:,,,0[1-3],:,,,,;,,,,,,,1:1)B[4],18~28e,40%~70%;2);3)USB,,;4),,61)77)2009122812,,,,,12[5],,,,2LCDAtmelAT89S52,MCS-51AT89S52CMOS8,8KFlash,Atmel;Flash,;,8CPUFlash,AT89S52;2345IB[30mA,AT89S52,P11.6mA,60LA,,P1,,,PNP9012AT89S5211.0592MHz,30pF1602,,61602,,4@4,,MCU3)78)2009122812SENSIRIONSHT10,7.47mm@4.93mm@2.5mm,-40e~123.8e,0%RH~100%RH,?4.5%RH,?0.5e,0.03%RH,0.01e776,,11AT89S52P1.0)P1.1P1.2P1.1:,P1.2:RST2XTAL2XTAL1)GNDVcc,VccGND100nFP2.3P2.4P2.3:,P2.4:P0.3P0.2P0.1P0.03C,KeiluVision2:1)LCD;2),;3),8SHT11:y/0yyySHT109:8)79)20091228129SHT10,[6-8],(1):RHlinear=c1+c2#SORH+c3#SO2RH(1):SORH(90~3400),c1c2c3,22SORHc1c2c312bit-40.0405-2.8@10-68bit-40.648-7.2@10-4,PTAT,,(2):Temperature=d1+d2#SOT(2):SOT,d1d2,33VDDd1[e]d1[]SOTd2[e]d2[]5V-40.00-40.0014bit0.010.0184V-39.75-39.5512bit0.040.072:voidcalc_SHT10(float*p_humidity,float*p_tem-perature){constfloatC1=-4.0;//for12BitconstfloatC2=+0.0405;//for12BitconstfloatC3=-0.0000028;//for12BitconstfloatT1=+0.01;//for14Bit@5VconstfloatT2=+0.00008;//for14Bit@5Vfloatrh=*p_humidity;//rh:Humidity[Ticks]12Bitfloatt=*p_temperature;//t:Temperature[Ticks]14Bitfloatrh_lin;//rh_lin:Humiditylinearfloatrh_true;//rh_true:Temperaturecompensatedhu-midityfloatt_C;//t_C:Temperature[C]t_C=t*0.01-40;//calc.temperaturefromticksto[C]rh_lin=C3*rh*rh+C2*rh+C1;//calc.humid-ityfromticksto[%RH]rh_true=(t_C-25)*(T1+T2*rh)+rh_lin;//calc.temperaturecompensatedhumidity[%RH]if(rh_true100)rh_true=100;//cutifthevalueisoutsideofif(rh_true0.1)rh_true=0.1;//thephysicalposs-iblerange*p_temperature=t_C;//returntemperature[C]*p_humidity=rh_true;//returnhumidity[%RH]}4,,,,?0.1e?3%,,,,,,,,[1].[M].:,2007,13-35.[2].[D].:,2007:10-23.[3],,.[J].,2004,18(4):29-32.[4].(GB50174)93)[M].:,1993.[5],AD590[J].,2009,27(1):27-28.(下转第83页))80)200912281233.1A/D,MAX232,RS232GPRS,GPRS,2:23.21)IP,DDN,GPRSDDN,,2)GPRS,,,3),,,3.3GPRS/GSMGSM,,GPRS,IPGPRSIP,IP,GPRS[5]GPRS,,GPRSDTU,;,GPRSRTUGPRS:DTU;DTU,;,DTU;DTU4GPRS,GPRS/,,,,GPRS,GIS,GIS,,,[1].[J].,2008,(6):30-33.[2],.GPRS[J].:,2007,2(38):296-298.[3].GPRS[J].,2007,26(6):885-888.[4],.[J].,2007,(8):32-33.[5],.GPRS[J].,2007,(12):9-11.[6](Bud)BatesRJ.(GPRS)[M].:,2004.(上接第80页)[6],,,.[J].,2009,30(1):138-142.[7],.[J].,2008,28(1):1-6.[8],,,.[J].:,1997,23(3):311-315.)83)