基于单片机的智能台灯设计
2020-03-25赵福明
赵福明


摘要:随着社会的不断发展,市场也在不断变化。市场上电子产品也在不断的变化,各种各样的电子产品也随着市场的不断发展走向智能化,本文设计的以单片机为控制核心的智能台灯主要以热释电红外传感器来感应人体是否在旁边。当我们在学习时由于身体靠桌面比较近,造成身体坐姿不正,台灯就会报警提示,这样可以纠正坐姿,防止眼睛近视;当检测到旁边没有人在时候,系统也会使台灯自动关闭,以达到节省电能的目的。
Abstract: With the continuous development of society, the market is constantly changing. The electronic products in the market are also constantly changing, and various electronic products are also becoming intelligent with the continuous development of the market. The intelligent table lamp designed with a single-chip microcomputer as the control core in this paper mainly uses a pyroelectric infrared sensor to sense whether the human body is nearby. When we are studying, because the body is close to the desktop, causing the sitting posture to be incorrect, the desk lamp will alert you. This can correct the sitting posture and prevent myopia. When the system detects that there is no one nearby, the system will also automatically turn off the desk lamp to achieve the purpose of saving power.
關键词:智能台灯;单片机;传感器
Key words: intelligent table lamp;single chip computer;sensor
中图分类号:TM923.44 文献标识码:A 文章编号:1006-4311(2020)04-0223-02
0 引言
随着生活的不断发展,各种各样的电子产品、电器开始走入人们的生活,在工作方面加快了工作效率,提高了工作质量,使人们的生活更加美好。本设计采用+5V的直流电源供电的智能台灯,它具有保护眼睛、使用寿命长、不污染等优点,比起普通的台灯这款智能台灯占有很大的优势,这款智能台灯一方面可以更好的节约电能,起到了环保的作用,另一方面可以通过感应人体来纠正坐姿,起到保护眼睛防止近视的作用。同时,智能台灯在光线比较暗的时候自动开灯的功能,这样使人们在黑暗中更加方便。本智能台灯可以分为自动和手动两种模式。在自动模式下,智能台灯可以通过检测判断旁边是否有人在,当有人在时台灯将自动开灯并且可以通过检测台灯与人体的距离来矫正坐姿。如果房间光的亮度不够时,并且旁边有人时,智能台灯感应到信号就会自动开灯;当我们学习比较累的时候,可以趴在桌子上休息会,这时候台灯检测到信号便会自动关闭台灯;在手动模式下,可以通过按键来调节台灯灯光的亮度。……
