设计简介:
项目名:教室灯光控制(实物)
项目编号:mcuclub-dz-100
单片机类型:STM32F103C8T6
具体功能:
1、通过光敏电阻检测光照值,当光照值小于设置最小值,则进行开灯,并能根据光照值自动调节亮度
2、设为A、B、C、D四个区域,每个区域2个灯。分别四个人体热释电传感器检测,检测到人对应的LED亮,人离开10s延时关闭。
3、通过两对红外计数传感器模拟前后门进行统计教室人数
4、通过内部RTC获取时间,并能通过按键修正时间
5、通过按键可设置光照最小值、教室座位总数、并可以手动控制四个区域灯的开关
6、通过OLED可以实时显示当前时间 、日期、光照度、教室人数、教室座位总数、剩余座位总数。
7、通过蓝牙模块,手机端可控制每个灯的开关,并显示灯的状态。
总字数:15863
实物链接:点击跳转
设计说明书链接:点击跳转
开题报告链接:点击跳转
答辩PPT链接:点击跳转
摘要
教室灯光控制(实物)项目旨在解决教室照明方面的问题,并通过设计一款基于STM32F103C8T6单片机的智能灯光控制系统来实现多种功能。该设计的具体功能如下:光照感知与自动调节:通过光敏电阻检测周围光照值,当光照值低于设定的最小值时,系统自动开启灯光,并根据光照值进行自动亮度调节,以提供适宜的照明效果。区域感知与延时关闭:教室被划分为A、B、C、D四个区域,每个区域配备两个灯。四个人体热释电传感器负责检测教室内的人员分布,当检测到有人在某个区域时,对应的LED灯亮起,并在人离开后延时10秒自动关闭。教室人数统计:通过两对红外计数传感器模拟前后门,实现对教室人数的统计,帮助教师和管理人员掌握教室的实时人流情况。时间校准与设置:系统内部RTC(实时时钟)用于获取时间,并通过按键功能进行时间校准。教师可以根据需要手动设置光照最小值和教室座位总数,实现对系统参数的灵活调整。手动控制与显示:用户可通过按键手动控制四个区域的灯光开关。同时,OLED显示屏能够实时展示当前的时间、日期、光照度、教室人数、教室座位总数以及剩余座位总数,为教师和学生提供方便的信息显示。手机远程控制:通过蓝牙模块,学生或教师可以通过手机端控制每个灯的开关,并实时查看灯的状态,实现便捷的远程控制功能。
该设计的意义在于通过智能化技术,解决了传统教室灯光控制中存在的照明不足、能耗浪费、人力管理不便等问题,提高了教室照明的效率和舒适度。同时,融合了多种传感器、RTC和显示模块等,为教室智能化管理提供了一种创新性的解决方案,具有较高的实用价值和推广意义。
关键词:教室灯光控制;光敏电阻;人体热释电传感器;蓝牙远程控制
Abstract
Classroom Lighting Control (Prototype) aims to address the issues related to classroom illumination and achieves various functionalities through designing an intelligent lighting control system based on the STM32F103C8T6 microcontroller. The specific functions of this design are as follows:Light Sensing and Automatic Adjustment: The system utilizes a photoresistor to detect ambient light levels. When the light level falls below the predefined minimum value, the system automatically turns on the lights and adjusts their brightness to provide suitable illumination.Area Sensing and Delayed Shutdown: The classroom is divided into A, B, C, and D zones, each equipped with two lights. Four human body pyroelectric sensors are responsible for detecting the distribution of people in the classroom. When someone is detected in a specific zone, the corresponding LED light will illuminate and automatically turn off after a 10-second delay when the person leaves.Classroom Occupancy Counting: Two sets of infrared counting sensors simulate the front and rear doors to keep track of the number of people inside the classroom, providing real-time information about the classroom’s occupancy to teachers and administrators.Time Calibration and Settings: An internal RTC (Real-Time Clock) is used to obtain accurate time, and the system allows time calibration through the use of functional buttons. Teachers can manually set the minimum light value and the total number of seats in the classroom for flexible system parameter adjustments.Manual Control and Display: Users can manually control the lights in each zone using buttons. Additionally, the OLED display screen presents real-time information, including the current time, date, light intensity, classroom occupancy, total seats, and remaining seats, offering convenient information display for teachers and students.Mobile Remote Control: With the integration of a Bluetooth module, students or teachers can control each light’s on/off status remotely through a mobile app. This feature provides convenient remote control capabilities.
The significance of this design lies in its implementation of intelligent technology to address issues such as inadequate illumination, energy wastage, and inconvenient human management in traditional classroom lighting systems. It enhances the efficiency and comfort of classroom lighting. Furthermore, the integration of multiple sensors, RTC, and display modules offers an innovative solution for intelligent classroom management, making it highly practical and applicable in various educational settings.
Keywords: Classroom Lighting Control; Photoresistor; Human Body Pyroelectric Sensor; Bluetooth Remote Control.
目 录
摘要
Abstract
第1章绪论
第2章 系统总体设计方案
第3章硬件设计
第4章 系统程序设计
第5章 实物测试
第6章 总结展望
参考文献
附录