家庭室内环境检测系统设计 毕业论文(8)

2019-04-13 20:46

天津工业大学2015届毕业论文

III.SYSTEMHARDWAREDESIGN

A.Thehardwaredesignoftheterminalnode

Inthebackgroundofindoorenvironmentalmonitoringapplications,forthedesignofsensornodethesefactorssuchaslow-cost,lowpower,stability,andreliabilityarespeciallyconsidered.ThehardwareblockdiagramofterminalnodeisshowninFigure2.

Figure2.Terminalnodehardwaredesign

TheCC2430istheprocessorandwirelesscommunicationunitofsystem,whichisarealZigBeewirelessSOC(System-on-Chip),equippedwithahighperformance2.4GHzDSSS(DirectSequenceSpreadSpectrum)RFtransceivercoreandanenhancedindustry-standard8051MCU.TheCC2430convertsthedatacollectedfromtheterminalnodeintodigitalsignalsusingADconverter,thenthedataaretransmittedtothegatewaynodebywirelessmulti-hopmode.

Takingintoaccountthespecifictaskofthegatewaynode,thatistoprocessand

30

天津工业大学2015届毕业论文

transmittheinformationcollected,aswellasthecharacteristicofitsstoragecapacityandcommunicationsrequirementsformonitoringtemperatureandhumidity,thegatewaynodecanstillusetheCC2430,whichissimilartothesensornodes.Thefunctionofgatewaynodeistocompletethecorrectionandfusionofdata,sendingthedatatothemonitoringcenter,gettinginstructionsandsendingtheinstructionstothecontrolequipmentafterprocessing.

B.Thehardwaredesignofsensormeasuringcircuit

Theterminalnodesneedtocompletetheacquisitionofvariousenvironmentalfactorsandtheinformationacquisitionisdonebythesensor,requiringsensorswithhigheraccuracyandlowerpowerconsumption.Inthisdesign,digitalsensorchipSHT71isselected,whichchieflyconsistsoftemperatureandhumiditysensor,amplifier,AIDconvertercircuitandmemory.Thesalientfeaturesofthischipareasfollows:operatingcurrentis550f.JA,standbycurrentisonly0.3f.JA,temperatureaccuracyis±0.3'Crespectivelyandhumidityaccuracyisnotmorethan1.8%,two-wiredigitalinterface,fullydigitaloutput,whichisI2CbusandcanbedirectlyconnectedwiththeMCU.

IV.FuzzyPIDCONTROLSTRATEGYANDDESIGN

A.FuzzyPIDcontrolstrategy

Inviewofthecharacteristicsoftheindoorairtemperatureandhumiditycontrol,thatis,multi-variable,largeinertia,nonlinear,couplingparameter,puredelayandalongertimespentinthecontrolandregulationandproducingsignificantovershoot,aprecisemathematicalmodelcannotbeestablishedandusingtheclassicalcontrolmethodisdifficulttoachievesatisfactorycontrolprecision.Fuzzycontrolstrategyisagoodchoiceandasanimportantbranchofthefieldofintelligentcontrol,itmimicsthehumanthoughttocontrol,withsimpledesignandrobustadvantages.Therefore,selectingafuzzycontrolalgorithmistocontroltheenvironmentalfactorsofthesystem.

B.TheimplementationofFuzzyPIDControl

Thefuzzycontrollerisnotrequiredtomastertheprecisemathematicalmodelofthecontrolledobject,andaccordingtothemanualcontrolrulestoorganizecontroldecisiontable,andthenthesizeofcontrolamountisdeterminedbythistable.CombiningfuzzycontrolwithPIDcontrolhastheadvantagesofflexibleandadaptableofthePIDcontrol,butalsohastheadvantagesofhighaccuracyofthePIDcontrol.Parameteradjustmentiscarriedoutbycalculatingthetemperatureerroranderrorchangerateecofthecurrentsystem,usingfuzzyrulesforfuzzyreasoningand

31

天津工业大学2015届毕业论文

queryingfuzzyruletable.ThestructureoffuzzyPIDcontrollerisshowninFigure3.

Figure3.FuzzyPIDtemperaturecontrollerstructure

