设计说明书
总字数:20000+
摘要
随着智能家居理念的普及,人们对室内照明系统的智能化、便捷化与节能化需求日益提升。传统 LED 灯多依赖手动开关控制,存在操作不便、易因忘记关灯造成能源浪费的问题,且难以根据室内人员存在情况与光照条件自动调整,无法满足多样化的使用场景需求。因此,研发一种能结合人体感应、光照变化及智能控制的 LED 灯控制系统,具有重要的现实意义。
本设计提出了一种基于 STC12C5A60S2 单片机的声音激活 LED 灯控制系统。系统主要功能包括:通过 D203S 人体热释电感应模块监测室内是否有人存在;借助 5516 光敏电阻检测当前环境光照值;当检测到室内有人且光照值不足时,系统自动打开 RGB 灯,并根据光照值变化自动调节灯的亮度;通过 SU-03T 语音识别模块,用户可语音控制模式切换、灯的颜色及亮度;支持通过按键手动设置光照阈值;通过 LCD1602 模块直观显示光照阈值、当前光照值、灯的工作模式等相关参数;同时,系统通过 ECB02 蓝牙模块实现远程控制,用户可远程开启 / 关闭 LED 灯、调节灯的颜色与亮度,还能切换工作模式。
该 LED 灯控制系统的作用在于,为用户提供了一种智能化、多交互方式的室内照明解决方案。通过人体感应与光照感应实现自动启停与亮度调节,可有效节约能源;语音、按键、蓝牙远程等多控制方式,提升了操作便捷性,适配不同使用场景与用户习惯,进一步优化了室内照明体验,推动家居照明向更智能、更人性化方向发展。
关键词:STC12C5A60S2;声音激活 LED 灯控制系统;人体热释电感应;语音识别;蓝牙远程控制
LED light control system based on sound activation
Abstract
With the popularization of smart home concepts, people’s demand for intelligent, convenient, and energy-saving indoor lighting systems is increasing day by day. Traditional LED lights rely heavily on manual switch control, which is inconvenient to operate and prone to energy waste due to forgetting to turn off the lights. They are also difficult to automatically adjust according to the presence of indoor personnel and lighting conditions, and cannot meet the diverse needs of various usage scenarios. Therefore, developing an LED light control system that can combine human body sensing, lighting changes, and intelligent control has important practical significance.
This design proposes a sound activated LED light control system based on STC12C5A60S2 microcontroller. The main functions of the system include: monitoring the presence of people indoors through the D203S human pyroelectric induction module; Use 5516 photoresistor to detect the current ambient light level; When someone is detected indoors and the lighting value is insufficient, the system automatically turns on the RGB lights and adjusts the brightness of the lights according to the changes in lighting value; Through the SU-03T speech recognition module, users can control mode switching, light color, and brightness through voice commands; Support manual setting of lighting threshold through buttons; Intuitively display relevant parameters such as lighting threshold, current lighting value, and lamp working mode through the LCD1602 module; At the same time, the system achieves remote control through the ECB02 Bluetooth module, allowing users to remotely turn on/off LED lights, adjust the color and brightness of the lights, and switch working modes.
The function of this LED light control system is to provide users with an intelligent and multi interactive indoor lighting solution. Automatic start stop and brightness adjustment can be achieved through human body sensing and light sensing, which can effectively save energy; Multiple control methods such as voice, buttons, and Bluetooth remote have improved operational convenience, adapted to different usage scenarios and user habits, further optimized the indoor lighting experience, and promoted the development of home lighting towards a more intelligent and user-friendly direction.
Keywords:STC12C5A60S2; Sound activated LED light control system; Human pyroelectric induction; Speech recognition; bluetooth remote control
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
2.2 主要模块方案选择
3 系统硬件设计
3.1 总体硬件框架
3.2 主控模块电路设计
3.3 D203S 人体热释电感应模块电路设计
3.4 5516 光照检测模块电路设计
3.5 RGB 灯模块电路设计
3.6 LCD1602 显示模块电路设计
3.7 按键模块电路设计
3.8 SU-03T 语音识别模块电路设计
3.9 ECB02 蓝牙模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 光照检测模块子流程设计
4.5 人体热释电感应模块子流程设计
4.6 语音识别模块子流程设计
4.7 ADC模数转换子流程设计
4.8 RGB灯模块子流程设计
4.9 LCD1602显示屏子流程设计
4.10 蓝牙模块子流程设计
5 仿真绘制与功能测试
5.1 仿真电路绘制
5.2 D203S 人体感应与 RGB 灯自动控制功能仿真测试
5.3 按键阈值设置与 LCD1602 显示功能仿真测试
5.4 语音识别与蓝牙远程控制功能仿真测试
5.5 RGB 灯颜色切换与亮度调节功能仿真测试
6 实物制作与功能测试
6.1 实物制作
6.2 D203S 人体感应与 RGB 灯自动控制功能测试
6.3 按键阈值设置与 LCD1602 显示功能测试
6.4 SU-03T 语音识别功能测试
6.5 ECB02 蓝牙远程控制功能测试
6.6 RGB 灯颜色切换与亮度调节功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!