1、摘 要 I 本科毕业设计本科毕业设计 全自动加湿器的硬件设计全自动加湿器的硬件设计 院(系、部)名 称 : 机电科学与工程系 专 业 名 称 : 电气工程及其自动化 摘 要 II 摘摘 要要 随着人们生活水平的提高,人们对身体健康关注度也越来越高。室内的温度,湿度 的情况影响着人们身体的舒适度,同时也会间接的影响着人们的心情。普通的加湿器只 能起到一味的加湿作用并且为手动控制,无法满足当代快节奏的人类的需求。通过对不 同温度的情况中湿度的控制,可以提高人们身体的舒适度。采用单片机来对湿度进行控 制,不仅具有控制方便、灵活性大等优点,而且可以大幅度提高被控温度的技术指标, 从而能够大大提高产品的
2、质量。本设计通过单片机 AT89S52 控制数字温度传感器 DS18B20 和电容式相对湿度传感器 HS1101,实现对室内温度和相对湿度的测量,并且在 液晶显示器 LCD1602 上实时显示室内环境的温度和相对湿度,用 LC 震荡电路对水位进 行监控,当水位较低时进行报警。使用 DAC0832 实现 DA 转换,连接雾化器,用单片机 控制雾化器,从而调节室内湿度。 关键词:湿度控制;单片机;电路 Abstract with the growth of living standard ,we take more and more care of the health. The temperat
3、ure and humidity have influence on the comfort level of the body and will influence the mood indirectly. If you do not control it by finger the common humidifier can will humidify all the time and can not satisfy our fast living pace. If it control the humidity based on the temperature, it will impr
4、ove the living comfort level. The humidity control system based on MCS is very convenient and can improve the control quality largely. The design uses a AT89S52 , a temperature sensor DS18B20 and a humidity HS1101,it can measure and display the temperature and the relative humidity with the LCD1602.
5、 Besides it uses the LC shaking circuit monitoring the water level, it will alarm when the water is not enough. And according to DAC0832,it enforces the DA transition and connects atmoizer ,then regulate the relative humidity. Keywords: Humidity control;microcontroller;circuit 目 录 III 目 录 摘摘 要要 II A
6、bstract . II 目 录 . III 1 绪论 1 1.1 课题研究背景与意义 . 1 1.2 研究现状分析和发展前景 . 1 1.3 技术指标 . 1 2 总体设计 1 2.1 系统整体设计 . 1 2.2 系统整体设计框图 . 2 3 硬件的设计 2 3.1 微控制器模块 2 3.1.1 AT89S52 的介绍 . 2 3.1.2 控制电路 . 5 3.2 温度测量模块 6 3.2.1 温度传感器概述 6 3.2.2 DS18B20 介绍 . 6 3.2.3 DS18B20 与单片机的连接 . 7 3.3 湿度测量模块 7 3.3.1 湿度概述 7 3.3.2 湿度传感器概述 8 3.3.3 HS1101 湿度传感器介绍 . 8 3.3.4 湿度检测电路的连接 . 8 3.4 LCD 显示模块 . 10 3.4.1 液晶概述 10 3.4.2 1602 的介绍 . 10 3.4.3 电路的连接 11 3.5 D/A 转换电路 11 3.5.1 DAC0832 的介绍 11 3.5.2 雾化器的选择 . 12 目 录 IV