设计简介:
项目名:台灯
项目编号:mcuclub-dz-305
单片机类型:STC89C52
具体功能:
1、通过人体热释电感应模块检测台灯周围是否有人
2、通过超声波检测台灯到人的距离
3、通过光敏电阻检测光照值
4、当检测到有人,此时如果光照小于设置最大值,则打开灯光,在最大值和最小值之间,根据光照值自动调节光亮度,当小于设置最小值,则调整为最大亮度
5、当人的距离值小于设置最小值,则坐姿有问题,进行蜂鸣器报警
6、通过按键可设置各阈值,手动调节灯亮度、切换模式
7、通过LCD1602显示屏显示测量值
8、通过语音可以调节台灯亮度
总字数:17876
摘要
这几年,虽然台灯的智能化程度越来越高,但仍无法满足人体自动检测、自动调节台灯亮度与不良坐姿提醒的功能,不适于长期学习使用,因此,设计一款同时具有人体检测、自动调节台灯亮度与不良坐姿提醒功能的台灯是有现实意义和使用价值的。
本文采用STC89C52单片机作为主控芯片,设计一款智能语音提示台灯,该系统通过三个传感器分别监测台灯周围是否有人、台灯到人的距离、以及台灯周围的光照强度值,通过按键设置相关参数阈值,手动调节灯亮度、以及模式切换,并将监测到的实时数据发送到显示屏进行显示。此外,还可以通过语音模块调节台灯亮度,使台灯的使用更加方便快捷。当检测到有人,且光照强度小于设置最大值,则打开照明灯,在最大值和最小值之间,根据光照值自动调节光亮度,当小于设置最小值,则调整为最大亮度。如果人的距离值小于设置最小值,则表示坐姿有问题,进行蜂鸣器报警。
最后,进行了实物焊接和测试,测试结果表明,该系统不仅工作状态良好,还具备预防驼背和近视的功能,具有很好的推广价值。
Abstract
In recent years, although the intelligent degree of the lamp is getting higher and higher, it still cannot meet the function of automatic human body detection, automatic adjustment of the lamp brightness and poor sitting posture reminder, which is not suitable for long-term learning and use, therefore, the design of a lamp with human body detection, automatic adjustment of the lamp brightness and poor sitting posture reminder function is of practical significance and use value.
In this paper, STC89C52 single chip microcomputer is used as the main control chip to design an intelligent voice cue table lamp. The system monitors whether there are people around the table lamp, the distance between the table lamp and people, and the light intensity value around the table lamp through three sensors, sets the threshold of relevant parameters by pressing buttons, manually adjusts the light intensity and mode switching. And the real-time data is sent to the display screen for display. In addition, the brightness of the lamp can be adjusted through the voice module, making the use of the lamp more convenient and quick. When someone is detected, and the light intensity is less than the set maximum, then turn on the lamp, between the maximum and minimum value, according to the light value automatically adjust the brightness, when less than the set minimum value, then adjust to the maximum brightness. If the distance value of the person is less than the set minimum value, it means that there is a problem with the sitting posture, and the buzzer alarm is carried out.
Finally, the system is welded and tested. The test results show that the system not only works well, but also has the function of preventing hunchback and myopia, which has good popularization value.
Key words table lamp; Sensor; Voice reminder; Automatic technology; Brightness control
目 录
摘要
关键词
Abstract
Key words
1 引言
2 系统设计方案
3 硬件设计
4 系统程序设计
5 系统仿真测试
6 实物制作与调试过程
7 结论
参考文献
附录