设计简介:
项目名:LED自适应调光系统
项目编号:mcuclub-dz-189
单片机类型:STM32F103C8T6
具体功能:
主机:
1、通过光敏电阻检测光照值,通过人体热释电感应模块感应是否有人,如果光照值低于设置最大值且有人,则自动开灯,在最大值和最小值之间,灯的亮度可通过光照强度可调,当低于设置最小值,最亮
2、通过按键可设置光照最大最小值,手动调节光的亮度和灯光模式(白、暖、冷)、切换模式
3、通过OLED显示光照值、是否有人、灯光模式、当前模式
4、通过蓝牙模块,可将测量的数据发送到手机端,手机端可远程调节光的亮度和灯光模式(白、暖、冷)、切换模式
5、通过zigbee将亮度指令、模式指令发送到从机
从机:
1、通过zigbee接收主机端的亮度指令、模式指令,从而控制灯
总字数:14535
实物链接:点击跳转
设计说明书链接:点击跳转
开题报告链接:点击跳转
答辩PPT链接:点击跳转
基于单片机的LED灯自适应调光系统设计
摘要
本论文针对现代照明系统的智能化需求,提出了一种基于STM32F103C8T6单片机的LED灯自适应调光系统的设计方案。该系统通过结合光敏电阻和人体热释电感应模块,实现了根据光照条件和人体存在与否自动调节灯光亮度的功能。此外,系统还包括按键设置、OLED显示、蓝牙通信和zigbee通信等功能,使用户可以实现手动和远程控制光照亮度、灯光模式和切换模式。主机端功能方面,系统利用光敏电阻实时检测光照值,结合人体热释电感应模块判断是否有人在场。在光照值低于设定最大值且有人存在时,系统自动开启灯光。在光照值介于最大值和最小值之间时,用户可以通过调节光照强度来实现灯光的可调亮度。此外,按键设置功能使用户可以自定义光照的最大最小值和切换不同的灯光模式。OLED显示屏显示当前的光照值、人体存在状态、灯光模式以及当前操作模式,提供了直观的信息展示。通过蓝牙模块,用户可以将测量数据发送到手机端,并实现手机远程调节光照亮度和灯光模式的功能。而通过zigbee通信,系统可以将亮度指令和模式指令发送到从机端,从而控制灯光。总之,本论文设计的基于单片机的LED灯自适应调光系统,充分利用了光敏电阻、人体热释电感应模块、按键设置、OLED显示、蓝牙和zigbee通信等技术,实现了智能化的照明控制。该系统在家居和办公环境中具有广泛应用前景,为现代照明系统的智能化提供了可行性和创新性的解决方案。。
关键词:自适应调光系统;基于单片机;LED灯控制;光敏感应;远程控制;智能照明
Abstract
This paper proposes a design scheme for an adaptive dimming system for LED lights based on the STM32F103C8T6 microcontroller, targeting the intelligent requirements of modern lighting systems. The system combines a photoresistor and a passive infrared (PIR) sensor to achieve automatic adjustment of light brightness based on ambient light conditions and human presence. Additionally, the system includes features such as keypad configuration, OLED display, Bluetooth communication, and Zigbee communication, allowing users to manually and remotely control light brightness, light modes, and switching modes.Regarding the main unit’s functionality, the system employs the photoresistor to real-time detect ambient light intensity and uses the PIR sensor to determine human presence. When the ambient light intensity is below the preset maximum value and human presence is detected, the system automatically activates the lights. When the light intensity falls between the maximum and minimum values, users can adjust the light intensity through the variation of light levels. Furthermore, the keypad configuration allows users to customize the maximum and minimum light intensity values and switch between different light modes. The OLED display screen provides visual information display, showing current light intensity, human presence status, light mode, and operational mode. Through the Bluetooth module, users can transmit measurement data to a mobile phone and remotely adjust light intensity and light modes. By means of Zigbee communication, the system can transmit brightness and mode commands to the slave unit to control the lights.In summary, the design of the LED light adaptive dimming system based on the microcontroller leverages technologies such as photoresistors, PIR sensors, keypad configuration, OLED display, Bluetooth, and Zigbee communication to achieve intelligent lighting control. The system holds potential for widespread application in residential and office environments, providing a feasible and innovative solution for the smartification of modern lighting systems.
Keywords: Adaptive dimming system; microcontroller-based; LED light control; photoresistor sensing; remote control; intelligent lighting..
目录
基于单片机的LED灯自适应调光系统设计 I
摘要 I
Abstract II
第一章 绪论 7
1.1课题设计背景与意义 7
第二章 设计思路与方案选择 10
第三章 硬件设计 14
第四章 系统程序设计 21
第五章 实物测试 27
第六章 总结与展望 31
致谢 32
参考文献 33
附录 35