SUMMERY OF THE UTILITY MODEL
The utility model provides an intelligent desk lamp device aiming at the problems that students and office workers are easy to cause body damage when continuously working for a long time, and the like, and the intelligent desk lamp device is characterized by mainly comprising a main control module, a sensor module, a key module, a display module, a driving module and an LED lamp, wherein the main control module is respectively connected with the sensor module, the key module, the display module and the driving module; the driving module is connected with the LED lamp; the sensor module is used for detecting the surrounding environment of people and the desk lamp; the key module is used for switching different modes; the display module is used for displaying the state information of the desk lamp; the driving module is used for driving the LED lamp; the main control module realizes timing and controls the sensor module, the key module, the display module and the driving module.
The sensor module is composed of an infrared sensor and a photosensitive sensor, the infrared sensor is used for detecting whether people are near the desk lamp, and the photosensitive sensor is used for collecting the brightness of the environment.
The infrared detection device is further an infrared sensing device of a zero-crossing comparator built by an LM393, the high-low level output is determined by the infrared detection device, the output is low level when no movement is detected, the output is high level when movement is detected, the main control module is composed of a single chip STC12C5A60S2 and an additional circuit, and a timer of the main control module is used for timing.
The display module is further used for displaying the current mode, the number of clocks and the current time information.
Further the button module realizes the switching of manual mode, intelligent mode and night-light mode to and rest and remind time setting.
Further under the manual mode, the desk lamp has the brightness adjusting function of high, middle and low 3-gear positions, and a user can select proper light brightness through the key module.
Further under the intelligent mode, whether the desk lamp detects someone in the 1.5 meter scope according to the infrared sensor among the sensor module, when detecting someone, photosensitive sensor detects desk lamp ambient brightness, and when ambient brightness is less than certain threshold value, the desk lamp is lighted automatically, does not detect someone in the scheduled time, and the desk lamp is closed.
Further under the night-light mode, when the time was between 0 a little to 6 a little in the morning, infrared sensor detected the people, and the desk lamp is automatic to be opened low gear LED lamp.
And the key module further comprises a hardware jitter elimination circuit, the key is connected to a common I/O port of the singlechip, and the key state is obtained by adopting an inquiry mode.
The rest reminding time is 25 minutes as a work period, and after the work period is finished, the rest time is 5 minutes; after the user works for four working cycles continuously, the desk lamp can flash for three times to remind, and then the light of the desk lamp is turned off after one minute.
The intelligent desk lamp device can solve the problem that a user needs to continuously set an alarm clock to remind a user of having a rest during learning or working, so that the user can concentrate on learning and working; the sensor module increases convenience, and the desk lamp can be automatically turned off when a user forgets to turn off the desk lamp and leaves the desk lamp. Besides, the desk lamp can be designed into a small night lamp placed in a corridor passageway, so that convenience is brought to old people to go to a toilet at night and babies to feed milk at night.
Detailed Description
The present invention will be described more fully with reference to the following embodiments and accompanying drawings.
Referring to fig. 1, the intelligent desk lamp device includes a main control module, a sensor module, a key module, a display module, a driving module, and an LED lamp.
The key module comprises a hardware jitter elimination circuit, the key is connected to a common I/O port of the single chip microcomputer, and the key state is obtained in an inquiry mode. The key module mainly completes mode switching, opening and closing of rest reminding time and gear adjustment in a manual mode.
The sensor module consists of an infrared sensor and a photosensitive sensor. The infrared sensor is used for detecting whether people are near the desk lamp, and the photosensitive sensor is used for collecting the brightness of the environment.
The display module is used for outputting information such as time length, clock number, current time and the like set by a user.
The driving module is used for driving the LED lamp. Under intelligent mode and night-light mode, light can make corresponding response according to the information that infrared sensor and photosensitive sensor gathered. In the manual mode, the brightness of the light changes as selected by the user.
Referring to fig. 2, the main control module mainly comprises a single chip microcomputer chip STC12C5a60S2 and an additional circuit. Besides being used as a main control module, the single chip microcomputer is also a clock module. The timer is used for timing and finishing the setting of the rest reminding time.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes and modifications within the technical scope designed by the present invention by those skilled in the art should also be considered to be covered by the scope of the present invention.