设计说明书
总字数:19000+
摘要
随着人们生活品质的提升,对室内环境舒适度的要求日益提高,风扇作为调节室内温度的常用设备,其智能化升级成为趋势。传统风扇依赖手动操作,存在调节不及时、功能单一、能耗较高等问题,难以满足人们对个性化、便捷化环境调节的需求。
基于 STM32F103C8T6 单片机的智能风扇,整合了 DS18B20 温度传感器、D203S 人体热释电传感器、定时器、VS1838 红外遥控模块、3 个独立按键、OLED 显示屏、ESP8266 WIFI 通信模块及执行设备(制冷片、加热片、风扇、两个步进电机),实现了风扇的智能化运行与控制。系统核心功能包括:通过 DS18B20 监测环境温度;借助 D203S 检测是否有人,当有人时,温度大于最大值启动冷风(制冷片 + 风扇),小于最小值启动热风(加热片 + 通风),并根据温度调节风扇转速;通过定时器设置工作时间,计时结束后关闭风扇;利用 VS1838 红外遥控控制风扇启停、调节转动方向(上下或左右,由两个步进电机实现);支持通过 3 个独立按键设置温度阈值、通风方式(冷风、热风、自然风)及切换风扇挡位;通过 OLED 显示屏显示温度、工作状态等数据;依托 ESP8266 WIFI 模块实现远程控制及数据上传至手机端。
该系统的实现,有效提升了风扇的智能化水平,实现了按需调节,减少了人工操作,提高了使用便捷性与舒适性,为同类智能家电的研发提供了参考,具有较高的实际应用价值。关键词:STM32F103C8T6;智能风扇;传感器;远程控制;自动调节
ABSTRACT
With the improvement of people’s living standards, the demand for indoor environmental comfort is increasing. As a common device for regulating indoor temperature, the intelligent upgrade of fans has become a trend. Traditional fans rely on manual operation, with problems such as untimely adjustment, single function, and high energy consumption, which are difficult to meet people’s needs for personalized and convenient environmental regulation.The intelligent fan based on the STM32F103C8T6 microcontroller integrates DS18B20 temperature sensor, D203S human body pyroelectric sensor, timer, VS1838 infrared remote control module, 3 independent buttons, OLED display, ESP8266 WIFI communication module and executive devices (refrigeration sheet, heating sheet, fan, two stepper motors), realizing intelligent operation and control of the fan. The core functions of the system include: monitoring the ambient temperature through DS18B20; using D203S to detect whether there is a person, and when there is a person, starting cold air (refrigeration sheet + fan) when the temperature is higher than the maximum value, starting hot air (heating sheet + ventilation) when it is lower than the minimum value, and adjusting the fan speed according to the temperature; setting the working time through the timer, and turning off the fan after the timing ends; using VS1838 infrared remote control to control the fan’s start/stop and adjust the rotation direction (up/down or left/right, realized by two stepper motors); supporting the setting of temperature thresholds, ventilation modes (cold air, hot air, natural wind) and switching fan gears through 3 independent buttons; displaying temperature, working status and other data through the OLED display; relying on the ESP8266 WIFI module to realize remote control and data upload to the mobile phone.
The implementation of this system effectively improves the intelligence level of the fan, realizes on-demand adjustment, reduces manual operation, improves the convenience and comfort of use, provides a reference for the research and development of similar smart home appliances, and has high practical application value.
Keywords: STM32F103C8T6; Intelligent fan; Sensor; Remote control; Automatic adjustment
目录
第 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 按键模块电路
3.8 执行设备驱动电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 WiFi模块子流程设计
4.6 温度检测模块子流程
4.7 红外接收子流程设计
4.8 直流电机速度调节子流程设计
4.9 步进电机子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 温度传感器功能测试
5.3 人体检测模块功能测试
5.4 红外遥控模块功能测试
5.5 WIFI 通信模块功能测试
5.6 按键设置与显示功能测试
第 6 章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!