设计说明书
总字数:18000+
摘要
随着数字化生活的普及与居住品质需求的提升,智能家居已成为改善生活便捷性与舒适性的重要方向。传统家居设备单一的控制方式(如手动开关、独立遥控)存在操作门槛高、缺乏环境适配性等问题,难以满足老人、儿童等不同人群的使用需求,也无法实现设备联动与节能运行,因此研发一套多交互、自适配的智能家居系统具有重要现实意义。
本设计提出一种基于 STM32F103C8T6 单片机的语音识别智能家居系统。系统核心功能包括:通过 SU-03T 语音模块、VS1838 遥控模块及按键实现三重交互,控制窗帘(ULN2003A 驱动步进电机)、电视(继电器)、空调(双继电器)、扫地机(MX1508 驱动直流电机,支持多速度模式)与灯光(LED 电路)的启停;空调开启后,通过 DS18B20 检测温度,自动实现>25℃制冷、<22℃制热的温度调节;灯光开启时,通过 5516 光照传感器采集光照值,以 PWM 信号自适应调节亮度;所有设备状态实时在 OLED 显示屏展示。
该智能家居系统的作用在于,为家庭提供低成本、高适配性的智能控制方案。通过多交互方式降低操作门槛,环境自适应调节提升居住舒适性,同时减少设备无效运行实现节能,助力普通家庭轻松享受便捷、舒适的智慧生活。
关键词:STM32F103C8T6;语音识别;智能家居;多设备控制;SU-03T
Design and Implementation of Smart Home System Based on Speech Recognition
Abstract
With the popularization of digital life and the increasing demand for living quality, smart homes have become an important direction for improving the convenience and comfort of life. The single control method of traditional home equipment (such as manual switch, independent remote control) has problems such as high operating threshold and lack of environmental adaptability, which are difficult to meet the needs of different groups of people such as the elderly and children, and cannot achieve device linkage and energy-saving operation. Therefore, developing a multi interactive and adaptive smart home system has important practical significance.
This design proposes a speech recognition smart home system based on STM32F103C8T6 microcontroller. The core functions of the system include: triple interaction through SU-03T voice module, VS1838 remote control module and buttons, controlling the start and stop of curtains (ULN2003A driven stepper motor), TV (relay), air conditioning (dual relay), floor sweeper (MX1508 driven DC motor, supporting multi speed mode) and lighting (LED circuit); After the air conditioner is turned on, the DS18B20 detects the temperature and automatically adjusts the temperature for cooling above 25 ℃ and heating below 22 ℃; When the light is turned on, the light value is collected by the 5516 light sensor, and the brightness is adaptively adjusted by PWM signal; All device statuses are displayed in real-time on the OLED screen.
The function of this smart home system is to provide low-cost and highly adaptable intelligent control solutions for households. By using multiple interactive methods to reduce operational barriers and adaptively adjust the environment, living comfort is improved, while reducing ineffective device operation to achieve energy conservation, helping ordinary families easily enjoy convenient and comfortable smart life.
Keywords:STM32F103C8T6; Speech recognition; Smart home; Multi device control; SU-03T
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
2.2 主要模块方案选择
3 系统硬件设计
3.1 总体硬件框架
3.2 主控模块电路设计
3.3 交互控制模块电路设计
3.4 环境传感模块电路设计
3.5 设备驱动模块电路设计
3.6 显示模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 步进电机子流程
4.5 OLED显示流程设计
4.6 温度检测模块子流程
4.7 语音识别模块子流程设计
4.8 红外接收模块子流程设计
4.9 光照检测模块子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 多交互控制功能测试
5.3 环境自适应调节功能测试
5.4 设备驱动功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!