A kind of multi-function desk lamp and control method thereofTechnical field
The invention belongs to desk lamp and controls technical field, especially relates to a kind of multi-function desk lamp using infrared controlAnd control method.
Background technology
Desk lamp, is a kind of small household appliances the most common in daily life, is generally used for little range lighting and is used, such as seesBook, study etc., in actual use, the brightness of common desk lamp is all only illumination functions, and function of desk lamp is single, andAnd the control mode of present desk lamp is nothing but the control mode such as touching formula, controlling party outside push button touching, button rotation and Shan HongFormula is the most single, it is therefore desirable to a kind of multi-functional desk lamp, increases the function of desk lamp, changes the control mode of desk lamp.
Summary of the invention
In view of this, the invention is directed to a kind of multi-function desk lamp and control method thereof, uses double infrared controlMethod, changes the control mode of desk lamp, increases the function of desk lamp.
For reaching above-mentioned purpose, the technical scheme of the invention is achieved in that
A kind of multi-function desk lamp, including base, support and lampshade, described base is connected by support with lampshade, described lampBeing provided with LED in cover, described LED connects, by running through the wire in support, the control circuit being arranged in base, describedIt is provided with on and off switch on base, described base is also respectively provided with the sitting posture detection that the control circuit with chassis interior is connectedDevice, the first infrared sensor, the second infrared sensor and display screen;
Described sitting posture detector is placed in the middle part, front side of base, described first infrared sensor and the second infrared sensingDevice structure is identical, and the first infrared sensor and the second infrared sensor are respectively and fixedly connected to base upper surface and on front side of baseFace, the axis of described first infrared sensor and the second infrared sensor is vertical with base upper surface respectively, and each sensorProbe orientation respectively the most upward, the company between described first infrared sensor, the second infrared sensor and sitting posture detector threeLine is isosceles triangle, and described display screen is placed on base upper surface and near the junction of support with base.
Further, described control circuit includes cpu central processing unit, is connected with cpu central processing unit respectivelyDC-DC power module, LED drive module, display screen drive the inspection of module, the first infrared sensor, the second infrared sensor, sitting postureSurvey module, audio frequency control drives module and LED mode drives module, described LED drive module and described LED mode to drive moduleOutfan be connected with the LED being located in lampshade respectively, described display screen drive module outfan connect display screen, describedThe input of sitting posture detection module connects sitting posture detector, and described audio frequency control drives the outfan of module to connect audio-frequency module.
Further, described sitting posture detector is photographic head, and photographic head is inclined upwardly and angle of inclination can be according to notBeing adjusted with the height of user, whether display screen suitable for the angle of vision-control, photographic head detection user from desktop withThe upper body part to shoulder, this detection method test point is few, and the data of required judgement are few, whether judge sitting posture easily and accuratelyCorrectly;
The connector that described display screen is connected with base is expansion link, and display screen can with base at an angle, screenUser oriented, conveniently checks the information on screen;
The external audio input of described audio-frequency module connects speaker, and speaker is arranged on base.
The control method of a kind of multi-function desk lamp, detects including desk lamp pattern switching control and sitting posture and controls,
Described desk lamp pattern switching control includes that audio frequency shaping modes, lamplight brightness shaping modes, lamp light mode switch mouldFormula and brightness of display screen shaping modes, described desk lamp pattern switching control comprises the steps:
(1) system electrification, program starts, judges that palm streaks the first infrared sensor with horizontal direction after program initializationOrder with the second infrared sensor;
(2) judge that palm streaks the first infrared sensor and the second infrared sensor, desk lamp pattern successively with horizontal directionThe order of switching is audio frequency regulation, lamplight brightness regulation, lamp light mode regulation and brightness of display screen regulation, and palm streaks once,Desk lamp is switched to next shaping modes according to the order of switching, and calls corresponding application program;
(3) judge that palm streaks the second infrared sensor and the first infrared sensor, desk lamp pattern successively with horizontal directionThe order of switching is brightness of display screen regulation, lamp light mode regulation, lamplight brightness regulation and audio frequency regulation, and palm streaks once,Desk lamp is switched to next shaping modes according to the order of switching, and calls corresponding application program;
Further, described sitting posture detection control comprises the steps:
(1) system electrification, sitting posture detection program starts;
(2) sitting posture detector gathers sitting posture data, and the sitting posture data of collection are transferred to sitting posture detection module, subsequently intoCpu central processing unit carries out data process and judges that sitting posture is the most correct;
(3) if judging, sitting posture is correct, then return step (2) and proceed to judge;
(4) if judging, abnormal sitting posture is true, then audio frequency control drives module drive audio-frequency module to send sitting posture prompt tone.
Further, audio frequency shaping modes comprises the steps:
(1) palm is placed in above the first infrared sensor and the second infrared sensor, after stopping the b second, enters volumeSetting pattern, the interval range of infrared sensor gesture manipulation is can to carry out in the distance of 1cm-15cm directly over infrared sensorThe regulation of volume;
(2) as tuned up volume, palm is placed in directly over first sensor and the second sensor, often moves up distance a,Volume raises one grade;
(3) as turned volume down, palm is placed in directly over first sensor and the second sensor, often moves down distance a,Volume reduces by one grade;
(4), after volume adjusting, palm stops the b second directly over first sensor and the second sensor, exits audio frequencyShaping modes.
Further, lamplight brightness shaping modes comprises the steps:
(1) palm is placed in above the first infrared sensor and the second infrared sensor, after stopping the b second, enters lamplight brightnessShaping modes, the interval range of infrared sensor gesture manipulation is can to carry out in the distance of 1cm-15cm directly over infrared sensorThe regulation of lamplight brightness;
(2) as lightened light, palm is placed in directly over first sensor and the second sensor, often moves up distance a,Lamplight brightness raises one grade;
(3) as adjusted weak light, palm is placed in directly over first sensor and the second sensor, often moves down distance a,Lamplight brightness reduces by one grade;
(4), after lamplight brightness regulation, palm stops the b second directly over first sensor and the second sensor, exitsLamplight brightness shaping modes.
Further, described lamp light mode switch mode includes reading model, Night and leisure patterns, lamp light modeSwitch mode comprises the steps:
(1) palm is placed in above the first infrared sensor and the second infrared sensor, after stopping the b second, enters lamp light modeSwitch mode, the interval range of infrared sensor gesture manipulation is can to carry out in the distance of 1cm-15cm directly over infrared sensorThe switching of lamp light mode;
(2) palm moves up, lamp light mode regulation order be reading model, Night and leisure patterns, often toUpper displacement a, a kind of lamp light mode of switching;
(3) pronation moves, lamp light mode regulation order be leisure patterns, Night and reading model, often toLower displacement a, a kind of lamp light mode of switching;
(4), after lamp light mode regulation, palm stops the b second directly over first sensor and the second sensor, exitsLamp light mode shaping modes.
Further, brightness of display screen shaping modes comprises the steps:
(1) palm is placed in above the first infrared sensor and the second infrared sensor, enters display screen after stopping the b second brightDegree shaping modes, the interval range of infrared sensor gesture manipulation is can to enter in the distance of 1cm-15cm directly over infrared sensorThe regulation of row brightness of display screen;
(2) as lightened display screen, palm is placed in directly over first sensor and the second sensor, often moves up distanceA, brightness of display screen raises one grade;
(3) as dimmed display screen, palm is placed in directly over first sensor and the second sensor, often moves down distanceA, brightness of display screen reduces by one grade;
(4), after brightness of display screen regulation, palm stops the b second directly over first sensor and the second sensor, moves backGo out brightness of display screen shaping modes.
Relative to prior art, a kind of multi-function desk lamp and control method thereof described in the invention have following excellentGesture:
A kind of multi-function desk lamp of the present invention and control method thereof carry out the pattern of desk lamp by double infrared sensorsSwitching, by palm away from or in the way of double infrared sensors the functional parameter of adjustable desk lamp, control mode is simple, convenientOperation, desk lamp is provided with display screen, and for showing current steer mode, and the brightness scalable of display screen, desk lamp is additionally provided withMultiple desk lamp mode controlling mode, different patterns, the lamplight brightness of desk lamp is different, is additionally provided with the module of detection sitting posture, can languageThe sitting posture of sound prompting user is the most correct;Photographic head is based on the downward-sloping certain angle of base upper surface and adjustable angleJoint, simultaneity factor may be notified that angular adjustment is the most suitable, improves the degree of accuracy judging sitting posture, and display screen can be one with baseDetermine angle, screen user oriented, conveniently check the information on screen.
Accompanying drawing explanation
The accompanying drawing of the part constituting the invention is used for providing being further appreciated by the invention, and the present invention createsThe schematic description and description made, for explaining the invention, is not intended that the improper restriction to the invention.?In accompanying drawing:
Fig. 1 is the external structure schematic diagram described in the invention embodiment;
Fig. 2 is that the control circuit described in the invention embodiment constitutes block diagram;
Fig. 3 is the desk lamp pattern switching control flow chart described in the invention embodiment;
Fig. 4 is the sitting posture detection control flow chart described in the invention embodiment;
Fig. 5 is the audio frequency shaping modes control flow chart described in the invention embodiment;
Fig. 6 is the lamplight brightness shaping modes control flow chart described in the invention embodiment;
Fig. 7 is the lamp light mode switch mode control flow chart described in the invention embodiment;
Fig. 8 is the brightness of display screen shaping modes control flow chart described in the invention embodiment.
Description of reference numerals:
1-base;2-support;3-lampshade;4-on and off switch;5-the first infrared sensor;6-the second infrared sensor;7-Display screen;8-sitting posture detector;9-LED lamp;10-CPU central processing unit;11-DC-DC power module;12-display screen drives mouldBlock;13-LED drives module;14-LED mode activated module;15-sitting posture detection module;16-audio frequency control drives module;17-Audio-frequency module;18-speaker.
Detailed description of the invention
It should be noted that in the case of not conflicting, the embodiment in the invention and the feature in embodiment canTo be mutually combined.
In the description of the invention, it is to be understood that term " " center ", " longitudinally ", " laterally ", " on ", D score,Orientation or the position relationship of the instruction such as "front", "rear", "left", "right", " vertically ", " level ", " top ", " end ", " interior ", " outward " areBased on orientation shown in the drawings or position relationship, it is for only for ease of description the invention and simplifies description rather than instructionHint indication device or element must have specific orientation, with specific azimuth configuration and operation, be not understood thatFor the restriction to the invention.Additionally, term " first ", " second " etc. are only used for describing purpose, and it is not intended that indicateOr imply relative importance or the implicit quantity indicating indicated technical characteristic.Thus, " first ", " second " etc. are definedFeature can express or implicitly include one or more this feature.In the description of the invention, unless separatelyBeing described, " multiple " are meant that two or more.
In the description of the invention, it should be noted that unless otherwise clearly defined and limited, term " peaceDress ", should be interpreted broadly " being connected ", " connection ", for example, it may be fix connection, it is also possible to be to removably connect, or integratedlyConnect;Can be to be mechanically connected, it is also possible to be electrical connection;Can be to be joined directly together, it is also possible to be indirectly connected to by intermediary,It can be the connection of two element internals.For the ordinary skill in the art, on can being understood by concrete conditionState term concrete meaning in the invention.
Describe the invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
As shown in Figure 1-2, a kind of multi-function desk lamp, including base 1, support 2 and lampshade 3, described base 1 leads to lampshade 3Crossing support 2 to connect, be provided with LED 9 in described lampshade 3, described LED 9 is arranged on by running through the wire connection in support 2Control circuit in base 1, described base 1 is provided with on and off switch 4, described base 1 is also respectively provided with in base 1The control circuit in portion be connected sitting posture detector the 8, first infrared sensor the 5, second infrared sensor 6 and display screen 7;
Described sitting posture detector 8 is placed in the middle part, front side of base 1, and described first infrared sensor 5 and second is infraredSensor 6 structure is identical, and the first infrared sensor 5 and the second infrared sensor 6 are respectively and fixedly connected to base 1 upper surface and the end of nearSeat 1 leading flank, described first infrared sensor 5 is vertical with base 1 upper surface respectively with the axis of the second infrared sensor 6, andThe probe orientation of each sensor is distinguished the most upward, described first infrared sensor the 5, second infrared sensor 6 and sitting posture detector 8Line between three is isosceles triangle, and described display screen 7 is placed on base 1 upper surface and near support 2 and the company of base 1Meet place;
Described sitting posture detector 8 is photographic head, and photographic head is inclined upwardly an angle and angle based on base 1 upper surfaceCan be adjusted according to the height of different user, display screen 7 is the most suitable for the angle of vision-control, photographic head detection userTo the body part of shoulder more than desktop, this detection method test point is few, and the data of required judgement are few, judge easily and accuratelySitting posture is the most correct, and the connector that described display screen 7 is connected with base 1 is expansion link, and display screen 7 can be with base 1 in necessarilyAngle, screen user oriented, conveniently check the information on screen, the external audio input of described audio-frequency module 17 connects to be raisedSound device 18, and speaker 18 is arranged on base 1.
As in figure 2 it is shown, described control circuit includes cpu central processing unit 10, it is connected with cpu central processing unit 10 respectivelyThe DC-DC power module 11 that connects, LED drive module 13, display screen drive module the 12, first infrared sensor the 5, second infrared biographySensor 6, sitting posture detection module 15, audio frequency control drive module 16 and LED mode to drive module 14, described LED drive module 13The outfan driving module 14 with described LED mode is connected with the LED 9 being located in lampshade 3 respectively, and described display screen drives mouldThe outfan of block 12 connects display screen 7, and the input of described sitting posture detection module 15 connects sitting posture detector 8, described audio frequency controlSystem drives the outfan of module 16 to connect audio-frequency module 17.
The control method of a kind of multi-function desk lamp, detects including desk lamp pattern switching control and sitting posture and controls,
Described desk lamp pattern switching control includes that audio frequency shaping modes, lamplight brightness shaping modes, lamp light mode switch mouldFormula and brightness of display screen shaping modes, as it is shown on figure 3, described desk lamp pattern switching control comprises the steps:
(1) system electrification, program starts, judges that palm streaks the first infrared sensor with horizontal direction after program initializationOrder with the second infrared sensor;
(2) judge that palm streaks the first infrared sensor and the second infrared sensor, desk lamp pattern successively with horizontal directionThe order of switching is audio frequency regulation, lamplight brightness regulation, lamp light mode regulation and brightness of display screen regulation, and palm streaks once,Desk lamp is switched to next shaping modes according to the order of switching, and calls corresponding application program;
(3) judge that palm streaks the second infrared sensor and the first infrared sensor, desk lamp pattern successively with horizontal directionThe order of switching is brightness of display screen regulation, lamp light mode regulation, lamplight brightness regulation and audio frequency regulation, and palm streaks once,Desk lamp is switched to next shaping modes according to the order of switching, and calls corresponding application program;
As shown in Figure 4, described sitting posture detection control comprises the steps:
(1) system electrification, sitting posture detection program starts;
(2) sitting posture detector gathers sitting posture data, and the sitting posture data of collection are transferred to sitting posture detection module, subsequently intoCpu central processing unit carries out data process and judges that sitting posture is the most correct;
(3) if judging, sitting posture is correct, then return step (2) and proceed to judge;
(4) if judging, abnormal sitting posture is true, then audio frequency control drives module drive audio-frequency module to send sitting posture prompt tone.
As it is shown in figure 5, audio frequency shaping modes comprises the steps:
(1) palm is placed in above the first infrared sensor and the second infrared sensor, after stopping the b second, enters volumeSetting pattern, the interval range of infrared sensor gesture manipulation is can to carry out in the distance of 1cm-15cm directly over infrared sensorThe regulation of volume;
(2) as tuned up volume, palm is placed in directly over first sensor and the second sensor, often moves up distance a,Volume raises one grade;
(3) as turned volume down, palm is placed in directly over first sensor and the second sensor, often moves down distance a,Volume reduces by one grade;
(4), after volume adjusting, palm stops the b second directly over first sensor and the second sensor, exits audio frequencyShaping modes.
The audio system of this desk lamp is not limited solely to the sound control of sitting posture prompt tone, can add weather forecast in desk lampReporting module, music playing module etc., this audio system still can carry out the control of volume by the method that infrared gesture manipulatesWork processed.
As shown in Figure 6, lamplight brightness shaping modes comprises the steps:
(1) palm is placed in above the first infrared sensor and the second infrared sensor, after stopping the b second, enters lamplight brightnessShaping modes, the interval range of infrared sensor gesture manipulation is can to carry out in the distance of 1cm-15cm directly over infrared sensorThe regulation of lamplight brightness;
(2) as lightened light, palm is placed in directly over first sensor and the second sensor, often moves up distance a,Lamplight brightness raises one grade;
(3) as adjusted weak light, palm is placed in directly over first sensor and the second sensor, often moves down distance a,Lamplight brightness reduces by one grade;
(4), after lamplight brightness regulation, palm stops the b second directly over first sensor and the second sensor, exitsLamplight brightness shaping modes.
Described lamp light mode switch mode includes reading model, Night and leisure patterns, as it is shown in fig. 7, light mouldFormula switch mode comprises the steps:
(1) palm is placed in above the first infrared sensor and the second infrared sensor, after stopping the b second, enters lamp light modeSwitch mode, the interval range of infrared sensor gesture manipulation is can to carry out in the distance of 1cm-15cm directly over infrared sensorThe switching of lamp light mode;
(2) palm moves up, lamp light mode regulation order be reading model, Night and leisure patterns, often toUpper displacement a, a kind of lamp light mode of switching;
(3) pronation moves, lamp light mode regulation order be leisure patterns, Night and reading model, often toLower displacement a, a kind of lamp light mode of switching;
(4), after lamp light mode regulation, palm stops the b second directly over first sensor and the second sensor, exitsLamp light mode shaping modes.
As shown in Figure 8, brightness of display screen shaping modes comprises the steps:
(1) palm is placed in above the first infrared sensor and the second infrared sensor, enters display screen after stopping the b second brightDegree shaping modes, the interval range of infrared sensor gesture manipulation is can to enter in the distance of 1cm-15cm directly over infrared sensorThe regulation of row brightness of display screen;
(2) as lightened display screen, palm is placed in directly over first sensor and the second sensor, often moves up distanceA, brightness of display screen raises one grade;
(3) as dimmed display screen, palm is placed in directly over first sensor and the second sensor, often moves down distanceA, brightness of display screen reduces by one grade;
(4), after brightness of display screen regulation, palm stops the b second directly over first sensor and the second sensor, moves backGo out brightness of display screen shaping modes.
The foregoing is only the preferred embodiment of the invention, not in order to limit the invention, all at thisWithin the spirit of innovation and creation and principle, any modification, equivalent substitution and improvement etc. made, should be included in the inventionProtection domain within.