I基于单片机的水温水位控制系统设计摘要伴随着科技的发展,各种智能化数字化的控制系统已较为普遍,而热水器,锅炉等装置的广泛使用也相继产生了其配套的控制系统并不断地完善。然而,目前市场上的大部分对于水温水位的控制电路性能并不是很好。因此此次设计了一种性能较好,且操作简单的水温水位控制系统以满足于当今的需求,该系统的主控芯片为AT89C52单片机、以DS18B20温度传感器作为温度采集、利用压力传感器采集液位,并配备了独立键盘、LCD液晶显示器和报警系统组成外围电路。该系统能够较为准确地测量水位水温,并设置水温与水位的范围,若水温或水位在设定的范围之外,则自行控制通过对继电器的控制调整水温与水位直到满足要求。通过软硬件调试完成以上功能。本次设计的控制系统是以单片机作为其主控芯片,因此是一种数字化的控制方式,通过传感器配合以模数转换器将水位水温信号转换为数字信号并通过单片机处理从而完成对水位水温的自动控制,利用数字式的温度传感器大幅度的提高了温度测量的精度,并且由于以单片机为控制芯片,可以通过编程方便地扩展其功能,能够满足不同的需求,因而具有巨大的现实意义。关键词:单片机;DS18B20;水温水位控制IIIIIWaterTemperature-LevelControlSystemBasedonSCMAbstractWiththedevelopmentofscienceandtechnology,allkindsofintelligentdigitalcontrolsystemhasbeenmorecommon,andwaterheater,thewidespreaduseofthedevicesuchasboilerfollowedproduceditsformacompletesetofcontrolsystemandconstantlyimprove.Onthemarketatpresent,however,formostofthewatertemperatureofwaterlevelcontrolcircuitperformanceisnotverygood.Thereforethisdesignagoodperformance,andsimpleoperationofthewaterlevelcontrolsystemtomeettoday'srequirements,thesystemofthemaincontrolchipastheAT89C52singlechipmicrocomputerandtheDS18B20temperaturesensorastemperaturesampling,theuseofpressuresensorlevel,andequippedwithindependentkeyboard,LCDliquidcrystaldisplayandalarmsystemoftheperipheralcircuit.Measurewatertemperature,thesystemcanaccuratelyandsettherangeofwatertemperatureandwaterlevel,watertemperatureorwaterlevelisoutsidethescopeofsetting,itselfthroughcontroloftherelaycontroltoadjustwatertemperatureandwaterleveluntiltheymeettherequirements.Theabovefunctionthroughthesoftwareandhardwaredebugging.Thedesignofcontrolsystembasedonsinglechipmicrocomputerasitsmaincontrolchip,soitisakindofdigitalcontrolmode,throughthesensortocooperatetoADconverterconvertswatertemperaturesignaltodigitalsignalbysinglechiptocompletetheautomaticcontrolofthewatertemperature,usingdigitaltemperaturesensorgreatlyenhancestheprecisionoftemperaturemeasurement,andbecausethewiththesinglechipprocessorasthecontrolchip,andcanbeprogrammedeasilyextenditsfunction,cansatisfythedifferentdemand,andthushasgreatpracticalsignificance.Keywords:singlechip;waterlevel’sexamination;watertemperature’sexaminationIV目录摘要.......................................................................................................................IAbstract........................................................................................................................................II第1章绪论............................................................................................................-1-1.1选题的意义..................................................................................................-1-1.2水温水位的控制现状......................................................................-1-1.3课题任务.........................................................................................................-2-第2章...