设计说明书
总字数:15000+
摘要
随着生活品质的提升,衣物的存储环境对衣物保养和使用寿命的影响愈发显著。传统衣柜依赖人工管理,存在温湿度调控滞后、消毒不及时、异味难处理等问题,难以满足现代家庭对衣物精细化存储的需求。
基于 STC89C52 单片机的智能衣柜系统,整合了 DS1302 时钟模块、DHT11 温湿度传感器、MQ-135 混合气体检测模块、3 个独立按键、LCD1602 显示屏及执行设备(消毒装置、除湿设备、通风装置、柜门驱动装置),实现了衣柜环境的自动化监测与智能管理。系统核心功能包括:通过 DS1302 获取时间并设定定时消毒时段,消毒时段内柜门打开时自动关闭消毒,柜门关闭时启动消毒;借助 DHT11 检测温湿度,湿度大于最大值时启动除湿,直至湿度降至最小值以下;通过按键控制柜门开关;利用 MQ-135 检测混合气体浓度,浓度超最大值时启动通风;支持通过 3 个独立按键设置各参数阈值;通过 LCD1602 实时显示测量数据及设备状态。
该系统的实现,有效提升了衣柜管理的自动化水平,为衣物提供了适宜的存储环境,延长了衣物使用寿命,同时简化了人工操作,为同类智能家居设备的研发提供了参考,具有较高的实际应用价值。
关键词:STC89C52;智能衣柜;温湿度调控;定时消毒;气体检测
ABSTRACT
With the improvement of living standards, the storage environment of clothes has an increasingly significant impact on clothing maintenance and service life. Traditional wardrobes rely on manual management, with problems such as delayed temperature and humidity regulation, untimely disinfection, and difficulty in handling odors, which are difficult to meet the needs of modern families for refined clothing storage.
The intelligent wardrobe system based on STC89C52 single-chip microcomputer integrates DS1302 clock module, DHT11 temperature and humidity sensor, MQ-135 mixed gas detection module, 3 independent buttons, LCD1602 display and executive devices (disinfection device, dehumidification equipment, ventilation device, cabinet door drive device), realizing automatic monitoring and intelligent management of the wardrobe environment. The core functions of the system include: obtaining time through DS1302 and setting a scheduled disinfection period; automatically turning off disinfection when the cabinet door is open during the disinfection period, and starting disinfection when the cabinet door is closed; detecting temperature and humidity by DHT11, starting dehumidification when the humidity is greater than the maximum value until the humidity drops below the minimum value; controlling the opening and closing of the cabinet door through buttons; detecting the concentration of mixed gas with MQ-135, and starting ventilation when the concentration exceeds the maximum value; supporting the setting of various parameter thresholds through 3 independent buttons; displaying measured data and equipment status in real time through LCD1602.
The implementation of this system effectively improves the automation level of wardrobe management, provides a suitable storage environment for clothes, extends the service life of clothes, simplifies manual operations, provides a reference for the research and development of similar smart home devices, and has high practical application value.
Keywords:STC89C52; Intelligent wardrobe; Temperature and humidity regulation; Timed disinfection; Gas detection
目录
第 1 章 绪论
1.1 研究的目的及意义
1.2 国内外发展情况
1.3 本文主要研究内容
第2章 设计思路与方案论证
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 温湿度传感器选择
2.1.3 时钟模块选择
2.1.4 气体检测模块选择
2.1.5 显示模块选择
2.1.6 按键模块选择
2.1.7 执行设备选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 温湿度传感器电路
3.3 气体检测模块电路
3.4 时钟模块电路
3.5 显示模块电路
3.6 按键模块电路
3.7 执行设备驱动电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 A/D模数转换子流程
4.5 LCD1602液晶显示子流程
4.6 步进电机子流程设计
4.5 时钟模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 时钟与消毒装置功能测试
5.3 温湿度传感器与除湿功能测试
5.4 混合气体检测与通风功能测试
5.5 按键与柜门控制功能测试
5.6 按键设置与显示功能测试
第 6 章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!