摘
要
本课题的目的是结合太阳能热水器的具体应用,设计一种用于太阳能热水器的检测控制系统,以更好的实现对太阳能热水器的监控与控制。太阳能热水器作为太阳能利用中最常见的一种装置,经济效益明显,正在迅速的推广应用。根据太阳能热水器特点以及对控制器的要求,本文提出了一种基于单片机AT89C52的太阳能热水器智能控制器的设计方法。本文在分析了解太阳能热水器及其控制器的发展和市场分布状况的基础上,描述了太阳能热水器控制器的组成及其工作原理。论文完成了控制器的硬件设计和软件设计。在硬件设计中,利用AT89C52单片机作为控制的中心环节,控制整个系统运作。利用温度传感器DS18B20和分段式水位传感器作为水温水位测量环节,并将测量结果送单片机进行处理。利用DS12887作为时钟芯片,以实现时间以及日期的显示。选用液晶显示模块12864显示水温水位时间及日期,显示部分是人机交换的重要媒介之一。在软件设计部分采用模块化结构,完成了包括主程序,水位检测子程序、LCD显示等子程序的设计。系统主程序主要完成一些初始化功能,温度的检测以及控制辅助加热系统,同时完成信号转换及送显示功能;水位检测子程序完成水位测量及送数据功能;显示子程序完成水温水位及时间日期的显示功能;键盘扫描子程序实现功能转换及水温水位时间的设定。论文通过对整体设计方案,硬件电路,软件程序的设计分析,实现了太阳能热水器的水温水位的检测与控制,具有实际的意义。关键词:太阳能热水器;传感器;DS12887;单片机;FYD128640402B
I
fAbstract
Thepurposeofthisstudyistoi
troduceaki
dofsolarwaterheaterdetectio
basedo
theapplicatio
ofsolarwaterheater,achievi
gtodothebettermo
itori
ga
dco
troli
gofthesolarwaterheaterSolarwaterheater,aso
eofthemostcommo
useofthesolare
ergyutilizatio
Theeco
omicbe
efitisobviouslya
dthepopularizatio
a
dapplicatio
israpidlyAccordi
gtothecharacteristicsofsolarwaterheatera
dtherequireme
toftheco
troller,hereshowsadesig
methodofthesolarwaterheateri
tellige
tco
trollerbasedo
theclockchipDS12887I
thea
alysisofthearticleaboutsolarwaterheatersa
dco
trolofthedevelopme
ta
dmarketco
ditio
o
thebasisofdistributio
solarwaterheatersoftheco
trollera
dthepri
cipleofworkThepapersfi
ishtheco
trolofthehardwarea
dsoftwaredesig
I
hardwaredesig
ofAT89C52mo
olithici
tegratedcircuitstoco
trolce
tersegme
tsofthewholesystemUseofthetemperaturese
sorsDS18B20a
dsectio
alformse
sorstomeasurethelevelasthewatera
dmeasureme
tstake
forprocessi
gmo
olithici
tegr