项目编号:mcuclub-dz-364
设计简介:
项目名:台灯
项目编号:mcuclub-dz-364
单片机:STM32F103C8T6
功能简介:
1、通过人体红外传感器检测台灯周围是否有人,存在则控制灯的开关
2、通过光照传感器检测光照强度,当光照值大于设置最大值,台灯熄灭;当光照值小于设置最大值,且有人时,台灯低亮度;当光照值低于设置最小值,且有人时,台灯高亮度。
3、通过RTC获取时间,可按键修正时间
4、通过按键可设置开灯时间,显示从0开始到计时时间,当到达计时时间蜂鸣器提醒2s
5、通过按键可设置光照最大最小值、自动控制灯亮度、切换模式
6、通过OLED显示器显示数据
7、通过蓝牙可将数据发送到手机端,手机可调节亮度、切换模式。
总字数:14141
摘要
随着人们生活品质的不断提升,对台灯的要求越来越高,传统台灯的单一功能和潜在健康隐患逐渐凸显。为此,本项目设计并实现了一款创新的智能台灯系统。该智能台灯系统融合了多种传感器和模块,旨在提供更全面、舒适、健康的照明体验。
本系统以STM32F103C8T6单片机为核心控制器,项目功能包括利用人体红外传感器检测周围人体活动,实现智能开关控制;光照传感器实时监测环境光强度,根据需要自动调节灯光亮度;通过蓝牙模块,用户可通过手机调节台灯的亮度,还可设置进行远程模式切换。另外,台灯配备按键,可设定开灯时间并倒计时提醒。最后,显示器展示当前模式和定时设置。本系统将智能化与实用性融合,为用户提供舒适、智能的照明体验。这一智能台灯系统将科技创新与实际需求相结合,为用户营造全新智能化、高品质的照明与互动体验。不仅满足照明功能,更致力于呵护用户的健康和舒适感受。
关键词:台灯系统;STM32控制器;传感器;人机交互;光照调节
Abstract
With the continuous improvement of people’s quality of life, the requirements for desk lamps are becoming higher and higher, and the single function and potential health hazards of traditional desk lamps are gradually becoming prominent. For this purpose, this project has designed and implemented an innovative intelligent desk lamp system. The intelligent desk lamp system integrates multiple sensors and modules, aiming to provide a more comprehensive, comfortable, and healthy lighting experience.
This system uses the STM32F103C8T6 microcontroller as the core controller, and the project functions include using human infrared sensors to detect surrounding human activities and achieve intelligent switch control; The lighting sensor monitors the ambient light intensity in real-time and automatically adjusts the brightness of the light as needed; Through the Bluetooth module, users can adjust the brightness of the desk lamp through their mobile phone, and can also set remote mode switching. In addition, the desk lamp is equipped with buttons that can set the light on time and provide a countdown reminder. Finally, the display displays the current mode and timing settings. This system integrates intelligence and practicality, providing users with a comfortable and intelligent lighting experience. This intelligent desk lamp system combines technological innovation with practical needs to create a new intelligent, high-quality lighting and interactive experience for users. Not only does it meet the lighting function, but it is also committed to caring for users’ health and comfort.
Keywords: desk lamp system; STM32 controller; Sensors; Human machine interaction; Light regulationg
目录
摘要 I
第一章 绪论 1
第二章 设计思路与方案选择 3
第三章 硬件设计 7
第四章 系统程序设计 14
第五章 实物测试 19
第六章 总结与展望 22
致谢 23
参考文献 24
附录 26