基于单片机的低成本教学数字温度控制器英文.docx

上传人:b****5 文档编号:3417302 上传时间:2022-11-22 格式:DOCX 页数:9 大小:350.35KB
下载 相关 举报
基于单片机的低成本教学数字温度控制器英文.docx_第1页
第1页 / 共9页
基于单片机的低成本教学数字温度控制器英文.docx_第2页
第2页 / 共9页
基于单片机的低成本教学数字温度控制器英文.docx_第3页
第3页 / 共9页
基于单片机的低成本教学数字温度控制器英文.docx_第4页
第4页 / 共9页
基于单片机的低成本教学数字温度控制器英文.docx_第5页
第5页 / 共9页
点击查看更多>>
下载资源
资源描述

基于单片机的低成本教学数字温度控制器英文.docx

《基于单片机的低成本教学数字温度控制器英文.docx》由会员分享,可在线阅读,更多相关《基于单片机的低成本教学数字温度控制器英文.docx(9页珍藏版)》请在冰豆网上搜索。

基于单片机的低成本教学数字温度控制器英文.docx

基于单片机的低成本教学数字温度控制器英文

Teachingdigitalcontrolusingalow-costmicrocontroller-basedtemperaturecontrolkit

Abstract

Thedesignofalow-costdigitaltemperaturecontrolkitisdescribed.Thesystemenablesthestudentstoimplementvariouscontrolstrategiesusingamicrocontroller.Thekitisintendedtobehelpfulinacontrollaboratoryasacomplementtothedigitalcontrolsystemtheorytaughttoundergraduatestudents.

Keywords

Microcontroller-basedcontrol;teachingdigitalcontrol;temperaturecontrol

Withtheavailabilityoflow-costcomputersandmicrocontrollers,digitalcontrolhasgainedpopularityandmostcurrentcontrolsystemsarebasedondigitaltechniques.Thesameistrueforsimulation.Digitalsimulationtechniqueshavereplacedanaloguesimulators.Thesesimulatorsareintheformofinteractivecomputerpackagesusedintheindustry,inresearchlaboratories,collegesanduniversities.EarlysimulationpackagessuchasACSL1weredesignedforlargemainframecomputersandonlylargeorganizationscouldaffordtopurchaseandusesuchpackages.

Currently,softwarepackagessuchasTUTSIM,220-sim,3programCC,4VisSim,5Extend,6andMATLAB7areavailablefordesktopPCsandtheyarewithinthebudgetsofmostuniversitiesandcolleges.Somepackages(e.g.MATLABandprogramCC)arealsoofferedintheformofalow-coststudenteditionandstudentscanpurchaseandusethesepackagesontheirownPCs,awayfromtheuniversitylaboratories.Simulationisaninvaluabletoolinteachingthetheoryofcontrolsystems.Forexample,thestudentscanplottheaccurateroot-locusofacomplexsysteminamatterofafewminutesratherthanspendingseveralhours.Similarly,thetimeandfrequencyresponsesofasystemcanveryeasilybeplottedwiththeaidofasimulatorpackage.Althoughthesimulatorsareveryusefultoolstheyarenotthesameasrealworldsolutions.Therearealsocasesinwhichcomputermodelsmaybeinappropriateorthesystemistoocomplextodescribebymathematicalequationsinacomputer.Itistheauthors’experiencethatstudentslearnanengineeringtopicbestwhentheyseethephysicalresultsoftheexperimentstheyperform.Simulationcanstillbeusedatthefirstleveloftheanalysisbutthisshouldbesupportedwithrealphysicallaboratoryexperiments.Thus,simulationshouldbeacomplementarytoolratherthantheonlytoolwhenteachinganengineeringtopic.Oneoftheproblemswithcommerciallyavailablephysicallaboratoryexperimentsisthattheexperimentalkitsareusuallyveryexpensive,especiallywhenanumberofsimilarkitsarepurchasedforteachingpurposes.Suchkitsmayalsorequirefrequentcalibrationandmaintenanceservicesasaresultofcomponentfailuresandageing.Laboratorykitsalsodobecomeobsoletequiterapidlyasnewproductsaredeveloped.

