摘要
针对目前我国学生近视率呈现上升趋势、学生坐姿不良等问题,提出了一种基于STM32单片机智能台灯控制系统。该系统以STM32单片机为控制核心,通过人体检测模块判断是否有人,实现对台灯亮灭的控制;通过自动调光模块实时检测环境光照强度,利用PWM脉冲宽度调制技术对台灯的亮度进行调节。通过按键模块切换到手动模式,使用者能够根据实际需要手动调节台灯亮度。通过坐姿调整模块检测人体到台灯的距离,若小于参考值则报警提醒。结果表明,该智能台灯控制系统,通过对台灯亮度和使用者坐姿的调节,使使用者处于亮度适宜,坐姿实时纠正的环境中学习,可以改善学生人群的近视、坐姿不良等问题。
Aiming at the current increasing trend of myopia rate among students in our country and poor posture of students,an intelligent desk lamp control system based on STM32 single-chip microcomputer is proposed in this paper.The system uses the STM32 single-chip microcomputer as the control core,and uses the human body detection module to determine whether there is a person to realize the control of the lamp on and off.The automatic dimming module detects the ambient light intensity in real time,and uses the PWM pulse width modulation technology to adjust the brightness of the table lamp.By switching to manual mode through the button module,the user can manually adjust the brightness of the desk lamp according to actual needs.The sitting posture adjustment module detects the distance between the human body and the desk lamp,and if it is less than the reference value,an alarm will be issued.The results show that the intelligent desk lamp control system,by adjusting the brightness of the desk lamp and the sitting posture of the user,enables the user to learn in an environment where the brightness is appropriate and the sitting posture is corrected in real time,which can improve the myopia and poor sitting posture of the student population.
出处
《工业控制计算机》
2023年第3期142-143,146,共3页
Industrial Control Computer
基金
甘肃省教育厅2021年度高等学校创新基金项目(2021B-511)
酒泉职业技术学院校级科研项目(2022XJZXM02)。
关键词
STM32单片机
坐姿调整
自动调光
脉冲宽度调制
STM32 single chip microcomputer
sitting posture adjustment
automatic dimming
pulse width modulation