1、 I 基于 STC12C5410AD 单片机的温湿度检测仪 摘 要 随着社会的发展,人们对环境中的温度和湿度的要求也越来越高,尤其 是在医学、电子电力、航天航空、食品发酵等领域中对温湿度的要求尤其严 格,鉴于如此设计出一个能够精确、稳定、实时测量出环境中温湿度的实用 型温湿度检测仪显得尤为重要。 本温湿度检测仪是以STC12C540AD单片机的为核心控制芯片, 该单片机自 带A/D转换器、有很好的抗干扰能力、响应速度快。基于此单片机的温湿度检 测仪可以实时、准确的测量环境中的温度和相对湿度。 本检测仪的硬件部分的设计采用了以带有 A/D 转换器的 STC12C5410AD 单片机为核心控制器件
2、,以高灵敏度 AD590 电流输出型的二端式集成温度传 感器为温度数据获取元件和湿度传感器 THS11 采集环境中的相对湿度,模拟 输入接口接入键盘实现人机交换功能,并用 LED 作为显示设备的硬件设计方 案。软件部分则采用采用模块化的方法将其分成几个部分,然后逐模块设计 程序,用汇编语言来实现,使各部分结合起来协调工作,最终实现对环境中温 湿度的实时检测。 该温湿度检测仪能够基本完成的温湿度检测,但由于个人经验不足等因 素,本设计还有一些不足之处,离产品实用还有一定的差距,还有一些方面 需要进一步完善。 关键词:STC12C5410AD 单片机,传感器,LED,温湿度 II MEASURIN
3、G INSTRUMENT FOR HUMIDITY BASEED ON STC12C5410AD MICROCONTROLLER ABSTRACT With the development of society, people on the environment of temperature and humidity requirements are also increasing, especially in the medical, electronic power, aerospace, food fermentation, such as temperature and humidi
4、ty in the field of the harsh demands in particular, in view of such a design that Can be precise, stable, real-time measurement of temperature and humidity environment to the practical temperature and humidity detector it is particularly important. The temperature and humidity detector is STC12C540AD SCM as the core chip, the microcontroller comes with A/D converter, a very good anti-disturbance capacity, fast response. Based on this MCU temperature and humidity detector can be real-time, accu