基于STC89C52单片机的温湿度检测
系统设计
摘要
随着人们的生活及其生产水平的不断提高,对生活环境和生产环境的要求就显的尤为重要温湿度的控制就是一个典型的例子,因此温湿度检测系统就是现代生产生活中应运而生的一种智能、快捷、方便可靠的检测系统,特别是在工业生产中如果检测得不准确就会发生许多的生产事故。要为现代人工作、科研、生活提供更好的更方便的设施就需要从单片机技术入手,一切向着数字化控制,智能化控制方向发展。本设计是以单片机为核心,配合温湿度传感器,以及相关的外围电路组成的检测系统,可以接收所测环境的温度和湿度信号,检测人员可以通过LCD显示的数据,实时监控环境的温度和湿度情况。所有的测量操作都可以通过主机控制软件来实现,温度和湿度传感器得到的测量信号,经电路转换为电信号,然后通过转换送到单片机进行数据处理,经软件分析处理后送显示装置。
本系统包括系统硬件和软件设计可靠性高,结构简单,实现了对温湿度的自动调节。系统还应用RS232与上位机相连接,可以设置自动记录温度、湿度的相关的参数,也可以设置每隔一定的时间自动记录,可用在气象的观察方面。关键词:STC89C52单片机,温湿度传感器,LCD显示
Aspeoplelifelevelofproductio
a
dimprovethelivi
ge
viro
me
ta
dproductio
e
viro
me
ttothedema
dsofthesig
ifica
tparticularlyimporta
tco
troloftemperaturea
dhumidityiso
eexamplesothetemperaturea
dhumiditydetectio
systemisthemoder
productio
a
dlifeofaki
dofi
tellige
cehaveemergedi
quickco
ve
ie
ta
dreliabledetectio
systemespeciallyi
thei
dustrialproductio
ifdetectio
is
otaccuratewillhappe
ma
yproductio
accide
tsFormoder
peopletoworkscie
tificresearcha
dprovideabetterlifemore
fco
ve
ie
tfacilitieswill
eedfromsi
glechiptech
ologyofdigital
co
troltoalli
tellige
tco
troldirectio
Thisdesig
isbasedo
si
glechipmicrocomputerasthecorewithtemperaturea
dhumidity
se
sora
drelatedperipheralcircuitcomposedofdetectio
systemca
receivethee
viro
me
ttemperaturea
dhumiditysig
altesti
g
perso
elca
throughtheLCDdisplaydatarealtimemo
itori
gof
e
viro
me
taltemperaturea
dhumidityco
ditio
sThissystemi
cludi
g
thesystemhardwarea
dsoftwaredesig
highreliabilitysimple
structurerealizetheautomaticadjustme
tofthetemperaturea
d
humiditySystemisusedRS232a
dsuperordi
atio
machi
eco
ectedca
setupautomaticrecordi
goftemperaturea
dhumidityi
related
parametersca
alsoseteverycertai
timetobeautomaticrecordsca
beusedi
meteorologicalobservatio
KeywordsSTC89C52microco
trollertemperaturea
dhumidityse
sor