设计说明书
总字数:15000+
摘 要
随着智能家居技术的普及与节能环保需求的提升,传统照明系统因缺乏智能化控制导致的能耗浪费和使用不便问题日益凸显。本研究提出一种基于单片机的人体智能感应灯设计方案,旨在实现照明系统的自动化、人性化控制,降低能源消耗。该系统以STM32单片机为核心控制器,结合红外热释电传感器和光敏电阻模块,实现了人体检测、环境光感知与智能调光的功能。系统通过红外传感器实时捕捉人体活动信号,结合光敏电阻反馈的环境光照强度数据,采用阈值判断与延时控制算法,驱动RGB灯具在有人且光线不足时自动点亮,并在无人或光照充足时关闭或调暗。
基于单片机的人体智能感应灯设计实现了以下功能:通过5516光照检测模块实时监测环境光照强度,并根据光照强度自动调节灯具亮度;利用D203S人体热释电感应模块检测是否有人存在,实现人来灯亮、人走灯灭的节能控制;通过DS1302时钟模块获取当前时间,根据不同时间段自动调节色温;借助SU-03T语音识别模块实现语音控制亮度和色温;同时,通过按键设置光照的最大值和最小值、时间、色温和亮度,并通过OLED显示模块实时显示当前状态。
通过实物制作与测试,达到照明系统的自动化、人性化控制,降低能源消耗。
关键词:照明系统;单片机;自动化;语音控制;人体感应
With the popularization of smart home technology and the improvement of energy conservation and environmental protection needs, the waste of energy consumption and inconvenience caused by the lack of intelligent control of traditional lighting systems have become increasingly prominent. In this study, a design scheme of human intelligent sensor lamp based on single-chip microcomputer was proposed, which aimed to realize the automatic and humanized control of the lighting system and reduce energy consumption. The system uses STM32 microcontroller as the core controller,combined with infrared pyroelectric sensor and photoresistor module, to realize the functions of human body detection,ambient light perception and intelligent dimming. The system captures human activity signals in real time through infrared sensors,combines the ambient light intensity daa fed back by the photoresistor, and uses threshold judgment and delay control algorithms to drive LED lamps to automatically light up when there are people and the light is insufficient, and turn off or dim when thee is no one or the light is sufficient.”
The design of human intelligent induction lamp based on MCU realizes the following functions: real-time monitoring of environmental illumination intensity through the 5516 illumination detection module, And automatically adjust the intensity of the lamps according to the lighting intensity; Using the D203S human pyroelectric induction module to detect the presence of a human being, Realize the energy saving control of the light and the light; Get the current time through the DS1302 clock module, Automatic adjust the color temperature according to different time periods; With the help of SU-03T speech recognition module to control brightness and color temperature; at the same time, Set the maximum and minimum value, time, color temperature and brightness, And display the current state in real time through the OLED display module.
Through the development and testing of physical prototypes, the lighting system achieves automated and user-friendly control, thereby reducing energy consumption.
Key Words: Lighting system ;Single-chip microcontroller; Automatic;Voice control;Human body induction
目 录
1 引 言
1.1 研究背景及其意义
1.2 国内外研究现状
1.3 此次设计实现的功能
2 系统设计方案
2.1 系统设计方案
2.2 主要元器件
2.2.1 主控芯片选型
2.2.2. 光照检测模块选型
2.2.3. 人体检测模块选型
2.2.4. 时钟模块选型
2.2.5. 语音识别模块选型
2.2.6. 显示模块选型
2.2.7. 灯光模块选型
3 硬件设计
3.1 主控模块电路
3.1.1 主芯片
3.1.2 复位电路
3.1.3 晶振电路
3.2 光照检测模块电路
3.3 人体检测模块电路
3.4 灯光模块电路
3.5 时钟模块电路
3.6 语音识别模块
3.7 显示模块
4 系统程序设计
4.1 编程软件介绍
4.2 主程序流程设计
4.3 时钟模块子流程设计
4.4 语言识别模块子流程设计
4.5 独立按键子流程设计
4.6 OLED显示子流程设计
5 实物测试
5.1光照检测测试
5.2时钟模块和色温调节测试
5.3语音识别测试
结论
参考文献
附 录
附录一:原理图
附录二:PCB板
附录三:主程序
致 谢
购买后可查看具体内容!