文档详情

毕业设计-基于STC12C5A60S2单片机的数字温湿度计设计.pdf

发布:2024-12-05约4.7万字共60页下载文档
文本预览下载声明

东莞理工学院

本科毕业设计

毕业设计题目:温湿度控制器

学生姓名:

学号:

系别:

专业班级:

指导教师姓名及职称:刘华珠高级工程师

起止时间:2011年11月——2012年6月

摘要

本论文介绍了一种以单片机STC12C5A60S2为主要控制器件,

以PT100,SHT15分别为温,湿度传感器。本设计主要包括硬件电

路的设计和系统软件的设计。硬件电路主要包括控制器,测温湿控

制电路和显示电路等。控制器用带有AD转换的单片机,温度传感

器PT100,湿度传感器采用SHT15,显示电路采用1个8位共阴极

LED数码管,用锁存器是显示效果更好。测温湿控制电路由温湿度

传感器和预置温湿度值比较报警电路组成,当实际测量温湿度值大

于预置温湿度值时,发出报警信号(发光二极管点亮)而且使外电

路驱动(继电器动作)。软件部分主要包括主程序,测温湿度子程

序,显示子程序和按键子程序等。

本次设计采用的SHT15湿度传感器包括一个电容式聚合体测

湿元件和一个能隙式测温元件,并与一个14位的A/D器以及串行

接口电路在同一芯片上实现无缝链接,从而具有超快响应,抗干扰

能力强,性价比高等优点。而且PT100在要求的范围内线性度很好。

关键词:温度测量,湿度测量,温度算法,PT100,SHT15

ABSTRACT

Thispaperpresentsanewdesignofdigitalthermometersand

hygrometer.Itincludesamaincontroldevice-microcontroller

STC12C5A60S2andatemperatureandhumiditysensor.Thisdesign

controlcircuitsandshowcircuit.MaincontrollerusesSCM

STC12C5A60S2,temperaturesensorusesPT100,andhumiditysensor

usesSHT15,

oftheAltogether.Drivershowcircuitusesatches(74573).

TemperatureandHumiditycontrolcircuitincludesthetemperature

andhumiditysensorandpresettemperatureandhumidityvalues

comparedalarmcircuit.Whentheactualmeasurementoftemperature

values,thealarmsignal(Lightemittingdiodeislit)issent.And

themainroutines,temperatureandhumidityroutines,showroutines

anddigital-to-analogroutines.

Boththemostdemandingapplicationsareseamlesslycoupledtoa

14bitanalogtodigitalconverterwitha14andtheA/D,aswellas

serialinterfacecircuitsinthesamechipontherealizationofaGap

linktoasuper-fastresponse,anti-interferencecapabilityand

cost-effectiveadvantages.AndPT100withintherequiredrange

linearityisverygood.Thedesignofdigitalthermometersand

hygrometerwithSTC12C5A60S2andPT100andSHT15,notonlyhas

KEYWORDS:temperature

显示全部
相似文档