AfuzzyPIDcontrollerisappliedtotemperaturecontrolinthisdesign,andtheinputlinguisticvariablesofthetemperaturefuzzycontrolleraretheerroreanditschangerateetc,whiletheoutputlinguisticvariableisthechangeofcontrollingamount,whichwillhelptoensuresystemstability,reducetheovershootofresponseprocessandweakentheoscillation.CombiningfuzzycontrolwithPIDcontrol,expressingtheconditionsandoperationoftherulebyfuzzyquantityintermsofthebasicprinciplesandmethodsoffuzzymathematics,thesefuzzycontrolrulesarestoredintothecomputerknowledgebaseandthenusingfuzzyreasoning,thecomputercouldtoachievethebestadjustmentofthePIDparametersbasedontheactualcorrespondingcircumstances.

Tomeetthedifferentrequirementsofcontrolparametersfromdifferenterroreanditschangerateetc,thefuzzyrelationsbetweenthe3parametersofPIDcontrolleranderroreanditschangerateetcareidentifiedandthe3parametersareadjustedaccordingtothefuzzycontrolprinciple,sothatthecontrolledobjecthasagooddynamicandstaticperformance.

TABLE!.FuzzyCONTROLQUERYTABLEOFTEMPERATURE

Bysummarizingthetechnologyandoperatorexperience,thecontrolrulestatements

32

天津工业大学2015届毕业论文

areaccessedandthetemperaturefuzzycontrolruletableisestablished.Butmicro-controllercannotdosuchalargeamountofcomputation,sothesolutionistoproduceafuzzycontrolquerytableshowninTable1andtocarryoutfuzzycomputingbysoftwarequery.

TheimplementationmethodofsoftwareistostorerespectivelythefuzzycontroltableofMp,MiandMdcalculatedoff-lineinthememory,thenevery30msperiodicinterruptcallsthesubroutineofqueryingfuzzycontroltable,thatis,accordingtothequantitativevalueofeandectoqueryfuzzycontroltableandtoobtainquantitativevaluesofMp,MiandMd'TheprogramflowchartisshowninFigure4.

Figure4.FuzzyPIDTemperaturecontrolflowchart

V.SYSTEMSOFTWAREDESIGN

A.Thesoftwaredesignofterminalnode

33

天津工业大学2015届毕业论文

ThedevicecomplyingwithZigBeeprotocolcanautomaticallyadjustthetransmitpowerandcanconsumeminimumequipmentenergyonthepremiseofensuringthecommunicationlinkquality.Inthisdesign,wirelesssensornetworkusingatreetopologystructurehastheadvantagesofbetterfunctionandlargercoveragethanthestarstructure,whileeasiertoimplementandmaintainthanthemeshnetwork.Inthesoftwaredesignofnodes,bycallingtheAPIfunctionsprovidedZigBeeprotocolstacktocompletetheinitializationofdevice,theconfigurationofthenetworkandthestartingupnetworkofnetworkmanagementlayer,thewirelessadhocnetworkconsistedofwirelesssensornodesdistributedinanumberofgreenhousesareachieved.Tofurtherreducenodepowerconsumption,thesystemalsohasthefunctionoftheregulardatacollectionandregularsleepandwake-up,whichfunctionisflexibleanddynamicallyconfigurable.ThemainprogramflowchartoftheterminalnodesisshowninFigure5andtheflowchartofinterruptserviceroutineisshowninFigure6.

Figure6.Flowchartofinterruptserviceroutine

Figure5.Mainprogramflowchartoftheterminalnodes

B.Thesoftwaredesignofthemonitoringcenter

Themonitoringcentermanagementsystemisinchargeofsendingacquisitioncommand,receivingcollecteddata,whilereleasingdataontheservertomeettheclient'sbrowsing.Itsmaintasksincludesynchronousmonitoringofallflowmeterstoachievetheonlinemonitoringfunctionofexcessivealarmetc,collectingdataandperformingcyclicredundancycheck(CRC)toensurereliabledata,storingautomaticallythemonitoringdataandtimeinformationinthedatabaseserver,andsoon.theprogramflowchartisshowninfigure7.

34


家庭室内环境检测系统设计 毕业论文(8).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:蒸馏酒与配制酒中酒精度测量结果的不确定度评定

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: