




已阅读5页,还剩15页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第1页外文文献资料“DesigningaMicrocontrollerBasedTemperatureDataLogger”Abstract-Withtheadvancementoftechnology,theprocessesarebecomingmoreandmorecomplex.Duetothisincreaseincomplexity,forefficientanalysisofprocessthenumberofparametersrequiredfordataacquisitionalsoincreases.DataAcquisitionissimplythegatheringofinformationaboutasystemorprocess.Itistheprocessofcollectingdatainanautomatedfashionfromanaloganddigitalmeasurementsourcessuchassensorsanddevicesundertest.Beforethecomputerage,mostdatawasrecordedmanuallyoronstrip-chartrecorders.Manynewgenerationdataacquisitionproductshavebeendevelopedduetoemergenceofmicrocontrollerthatenablesreal-timegathering,analysis,loggingandviewingofdata.Tomeettheserequirementsthedemandofanimproved,efficientandup-to-datedataloggerisincreasing.Adataloggerisanelectronicinstrumentthatcanrecorddigitaloranalogmeasurementsoveraperiodoftime.Itconsistsofasensor,microcontroller,andadatastoragedevice.Dataloggershaveanon-boardmemorythatislargeenoughtoholddatathatisrecordedoveralongerperiodoftime.Thememoryinthesedataloggersmaybeflashmemory,EEPROMorStaticRandomAccessMemorythatisbatterybacked.Dataloggersareprovidedwithrealtimeclockstorecordthedateandtimeofacquisition.Inthisthesis,adataloggerforspecificapplicationhasbeendesigned.Thesystemworksaroundthefamous8051family.ThesystemisdesignedanddevelopedtomeasurethetemperaturewiththehelpoftemperaturesensorsandtheresultisstoredinmemorysuchasEEPROMforpostprocessanalysis.Duringthetesting,itisverifiedthatthereiscontinuousandcorrectacquisitionofdata.Itisalsoverifiedthatthedataissequentiallystoredinmemory.ThisverificationisdonebyusinganLCDdisplay.Thefocusofdesignisonportabilityandlowpowerconsumptionforbatteryoperated第2页applications.Thedesignedsystemistestedunderdifferentconditions:atroomtemperatures,atlowtemperatures,atdifferenttemperatures,readingstakenoverlongtime.Foralltheseconditions,thesystemperformedaccurately.Theprocessestocollect,analyzeandstorethedataforlateruseiscalledlogging.Itisaprocesstorecordeventsduringatestormeasurementwiththeuseofasystemoraproduct.Thehumanbrainanditsmemory,thenaturescreation,nodoubtisthebestdataloggingmechanism.Wherethereistheneedtocollectinformationfasterthanahuman,dataloggerscanpossiblycollecttheinformationandincaseswhereaccuracyisessential.Adataloggerisadevicethatcanbeusedtostoreandretrievethedata.Dataloggingalsoimpliesthecontrolofhowsensorcollectsandanalyzesthedata.Itiscommonlyusedinscientificexperimentsandinmonitoringsystems.Dataloggersautomaticallymakearecordofthereadingsoftheinstrumentslocatedatdifferentpartsofplant.Thetypeofinformationrecordedisdeterminedbytheuser.Theiradvantageisthattheycanoperateindependentlyofacomputerandtheyareavailableinvariousshapesandsizes.Therangeincludessimpleeconomicalsinglechannelfixedfunctionloggerstomorepowerfulprogrammabledevicescapableofhandlinghundredsofinputs.Temperatureistheever-changingparameterbecauseofexpositiontohugearrayofstimulifromtheirenvironment.Itcanbemeasuredviaadiversearrayofsensors.Alloftheminfertemperaturebysensingsomechangeinaphysicalcharacteristic.Onemustbecarefulwhenmeasuringtemperaturetoensurethatthemeasuringinstrument(thermometer,thermocouple,etc)isreallythesametemperatureasthematerialthatisbeingmeasured.Undersomeconditionsheatfromthemeasuringinstrumentcancauseatemperaturegradient,sothemeasuredtemperatureisdifferentfromtheactualtemperatureofthesystem.Insuchacasethemeasuredtemperaturewillvarynotonlywiththetemperatureofthesystem,butalsowiththeheattransferpropertiesofthesystem.Theobjectiveofthisworkistousedataloggingfortemperaturemeasurement.Inordertomeettheaboverequirements,alowcost,versatile,第3页portabledataloggerisdesigned.AmicrocontrollerbasedtemperaturedataloggerhasbeendevelopedformeasuringtemperatureatdifferentinputchannelsofADC.Thedeviceisdesignedtoreceivedatafromtemperaturesensorsandtostoretheresultsonexternalnon-volatileelectricallyerasableprogrammablereadonlymemory(EEPROM)forpostprocessanalysis.AnintegratedLiquidcrystaldisplay(LCD)isalsousedforrealtimedisplayofdataacquiredfromvarioussensors.Inthepresentwork,temperaturesindicatedbythreechannelsarecomparedwithstandardtemperatureobtainedfromclinicalthermometeraftertheintervalsoftime.Basedontheseresults,theaccuracyofthechannelsisnotedandbycomparingthem,themostaccurateoneamongtheseisfound.1.IntroductiontodataloggersThedataloggerisaninvaluabletooltocollectandanalyzeexperimentaldata,havingtheabilitytoclearlypresentrealtimeanalysiswithsensorsandprobesabletorespondtoparametersthatarebeyondthenormalrangeavailablefromthemosttraditionalequipment.Thedifferencesbetweenvariousdataloggersarebasedonthewaythatdataisrecordedandstored.1.1.DefinitionofDataLoggersDataloggerisanelectronicdevicethatautomaticallyrecords,scansandretrievesthedatawithhighspeedandgreaterefficiencyduringatestormeasurement,atanypartoftheplantwithtime.Thetypeofinformationrecordedisdeterminedbytheuseri.e.whethertemperature,relativehumidity,lightintensity,voltage,pressureorshockistoberecorded,thereforeitcanautomaticallymeasureselectricaloutputfromanytypeoftransducerandlogthevalue.Adataloggerworkswithsensorstoconvertphysicalphenomenaandstimuliintoelectronicsignalssuchasvoltageorcurrent.Theseelectronicsignalsarethenconvertedintobinarydata.Thebinarydataistheneasilyanalyzedbysoftwareandstoredonmemoryforpostprocessanalysis.1.2.CharacteristicsofDataLoggersDataloggerspossessthefollowingcharacteristics:1.)Modularity:Dataloggerscanbeexpandedsimplyandefficientlywheneverrequired,withoutanyinterruptiontotheworkingsystem.第4页2.)ReliabilityandRuggedness:Theyaredesignedtooperatecontinuouslywithoutinterruptionevenintheworstindustrialenvironments.3.)Accuracy:Thespecifiedaccuracyismaintainedthroughouttheperiodofuse.4.)ManagementTool:Theyprovidesimpledataacquisition,andpresenttheresultsinhandyform.5.)Easytouse:Thesecommunicatewithoperatorsinalogicalmanner,aresimpleinconcept,andthereforeeasytounderstand,operateandexpand.1.3.OperationofdataloggerTheabilitytotakesensormeasurementsandstorethedataforfutureuseis,bydefinition,acharacteristicofadatalogger.However,adata-loggingapplicationrarelyrequiresonlydataacquisitionandstorage.Inevitably,theabilitytoanalyzeandpresentthedatatodetermineresultsandmakedecisionsbasedontheloggeddataisneeded.Acompletedata-loggingapplicationtypicallyrequiresmostoftheelementsillustratedbelow.1.4.AdvantagesofDataLoggers1.)DataLoggersdontinterferewiththeusersinperformingtheirtasks.2.)Theycanoperateindependentlyofacomputerandtheyareavailableinvariousshapesandsizes.3.)Therangeofdataloggersvariesfromsimplechannelinputstomultichanneldevices.2.SystemDesignandImplementationForthedesignanddevelopmentofthesystem,themethodologyusedinvolvesthesoftwareandhardwareimplementation.Theactualimplementationofthesysteminvolvesthefollowingsteps:1.)SystemDefinition:Broaddefinitionofsystemhardwareincludingmicrocontrolleranditsinterfacewithdisplay,ADC,memory,keypadetc.2.)CircuitDesign:Selectionof8051microcontrollerandotherinterfacingdevices,aspersystemdefinition.Designofhardwarecircuitanditstestingonlaboratorykitswithsomesimplemicrocontrollersoftwareroutines.3.)PCBDesignandFabrication:Generationofschematicdiagramsandthe第5页productionofcircuitboardlayoutdatafortheprocurementofthecircuitboard.4.)HardwareModifications:Makinganyhardwarechangesfoundnecessaryaftertheinitialhardwaretests,toproducearevisedcircuitboardschematicdiagramandlayout.5.)SoftwareDesign:Developingalgorithmforthesystem,allocatingmemoryblocksasperfunctionality,codingandtesting.6.)IntegrationandFinalTesting:Integratingtheentirehardwareandsoftwaremodulesanditsfinaltestingfordataloggingoperation.Thusthecompletedesignisdividedintotwoparts:1.)HardwareImplementation.2.)SoftwareImplementation.3.HardwareImplementationItinvolvesthedetailsofthesetofdesignspecifications.Thehardwaredesignconsistsof,theselectionofsystemcomponentsaspertherequirement,thedetailsofsub-systemsthatarerequiredforthecompleteimplementationofthesystemandfullhardwareschematicsforthePCBlayout.Designofthecircuitanditstestinghasbeencarriedout.Itinvolvesthecomponentselection,componentdescriptionandhardwaredetailsofthesystemdesigned.3.1.ComponentselectionanddescriptionTemperaturemeasurementusingmicrocontrollerbaseddataloggerincludesthefollowingcomponents:1.)TemperatureSensor(LM35)2.)AnalogtoDigitalConverter(ADC0808)3.)Microcontroller(AT89C51)4.)KeypadMatrix(44matrix)5.)LiquidCrystalDisplay(HD44780)6.)ExternalMemory(AT28C64)3.2.SelectionofSuitableTransducerFormeasuringthetemperature,thechoiceofsensorisofutmostimportance.ThesensorsareusedinmanyfieldsincludesThermocouples,Resistivetemperaturedevices(RTDsandthermistors)andbimetallicdevices.Thefactorsfortheselectionofsensorthatwetakeinto第6页accountincludestheinherentaccuracyfordurability,rangeofoperation,susceptibilityoutsidenoiseinfluences,easeofmainmaintenanceandinstallation,handlingduringinstallation(delicacy),easeofcalibration,andtypeofenvironmentitwillbeusedin.ThetemperaturesensorusedforthispurposeisLM35becauseofthefollowingfeatures:TheLM35seriesareprecisionintegrated-circuittemperaturesensors,whoseoutputvoltageislinearlyproportionaltotheCelsius(Centigrade)temperature.TheLM35thushasanadvantageoverlineartemperaturesensorscalibratedinKelvin,astheuserisnotrequiredtosubtractalargeconstantvoltagefromitsoutputtoobtainconvenientCentigradescaling.TheLM35doesnotrequireanyexternalcalibrationortrimmingtoprovidetypicalaccuraciesof14Catroomtemperatureand34Coverafull55to+150Ctemperaturerange.TheLM35slowoutputimpedance,linearoutput,andpreciseinherentcalibrationmakeinterfacingtoreadoutorcontrolcircuitryespeciallyeasy.Itcanbeusedwithsinglepowersupplies,orwithplusandminussupplies.3.3AnalogtoDigitalConverter(ADC)Inphysicalworldparameterssuchastemperature,pressure,humidity,andvelocityareanalogsignals.Aphysicalquantityisconvertedintoelectricalsignals.Weneedananalogtodigitalconvertertotranslatetheanalogsignalstodigitalnumberssothatthemicrocontrollercanreadthem.Thus,ananalog-to-digitalconverter(ADC)isanelectroniccircuitthatconvertscontinuoussignalstodiscretedigitalnumbers.Analogtodigitalconvertersarethemostwidelyuseddevicesfordataacquisition.TheADC0804ismostwidelyusedchip.Forthiswork,theanalogtodigitalconverterchosenisADC0809.BecauseADC0804hasonlyoneanaloginput,thischiphas8oftheanaloginputs.Thischipallowsustomonitorupto8differenttransducersusingonlyasinglechip.The8analoginputchannelsaremultiplexedandselectedaccordingtotherequirement.InADC0808/0809,Vref(+)andVref(-)setthereferencevoltage.IfVref(-)=GndandVref(+)=5V,thestepsizeis5V/256=19.53.Thereforetogeta10mVstepsizeweneedtosetVref(+)=2.56VandVref(-)=Gnd.第7页WeuseA,B,CaddressestoselectIN0-IN7andactivateAddresslatchenable(ALE)tolatchintheaddress.SCisforStartConversion.EOCisforEndofConversionandOEisforOutputEnable.TheoutputpinsD0-D7providesthedigitaloutputfromthechip.Vref(-)andVref(+)arethereferencevoltages.SincethereisnoselfclockinginthischipsotheclockmustbeprovidedfromanexternalsourcetotheClock(CLK)pin.3.4.Microcontrollerchip3.4.1.AT89C51MicrocontrollerThe8051familyofmicrocontrollersisbasedonanarchitecturewhichishighlyoptimizedforembeddedcontrolsystems.Itisusedinawidevarietyofapplicationsfrommilitaryequipmenttoautomobilestothekeyboard.SecondonlytotheMotorola68HC11ineightbitprocessorssales,the8051familyofmicrocontrollersisavailableinawidearrayofvariationsfrommanufacturerssuchasIntel,Philips,andSiemens.Thesemanufacturershaveaddednumerousfeaturesandperipheralstothe8051suchasI2Cinterfaces,analogtodigitalconverters,watchdogtimers,andpulsewidthmodulatedoutputs.Variationsofthe8051withclockspeedsupto40MHzandvoltagerequirementsdownto1.5voltsareavailable.Thiswiderangeofpartsbasedononecoremakesthe8051familyanexcellentchoiceasthebasearchitectureforacompanysentirelineofproductssinceitcanperformmanyfunctionsanddeveloperswillonlyhavetolearnthisoneplatform.TheAT89C51isalow-power,high-performanceCMOS,8-bitmicrocomputerwith4KbytesofFlashprogrammableanderasablereadonlymemory(PEROM).ThedeviceismanufacturedusingAtmelshigh-densitynonvolatilememorytechnologyandiscompatiblewiththeindustry-standardMCS-51instructionsetandpinout.Theon-chipFlashallowstheprogrammemorytobereprogrammedin-systemorbyaconventionalnonvolatilememoryprogrammer.Bycombiningaversatile8-bitCPUwithFlashonamonolithicchip,theAtmelAT89C51isapowerfulmicrocomputer,whichprovidesahighly-flexibleandcost-effectivesolutiontomanyembeddedcontrolapplications.3.5.KeypadMatrixAtthelowestlevels,keyboardsareorganizedinamatrixofrowsand第8页columns.TheCPUaccessesboththerowsandcolumnsthroughports,therefore,withtwo8-bitports;an88matrixofkeyscanbeconnectedtothemicrocontroller.Whenakeyispressed,arowandacolumnmakeacontact,otherwise,thereisnoconnectionbetweenrowsandcolumns.Thedetectionofthekeyvariesfromscanningofthekeytogroundingtherowsandcolumns.3.6.LiquidCrystalDisplayAliquidcrystaldisplay(LCD)isathin,flatdisplaydevicemadeupofanynumberofcolorormonochromepixelsarrayedinfrontofalightsourceorreflector.Itusesverysmallamountsofelectricpower,andisthereforesuitableforuseinbattery-poweredelectronicdevices.Eachpixelconsistsofacolumnofliquidcrystalmoleculessuspendedbetweentwotransparentelectrodes,andtwopolarizingfilters,theaxesofpolarityofwhichareperpendiculartoeachother.Withouttheliquidcrystalsbetweenthem,lightpassingthroughonewouldbeblockedbytheother.Theliquidcrystaltwiststhepolarizationoflightenteringonefiltertoallowittopassthroughtheother.MoremicrocontrollerdevicesareusingsmartLCDdisplaystooutputvisualinformation.LCDdisplaysdesignedaroundHitachisLCDHD44780module,areinexpensive,easytouse,anditisevenpossibletoproduceareadoutusingthe8x80pixelsofthedisplay.HitachiLCDdisplayshaveastandardASCIIsetofcharactersplusJapanese,Greekandmathematicalsymbols.Foran8-bitdatabus,thedisplayrequiresa+5Vsupplyplus11I/Olines.Fora4-bitdatabusitonlyrequiresthesupplylinesplussevenextralines.WhentheLCDdisplayisnotenabled,datalinesaretri-statewhichmeanstheyareinastateofhighimpendence(asthoughtheyaredisconnected)andthismeanstheydonotinterferewiththeoperationofthemicrocontrollerwhenthedisplayisnotbeingaddressed.3.7.ExternalMemoryThemicrocontrollerAT89C51thathasbeenusedindesigningadataloggerhasinternalmemoryof8k.Inthedesignofdatalogger,theneedistowriteinthememorythatiswhyusingtheexternalmemoryissignificantasitisnotpossibletowritedataininternalmemoryofmicrocontroller.Forthisapplication,thecontentsofmemoryareneededtobewrittenanderased第9页anumberoftimesandforthisreasonelectricallyerasableandprogrammablememory(EEPROM)istobeused.InternallyEEPROMissimilartoerasableprogrammablereadonlymemory(EPROM).AT28C64hasbeenusedsinceithaslargememoryi.e.64k.TheAT28C64isaccessedlikeaStaticRAMforthereadorwritecycleswithouttheneedforexternalcomponents.Duringabytewrite,theaddressanddataarelatchedinternally,freeingthemicroprocessoraddressanddatabusforotheroperations.Followingtheinitiationofawritecycle,thedevicewillgotobusystateandautomaticallyclearandwritethelatcheddatausinganinternalcontroltimer.4.HardwaredetailsofsystemdesignedFigure3.1showstheschematicfortheimplementationofthehardwareforthispurpose.Figure3.1SchematicdiagramFigure3.2showstheblockdiagramofthesystemhardware第10页Figure3.2Blockdiagramofsystemhardware5.SoftwaredesignanddevelopmentSoftwaredesignincludesdevelopingalgorithmforthesystem,allocatingmemoryblocksasperfunctionality,writingtheseparateroutinesfordifferentinterfacingdevicesandtestingthemonthedesignedhardware.InterfacingofmicrocontrollerwithADC,LCD,MEMORY,etchasbeencarriedoutusingvarioussoftwaremodules.Thecontrolprogramiswritteninassemblylanguage.Thesoftwareisabletoshowtherealtimevaluesfromtheanalogchannelsforimmediateanalysis.Fordesigningthesoftwareforthiswork;theflowofsoftwarebetweenthehardwarecomponentsistobeunderstoodfirst.6.ResultsInthissystem,Temperaturemeasurementsfromthethreechannelsaretaken.Theperformanceofthethreechannelsisdistinguishedonthebasisoftheiraccuracy.Allthesensorsarespecifiedwithaccuracy.Theaccuracyindicateshowcloselythesensorcanmeasuretheactualorrealworldparametervalue.Themoreaccurateasensoris,betteritwillperform.Thereadingsaretakenunderdifferentconditionsforsometimeinterval.Alsothereadingsaretakenatdifferenttemperaturesinatimeinterval.Comparingthereadingsobtainedfromthethreechannelsunderthedifferentconditionsthemostaccuratechannelamongthemisfound.7.ConclusionThedataloggerisaninvaluabletooltocollectandanalyseexperimentaldata,havingtheabilitytoclearlypresentrealtimeresults,withsensorsandprobesabletorespondtoparametersthatarebeyondthenormalrangeavailablefrommosttraditionalequipment.Dataloggersusedformeasuring第11页thetemperaturemighthavecertainlimitationsintermsofspeed,memoryandcost.Alsodataloggerswithincreasednumberofchannelsarecomplex.Inthiswork,anattempthasbeendonetodesignadatalogger,whichisoflesscost,portable,verylowpowerconsumption,selfcontained.Itisanefficientdatalogger,whichworksinrealtimemode.Thereducednumberofchannelsalsomakesthesystemsimple.Theloggercanuseupto8channelsofanalogtodigitalconverterinperformingitstaskbutthatwillresultinincreasednumberofchannels.Astep-by-stepapproachindesigningaMicrocontrollerbasedsystemfortemperaturemeasurementhasbeenfollowed.Accordingtothestudyandanalysisofvariouspartsofthesystem,adesignhasbeencarriedout.Theresultsobtainedfromthemeasurementhaveshownthatthesystemperformwellunderalltheconditions.Fromthiswork,itisconcludedthatinthissystemamongthethreechannels,Channel2moreaccuratelymeasuresthetemperatureinthegivenspanoftime.8.FutureScope1.)Theperformanceofmicrocontrollerbasedtemperaturedataloggerhasbeenfoundontheexpectedlines.However,thereexistsascopeforfurtherimprovementinitsspeed,numberofchannels,powerconsumption,andPCinterfacesoftwareforpostdataanalysis.2.)ThesystemcanbemodifiedwiththeuseofgraphicalLCDpanelsothattheanalysisisdonebythesystemitself.Thenumberofanalogchannelscanbeincreasedtomonitormoresensoroutputs.3.)Thelowpowerrequirementofthisdataloggermakesiteasytouse.Thedevicecanbemadetoperformbetterbyprovidingthepowersupplywiththehelpofbatterysourcewhichcanberechargeableornon-rechargeable,toreducetherequirementofmainACpower.4.)Thissystemcanbeconnectedtocommunicationdevicessuchasmodems,cellularphones,orsatelliteterminaltoenabletheremotecollecti
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 心律失常电生理机制
- 三只小猪课件文字脚本
- 多领域职业面试题库快速提升求职成功率
- 应急管理领域综合保障面试题库
- 金融求职面试必 备:债券市场面试题库资料
- 三八保健知识培训内容课件
- 三体系新标准培训课件
- 太空课堂观后感范文
- 大学生顶岗见习总结
- 大学生求职补贴申请书
- 如何打造一支高效团队培训课件
- 2025安徽安庆高新投资控股限公司二期招聘8人高频重点提升(共500题)附带答案详解
- 《福州智慧水利建设项目技术规范书(定稿)》
- 《胸腔引流管的护理》课件
- 医院窗帘、隔帘采购 投标方案(技术方案)
- 2024-2025学年江苏省苏州市星海实验中学高一(上)期中考试物理试卷(含答案)
- 《QC小组培训》课件
- 2024年海南省中考道德与法治试题卷(含答案解析)
- 糖尿病健康宣教五架马车
- 【标准】城市森林碳汇计量监测技术规程
- 超市货架油漆翻新协议样本
评论
0/150
提交评论