CN103078621B - The method of control switch - Google Patents

The method of control switch Download PDF

Info

Publication number
CN103078621B
CN103078621B CN201110327306.4A CN201110327306A CN103078621B CN 103078621 B CN103078621 B CN 103078621B CN 201110327306 A CN201110327306 A CN 201110327306A CN 103078621 B CN103078621 B CN 103078621B
Authority
CN
China
Prior art keywords
switch
threshold
environmental variance
unit interval
zero count
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201110327306.4A
Other languages
Chinese (zh)
Other versions
CN103078621A (en
Inventor
吴文棋
林智华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Coretronic Corp
Original Assignee
Young Lighting Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Young Lighting Technology Inc filed Critical Young Lighting Technology Inc
Priority to CN201110327306.4A priority Critical patent/CN103078621B/en
Publication of CN103078621A publication Critical patent/CN103078621A/en
Application granted granted Critical
Publication of CN103078621B publication Critical patent/CN103078621B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of method of control switch.Above-mentioned method comprises provides optical sensing unit with testing environment variable, when environmental variance is more than or equal to first threshold, then opens above-mentioned switch.When in first unit interval of after above-mentioned switch is unlocked, if environmental variance is less than first threshold always, then close above-mentioned switch.When in second unit interval of after above-mentioned switch is unlocked, if environmental variance is less than a Second Threshold always, then close above-mentioned switch.Wherein first threshold is greater than Second Threshold, and the first unit interval was greater than for the second unit interval.

Description

The method of control switch
Technical field
The present invention relates to a kind of method of control switch, and particularly relate to a kind of method carrying out control switch based on environmental change.
Background technology
The control system of electrical installation can be divided into traditional manual control system and modern automatic control system according to control mode.For traditional manual control switch, user according to its current demand, must open, closes or adjust electrical appliance state in a manual fashion.And for the electrical installation of automation, as automatic illuminating lamp, it can automatically adjust according to the demand (such as, whether environmental light brightness or human body be in the scope of application) of user, and saves manual mode.In addition, the control system of automation also can avoid user to forget closing switch, and causes the situation of unnecessary electrical source consumption.
The main operating principle of automatic control system is for automatically adjusting electrical appliance state based on sensed parameter, and wherein above-mentioned parameter can be temperature, brightness, infrared sensing value etc.And further information can be exchanged into environmental abnormality sensing, sensing environment light, object sensing, human body sensing etc., wherein with human body sensing product universalness the most.Human body sensing system mostly is and uses Thermoelectric Infrared Sensor (pyroelectricinfraredsensor in the market, PIR) human motion sensing function is completed, its advantage is that sensing element is cheap, its shortcoming is then only can do for human motion to respond to, then cannot do sensing after human body stopping is mobile to judge, therefore normal generation is not yet left as user, but system is reciprocal complete after the state of closedown.More advanced sensing element also has quantum type infrared ray sensor, can avoid this problem, but expensive, is made in high-order product such as ear thermometer etc. more.
Human body sensor (or being object sensor) comprises Thermoelectric Infrared Sensor (PIR), interrupter-type infrared ray sensor etc. on the market at present.But PIR only can detect for human motion, and interrupter-type infrared ray sensor has that directive property is too high, power consumption and shortcoming easily affected by environment.
Use the sensing apparatus of PIR technology, its principle is the change of testing environment middle infrared (Mid-IR), has judged whether that human body moves in setting range by ultrared change situation.Existing many such products on the market, but its shortcoming causes ease of use not good.Because PIR element itself only can sense for infrared ray change, therefore often make a mistake closedown situation.Such as, automatic induction light source outside apartment building, opens light source when resident family moves to gate, but resident family usually occurs when finding out key and preparing to open the door, the situation that induction light source is but closed suddenly.Its occurrence cause is that the infrared ray when human motion changes greatly, and it is less to do change when other fine motion is done at human body, if but sensing apparatus is in order to sense human body minor motion, and heighten sensitivity, then easily by other object (such as toy or at a distance human motion) or the noise of element own, false touch is moved and turn on lights source.
Use the sensing apparatus of interrupter-type infrared sensing technology, its principle for launching infrared light supply, if front has object to exist, reflective infrared light source on sensing element, using the sensing foundation whether existed as human body.Its shortcoming is as follows:
1. directive property is too high: infrared light supply directive property is too high, only can do to detect action for the object in dead ahead, therefore be positioned at dead ahead then cannot detect when target is non-.
2. environment easily disturbs: the principle due to interrupter-type infrared sensing device is reflections off objects infrared light supply.If in erection environment, by chance there is article reflective infrared light source in front, then can cause sensing misoperation.
3. the reflectivity that material tool is different: because interrupter-type infrared sensing device is for launching infrared light supply, detected by reflections off objects, but the reflection characteristic difference of body surface (such as different clothes materials and color), then cause sensing property inconsistent, the object correct shake-up of ability under different distances possibly that reflection behavior of surface is different.
Due to above problem, so interrupter-type infrared sensing product almost only can be erected at the place that environment is simple, occupation mode is also simple, the urinating bucket of such as toilet or wash platform etc.
In addition, in the invention of No. M342470th, TaiWan, China patent bulletin, disclose a kind of automatic energy saving signal light control desk lamp, it utilizes passive infrared transducer to detect the moving state of indoor occupant, and utilize the light and shade brightness of light-sensitive element testing environment ambient light to change, come automatic firing platform lamp light power switch or adjustable desk lamp lamplight brightness.In the invention of No. 496834th, TaiWan, China patent bulletin, disclose a kind of vehicle safety system and method, wherein by the transducer of general linear response to provide the signal according to time-histories, and can in the response of long-range adjustment System controller, with the sensitivity of adjustment System.In the open patent application of No. 201012210th, TaiWan, China patent, disclose a kind of sensing circuit, when signal value is greater than threshold value and is greater than higher limit, then judge that human body enters; And when signal value is less than threshold value and is less than lower limit, then judge that human body leaves.In the open patent application of No. 201013212nd, TaiWan, China patent, disclose a kind of transducer, its method for sensing utilizes active detecting pattern and passive detection pattern to detect.
Summary of the invention
The present invention proposes a kind of method of control switch, can make the unlatching of switch and close the change that more suitably can reflect environment.
Other object of the present invention and advantage can be further understood from the technical characteristic disclosed by the present invention.
For reaching one of above-mentioned or partly or entirely object or other object, embodiments of the invention provide a kind of method of control switch, comprise and provide optical sensing unit, with testing environment variable.When environmental variance is less than first threshold, then switch remains on closed condition and makes optical sensing unit continue testing environment variable.When environmental variance is more than or equal to first threshold, then opening switch.When in first unit interval of after switch is unlocked, if environmental variance is less than first threshold always, then closing switch.When in second unit interval of after switch is unlocked, if environmental variance is less than Second Threshold always, then closing switch.Wherein first threshold is greater than Second Threshold, and the first unit interval was greater than for the second unit interval.After opening switch, whenever environmental variance is more than or equal to Second Threshold, be then held open switch.After opening switch, whenever described environmental variance is more than or equal to described first threshold, be then held open switch.Be more than or equal to Second Threshold whenever environmental variance, be then held open in second unit interval after the step of switch, if environmental variance is less than Second Threshold always, then closing switch.Be more than or equal to first threshold whenever environmental variance, be then held open in first unit interval after the step of switch, if environmental variance is less than first threshold always, then closing switch.
In an embodiment of the present invention, the method for control switch is also included in the 3rd unit interval after opening switch, if environmental variance is less than the 3rd threshold value, then closing switch always.Wherein the 3rd threshold value is less than first threshold and is greater than Second Threshold, and the 3rd unit interval was less than for the first unit interval and was greater than for the second unit interval.
In an embodiment of the present invention, above-mentioned optical sensing unit comprises infrared ray sensor.
In an embodiment of the present invention, above-mentioned optical sensing unit comprises Thermoelectric Infrared Sensor (pyroelectricinfraredsensor; PIR).
In an embodiment of the present invention, above-mentioned switch is electrically connected to light-emitting device, in order to control the opening and closing of light-emitting device.
In an embodiment of the present invention, the infra-red intensity of above-mentioned environmental variance environment residing for optical sensing unit.
In the above embodiment of the present invention, owing to passing through to be compared with multiple threshold value by detected environmental variance, and according to comparative result determine switch unlatching, close and be held open, therefore the unlatching of switch can be made and close the change that more suitably can reflect environment.
For above-mentioned feature and advantage of the present invention can be become apparent, multiple embodiment cited below particularly, and coordinate accompanying drawing, be described in detail below.
Accompanying drawing explanation
Fig. 1 is the functional block diagram of the feed sensing control device of the embodiment of the present invention;
Fig. 2 is the schematic diagram of the optical sensing unit of Fig. 1;
Fig. 3 is the flow chart of the control switch of the embodiment of the present invention;
Fig. 4 and Fig. 5 is respectively the sequential chart of environmental variance detected in the embodiment of the present invention;
Fig. 6 is the flow chart of the control switch of the embodiment of the present invention; And
Fig. 7 is the sequential chart of environmental variance detected in the embodiment of the present invention.
[main element symbol description]
100: feed sensing control device
110: optical sensing unit
112: Thermoelectric Infrared Sensor
114: infrared lenses
116: change-over circuit
120: main control unit
130: operation interface
140: signal conversion unit
200: switch
TH1: first threshold
TH2: Second Threshold
TH3: the three threshold value
T 1: the first unit interval
T 2: the second unit interval
T 3: the 3rd unit interval
T a1~ T a6, T b1~ T b11, T c1~ T c12: time point
S302 ~ S322, S602 ~ S628: the process step of control switch
Embodiment
Aforementioned and other technology contents, feature and effect for the present invention, in the detailed description of the preferred embodiment of following cooperation accompanying drawing, can clearly present.The direction term mentioned in following examples such as: upper and lower, left and right, front or rear etc., is only the direction with reference to accompanying drawing.Therefore, the direction term of use is used to illustrate and be not used for limiting the present invention.
Please refer to Fig. 1 and Fig. 2.Fig. 1 is the functional block diagram of the feed sensing control device 100 of the embodiment of the present invention, and Fig. 2 is the schematic diagram of the optical sensing unit 110 of Fig. 1.Feed sensing control device 100 comprises optical sensing unit 110 and main control unit 120.Optical sensing unit 110 is in order to testing environment variable, and main control unit 120 then in order to according to the environmental variance detected by optical sensing unit 110, carrys out the operation of control switch 200.In embodiments of the present invention, switch 200 is coupled to light-emitting device (not shown), in order to control the opening and closing of above-mentioned light-emitting device, and light-emitting device based on the environmental variance detected by optical sensing unit 110, in time can be opened and closes.
In embodiments of the present invention, optical sensing unit 110 comprises Thermoelectric Infrared Sensor (pyroelectricinfraredsensor; PIR) 112, infrared lenses 114 and change-over circuit 116.Wherein, infrared lenses 114 in order to other light beyond filtering infrared ray, and makes infrared ray through focusing on post-concentration to Thermoelectric Infrared Sensor 112.Thermoelectric Infrared Sensor 112 induction infrared ray is to produce corresponding signal to change-over circuit 116.In this embodiment, above-mentioned environmental variance is the ultrared intensity that Thermoelectric Infrared Sensor 112 senses, that is the infra-red intensity that optical sensing unit 110 senses.In addition, change-over circuit 116 can be changed from the signal received by Thermoelectric Infrared Sensor 112 and the signal after conversion is sent to main control unit 120.In embodiments of the present invention, the Thermoelectric Infrared Sensor 112 of optical sensing unit 110 also can replace with general infrared ray sensor.
In embodiments of the present invention, feed sensing control device 100 also comprises operation interface 130.Operation interface 130 can be button, keyboard, joystick or Touch Screen.User transmits by operation interface 130 and specifically controls signal to main control unit 120, the operation of the control signal control switch 200 transmitted according to operation interface 130 to make main control unit 120.Such as: under the state that user makes switch 200 remain on unlatching by operation interface 130 or the parameter of adjustment main control unit 120 or configuration.
In addition, in embodiments of the present invention, feed sensing control device 100 also has signal conversion unit 140.More eurypalynous control signal is sent to switch 200 by signal conversion unit 140 by main control unit 120, more to manipulate.For example, switch 200 can be coupled to light-emitting device, and main control unit 120 by signal conversion unit 140 and switch 200 except can controlling the opening and closing of light-emitting device, also can control the brightness of light-emitting device, frequency of operation etc.Wireless control signal or wired control signal can be transmitted between signal conversion unit 140 and switch 200.
Main control unit 120, according to the environmental variance detected by optical sensing unit 110, carrys out the operation of control switch 200.Please refer to Fig. 3 and Fig. 4 also simultaneously with reference to the flow chart that Fig. 1, Fig. 3 are the method for the control switch 200 of the embodiment of the present invention, the sequential chart of the environmental variance of Fig. 4 then detected by optical sensing unit in the embodiment of the present invention 110.Must understand, in figure 3, the above-mentioned environmental variance detected by optical sensing unit 110 represents with parameter P.In step s 302, feed sensing control device 100 can carry out initialized action, and now switch 200 is in the state of cut out.Afterwards, in step s 304, main control unit 120 can judge whether environmental variance P is more than or equal to first threshold TH1.If environmental variance P is more than or equal to first threshold TH1, then carry out step S306, with opening switch 200 also initialization first zero count t1 and the second zero count t2.For Fig. 4, at time point T a1before, switch 200 is still in the state of cut out; And at time point T a1, because environmental variance P is greater than first threshold TH1, therefore main control unit 120 can opening switch 200.
Must understand, in the present embodiment, environmental variance P can be on the occasion of or negative value, in other embodiments, Thermoelectric Infrared Sensor 112 is such as pair type Thermoelectric Infrared Sensor, its output signal may be a positive pulse, then the negative pulse that output amplitude is roughly the same or a negative pulse, then the roughly the same positive pulse of an amplitude is exported, the present invention is not limited this, by selecting suitable change-over circuit 116 and Thermoelectric Infrared Sensor 112 kind, different pulse waves can be produced.First zero count t1 and the second zero count t2 is in order to the foundation of the closing switch 200 as whether.Furthermore, in embodiments of the present invention, when carrying out step S306, the first zero count t1 and the second zero count t2 can be initialised.When the first zero count t1 is initialised, its value can be reset to zero; And when the second zero count t2 is initialised, its value is also reset to zero.Main control unit 120 can distinguish timing first zero count t1 and the second zero count t2, along with time process, when the first zero count t1 equals the first unit interval T 1or second zero count t2 when equaling the second unit interval T2, main control unit 120 namely can closing switch 200, wherein the first unit interval T 1be greater than the second unit interval T 2.
Relative to above-mentioned timing mode, in another embodiment of the present invention, then adopt mode reciprocal.Furthermore, in embodiments of the present invention, when carrying out step S306, the first zero count t1 and the second zero count t2 can be initialised.When the first zero count t1 is initialised, its value can be reset to and equal the first unit interval T 1; And when the second zero count t2 is initialised, its value can be reset to and equal the second unit interval T 2.Wherein, the first unit interval T 1be greater than the second unit interval T 2.Main control unit 120 can distinguish zero count t1 last and the second zero count t2, and along with time process, when any one inverse to zero in the first zero count t1 and the second zero count t2, main control unit 120 namely can closing switch 200.
Refer again to Fig. 3 and Fig. 4 also simultaneously with reference to Fig. 1.If in step s 304, main control unit 120 judges that environmental variance P is less than first threshold TH1, then get back to step S304, to make optical sensing unit 110 continue testing environment variable P, and again judge whether follow-up environmental variance P is more than or equal to first threshold TH1.In the case, switch 200 maintains the state of cut out.
In step S308, optical sensing unit 110 continues testing environment variable P, and main control unit 120 reads the environmental variance P that optical sensing unit 110 detects, and main control unit 120 judges whether environmental variance P is more than or equal to first threshold TH1 again.There is if follow-up environmental variance P to be more than or equal to first threshold TH1, then carry out step S310, with initialization first zero count t1 and the second zero count t2; Otherwise, then step S312 is carried out.For Fig. 4, because environmental variance P is at time point T a1and T a5all be greater than first threshold TH1, therefore the first zero count t1 and the second zero count t2 is at time point T a1and T a5can be reinitialized.
In step S312, main control unit 120 judges whether environmental variance P is more than or equal to Second Threshold TH2.Wherein, Second Threshold TH2 is less than first threshold TH1.There is if follow-up environmental variance P to be more than or equal to Second Threshold TH2, then carry out step S314, with initialization second zero count t2; Otherwise, then step S316 is carried out.For Fig. 4, because environmental variance P is at time point T a1, T a2, T a3, T a4and T a5all be greater than Second Threshold TH2, therefore after carrying out step S314, the second zero count t2 is at time point T a2, T a3, and T a4also can be reinitialized.
In step S316, main control unit 120 reads the first zero count t1 and the second zero count t2.Afterwards, in step S318, main control unit 120 judges whether the second zero count t2 is greater than the second unit interval T 2.If the second zero count t2 is greater than the second unit interval T 2, then main control unit 120 meeting closing switch 200 (step S322); Otherwise, then step S320 is carried out.Say further, when main control unit 120 judges that in step S318 the second zero count t2 is greater than the second unit interval T 2time, represent a second unit interval T after the second zero count t2 is initialised 2in, environmental variance P is less than Second Threshold TH2 always.For Fig. 4, the second zero count t2 is at time point T a5be initialised, and at time point T a5a second unit interval T afterwards 2in, environmental variance P is less than Second Threshold TH2 always, therefore main control unit 120 can at time point T a6closing switch 200.
In step s 320, main control unit 120 judges whether the first zero count t1 is greater than the first unit interval T 1.If the first zero count t1 is greater than the first unit interval T 1, then main control unit 120 meeting closing switch 200 (step S322); Otherwise, then step S308 is got back to.Say further, when main control unit 120 judges that the first zero count t1 is greater than the first unit interval T in step s 320 1time, represent a first unit interval T after the first zero count t1 is initialised 1in, environmental variance P is less than first threshold TH1 always.For Fig. 5, the first zero count t1 is at time point T b5be initialised, and at time point T b5a first unit interval T afterwards 1in, environmental variance P is less than first threshold TH1 always, therefore main control unit 120 can at time point T b12closing switch 200.Wherein, at time point T b1~ T b11, because environmental variance P is greater than Second Threshold TH2, therefore after execution step S314, the second zero count t2 is at time point T b2~ T b4, T b6~ T b11also can be reinitialized.
Must understand, Fig. 3 and the above-mentioned explanation for step S318 and S320, be described when main control unit 120 to read in the mode of timing and upgrades the first zero count t1 and the second zero count t2.Relatively, when main control unit to read in the mode of inverse and upgrades the first zero count t1 and the second zero count t2, the judgement formula of above-mentioned step S318 and S320 then must be revised, and make main control unit 120 judge whether the second zero count t2 is less than zero when performing step S318, judge whether the first zero count t1 is less than zero when performing step S320, and when the result judged is "Yes", then carry out step S322, with closing switch 200.
Based on the explanation of above-described embodiment, be appreciated that the key step of the method for the control switch in embodiments of the invention comprises: provide optical sensing unit 110, with testing environment variable P; When environmental variance P is more than or equal to first threshold TH1, then opening switch 200; A first unit interval T after switch 200 is unlocked 1in, if environmental variance P is less than first threshold TH1 always, then closing switch 200; And a second unit interval T after switch 200 is unlocked 2in, if environmental variance P is less than Second Threshold TH2 always, then closing switch 200.Wherein first threshold TH1 is greater than Second Threshold TH2, and the first unit interval T 1be greater than the second unit interval T 2.Wherein first threshold TH1 is such as the big-movement relative to human body, such as, enter, leave or brandish limbs etc. fast.Second Threshold TH2 is such as then the little trick relative to human body, such as gravity motion, four limbs mild action etc.And the action of human body is carried out by the setting means of above-mentioned multiple threshold value, can judge whether human body still stays in sensing range, avoid at human body still in sensing range, the situation that switch 200 but cuts out by mistake.
In addition, because initialization can be carried out to the second zero count t2 in step S310, S314, and judge whether the second zero count t2 has been greater than the second unit interval T in step S318 2, it can thus be appreciated that after switch 200 is unlocked (S306), whenever environmental variance P is more than or equal to Second Threshold TH2,200, switch is held open.A second unit interval T after the second zero count t2 carries out initialization 2in, if environmental variance P is less than Second Threshold TH2 always, then the second zero count t2 just can not carry out initialization, when the opening time of switch 200 is through a second unit interval T 2after, carrying out the result after step S318 is "Yes", and switch 200 can be closed (step S322); Similarly, a first unit T after the first zero count t1 carries out initialization 1in time, if environmental variance P is less than first threshold TH1 always, then the first zero count t1 just can not carry out initialization, when the opening time of switch 200 is through a first unit interval T 1after, carrying out the result after step S320 is "Yes", and switch 200 can be closed (step S322).
In addition, if setting first threshold TH1 be a larger value, the setup rule due to switch 200 is that environmental variance P is more than or equal to higher first threshold TH1, thus switch 200 not easily because of less signal by error starting.And during switch 200 is opened, main control unit 120 also can continue to judge that whether environmental variance P is at a second unit interval T 2inside there is the situation being more than or equal to Second Threshold TH2, and if environmental variance P at a second unit interval T 2inside occur the situation being more than or equal to Second Threshold TH2, then switch 200 can be held open.Therefore, can not cause because there is no the appearance of larger signal the situation that switch 200 cuts out.In addition, during switch 200 is opened, main control unit 120 also can continue to judge that whether environmental variance P is at a first unit interval T 1inside there is the situation being more than or equal to first threshold TH1, and if environmental variance P fails at a first unit interval T 1inside occur the situation being more than or equal to first threshold TH1, then switch 200 can be closed.Therefore, also can not continue because of less signal occur and cause the situation that switch 200 cannot cut out.
Moreover, the mode of single threshold value is adopted compared to prior art, embodiments of the invention are because adopting the judgment mode of multiple threshold value, therefore also can not increase additional element, the cost of optical sensing unit 110 can not be increased, and only need amendment small part firmware or software can complete human body and there is multistage sensing function.
It is noted that step S308 to S320 can transfer execution order, do not limit and will perform according to the sequencing shown in Fig. 3.
In above-described embodiment, adopt the judgment mode of first threshold TH1 and Second Threshold TH2, embodiments of the invention also can adopt the judgment mode of more threshold value.Please refer to Fig. 6 and Fig. 7, Fig. 6 is the flow chart of the method for embodiment of the present invention control switch 200, and Fig. 7 is the sequential chart of environmental variance P detected in the embodiment of the present invention.
In step S602, feed sensing control device 100 can carry out initialized action, and now switch 200 is in the state of cut out.Afterwards, in step s 604, main control unit 120 can judge whether environmental variance P is more than or equal to first threshold TH1.If environmental variance P is more than or equal to first threshold TH1, then carry out step S606, with opening switch 200 also initialization first zero count t1, the second zero count t2 and the 3rd zero count t3.For Fig. 7, at time point T c1before, switch 200 is still in the state of cut out; And at time point T c1, because environmental variance P is greater than first threshold TH1, therefore main control unit 120 can opening switch 200.
Must understand, above-mentioned first zero count t1, the second zero count t2 and the 3rd zero count t3 are the foundations in order to the closing switch 200 as whether.Furthermore, in embodiments of the present invention, when carrying out step S606, the first zero count t1, the second zero count t2 and the 3rd zero count t3 can be initialised.When the first zero count t1 is initialised, its value can be reset to zero; When the second zero count t2 is initialised, its value can be reset to zero; And when the 3rd zero count t3 is initialised, its value is also reset to zero.Main control unit 120 can distinguish timing first zero count t1, the second zero count t2 and the 3rd zero count t3, along with time process, when the first zero count t1 equals the first unit interval T 1, the second zero count t2 equals the second unit interval T 2or the 3rd zero count t3 equal the 3rd unit interval T 3time, main control unit 120 namely can closing switch 200, wherein the 3rd unit interval T 3be less than the first unit interval T 1and be greater than the second unit interval T 2.
Relative to above-mentioned timing mode, in another embodiment of the present invention, then adopt mode reciprocal.Furthermore, in embodiments of the present invention, when carrying out step S606, the first zero count t1, the second zero count t2 and the 3rd zero count t3 can be initialised.When the first zero count t1 is initialised, its value can be reset to and equal the first unit interval T 1; When the second zero count t2 is initialised, its value can be reset to and equal the second unit interval T 2; And when the 3rd zero count t3 is initialised, its value can be reset to and equal the 3rd unit interval T 3.Wherein, the 3rd unit interval T 3be less than the first unit interval T 1and be greater than the second unit interval T 2.Main control unit 120 meeting zero count t1 last, the second zero count t2 and the 3rd zero count t3, along with the time passes through, when the first zero count t1, the second zero count t2 and the 3rd one of them inverse to zero of zero count t3, main control unit 120 namely can closing switch 200.
Refer again to Fig. 6 and Fig. 7 also simultaneously with reference to Fig. 1.If in step s 604, main control unit 120 judges that environmental variance P is less than first threshold TH1, then get back to step S604, to make optical sensing unit 110 continue testing environment variable P, and again judge whether follow-up environmental variance P is more than or equal to first threshold TH1.In the case, switch 200 maintains in a closed condition.
Afterwards, in step S608, optical sensing unit 110 continues testing environment variable P, and main control unit 120 judges whether environmental variance P is more than or equal to first threshold TH1 again.There is if follow-up environmental variance P to be more than or equal to first threshold TH1, then carry out step S610, with initialization first zero count t1, the second zero count t2 and the 3rd zero count t3; Otherwise, then step S612 is carried out.For Fig. 7, because environmental variance P is at time point T c1and T c5all be greater than first threshold TH1, therefore the first zero count t1, the second zero count t2 and the 3rd zero count t3 are at time point T c1and T c5can be reinitialized.
In step S612, main control unit 120 judges whether environmental variance P is more than or equal to the 3rd threshold value TH3.There is if follow-up environmental variance P to be more than or equal to the 3rd threshold value TH3, then carry out step S614, with initialization second zero count t2 and the 3rd zero count t3; Otherwise, then step S616 is carried out.For Fig. 4, because environmental variance P is at time point T c1, T c3, T c5, T c8and T c10all be greater than the 3rd threshold value TH3, therefore after carrying out step S614, the second zero count t2 and the 3rd zero count t3 is at time point T c3, T c8and T c10also can be reinitialized.
In step S616, main control unit 120 judges whether environmental variance P is more than or equal to Second Threshold TH2.There is if follow-up environmental variance P to be more than or equal to Second Threshold TH2, then carry out step S618, with initialization second zero count t2; Otherwise, then step S620 is carried out.For Fig. 7, because environmental variance P is at time point T c1~ T c11all be greater than Second Threshold TH2, therefore after carrying out step S618, the second zero count t2 is at time point T c1, T c4, T c6, T c7, T c9, T c11also can be reinitialized.
In step S620, main control unit 120 reads the first current zero count t1, the second zero count t2 and the 3rd zero count t3.Afterwards, in step S622, main control unit 120 judges whether the second zero count t2 is greater than the second unit interval T 2.If the second zero count t2 is greater than the second unit interval T 2, then main control unit 120 meeting closing switch 200 (step S628); Otherwise, then step S624 is carried out.Say further, when main control unit 120 judges that in step S622 the second zero count t2 is greater than the second unit interval T 2time, represent a second unit interval T after the second zero count t2 is initialised 2in, environmental variance P is less than Second Threshold TH2 always.
In step S624, main control unit 120 judges whether the 3rd zero count t3 is greater than the 3rd unit interval T 3.If the 3rd zero count t3 is greater than the 3rd unit interval T 3, then main control unit 120 meeting closing switch 200 (step S628); Otherwise, then step S626 is carried out.Say further, when main control unit 120 judges that in step S624 the 3rd zero count t3 is greater than the 3rd unit interval T 3time, represent a 3rd unit interval T after the 3rd zero count t3 is initialised 3in, environmental variance P is less than the 3rd threshold value TH3 always.
In step S626, main control unit 120 judges whether the first zero count t1 is greater than the first unit interval T 1.If the first zero count t1 is greater than the first unit interval T 1, then main control unit 120 meeting closing switch 200 (step S628); Otherwise, then step S608 is got back to.Say further, when main control unit 120 judges that in step S626 the first zero count t1 is greater than the first unit interval T 1time, represent a first unit interval T after the first zero count t1 is initialised 1in, environmental variance P is less than first threshold TH1 always.
Must understand, the above-mentioned explanation for step S622, S624 and S626 of Fig. 6, be described when main control unit 120 to read in the mode of timing and upgrades the first zero count t1, the second zero count t2 and the 3rd zero count t3.Relatively, when main control unit to read in the mode of inverse and upgrades the first zero count t1, the second zero count t2 and the 3rd zero count t3, above-mentioned step S622, the judgment mode of S624 and S626 then must be revised, and main control unit 120 is judged when performing step S622 whether the second zero count t2 is less than zero, judge whether the 3rd zero count t3 is less than zero when performing step S624, execution step S626 time judge whether the first zero count t1 is less than zero, and when the result judged is "Yes", then carry out step S628, with closing switch 200.
Because initialization can be carried out to the second zero count t2 in step S610, S614 and S618, and judge whether the second zero count t2 has been greater than the second unit interval T in step S622 2, it can thus be appreciated that after switch 200 is unlocked (S606), whenever environmental variance P is more than or equal to Second Threshold TH2,200, switch is held open, and the second zero count t2 can be initialised.As opening time second unit interval T of switch 200 2after, when to carry out the result after step S622 be "Yes", then switch 200 can be closed.It can thus be appreciated that, a second unit interval T after the second zero count t2 carries out initialization 2in, if environmental variance P is less than Second Threshold TH2 always, then the second zero count t2 just can not carry out initialization, when the opening time of switch 200 is through a second unit interval T 2after, carrying out the result after step S622 is "Yes", and switch 200 can be closed (step S628); A the 3rd unit T after the 3rd zero count t3 carries out initialization 3in time, if environmental variance P is less than the 3rd threshold value TH3 always, then the 3rd zero count t3 just can not carry out initialization, when the opening time of switch 200 is through a 3rd unit interval T 3after, carrying out the result after step S624 is "Yes", and switch 200 can be closed (step S628); And whenever the first zero count t1 carry out initialisation switch 200 be extended unlatching after a first unit T 1in time, if environmental variance P is less than first threshold TH1 always, then the first zero count t1 just can not carry out initialization, when the opening time of switch 200 is through a first unit interval T 1after, carrying out the result after step S626 is "Yes", and switch 200 can be closed (step S628).
It is noted that step S608 to S626 can transfer execution order, do not limit and will perform according to the sequencing shown in Fig. 6.
In sum, the above embodiment of the present invention is owing to passing through detected environmental variance to compare with multiple threshold value, and according to comparative result determine switch unlatching, close and be held open, therefore the unlatching of switch can be made and close the change that more suitably can reflect environment.
The above, be only the preferred embodiments of the present invention, when not limiting scope of the invention process with this, namely all simple equivalences done according to claims of the present invention and description change and amendment, all still belong in the scope of patent of the present invention covering.Any embodiment of the present invention or claim must not reach whole object disclosed by the present invention or advantage or feature in addition.In addition, summary and denomination of invention are only used to the use of auxiliary patent document retrieval, are not used for limiting interest field of the present invention.In addition, the term such as " first ", " second " of mentioning in this specification or claim only in order to name the title of element (element) or to distinguish different embodiment or scope, and is not used for the upper limit of limiting element quantity or lower limit.

Claims (10)

1. a method for control switch, comprising:
There is provided optical sensing unit, with testing environment variable;
When described environmental variance is less than first threshold, then described switch remains on closed condition and makes described optical sensing unit continue to detect described environmental variance;
When described environmental variance is more than or equal to described first threshold, then open described switch;
When in first unit interval of after described switch is unlocked, if described environmental variance is less than described first threshold always, then close described switch; And
When in second unit interval of after described switch is unlocked, if described environmental variance is less than Second Threshold always, then close described switch;
Wherein said first threshold is greater than described Second Threshold, and described first unit interval is greater than described second unit interval,
Described method also comprises:
After the described switch of unlatching, whenever described environmental variance is more than or equal to described Second Threshold, be then held open described switch,
After the described switch of unlatching, whenever described environmental variance is more than or equal to described first threshold, be then held open described switch,
Be more than or equal to described Second Threshold whenever described environmental variance, be then held open in one after the step of described switch described second unit interval, if described environmental variance is less than described Second Threshold always, then close described switch,
Be more than or equal to described first threshold whenever described environmental variance, be then held open in one after the step of described switch described first unit interval, if described environmental variance is less than described first threshold always, then close described switch.
2. the method for control switch according to claim 1, also comprises:
In the 3rd unit interval after opening described switch, if described environmental variance is less than the 3rd threshold value always, then close described switch;
Wherein said 3rd threshold value is less than described first threshold and is greater than described Second Threshold, and described 3rd unit interval is less than described first unit interval and is greater than described second unit interval.
3. the method for control switch according to claim 2, also comprises:
After the described switch of unlatching, whenever described environmental variance is more than or equal to described Second Threshold, be then held open described switch.
4. the method for control switch according to claim 3, also comprises:
After the described switch of unlatching, whenever described environmental variance is more than or equal to described first threshold, be then held open described switch.
5. the method for control switch according to claim 4, also comprises:
Be more than or equal to described Second Threshold whenever described environmental variance, be then held open in second unit interval after the step of described switch, if described environmental variance is less than described Second Threshold always, then close described switch.
6. the method for control switch according to claim 5, also comprises:
Be more than or equal to described first threshold whenever described environmental variance, be then held open in first unit interval after the step of described switch, if described environmental variance is less than first threshold always, then close described switch.
7. the method for control switch according to claim 1, wherein said optical sensing unit comprises infrared ray sensor.
8. the method for control switch according to claim 1, wherein said optical sensing unit comprises Thermoelectric Infrared Sensor.
9. the method for control switch according to claim 1, wherein said switch is coupled to light-emitting device, in order to control the opening and closing of described light-emitting device.
10. the method for control switch according to claim 1, the infra-red intensity of wherein said environmental variance environment residing for described optical sensing unit.
CN201110327306.4A 2011-10-25 2011-10-25 The method of control switch Expired - Fee Related CN103078621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110327306.4A CN103078621B (en) 2011-10-25 2011-10-25 The method of control switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110327306.4A CN103078621B (en) 2011-10-25 2011-10-25 The method of control switch

Publications (2)

Publication Number Publication Date
CN103078621A CN103078621A (en) 2013-05-01
CN103078621B true CN103078621B (en) 2015-11-18

Family

ID=48155044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110327306.4A Expired - Fee Related CN103078621B (en) 2011-10-25 2011-10-25 The method of control switch

Country Status (1)

Country Link
CN (1) CN103078621B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113124452A (en) * 2021-04-23 2021-07-16 浙江灵杰智控科技有限公司 Multifunctional wireless adjusting controller for bathroom heater

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2300184Y (en) * 1997-03-12 1998-12-09 四川电子测试技术应用研究所 Passive infrared sensing automatic switch
TWM342470U (en) * 2007-11-29 2008-10-11 Dong Chang Rui An energy-saving lighting-controlled table lamp
CN101581919A (en) * 2009-03-25 2009-11-18 温州市麦特力克电器有限公司 Human body sensing switch and working method thereof
CN101581918A (en) * 2009-03-25 2009-11-18 温州市麦特力克电器有限公司 Ultrasonic and infrared sensing switch and working method thereof
CN201383087Y (en) * 2009-03-25 2010-01-13 温州市麦特力克电器有限公司 Human body induction switch
CN201383804Y (en) * 2009-03-25 2010-01-13 温州市麦特力克电器有限公司 Ultrasonic and infrared inductive switch

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2300184Y (en) * 1997-03-12 1998-12-09 四川电子测试技术应用研究所 Passive infrared sensing automatic switch
TWM342470U (en) * 2007-11-29 2008-10-11 Dong Chang Rui An energy-saving lighting-controlled table lamp
CN101581919A (en) * 2009-03-25 2009-11-18 温州市麦特力克电器有限公司 Human body sensing switch and working method thereof
CN101581918A (en) * 2009-03-25 2009-11-18 温州市麦特力克电器有限公司 Ultrasonic and infrared sensing switch and working method thereof
CN201383087Y (en) * 2009-03-25 2010-01-13 温州市麦特力克电器有限公司 Human body induction switch
CN201383804Y (en) * 2009-03-25 2010-01-13 温州市麦特力克电器有限公司 Ultrasonic and infrared inductive switch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王艳辉,王化冰.基于热释感应与照度复合的节电开关研究与设计.《中国现代教育装备》.2008,(第2期),第75-77页. *

Also Published As

Publication number Publication date
CN103078621A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
CN105357818B (en) A kind of line control machine control method
CN110779150B (en) Millimeter wave-based air conditioner control method and device and air conditioner
CN102004540B (en) Laptop
EP1343252A3 (en) Non-contact obstacle detection system utilizing ultra sensitive capacitive sensing
CN108605394A (en) Built-in electromechanical equipment for controlling the device in building
US11284496B2 (en) Light control devices and light control systems
CN102541303A (en) Proximity sensor with motion detection
WO2023116121A1 (en) Intelligent toilet cover plate control method based on infrared and pressure sensors
CN103017909A (en) Device and method for measuring temperature and mobile communication equipment equipped with device
CN108156729A (en) The control method and device of lighting apparatus, lighting apparatus
CN105704265A (en) Method and system for identifying distance between cellphone and shelter
CN103078621B (en) The method of control switch
CN201928484U (en) Pyroelectric infrared (PIR) sensor lamp controller
CN104951076B (en) Gestures direction identifying system and recognition methods
US20150009140A1 (en) Navigation device including thermal sensor
JP2020067668A (en) Input system
CN104280787A (en) Device and method for detecting object approaching
CN106299912A (en) A kind of Intelligent remote controlled socket based on infrared measurement of temperature and implementation method
WO2019237441A1 (en) Automatic waking method and device for touch display screen, and readable/writable storage medium
CN210328074U (en) Intelligent controller for presence type human body infrared detection
CN104281331B (en) Guider and its startup method
CN209590894U (en) A kind of counter controller
CN106527297A (en) Intelligent glass control method and device
CN212569457U (en) Intelligent home system based on AIOT
TWM514576U (en) Motion detection device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190121

Address after: Hsinchu Science Park, Taiwan, China

Patentee after: Coretronic Corp.

Address before: Hsinchu Science Park, Taiwan, China

Patentee before: Yangsheng Lighting Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151118

Termination date: 20211025