设计说明书
总字数:13000+
摘要
随着智能家居理念的普及和生活品质的提升,照明系统的智能化控制成为家居生活优化的重要方向。传统照明控制方式存在操作繁琐、能耗较高等问题,无法满足人们对便捷化、节能化家居环境的需求。因此,研发一种能实现远程控制、自动调节的智能照明系统具有重要意义。
本设计提出了一种基于 STM32F103C8T6 单片机的无线照明控制系统。系统主要功能包括:通过 8 个照明灯模拟不同家居场景灯光,涵盖红、黄、绿、蓝四种颜色;借助 ESP8266 WiFi 模块实现远程控制,可操作所有灯的开关及 8 个灯的亮度调节;通过 D203S 人体热释电检测模块感知当前环境附近是否有人;利用 5516 光敏电阻检测环境光照强度,当光照大于最大值时,无论是否有人均自动关灯;光照小于最小值且有人时,灯光调至最亮;光照在最大值与最小值之间且有人时,根据光照强度自动调节亮度。
该无线照明控制系统的作用在于,为家居环境提供了一种便捷、节能的照明解决方案。通过远程控制与自动调节相结合,既能满足用户个性化照明需求,又能实现按需照明,降低能源消耗,提升家居生活的舒适度与智能化水平。
关键词:单片机;无线照明控制;WiFi 远程控制;人体检测;光照调节
Design of Wireless Lighting Control System Based on Single Chip Microcomputer
Abstract
With the popularization of smart home concepts and the improvement of quality of life, intelligent control of lighting systems has become an important direction for optimizing home life. The traditional lighting control method has problems such as cumbersome operation and high energy consumption, which cannot meet people’s demand for convenient and energy-saving home environments. Therefore, developing an intelligent lighting system that can achieve remote control and automatic adjustment is of great significance.
This design proposes a wireless lighting control system based on STM32F103C8T6 microcontroller. The main functions of the system include: simulating different home scene lighting through 8 lighting fixtures, covering four colors: red, yellow, green, and blue; With the ESP8266 WiFi module, remote control can be achieved by operating the switches of all lights and adjusting the brightness of 8 lights; Sensing whether there are people near the current environment through the D203S human pyroelectric detection module; Using 5516 photoresistor to detect ambient light intensity, when the light exceeds the maximum value, the lights will automatically turn off regardless of whether anyone is present or not; When the lighting is below the minimum value and there are people present, adjust the light to the brightest; When the light is between the maximum and minimum values and there are people present, the brightness is automatically adjusted based on the intensity of the light.
The function of this wireless lighting control system is to provide a convenient and energy-saving lighting solution for home environments. By combining remote control with automatic adjustment, it can not only meet the personalized lighting needs of users, but also achieve on-demand lighting, reduce energy consumption, and improve the comfort and intelligence level of home life.
Keywords:microcontroller; Wireless lighting control; WiFi remote control; Human body testing; Light regulation
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
2.2 主要模块方案选择
3 系统硬件设计
3.1 总体硬件框架
3.2 主控模块电路设计
3.3 照明模块电路设计
3.4 ESP8266 WiFi 模块电路设计
3.5 D203S 人体热释电检测模块电路设计
3.6 5516 光敏电阻检测模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 WiFi模块子流程设计
4.6 ADC模数转换子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 照明模块基础功能测试
5.3 WiFi 远程控制功能测试
5.4 人体感应与光照联动功能测试
5.5 无人状态照明控制功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!