基于单片机的温度控制外文文献及中文翻译Word文件下载.doc
《基于单片机的温度控制外文文献及中文翻译Word文件下载.doc》由会员分享,可在线阅读,更多相关《基于单片机的温度控制外文文献及中文翻译Word文件下载.doc(19页珍藏版)》请在冰豆网上搜索。
JamesS.McDonald
DepartmentofEngineeringScience
TrinityUniversity
SanAntonio,TX78212
Abstract:
Thispaperdescribesaninterdisciplinarydesignprojectwhichwasdoneundertheauthor’ssupervisionbyagroupoffourseniorstudentsintheDepartmentofEngineeringScienceatTrinityUniversity.Theobjectiveoftheprojectwastodevelopatemperaturecontrolsystemforanair-filledchamber.Thesystemwastoallowentryofadesiredchambertemperatureinaprescribedrangeandtoexhibitovershootandsteady-statetemperatureerroroflessthan1degreeKelvinintheactualchambertemperaturestepresponse.Thedetailsofthedesigndevelopedbythisgroupofstudents,basedonaMotorolaMC68HC05familymicrocontroller,aredescribed.Thepedagogicalvalueoftheproblemisalsodiscussedthroughadescriptionofsomeofthekeystepsinthedesignprocess.Itisshownthatthesolutionrequiresbroadknowledgedrawnfromseveralengineeringdisciplinesincludingelectrical,mechanical,andcontrolsystemsengineering.
1Introduction
Thedesignprojectwhichisthesubjectofthispaperoriginatedfromareal-worldapplication.AprototypeofamicroscopeslidedryerhadbeendevelopedaroundanOmegaTMmodelCN-390temperaturecontroller,andtheobjectivewastodevelopacustomtemperaturecontrolsystemtoreplacetheOmegasystem.Themotivationwasthatacustomcontrollertargetedspecificallyfortheapplicationshouldbeabletoachievethesamefunctionalityatamuchlowercost,astheOmegasystemisunnecessarilyversatileandequippedtohandleawidevarietyofapplications.
ThemechanicallayoutoftheslidedryerprototypeisshowninFigure1.Themainelementofthedryerisalarge,insulated,air-filledchamberinwhichmicroscopeslides,eachwithatissuesampleencasedinparaffin,canbesetoncaddies.Inorderthattheparaffinmaintaintheproperconsistency,thetemperatureintheslidechambermustbemaintainedatadesired(constant)temperature.Asecondchamber(theelectronicsenclosure)housesaresistiveheaterandthetemperaturecontroller,andafanmountedontheendofthedryerblowsairacrosstheheater,carryingheatintotheslidechamber.Thisdesignprojectwascarriedoutduringacademicyear1996–97byfourstudentsundertheauthor’ssupervisionasaSeniorDesignprojectintheDepartmentofEngineeringScienceatTrinityUniversity.Thepurposeofthispaperis
todescribetheproblemandthestudents’solutioninsomedetail,andtodiscusssomeofthepedagogicalopportunitiesofferedbyaninterdisciplinarydesignprojectofthistype.Thestudents’ownreportwaspresentedatthe1997NationalConferenceonUndergraduateResearch[1].Section2givesamoredetailedstatementoftheproblem,includingperformancespecifications,andSection3describesthestudents’design.Section4makesupthebulkofthepaper,anddiscussesinsomedetailseveralaspectsofthedesignprocesswhichofferuniquepedagogicalopportunities.Finally,Section5offerssomeconclusions.
2ProblemStatement
ThebasicideaoftheprojectistoreplacetherelevantpartsofthefunctionalityofanOmegaCN-390temperaturecontrollerusingacustom-designedsystem.Theapplicationdictatesthattemperaturesettingsareusuallykeptconstantforlongperiodsoftime,butit’snonethelessimportantthatstepchangesbetrackedina“reasonable”manner.Thusthemainrequirementsboildownto
·
allowingachambertemperatureset-pointtobeentered,
displayingbothset-pointandactualtemperatures,and
trackingstepchangesinset-pointtemperaturewithacceptablerisetime,steady-stateerror,andovershoot.
AlthoughnotexplicitlyapartofthespecificationsinTable1,itwasclearthatthecustomerdesireddigitaldisplaysofset-pointandactualtemperatures,andthatset-pointtemperatureentryshouldbedigitalaswell(asopposedto,say,throughapotentiometersetting).
3SystemDesign
Therequirementsfordigitaltemperaturedisplaysandsetpointentryaloneareenoughtodictatethatamicrocontrollerbaseddesignislikelythemostappropriate.Figure2showsablockdiagramofthestudents’design.
Themicrocontroller,aMotorolaMC68HC705B16(6805forshort),istheheartofthesystem.Itacceptsinputsfromasimplefour-keykeypadwhichallowspecificationoftheset-pointtemperature,anditdisplaysbothset-pointandmeasuredchambertemperaturesusingtwo-digitseven-segmentLEDdisplayscontrolledbyadisplaydriver.Alltheseinputsandoutputsareaccommodatedbyparallelportsonthe6805.Chambertemperatureissensedusingapre-calibratedthermistorandinputviaoneofthe6805’sanalog-to-digitalinputs.Finally,apulse-widthmodulation(PWM)outputonthe6805isusedtodrivearelaywhich