Thispaperdescribesalow-costtemperaturecontrolkitwhichisdesignedandusedintheengineeringteachinglaboratoriesoftheNearEastUniversity.ThekitisbasedonthepopularPIC16F877modelmicrocontroller,manufacturedbyMicrochipInc.8Theoverallcostofthekitislessthan$200,whichiswellbelowthecostofsimilarcommerciallyavailableeducationaltemperaturecontrolkits.Thedesign,modellinganddigitalcontrolofthekitaredescribedindetail.

Temperaturecontrolkit

Educationaltemperaturecontrolkitsarenotnew.Manycompaniesmanufacturinglaboratorykitsalsooffersomekindofgeneralprocesscontrolortemperaturecontrolkits.TCL-1byKuruganti9isatemperaturecontrollooptrainerwhichisintendedtoshowhowthetemperatureinaheatexchangercanbecontrolled.TCT-1,alsobyKuruganti,isanon/off-basedtemperaturecontrolteachingkit.PROCONbyFeedbackInstruments10isaprocesscontrolsystem,whichincludesrigsforlevel,flowtemperatureandpHcontrol.Here,thetemperaturecontrolsystemuseswaterastheprocessfluidandthekitprovidesPIDcontrolwithauto-tunefacilities.G34/EVisaPID-basededucationaltemperaturecontrolunitmanufacturedbyelectronica.TheunitcanbeinterfacedtoaPCandconsistsofaPIDcontroller,poweramplifier,andsignalconditionerfortemperaturesensors.NearEastUniversityoffersundergraduateandgraduatelevelengineeringcoursesandcontrolengineeringisoneofthesetopics,whichistaughtforonesemester.TherearenopracticalexperimentsandstudentshavebeenusingtheMATLABpackagetodesign,simulateandtesttheircontroltheory.Itwasfeltnecessarytoprovidesomepracticalexperimentstothestudentsasawayofsupportingthetheoreticalconceptstaughtintheclassroom.Themainreasontodesignacontrolkitratherthantobuyacommerciallyavailableonewasthecost.

Processcontrolisaveryimportantfieldofautomaticcontrolengineeringandasafirstinitiativeitwasdecidedtodevelopadigitaltemperaturecontrolexperimentbaseduponamicrocontroller.Oneoftheaimsduringtheimplementationofthislaboratorykitwastouselowcost,butindustrialequipmentinordertoensurethenecessaryrobustnessforitsuse.Itishopedtodevelopmorecontrol-basedexperimentsinthenearfuturewiththeparticipationofmembersofthefacultyandstudents.TheblockdiagramofthedigitaltemperaturecontrolkitisshowninFig.1.Theworkingprincipleofthisexperimentconsistsofheatingthewaterinasmallcontainerusingalow-voltageelectricheatingelementandasimpleMOSFET-basedpowercontrollercircuit.AtemperaturesensorisimmersedintothewaterwhoseoutputsignalissenttoaPIC-type8microcontroller.ThissignaliscomparedwithareferencetemperaturesignalandaPIDcontrolleralgorithmisimplementedbythemicrocontrollertoachievetherequiredtemperaturecontrolaction

Fig.1Schematicofthetemperaturecontrolkit

Thisprocessisusedtoteachthefollowingimportantconceptstothestudents:

•Modellingandidentificationofarealphysicalprocess

•UsingtheZiegler-Nichols11,12tuningmethod

•Usingmicrocontrollersinprocessautomation

•DevelopingandexperimentingwithdigitalPID13,14,15controllers.

Figure2showsapictureoftheprototypeexperimentkit.Thekitisrathersimple,

consistingofonlylowcostmaterials.Aroundplasticcontainerisusedtostorethe

