设计说明书
总字数:15000+
随着智能家居技术的快速发展和人们对居住舒适度、便捷性要求的提升,传统照明设备已难以满足多样化的使用需求。传统灯具多采用单一开关控制,缺乏亮度调节、场景适配及智能联动能力,无法兼顾节能与个性化使用体验。因此,研发一款集手动控制、自动感应、定时调节及远程操控于一体的智能灯具有重要现实意义。
本设计提出一种基于 STM32F103C8T6 单片机的智能灯。系统主要功能包括:通过 3 个 LED 灯模拟客厅、卧室、洗手间照明;借助 3 个按键控制三灯亮度,另 3 个按键调节灯光颜色;洗手间的 D203S 人体热释电感应模块检测到人且光线较低时,自动开灯;通过 3 个按键设定卧室亮灯时间,计时结束后自动熄灯,计时时间通过显示屏显示;同时,系统可通过蓝牙与手机连接,实现手机端控制三灯亮灭及调节客厅灯亮度。
该智能灯的作用在于,实现了照明设备的智能化与多功能化,既满足用户手动调节的个性化需求,又通过自动感应、定时控制提升使用便捷性,远程操控功能进一步适配现代智能家居生活,为用户打造舒适、节能的居住照明环境。
关键词:单片机;智能灯;STM32F103C8T6;灯光控制;蓝牙通信
Title: Design of Intelligent Light Based on Single-Chip Microcomputer
Abstract
With the rapid development of smart home technology and the improvement of people’s requirements for living comfort and convenience, traditional lighting equipment has been difficult to meet diverse usage needs. Traditional lamps mostly adopt a single switch control, lacking brightness adjustment, scene adaptation and intelligent linkage capabilities, and cannot balance energy conservation and personalized user experience. Therefore, it is of great practical significance to develop an intelligent lamp integrating manual control, automatic induction, timing adjustment and remote control.
This design proposes an intelligent light based on the STM32F103C8T6 single-chip microcomputer. The main functions of the system include: simulating living room, bedroom and bathroom lighting through 3 LED lights; controlling the brightness of the three lights with 3 buttons and adjusting the light color with another 3 buttons; the D203S human pyroelectric sensor module in the bathroom automatically turns on the light when it detects a person and the light is low; setting the bedroom light-on time through 3 buttons, automatically turning off the light after the timing ends, and displaying the timing time through the display; at the same time, the system can connect to the mobile phone via Bluetooth to realize mobile phone control of the on/off of the three lights and adjust the brightness of the living room light.
The function of this intelligent light is to realize the intellectualization and multi-function of lighting equipment. It not only meets the personalized needs of users for manual adjustment, but also improves the convenience of use through automatic induction and timing control. The remote control function further adapts to modern smart home life, creating a comfortable and energy-saving living lighting environment for users.
Keywords:Single-chip microcomputer; Intelligent light; STM32F103C8T6; Light control; Bluetooth communication
目 录
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 按键模块电路设计
3.7 蓝牙通信模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键子流程设计
4.4 OLED显示流程设计
4.5蓝牙模块子流程
5 实物制作与功能测试
5.1 实物制作
5.2 照明及亮度、颜色调节功能测试
5.3 人体感应自动开灯功能测试
5.4 卧室定时关灯及显示功能测试
5.5 蓝牙远程控制功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!