设计说明书
总字数:15000+
摘要
随着灯光装饰在生活场景中应用的不断扩展,对彩灯控制的多样性与智能化提出了更高要求。传统彩灯控制器多采用固定程序控制,模式单一且切换不便,难以满足用户个性化需求。
基于 STM32F103C8T6 单片机的彩灯控制器,整合了 3 个 RGB 灯、5 个按键及 SU-03T 语音识别模块,实现了彩灯的多样化模式展示与灵活控制。系统核心功能包括:通过 5 个按键切换 5 种不同灯光模式,模式一为一个灯依次亮完三种颜色后切换至下一个灯;模式二为一个灯单颜色从暗到亮再到暗,切换颜色后再换下一个灯;模式三为三个灯同步亮同一种颜色,依次展示红、绿、蓝;模式四为三个灯同步单颜色从暗到亮再到暗,随后切换颜色;模式五为一个灯亮单颜色后直接切换至下一个灯;支持通过语音指令 “小远小远” 唤醒 SU-03T 模块控制不同模式。
该系统的实现,有效提升了彩灯控制的多样性与便捷性,满足了用户在不同场景下的装饰需求,同时为同类彩灯控制设备的研发提供了参考,具有一定的实际应用价值。
关键词:STM32F103C8T6;彩灯控制器;RGB 灯;语音控制;模式切换
ABSTRACT
With the continuous expansion of lighting decorations in living scenarios, higher requirements have been put forward for the diversity and intelligence of color light control. Traditional color light controllers mostly use fixed programs for control, featuring single modes and inconvenient switching, which struggle to meet users’ personalized needs.
The color light controller based on the STM32F103C8T6 microcontroller integrates three RGB lights, five buttons, and the SU-03T voice recognition module, achieving diverse pattern displays and flexible control of color lights. The core functions of the system include: switching between five different lighting modes through the five buttons. Mode 1: One light sequentially illuminates in three colors before switching to the next light. Mode 2: One light changes a single color from dim to bright and back to dim, then switches colors before moving to the next light. Mode 3: The three lights synchronously display the same color, sequentially showing red, green, and blue. Mode 4: The three lights synchronously change a single color from dim to bright and back to dim, then switch colors. Mode 5: One light illuminates in a single color and then directly switches to the next light. It also supports voice commands; saying “Xiaoyuan Xiaoyuan” wakes up the SU-03T module to control different modes.
The implementation of this system effectively enhances the diversity and convenience of color light control, meeting users’ decorative needs in different scenarios. Meanwhile, it provides a reference for the research and development of similar color light control devices and has certain practical application value.
Keywords:STM32F103C8T6; Color Light Controller; RGB Light; Voice Control; Mode Switching
目录
第1章 绪论
1.1 研究的目的及意义
1.2 国内外发展情况
1.3 本文主要研究内容
第2章 设计思路与方案论证
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.3 按键模块选择
2.1.3 语音识别模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 RGB 彩灯模块电路
3.3 按键模块电路
3.4 语音识别模块电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 语言识别模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 RGB 灯功能测试
5.3 按键功能测试
5.4 模式功能测试
5.5 语音识别模块功能测试
第6章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!