water.Theheaterelementandthesensorareimmersedinthiscontainer.Thetemperatureissensedusingalowcostsemiconductorsensor,whichisprotectedinsideaglasstube.Theheatingelementisthetypewhichisusedincampingandotheroutdooractivitiesinordertowarmupliquidinacup,forexampleformakingcoffee.Theheateroperateswith12V,draws10Aofcurrentandprovidesapower

of120W.Alaboratorypowersupplytoprovidesuchhighpowerisusuallyrather

Fig.2Thetemperaturecontrolkit

expensivesoastandard350WPCpowersupplyisusedinstead,costingnomore

than$50.Usingalowvoltageinanexperimentalkithastheadvantagethatthe

systemissafeasthereisnoriskofelectricshock.Figure3showstheelectricalcircuitdiagramofthekit.Thecircuitisrathersimple,consistingofonlyafewparts.LM35DZ16istheanalogsemiconductortemperature

sensor,PIC16F877isthemicrocontroller,andIRL100417isapowerMOSFET

switch,usedtodrivetheheaterelement.

Thetemperaturesensor

Thetemperaturesensorusedintheexperimentisa3-pinsemiconductorsensorwith

anoutputvoltagedirectlyproportionaltothetemperature.Theoutputofthesensor

isconnectedtooneoftheA/Dconverterinputsofthemicrocontroller.Therewastheoptionofusingadigitaloutputsensor,buttheyareusuallymoreexpensiveanditwasalsofeltnecessarytouseananalogsensorandteachthestudentsthepracticalapplicationsofA/Dconverters.

Themicrocontroller

Inordertolowercosts,weneededamicrocontrollerwithabuilt-inA/Dconverter.

Processcontrolalgorithmsrequiretheuseoffloating-pointarithmeticandasaresult,

Fig.3Circuitdiagramofthekit.

amicrocontrollerwithalargedatamemorywasalsorequired.Anotherrequirement

tolowerthecostwasabuilt-inpulsewidthmodulated(PWM)output,whichwasusedtodrivetheheatercircuitrylinearly.Thedevelopmentoffloating-pointarithmeticroutinesisverycomplexusingtheassemblylanguageanditwasdecidedtoprogramthemicrocontrollerinahigh-levellanguagewhichalsosupportedthefloating-pointarithmetic.

ThePIC16F877microcontrollersatisfiedallofourrequirements.Thisisoneofthemostpopularmicrocontrollersusedinindustryanditoffersthefollowingfeatures:

•8K*14flashprogrammemory

•368bytesRAMmemory

•256bytesEEPROMmemory

•8*10bitA/Dconverters

•Pulsewidthmodulated(PWM)output

•High-levellanguagesupport

TheFEDC18compilerwasusedforprogramdevelopment.ThisisaWindows-based

low-costcompilerforthePICfamilyofmicrocontrollers.Thecompileroffersa

largenumberofstandardClibraryfunctions,includingsupportforfloating-point

arithmetic.

Theheaterdriver

AnIRL1004powerMOSFETswitchisusedtodrivetheheaterelement.This

MOSFETcandissipateupto200Wwhenmountedonasuitableheatsink.The

heatingelementisconnectedtothedrainpinoftheMOSFETandthegateinputis

controlledfromthemicrocontroller(seeFig.3).Largeindustrialtemperaturecontrolsystemsarebasedona.c.powercontroltechniquesusingthyristorsandtriacsandappropriatetheoryisgiventothestudentsonthistopic.

Modelling

Thesystemcanbeapproximatedtoafirst-ordersystemwithatimelag.Asimplifiedmathematicalmodeloftheoverallsystemcanbederivedasdescribedhere.

Mathematicalmodelofthetank

Theheat-balanceequationforthetankcanbewrittenas:

Heatinputtothesystem=heatincreaseinthesystem+heatlosses

Ifwel

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 小学教育 > 学科竞赛

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1