CN109506279B - Gesture recognition control method of range hood and range hood - Google Patents
Gesture recognition control method of range hood and range hood Download PDFInfo
- Publication number
- CN109506279B CN109506279B CN201811617765.4A CN201811617765A CN109506279B CN 109506279 B CN109506279 B CN 109506279B CN 201811617765 A CN201811617765 A CN 201811617765A CN 109506279 B CN109506279 B CN 109506279B
- Authority
- CN
- China
- Prior art keywords
- gesture
- group
- num
- receiving
- infrared
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000005070 sampling Methods 0.000 claims abstract description 89
- 230000001960 triggered effect Effects 0.000 claims description 53
- 238000001514 detection method Methods 0.000 claims description 44
- 239000003990 capacitor Substances 0.000 claims description 8
- 230000009471 action Effects 0.000 description 19
- 230000006870 function Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 13
- 230000008859 change Effects 0.000 description 10
- 230000000875 corresponding effect Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 7
- 230000001276 controlling effect Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 238000000926 separation method Methods 0.000 description 3
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000010411 cooking Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005286 illumination Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000010521 absorption reaction Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 229920003023 plastic Polymers 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24C—DOMESTIC STOVES OR RANGES ; DETAILS OF DOMESTIC STOVES OR RANGES, OF GENERAL APPLICATION
- F24C15/00—Details
- F24C15/20—Removing cooking fumes
- F24C15/2021—Arrangement or mounting of control or safety systems
Landscapes
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a gesture recognition control method of a range hood and the range hood, wherein the gesture recognition control method of the range hood comprises the following steps: respectively acquiring voltage sampling values Ave _ L and Ave _ R on a first group of infrared transmitting and receiving geminate transistors and a second group of infrared transmitting and receiving geminate transistors on the range hood; respectively determining whether voltage sampling values of a first group of infrared transmitting and receiving geminate transistors and a second group of infrared transmitting and receiving geminate transistors are valid according to Ave _ L and Ave _ R; and after the voltage sampling value is determined to be valid, determining triggering gesture information according to the sampling duration of the voltage sampling value of the first group of infrared transmitting and receiving geminate transistors and/or the second group of infrared transmitting and receiving geminate transistors, and controlling the range hood according to the triggering gesture information. The gesture recognition control method of the range hood and the range hood disclosed by the invention can realize gesture control recognition of the range hood, and a user can realize control on the range hood only by waving his hand.
Description
Technical Field
The invention relates to the field of kitchen appliances, in particular to a gesture recognition control method of a range hood and the range hood.
Background
At present, most of existing range hoods are mechanical key type and touch type range hoods, however, due to oil stains on a control panel of the range hood or oil and water on hands of a user, the user operation is insensitive easily, inconvenience is brought to the user in use, and the user operation experience is influenced.
Disclosure of Invention
In order to solve the technical problems, the invention provides a gesture recognition control method of a range hood and the range hood, which can realize gesture control recognition of the range hood, and a user can realize control on the range hood only by waving his hand.
In order to achieve the object of the present invention, in a first aspect, the present invention provides a gesture recognition control method for a range hood, including:
respectively acquiring voltage sampling values Ave _ L and Ave _ R on a first group of infrared transmitting and receiving geminate transistors and a second group of infrared transmitting and receiving geminate transistors on the range hood;
respectively determining whether voltage sampling values of a first group of infrared transmitting and receiving geminate transistors and a second group of infrared transmitting and receiving geminate transistors are valid according to Ave _ L and Ave _ R;
and after the voltage sampling value is determined to be valid, determining triggering gesture information according to the sampling duration of the voltage sampling value of the first group of infrared transmitting and receiving geminate transistors and/or the second group of infrared transmitting and receiving geminate transistors, and controlling the range hood according to the triggering gesture information.
In a second aspect, the present invention provides a range hood, comprising: the system comprises a first group of infrared transmitting and receiving geminate transistors, a second group of infrared transmitting and receiving geminate transistors and a main control board; the main control board is respectively connected with the first group of infrared transmitting and receiving geminate transistors and the second group of infrared transmitting and receiving geminate transistors, the first group of infrared transmitting and receiving geminate transistors and the second group of infrared transmitting and receiving geminate transistors are respectively positioned on the left side and the right side of the range hood, and a spacing distance W is reserved between the first group of infrared transmitting and receiving geminate transistors and the second group of infrared transmitting and receiving geminate transistors;
the first group of infrared transmitting and receiving geminate transistors are used for being conducted when a gesture waves on the left side of the range hood, and outputting a voltage sampling value Ave _ L;
the second group of infrared transmitting and receiving geminate transistors are used for being conducted when a gesture waves on the right side of the range hood, and outputting a voltage sampling value Ave _ R;
the main control board is used for driving the first group of infrared emission receiving geminate transistors and the second group of infrared emission receiving geminate transistors to work, and executing the gesture recognition control method of the range hood according to the embodiment of the first aspect.
Compared with the prior art, the gesture recognition control method of the range hood and the range hood provided by at least one embodiment of the invention have the following beneficial effects: by detecting voltage sampling values of two groups of infrared transmitting and receiving geminate transistors on the range hood and determining triggering gesture information according to sampling duration of the voltage sampling values of the first group of infrared transmitting and receiving geminate transistors and/or the second group of infrared transmitting and receiving geminate transistors, gesture recognition can be realized, and a user can control the range hood only by waving his hand. The problem that in the existing mechanical key type and touch type range hood, a user cannot conveniently control the range hood due to oil stain or water stain on the hand in the cooking process is solved.
In some embodiments of the present invention, the following beneficial effects are also provided: after the voltage sampling value is determined to be valid, the trigger gesture information is determined according to the sampling duration of the voltage sampling value of the first group of infrared transmitting and receiving geminate transistors and/or the second group of infrared transmitting and receiving geminate transistors, the trigger gesture information is determined according to the pulse width counting value or the time interval of triggering the two groups of infrared transmitting and receiving geminate transistors by gestures, the false triggering of the infrared transmitting and receiving geminate transistors can be effectively avoided, and the control precision of gesture recognition is improved.
In some embodiments of the present invention, determining the trigger gesture information according to the pulse width meter value further has the following beneficial effects: 1. under the condition that the pulse width of unilateral infrared Gesture detection is satisfied (namely, the pulse width count on one side is greater than Gesture _ Low and less than or equal to Gesture _ High), as long as the other side is triggered (namely, the pulse width count is nonzero), the Gesture action is judged to be effective, and the system detection speed and the Gesture action response speed are effectively improved. 2. After detecting that the pulse width counting of the left infrared transmitting and receiving geminate transistors meets the pulse width range value, comparing the pulse width counting of the right infrared transmitting and receiving geminate transistors again to determine whether the pulse width counting meets the pulse width range value, and then performing gesture determination, wherein the gesture determination condition is stricter and the recognition accuracy is higher.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a gesture recognition control method of a range hood according to an embodiment of the present invention;
fig. 2 is a flowchart of a gesture recognition control method of a range hood according to a second embodiment of the present invention;
fig. 3 is a flowchart of a gesture recognition control method of a range hood according to a third embodiment of the present invention;
fig. 4A is a schematic diagram illustrating a change in voltage value of an output port when a width of a shelter is greater than or equal to a spacing distance W between two sets of side infrared transmitting/receiving pair tubes according to a first embodiment of the present invention;
fig. 4B is a schematic diagram illustrating a change in voltage value of an output port when a width of a shelter provided in the first embodiment of the present invention is smaller than a separation distance W between two sets of side infrared transmitting/receiving pair tubes;
fig. 5 is a schematic diagram illustrating a change in voltage value of an output port when a width of a shelter provided by the second embodiment of the present invention is greater than or equal to a spacing distance W between two sets of side infrared transmitting/receiving pair tubes;
fig. 6 is a flowchart of a gesture recognition control method of a range hood according to a fourth embodiment of the present invention;
fig. 7 is a flowchart of a gesture recognition control method of a range hood according to a fifth embodiment of the present invention;
fig. 8 is a flowchart illustrating a process of controlling a range hood to perform corresponding functions by a triggering gesture according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a range hood provided in the embodiment of the present invention;
fig. 10A is a schematic structural diagram of an infrared transmitting and receiving pair transistor according to an embodiment of the present invention;
fig. 10B is a schematic structural diagram of an infrared transmitting and receiving pair transistor according to a second embodiment of the present invention;
fig. 11 is a front view of a main control board according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The invention provides a gesture recognition control method of a range hood and the range hood, and high-precision recognition of user gestures is realized by designing a left group of infrared emission receiving geminate transistors and a right group of infrared emission receiving geminate transistors. The main control board drives the infrared transmitting tubes on the left side and the right side to work through certain PWM waves, and when a gesture waves, the infrared receiving tubes on the left side and the right side can be conducted, and then certain voltage is output. The voltage of the left infrared receiving tube and the voltage of the right infrared receiving tube are detected through the AD sampling port on the main control board, and then whether gesture actions exist or not is judged. After the main control board detects the gesture, the control signal is transmitted to the power panel through the serial port, and the power panel controls the main motor, the door control motor and/or the illuminating lamp.
Fig. 1 is a flowchart of a gesture recognition control method for a range hood according to an embodiment of the present invention, and as shown in fig. 1, the gesture recognition control method for a range hood according to an embodiment of the present invention includes:
s101: respectively acquiring voltage sampling values Ave _ L and Ave _ R on a first group of infrared transmitting and receiving geminate transistors and a second group of infrared transmitting and receiving geminate transistors on the range hood.
In the embodiment, two groups of infrared transmitting and receiving geminate transistors are arranged on the range hood, so that the high-precision recognition of the user gestures is realized. The two groups of infrared emission receiving geminate transistors have a spacing distance W, and the specific arrangement positions can be determined according to actual conditions, for example, the two groups of infrared emission receiving geminate transistors can be respectively arranged on the left side and the right side of the range hood, and also can be respectively arranged on the upper side and the lower side of the range hood; or respectively arranged at the left side and the upper side, or respectively arranged at the right side and the lower side of the range hood. In the embodiment of the present invention, a first group of infrared emission and reception pair tubes is located on the left side of the range hood, and a second group of infrared emission and reception pair tubes is located on the right side of the range hood as an example for explanation, and the implementation principles of the two groups of infrared emission and reception pair tubes in the rest positions of the range hood are the same as the implementation principles of the two groups of infrared emission and reception pair tubes located on the left side and the right side, respectively, and are not.
In this embodiment, the main control board of oil absorption press is connected with first group infrared emission receiving geminate transistors and second group infrared emission receiving geminate transistors respectively, and the work of first group infrared emission receiving geminate transistors of main control board drive and second group infrared emission receiving geminate transistors to and the last gesture of discernment two sets of infrared emission receiving geminate transistors is waved.
Specifically, the main control board drives the infrared transmitting tubes on the left and right sides to work by using a certain Pulse Width Modulation (PWM), and when a gesture waves, the infrared receiving tubes on the left and right sides are conducted to output a certain voltage. The voltage sampling values of the left infrared receiving geminate transistors and the right infrared receiving geminate transistors are collected through an AD sampling port on the main control board, and then whether gesture actions exist or not is judged. The embodiment of the invention can configure the AD sampling port on the main control board when the range hood is initialized so as to collect the voltage sampling values of the left infrared receiving geminate transistor and the right infrared receiving geminate transistor.
S102: and respectively determining whether the voltage sampling values of the first group of infrared transmitting and receiving pair tubes and the second group of infrared transmitting and receiving pair tubes are valid according to the Ave _ L and the Ave _ R.
In this embodiment, the voltage sampling values of the left and right infrared receiving geminate transistors are collected according to the AD sampling port on the main control board, whether the voltage sampling values are valid is determined, and then whether a gesture action exists is determined. In particular, the amplitude value of the waveform map of the voltage sample value may be compared to the amplitude value of the detection threshold Gesture _ value to determine whether the voltage sample value is valid.
Optionally, determining whether voltage sampling values of the first group of infrared transmitting and receiving pair transistors and the second group of infrared transmitting and receiving pair transistors are valid according to Ave _ L and Ave _ R respectively includes:
when the amplitude value of the Ave _ L is larger than or equal to the amplitude value of the detection threshold Gesture _ value, determining that the first group of infrared emission receiving tube voltage sampling values are effective;
and when the amplitude value of the Ave _ R is larger than or equal to the amplitude value of the detection threshold Gesture _ value, determining that the second group of infrared emission receiving tube voltage sampling values are effective.
Wherein, the detection threshold Gesture _ value is stored in the range hood in advance.
In this embodiment, the amplitude value refers to an absolute value of a difference between the waveform value and the reference value. When the amplitude of the trigger waveform does not reach the amplitude of Gesture _ value, indicating that no Gesture triggers the infrared pair tube; when the amplitude of the trigger waveform reaches or exceeds the amplitude of Gesture _ value, the fact that a Gesture action triggers the infrared pair tube is indicated. The judgment of the amplitude value of the detection threshold Gesture _ value is the first judgment condition of the infrared Gesture recognition in the embodiment of the invention, the Gesture recognition is continued only if the condition is met, and otherwise, the Gesture action is judged by circular detection.
S103: and after the voltage sampling value is determined to be valid, determining triggering gesture information according to the sampling duration of the voltage sampling value of the first group of infrared transmitting and receiving geminate transistors and/or the second group of infrared transmitting and receiving geminate transistors.
In this embodiment, after it is determined that the voltage sampling value is valid, that is, after the gesture triggers the first group of infrared transmitting/receiving pair transistors and/or the second group of infrared transmitting/receiving pair transistors, the trigger gesture information is identified according to the sampling duration of the corresponding infrared transmitting/receiving pair transistors triggered by the gesture. Specifically, determining the trigger gesture information according to the sampling duration of the voltage sampling values of the first group of infrared transmitting and receiving pair transistors and/or the second group of infrared transmitting and receiving pair transistors may include the following two implementation manners:
the first implementation mode comprises the following steps: determining the first pulse width count IR _ LEFT _ NUM and/or the second pulse width count IR _ RIGHT _ NUM determines the trigger gesture information.
In this embodiment, if the sampling voltage value meets the requirement of the detection threshold, the counter is started to start counting, and it is determined whether the width of the pulse waveform on the triggered infrared transmitting/receiving pair transistor meets the requirement. The pulse width is related to the actual hand waving speed of the user, and the higher the actual hand waving speed of the user is, the smaller the value of the pulse width meter is; the slower the actual hand waving speed of the user, the larger the pulse width meter value. According to the embodiment of the invention, the trigger gesture information is determined according to the pulse width count value, so that the influence of other gesture actions can be effectively avoided, for example, the false triggering of the infrared transmitting and receiving geminate transistors when a user presses a key or the false triggering of the infrared transmitting and receiving geminate transistors caused by the fact that the user moves in front of the range hood can be effectively avoided.
Specifically, after the voltage sampling value is determined to be valid, a first pulse width count IR _ LEFT _ NUM and a second pulse width count IR _ RIGHT _ NUM triggered by the first group of infrared emission reception geminate transistors and the second group of infrared emission reception geminate transistors are respectively determined, and triggering gesture information is determined according to the first pulse width count IR _ LEFT _ NUM and the second pulse width count IR _ RIGHT _ NUM.
The trigger gesture information is determined according to the first pulse width count IR _ LEFT _ NUM and the second pulse width count IR _ RIGHT _ NUM, and a specific determination manner thereof is described in detail in the following embodiments, which is not described herein again.
The second implementation mode comprises the following steps: determining a time interval Delay for triggering two groups of infrared emission and reception geminate transistors by the gesture; and judging whether Delay meets 1< Delay is not more than IR _ MAX _ Distance, and if so, judging that the gesture trigger is effective. The IR _ MAX _ distance is a preset maximum time interval.
In this embodiment, after the voltage sampling value is determined to be valid, the gesture trigger is further determined to be valid according to the time interval of triggering two groups of infrared transmitting and receiving geminate transistors by the gesture, and the gesture trigger information is determined to avoid false triggering caused by rapid sliding of the user gesture in front of the range hood. Specifically, when it is determined that a gesture triggers one group of infrared transmitting and receiving geminate transistors, a counter is started, and whether another group of infrared transmitting and receiving geminate transistors is triggered by the gesture is detected. When detecting that the gesture triggers another group of infrared transmitting and receiving geminate transistors, obtaining the count value of the counter, namely, the gesture triggers the time interval Delay of the two groups of infrared transmitting and receiving geminate transistors. At 1< Delay ≦ IR _ MAX _ Distence, a triggering gesture may be determined. For example, taking as an example that the first group of infrared transmitting and receiving pair tubes are preferentially triggered, and the first group of infrared transmitting and receiving pair tubes and the second group of infrared transmitting and receiving pair tubes are respectively located on the left side and the right side of the range hood, when 1< Delay ≦ IR _ MAX _ distance, the triggering gesture may be determined to be a waving from left to right.
Alternatively, the IR _ MAX _ distance may be determined according to the moving speed V of the gesture and the separation distance W between the two sets of infrared transmitting and receiving pair tubes. Specifically, IR _ MAX _ distance = T/T, where T = separation distance W/movement speed V of the gesture, and T is a period of performing gesture recognition counting in a loop.
S104: and controlling the range hood according to the triggering gesture information.
In this embodiment, after the trigger gesture is detected, the range hood may be controlled to execute a corresponding action according to the trigger gesture information. The range hood is controlled according to the trigger gesture information, and the range hood can comprise one or more of the following components: starting up or shutting down according to the trigger gesture information; entering a preset function mode according to the triggering gesture information; adjusting gears according to the triggering gesture information; and turning on or off the illuminating lamp according to the triggering gesture information.
Specifically, after the main control board detects the trigger gesture, the control signal can be transmitted to the power panel through the serial port, and the power panel controls the main motor, the door control motor and/or the illuminating lamp.
According to the gesture recognition control method of the range hood provided by the embodiment of the invention, the gesture recognition can be realized by detecting the voltage sampling values of the two groups of infrared transmitting and receiving geminate transistors on the range hood and determining the trigger gesture information according to the sampling duration of the voltage sampling values of the first group of infrared transmitting and receiving geminate transistors and/or the second group of infrared transmitting and receiving geminate transistors, and the user can control the range hood only by waving his hand. The problem that in the existing mechanical key type and touch type range hood, a user cannot conveniently control the range hood due to oil stain or water stain on the hand in the cooking process is solved.
In addition, after the voltage sampling value is determined to be valid, the trigger gesture information is determined according to the sampling duration of the voltage sampling value of the first group of infrared transmitting and receiving geminate transistors and/or the second group of infrared transmitting and receiving geminate transistors, and the trigger gesture information is determined according to the pulse width count value or the time interval of triggering the two groups of infrared transmitting and receiving geminate transistors by gestures, so that the false triggering of the infrared transmitting and receiving geminate transistors can be effectively avoided, and the control precision of gesture recognition is improved.
Further, in the above embodiment, when the trigger Gesture information is determined according to the first pulse width count IR _ LEFT _ NUM and the second pulse width count IR _ RIGHT _ NUM, in order to shield the influence of other external factors, the preset maximum pulse width count Gesture _ High and the preset minimum pulse width count Gesture _ Low of the Gesture trigger are set in the embodiment of the present invention, so as to improve the recognition accuracy of the trigger Gesture information. The maximum pulse width count Gesture _ High and the minimum pulse width count Gesture _ Low can be obtained through test verification and are preset during system initialization, and the Gesture _ High and the Gesture _ Low can be determined according to the installation structure of the two groups of infrared transmitting and receiving geminate transistors, the Gesture waving speed of a user and the hand shape of the user. Specifically, in this embodiment, determining that the first pulse width count IR _ LEFT _ NUM and/or the second pulse width count IR _ RIGHT _ NUM determines the trigger gesture information may be implemented by including the following two ways:
the first implementation mode comprises the following steps: and judging whether the pulse width count of one group of infrared transmitting and receiving geminate transistors preferentially triggered by the Gesture is larger than Gesture _ Low and smaller than or equal to Gesture _ High, if so, judging whether the pulse width count of the other group of infrared transmitting and receiving geminate transistors is nonzero, and if not, judging that the Gesture trigger is effective.
In this embodiment, in order to optimize the algorithm and improve the system detection rate and the Gesture motion response speed, the Gesture motion may be determined to be valid as long as the other side is triggered (i.e., the pulse width count is nonzero) under the condition that the one-side infrared Gesture detection pulse width is satisfied (i.e., the pulse width count on the one side is greater than Gesture _ Low and less than or equal to Gesture _ High). The method is suitable for the condition that the width of the shielding object (the width of the shielding object which is a gesture of a user) is larger than or equal to the distance W between the infrared correlation tubes, and the response speed of the system can be greatly improved.
Specifically, fig. 2 is a flowchart of a gesture recognition control method of a range hood according to a second embodiment of the present invention, and as shown in fig. 2, the gesture recognition control method of a range hood according to the second embodiment of the present invention may include:
s201: and initializing the main control board.
S202: an AD sampling port is configured.
S203: respectively acquiring voltage sampling values Ave _ L and Ave _ R on a first group of infrared transmitting and receiving geminate transistors and a second group of infrared transmitting and receiving geminate transistors on the range hood.
S203 can be seen in detail in S101, which is not described herein.
And S204, judging whether the amplitude value of the Ave _ L is larger than or equal to the amplitude value of the Gesture _ value. If yes, determining that the gesture triggers the first group of infrared emission and reception geminate transistors, and executing S206 a; otherwise, S207a is executed.
In this embodiment, when the amplitude value of Ave _ L is greater than or equal to the amplitude value of the detection threshold Gesture _ value, the voltage sampling value of the first group of infrared emission receiving pair tubes is valid, that is, it is determined that there is a Gesture to trigger the first group of infrared emission receiving pair tubes.
S205, whether the amplitude value of the Ave _ R is larger than or equal to the amplitude value of the Gesture _ value is judged. If yes, go to S206 b; otherwise, 207b is performed.
In this embodiment, when the amplitude value of Ave _ R is greater than or equal to the amplitude value of the detection threshold Gesture _ value, it is determined that the voltage sampling value of the second group of infrared transmitting/receiving geminate transistors is valid, that is, it is determined that there is a Gesture to trigger the second group of infrared transmitting/receiving geminate transistors.
The S204 and S205 have no sequential execution relationship, and the execution sequence of the S204 and S205 may be according to whether Ave _ L or Ave _ R is acquired first. If the Ave _ L is obtained first, S204 may be performed first; if Ave _ R is acquired first, S205 may be performed first.
In this embodiment, for example, the first group of infrared transmitting and receiving pair tubes and the second group of infrared transmitting and receiving pair tubes are respectively located on the left side and the right side of the range hood, and the implementation principles of the two groups of infrared transmitting and receiving pair tubes at the rest positions of the range hood are the same as the implementation principles located on the left side and the right side, which is not repeated herein.
S206 a: the left hand gesture enables the counter to count.
In this embodiment, when it is determined that a gesture triggers the first group of infrared transmitting and receiving pair tubes, if the left gesture enable counter is not started, the counter is started and starts to count. If the LEFT hand gesture enable counter has been started, the count IR _ LEFT _ NUM of the LEFT hand gesture enable counter is incremented by 1. Where IR _ LEFT _ NUM is used to count statistically to determine the width (W1 in fig. 4 and 5, described below) to which the LEFT side pulse lasts.
S207 a: and judging whether the IR _ LEFT _ NUM meets Gesture _ Low < IR _ LEFT _ NUM and Gesture _ High. If yes, go to step S208 a; if not, go to S210 a.
In this embodiment, the pulse width comparison process is performed after the waveform count exits, that is, when it is determined that the amplitude value of Ave _ L is smaller than the amplitude value of the detection threshold gettrue _ value and is invalid data, the IR _ LEFT _ NUM count is stopped, and at this time, it is determined that the waveform exits, and it is started to compare whether the width of IR _ LEFT _ NUM satisfies the pulse width count range.
Optionally, before S207a, the method may further include: it is determined whether the left hand gesture enabled counter has started counting. If yes, stop counting and execute S207 a; otherwise, the data is determined to be invalid.
Specifically, when the voltage sampling value of the first group of infrared transmitting and receiving pair transistors is not a valid value, that is, the amplitude value of Ave _ L is smaller than the amplitude value of the detection threshold Gesture _ value, there may be two cases: one is that the left hand gesture enables the counter to count, i.e. the gesture is a valid trigger, and the gesture has moved from the left infrared emission receiving pair tube to the right infrared emission receiving pair tube, at which point the left hand gesture enables the counter to stop counting. The other is that the left hand gesture enabling counter does not start counting, namely the gesture is invalid trigger (such as false trigger), and at this time, whether the gesture triggers the first group of infrared emission and reception geminate transistors is continuously detected.
S208 a: it is determined whether IR _ RIGHT _ NUM satisfies IR _ RIGHT _ NUM ≠ 0. If yes, go to S209 a; otherwise, S210 a is performed.
In this embodiment, if the LEFT IR _ LEFT _ NUM satisfies the requirement of determining that the pulse width is valid, the gesture action is determined to be valid as long as the RIGHT side is triggered (IR _ RIGHT _ NUM ≠ 0).
S209 a: determining that the gesture is swung to the right.
In the implementation, when the first group of infrared transmitting and receiving pair tubes are triggered by a Gesture, whether the IR _ LEFT _ NUM meets the condition that Gesture _ Low is more than IR _ LEFT _ NUM and is not more than Gesture _ High is judged; when Gesture _ Low is less than IR _ LEFT _ NUM and less than or equal to Gesture _ High, judging whether IR _ RIGHT _ NUM meets the condition that IR _ RIGHT _ NUM is not equal to 0; when the IR _ RIGHT _ NUM ≠ 0, it is determined that the trigger gesture information is waving from left to RIGHT.
Optionally, in this embodiment, when it is determined that the gesture is waved to the right side, a right flag may be set to 1: IR _ RIGHT _ Valid = 1; left flag clear 0: IR _ LEFT _ Valid = 0.
S210 a: the left hand gesture enabled counter is cleared.
In this embodiment, when the IR _ LEFT _ NUM or the IR _ RIGHT _ NUM does not satisfy the corresponding condition, the LEFT gesture enable count value is cleared and the process is restarted.
S206 b: the right hand gesture enables the counter to count.
In this embodiment, when it is determined that a gesture triggers the second group of infrared transmitting and receiving pair transistors, if the right gesture enables the counter to be not started, the counter is started and starts to count. If the right hand gesture enable counter has been started, the count IR _ LEFT _ NUM of the right hand gesture enable counter is incremented by 1. The IR _ RIGHT _ NUM is used for counting to determine the width of the RIGHT pulse (e.g., W2 in fig. 4 and 5, described below).
S207 b: and judging whether the IR _ RIGHT _ NUM meets the condition that Gesture _ Low is less than IR _ RIGHT _ NUM and is not more than Gesture _ High. If yes, go to S208 b; if not, go to S210 b.
In this embodiment, the pulse width comparison process is performed after the waveform count exits, that is, when it is determined that the amplitude value of Ave _ R is smaller than the amplitude value of the detection threshold gettrue _ value and is invalid data, the IR _ RIGHT _ NUM count is stopped, at this time, it is considered that the waveform exits, and it is started to compare whether the width of IR _ LEFT _ NUM satisfies the pulse width count range.
Optionally, before S207 b, the method may further include: it is determined whether the right hand gesture enabled counter has started counting. If yes, stopping counting, and executing S207 b; otherwise, the data is determined to be invalid.
Specifically, when the voltage sampling value of the second group of infrared transmitting and receiving pair transistors is not a valid value, that is, the amplitude value of Ave _ R is smaller than the amplitude value of the detection threshold Gesture _ vblue, there may be two cases: one is that the right hand gesture enables the counter to count, i.e. the gesture is effectively triggered, and the gesture has moved from the right infrared emission receiving pair tube to the left infrared emission receiving pair tube, at this point the right hand gesture enables the counter to stop counting. The other is that the right hand gesture enabling counter does not start counting, that is, the gesture is an invalid trigger (such as a false trigger), and at this time, whether a gesture triggers the second group of infrared transmitting and receiving geminate transistors is continuously detected.
In this embodiment, the LEFT hand gesture enable counter and the right hand gesture enable counter may be the same counter, that is, one counter is set, and when the LEFT infrared emission receiving geminate transistor is triggered by a gesture, IR _ LEFT _ NUM is counted and determined; when the RIGHT infrared emission receiving geminate transistor is triggered by gestures, the counting determines the IR _ RIGHT _ NUM. The LEFT hand gesture enabling counter and the right hand gesture enabling counter can also be two different counters, and when the LEFT infrared emission receiving geminate transistors are triggered by gestures, the LEFT hand gesture enabling counter counts to determine IR _ LEFT _ NUM; when the RIGHT infrared emission receiving geminate transistor is triggered by gestures, the RIGHT gesture enabling counter counts to determine IR _ RIGHT _ NUM.
S208 b: it is determined whether or not IR _ LEFT _ NUM satisfies IR _ LEFT _ NUM ≠ 0. If yes, go to S209 b; otherwise, S210b is performed.
In this embodiment, if the RIGHT IR _ RIGHT _ NUM satisfies the requirement of determining the pulse width to be valid, the gesture action is determined to be valid as long as the LEFT side is triggered (IR _ LEFT _ NUM ≠ 0).
S209 b: determining that the gesture is swung to the left.
In the embodiment, when the second group of infrared transmitting and receiving pair tubes is triggered by a Gesture, whether the IR _ RIGHT _ NUM meets the condition that Gesture _ Low is more than IR _ RIGHT _ NUM and is not less than Gesture _ High is judged; when Gesture _ Low is less than IR _ RIGHT _ NUM and less than or equal to Gesture _ High, judging whether IR _ LEFT _ NUM meets the condition that IR _ LEFT _ NUM is not equal to 0; when the IR _ LEFT _ NUM ≠ 0, it is determined that the trigger gesture information is waved from right to LEFT.
Optionally, in this embodiment, when it is determined that the gesture swings to the left, setting left flag to 1: IR _ LEFT _ Valid = 1; right signpost 0: IR _ RIGHT _ Valid = 0.
S210 b: the right hand gesture enables the counter to be cleared.
In this embodiment, when the IR _ LEFT _ NUM or the IR _ RIGHT _ NUM does not satisfy the corresponding condition, the RIGHT gesture enable count value is cleared and the operation is restarted.
In this embodiment, according to the maximum pulse width count Gesture _ High and the minimum pulse width count Gesture _ Low triggered by the Gesture, whether the IR _ LEFT _ NUM or the IR _ RIGHT _ NUM is in the range between the Gesture _ High and the Gesture _ Low is compared to determine whether the Gesture enable count value is valid. The left pulse width count satisfies a pulse width range (the pulse width range is greater than Gesture _ Low and less than or equal to Gesture _ High), and the right pulse width count is not zero, which indicates that the Gesture is waving from left to right; when the right pulse width count satisfies the pulse width range and the left pulse width count is not zero, the gesture is a right-to-left swipe.
In this embodiment, if the infrared transmitting and receiving pair transistor on one side is triggered first, the judgment is always performed in the identification program on the other side unless the judgment requirement is not met or the judgment program is executed and the exit is directly performed. As shown in fig. 2, if the left infrared transmitting and receiving pair transistor is triggered first (Ave _ L is first enabled), the left pulse width count value is compared, and then the right pulse width count value is compared; if the right IR transmitting-receiving pair transistor is triggered first (Ave _ R is first enabled), then the right pulse width count value is compared, and then the left pulse width count value is compared.
On the basis of the above embodiment, when determining the trigger Gesture information according to the first pulse width count IR _ LEFT _ NUM and the second pulse width count IR _ RIGHT _ NUM, the Gesture recognition control method for the range hood according to the embodiment of the present invention can determine that the Gesture action is valid as long as the other side is triggered (i.e., the pulse width count is non-zero) under the condition that the single-side infrared Gesture detection pulse width is satisfied (i.e., the pulse width count on the one side is greater than the gettrue _ Low and less than or equal to the gettrue _ High), thereby effectively improving the system detection rate and the Gesture action response speed.
The second implementation mode comprises the following steps: and judging whether the pulse width count of one group of infrared transmitting and receiving geminate transistors triggered by the Gesture is larger than Gesture _ Low and smaller than or equal to Gesture _ High, if so, judging whether the pulse width count of the other group of infrared transmitting and receiving geminate transistors is larger than Gesture _ Low and smaller than or equal to Gesture _ High, and if so, judging that the Gesture triggering is effective.
In this embodiment, in order to improve the recognition and control accuracy, when the unilateral infrared Gesture detection pulse width is satisfied (i.e., the pulse width count on one side is greater than Gesture _ Low and less than or equal to Gesture _ High), and the Gesture on the other side is also triggered, the pulse width count triggered by the Gesture on the other side is also satisfied and is greater than Gesture _ Low, and when the pulse width count is less than or equal to Gesture _ High, it can be determined that the Gesture action is valid. The infrared correlation tube identification method is suitable for the condition that the width of a shielding object (the width of the shielding object which is a gesture of a user) is smaller than the distance W between the infrared correlation tubes, and can greatly improve identification accuracy.
Specifically, fig. 3 is a flowchart of a gesture recognition control method of a range hood according to a third embodiment of the present invention, and as shown in fig. 3, the gesture recognition control method of a range hood according to the third embodiment of the present invention may include:
s301: and initializing the main control board.
S302: an AD sampling port is configured.
S303: respectively acquiring voltage sampling values Ave _ L and Ave _ R on a first group of infrared transmitting and receiving geminate transistors and a second group of infrared transmitting and receiving geminate transistors on the range hood.
S303 can be seen in detail in S101, which is not described herein.
S304, whether the amplitude value of the Ave _ L is larger than or equal to the amplitude value of the Gesture _ value is judged. If yes, determining that the gesture preferentially triggers the first group of infrared emission and reception geminate transistors, and executing S306 a; otherwise, S307a is executed.
S305, whether the amplitude value of the Ave _ R is larger than or equal to the amplitude value of the Gesture _ value is judged. If yes, go to S306 b; otherwise, 307b is performed.
S306 a: the left hand gesture enables the counter to count.
S307 a: and judging whether the IR _ LEFT _ NUM meets Gesture _ Low < IR _ LEFT _ NUM and Gesture _ High. If yes, go to S308 a; if not, go to step S310 a.
In this embodiment, determining that a gesture preferentially triggers the first group of infrared emission and reception pair transistors and determining whether the LEFT IR _ LEFT _ NUM satisfies that the pulse width is valid is the same as the implementation manner of the embodiment shown in fig. 2, which is not described herein again in this embodiment.
Optionally, before S307a, the method may further include: it is determined whether the left hand gesture enabled counter has started counting. If yes, stop counting and execute S307 a; otherwise, the data is determined to be invalid.
S308 a: and judging whether the IR _ RIGHT _ NUM meets the condition that Gesture _ Low is less than IR _ RIGHT _ NUM and is not more than Gesture _ High. If yes, executing S309 a; otherwise, S311 a is performed.
In this embodiment, if the LEFT IR _ LEFT _ NUM satisfies the pulse width, it is determined that the Gesture is effective, after the right IR transmitting/receiving pair transistor is also triggered, it starts to detect whether the pulse width triggered by the right Gesture satisfies the requirement, and if the pulse width triggered by the right Gesture also satisfies the range between the maximum pulse width count value Gesture _ High and the minimum pulse width count value Gesture _ Low, it is determined that the Gesture is effective to swing to one side.
S309 a: determining that the gesture is swung to the right.
In the embodiment, when the Gesture is determined to preferentially trigger the first group of infrared transmitting and receiving geminate transistors, whether the IR _ LEFT _ NUM meets the condition that Gesture _ Low is less than IR _ LEFT _ NUM and is not less than Gesture _ High is judged; when Gesture _ Low is more than IR _ LEFT _ NUM and less than or equal to Gesture _ High, judging whether IR _ RIGHT _ NUM meets the condition that Gesture _ Low is more than IR _ RIGHT _ NUM and less than or equal to Gesture _ High; and when Gesture _ Low is less than IR _ RIGHT _ NUM and less than or equal to Gesture _ High, determining that the trigger Gesture information is waved from left to RIGHT.
Optionally, in this embodiment, when it is determined that the gesture is waved to the right side, a right flag may be set to 1: IR _ RIGHT _ Valid = 1; left flag clear 0: IR _ LEFT _ Valid = 0.
S310 a: the left hand gesture enabled counter is cleared.
In this embodiment, when IR _ LEFT _ NUM does not satisfy the corresponding condition, the LEFT gesture enable count value is cleared and the process is restarted.
S311 a: the right hand gesture enables the counter to be cleared.
In this embodiment, when the IR _ RIGHT _ NUM does not satisfy the corresponding condition, the RIGHT gesture enable count value is cleared and restarted.
S306 b: the right hand gesture enables the counter to count.
S307 b: and judging whether the IR _ RIGHT _ NUM meets the condition that Gesture _ Low is less than IR _ RIGHT _ NUM and is not more than Gesture _ High. If yes, go to S308 b; if not, go to S310 b.
In this embodiment, determining that a gesture preferentially triggers the second group of infrared emission and reception geminate transistors and determining whether the pulse width is satisfied effectively by the right IR _ LEFT _ NUM is the same as the implementation manner of the embodiment shown in fig. 2, which is not described herein again in this embodiment.
Optionally, before S307 b, the method may further include: it is determined whether the right hand gesture enabled counter has started counting. If yes, stopping counting, and executing S308 b; otherwise, the data is determined to be invalid.
S308 b: and judging whether the IR _ LEFT _ NUM meets Gesture _ Low < IR _ LEFT _ NUM and Gesture _ High. If yes, go to S309 b; otherwise, S311b is performed.
In this embodiment, if the RIGHT IR _ RIGHT _ NUM satisfies the pulse width, it is determined that the Gesture is effective, after the left IR transmitting/receiving pair transistor is also triggered, it starts to detect whether the pulse width triggered by the left Gesture satisfies the requirement, and if the pulse width triggered by the left Gesture also satisfies the range between the maximum pulse width count value Gesture _ High and the minimum pulse width count value Gesture _ Low, it is determined that the Gesture is effective to swing to one side.
S309 b: determining that the gesture is swung to the left.
In the embodiment, when the Gesture is determined to preferentially trigger the second group of infrared transmitting and receiving geminate transistors, whether the IR _ RIGHT _ NUM meets the condition that Gesture _ Low is more than IR _ RIGHT _ NUM and is not less than Gesture _ High is judged; when Gesture _ Low is more than IR _ RIGHT _ NUM and less than or equal to Gesture _ High, judging whether IR _ LEFT _ NUM meets the condition that Gesture _ Low is more than IR _ LEFT _ NUM and less than or equal to Gesture _ High; and when Gesture _ Low < IR _ LEFT _ NUM is not more than Gesture _ High, determining that the trigger Gesture information is waved from right to LEFT.
Optionally, in this embodiment, when it is determined that the gesture swings to the left, setting left flag to 1: IR _ LEFT _ Valid = 1; right signpost 0: IR _ RIGHT _ Valid = 0.
S310 b: and clearing the right hand gesture enabling counter and ending.
In this embodiment, when the IR _ RIGHT _ NUM does not satisfy the corresponding condition, the RIGHT gesture enable count value is cleared and restarted.
S311 b: the left hand gesture enabled counter is cleared.
In this embodiment, when IR _ LEFT _ NUM does not satisfy the corresponding condition, the LEFT gesture enable count value is cleared and the process is restarted.
In this embodiment, according to the maximum pulse width count Gesture _ High and the minimum pulse width count Gesture _ Low triggered by the Gesture, whether both the IR _ LEFT _ NUM and the IR _ RIGHT _ NUM are in the range between the Gesture _ High and the Gesture _ Low is compared to determine whether the Gesture enable count value is valid. Wherein, the left pulse width count satisfies the pulse width range, and the right pulse width count also satisfies the pulse width range (the pulse width range is greater than gettrue _ Low, and less than or equal to gettrue _ High), which indicates that the Gesture is waving from left to right; when the right pulse width count satisfies the pulse width range and the left pulse width count also satisfies the pulse width range, the gesture is a right-to-left swipe.
In this embodiment, if the infrared transmitting and receiving pair transistor on one side is triggered first, the judgment is always performed in the identification program on the other side unless the judgment requirement is not met or the judgment program is executed and the exit is directly performed. As shown in fig. 3, if the left infrared transmitting and receiving pair transistor is triggered first (Ave _ L is first enabled), the left pulse width count value is compared, and then the right pulse width count value is compared; if the right IR transmitting-receiving pair transistor is triggered first (Ave _ R is first enabled), then the right pulse width count value is compared, and then the left pulse width count value is compared.
The difference between the gesture recognition control method for the range hood provided by the embodiment of the invention and the embodiment shown in fig. 2 in determining the trigger gesture information according to the pulse width count is that after the pulse width count of the left infrared transmitting and receiving geminate transistor is detected to meet the pulse width range value, the embodiment compares the pulse width count of the right infrared transmitting and receiving geminate transistor again to determine whether the pulse width count meets the pulse width range value, and then performs gesture recognition, so that the gesture recognition condition is stricter and the recognition accuracy is higher.
Further, in the above embodiment, determining whether the amplitude value of the voltage sampling value Ave _ L and/or Ave _ R is greater than or equal to the amplitude value of the detection threshold Gesture _ value may include the following two implementations:
the first implementation mode comprises the following steps: when the waveforms of Ave _ L and Ave _ R are both concave waves, when Ave _ L is not more than Gesture _ value, the amplitude value of Ave _ L is more than or equal to the amplitude value of the detection threshold Gesture _ value; when Ave _ R is not greater than Gesture _ value, the amplitude value of Ave _ R is greater than or equal to the amplitude value of the detection threshold Gesture _ value.
In this embodiment, when the infrared transmitting and receiving pair transistor is triggered by a gesture and the voltage value output by the output port of the infrared transmitting and receiving pair transistor is at a low level (0 v), the waveform of the voltage sampling value obtained by sampling by the main control board is a concave wave. Fig. 4A is a schematic diagram of a voltage value change of an output port when a width of a shielding object is greater than or equal to a spacing distance W between two sets of side infrared emission receiving pair tubes according to an embodiment of the present invention, and fig. 4B is a schematic diagram of a voltage value change of an output port when a width of a shielding object is less than a spacing distance W between two sets of side infrared emission receiving pair tubes according to an embodiment of the present invention, as shown in fig. 4A and 4B, when Ave _ L or Ave _ R is less than or equal to a detection threshold Gesture _ value, an amplitude value of the shielding object is greater than or equal to an amplitude value of the detection threshold Gesture _ value, that is, it can be determined that a voltage sampling value on.
The second implementation mode comprises the following steps: when the waveforms of the Ave _ L and the Ave _ R are both convex waves, when the Ave _ L is larger than or equal to the Gesture _ value, the amplitude value of the Ave _ L is larger than or equal to the amplitude value of the detection threshold Gesture _ value; when Ave _ R is larger than or equal to Gesture _ value, the amplitude value of Ave _ R is larger than or equal to that of the detection threshold Gesture _ value.
In this embodiment, when the infrared transmitting and receiving pair transistor is triggered by a gesture and the voltage value output by the output port of the infrared transmitting and receiving pair transistor is a high level (+ 5 v), the waveform of the voltage sampling value obtained by sampling by the main control board is a convex wave. Fig. 5 is a schematic diagram of voltage value variation at the output port when the width of the shielding object is greater than or equal to the spacing distance W between the two sets of side infrared emission receiving pair tubes, as shown in fig. 5, when Ave _ L or Ave _ R is greater than or equal to the detection threshold Gesture _ value, the amplitude value is greater than or equal to the amplitude value of the detection threshold Gesture _ value, that is, it can be determined that the voltage sampling value on the infrared emission receiving pair tube is valid.
In fig. 4A, 4B, and 5, W1 indicates the width of the left-side pulse, and W2 indicates the width of the right-side pulse.
On the basis of the embodiment, according to the difference of voltage sampling value oscillograms on the infrared transmitting and receiving pair tubes, the Gesture recognition control method of the range hood provided by the embodiment of the invention adopts two determination modes, namely the voltage sampling value is less than or equal to the detection threshold Gesture _ value or the voltage sampling value is more than or equal to the detection threshold Gesture _ value, so as to determine whether the amplitude value of the voltage sampling value is greater than or equal to the amplitude value of the detection threshold Gesture _ value, and the accuracy of Gesture recognition can be improved.
Further, in the above embodiment, when obtaining the voltage sampling value on the infrared transmitting and receiving pair tube, the main control board may control the AD sampling port to start to periodically collect the loop output voltages of the transmitting and receiving pair tubes on the left and right sides, collect N sets of data to store AD _ L [ N ] and AD _ R [ N ], and perform basic data processing on the sampling value. Fig. 6 is a flowchart of a gesture recognition control method of a range hood according to a fourth embodiment of the present invention, and fig. 7 is a flowchart of a gesture recognition control method of a range hood according to a fifth embodiment of the present invention, where as shown in fig. 6 and 7, on the basis of the foregoing embodiments, voltage sampling values Ave _ L and Ave _ R on a first group of infrared transmitting and receiving pair tubes and a second group of infrared transmitting and receiving pair tubes on the range hood are respectively obtained in fig. 2 and 3, and the method includes:
s401: an AD sampling data cache list AD _ L [ N ] (left side) and AD _ R [ N ] (right side) are set.
S402: and (3) periodically acquiring left and right gesture recognition, and acquiring N groups of data to store in AD _ L [ N ] and AD _ R [ N ].
S403: the maximum value and the minimum value in AD _ L [ N ] and AD _ R [ N ] are removed, and the average value Ave _ L and Ave _ R of N-2 data are obtained.
In this embodiment, the maximum value and the minimum value are removed after acquiring N sets of data, and then the average values Ave _ L and Ave _ R of the N-2 data are obtained, so that the influence of external interference on the data can be avoided. The purpose of collecting AD _ L [ N ] and AD _ R [ N ] and calculating Ave _ L and Ave _ R is to: by comparing the average value with the detection threshold Gesture _ value, the waveform sensitivity is effectively weakened, and the continuity of effectively acquired data is improved.
The voltage sampling value is not limited to an average value, and may be directly detected values of AD _ L [ N ] and AD _ R [ N ], which is not limited herein.
Further, after the pulse waveform triggered by the single-side gesture in the embodiment shown in fig. 3 meets the requirement and before the other-side gesture is detected to trigger, the embodiment of the present invention further includes determining whether the time interval between the two groups of infrared emission and reception geminate transistors triggered by the gesture meets the requirement, and when the time interval meets the requirement, performing the determination of the pulse waveform triggered by the other-side gesture; otherwise, the data is invalid and judged again. Specifically, as shown in fig. 7, on the basis of the embodiment shown in fig. 3, the gesture recognition control method of the range hood provided in the embodiment of the present invention, after S307a and before S308a, may further include:
when the IR _ LEFT _ NUM satisfies Gesture _ Low < IR _ LEFT _ NUM ≦ Gesture _ High, S501a is executed. Meanwhile, the embodiment of the invention is also provided with a LEFT trigger enabling IR _ LEFT _ BZ, and when the IR _ LEFT _ NUM does not meet the condition, the execution step S310 a is further provided with IR _ LEFT _ BZ = 0.
501 a: the LEFT hand gesture enable counter is cleared IR _ LEFT _ NUM =0 and the LEFT trigger flag enables IR _ LEFT _ BZ = 1.
502 a: it is determined whether IR _ LEFT _ BZ =1 is satisfied and the amplitude value of Ave _ R is greater than or equal to the amplitude value of detection threshold gettrue _ value. If yes, executing S504a and S505a simultaneously; if not, go to S503 a.
503 a: wait for the count value Delay _ js of the right hand gesture enable counter to be increased by 1, go to S502 a.
And waiting for the count value Delay _ js of the right gesture enabling counter to be the time interval of triggering the left infrared receiving pair transistor and the right infrared receiving pair transistor by the gesture.
504 a: the count value IR _ RIGHT _ NUM of the RIGHT hand gesture enable counter is incremented by 1.
505 a: whether Delay _ js meets 1< Delay _ js is less than or equal to IR _ MAX _ Distensice is judged. If yes, go to S309 a; otherwise, 506a is performed.
S506 a: LEFT trigger flag clear IR _ LEFT _ BZ = 0; wait for the count value Delay _ js =0 of the right hand gesture enable counter.
After S307 b, before S308b, the method may further include:
when the IR _ RIGHT _ NUM satisfies Gesture _ Low < IR _ RIGHT _ NUM ≦ Gesture _ High, S501b is executed. Meanwhile, the embodiment of the present invention further sets a RIGHT trigger flag to enable IR _ RIGHT _ BZ, and when the IR _ RIGHT _ NUM does not satisfy the condition execution S310b, further sets IR _ RIGHT _ BZ = 0.
501 b: the RIGHT hand gesture enable counter is cleared to IR _ RIGHT _ NUM =0, and the RIGHT trigger flag enables IR _ RIGHT _ BZ = 1.
502 b: it is determined whether IR _ RIGHT _ BZ =1 is satisfied and the amplitude value of Ave _ L is greater than or equal to the amplitude value of the detection threshold Gesture _ vblue. If yes, executing S504b and S505b simultaneously; if not, go to S503 b.
503 b: wait for the count value Delby _ js1 of the left hand gesture enabled counter to be increased by 1, and execute S502 b.
The count value Delby _ js1 of the waiting left gesture enabling counter is the time interval for triggering the right infrared receiving pair tube and the left infrared receiving pair tube by the gesture.
504 b: the count value IR _ LEFT _ NUM of the LEFT hand gesture enable counter is incremented by 1.
505 b: it is determined whether Delby _ js1 satisfies 1< Delby _ js1 ≦ IR _ MBX _ Disence. If yes, go to S309 b; otherwise, 506b is performed.
S506 b: RIGHT trigger flag clear IR _ RIGHT _ BZ = 0; wait for the count value of the left hand gesture enabled counter, Delby _ js1= 0.
In this embodiment, if the pulse waveform triggered by the single-sided gesture meets the requirement, the single-sided trigger enable flag is set to be 1 (i.e., IR _ LEFT _ BZ =1 or IR _ RIGHT _ BZ =1, the flag indicates that 1 indicates that the width triggered by the LEFT-sided or RIGHT-sided gesture meets the full width of a waving gesture), and it is determined that if the other side is not triggered, the count is accumulated (Delay _ js + + or Delay _ js1+ +) until the other side is also triggered (Delay _ js indicates the time interval between the LEFT and RIGHT waveforms in the case of LEFT-sided first triggering; and Delay _ js1 indicates the time interval between the RIGHT and LEFT waveforms in the case of RIGHT-sided first triggering). At this time, it is determined whether the latency wait count satisfies the requirement (1 < Delay _ js ≦ IR _ MAX _ distance or 1< Delay _ js1 ≦ IR _ MAX _ distance).
In this embodiment, Delay _ js and Delay _ js1 may be collectively referred to as Delay, where Delay >1 refers to a limit condition where two waves have a minimum time interval between the left and right, and when the infrared transmitting and receiving pair tube waveform on one side ends, the other external transmitting and receiving pair tube is immediately triggered, that is, there is no time interval between the two waves, and then Delay 1; the Delay is less than or equal to the IR _ MAX _ Disence refers to another limit condition that left and right waves have the maximum time interval, and the effective maximum time interval from triggering of the transmitting and receiving pair tubes outside one side to triggering of the transmitting and receiving pair tubes outside the other side is not more than the preset value IR _ MAX _ Disence.
In this embodiment, if Delay _ js or Delay _ js1 meets the above requirement, the following determination step for determining that the pulse width count triggered by the gesture on the other side meets the requirement is continuously performed; if Delay _ js or Delay _ js1 does not meet the requirement, the one-sided trigger enable flag and the Delay waiting count are simultaneously cleared (i.e. IR _ LEFT _ BZ =0 and Delay _ js =0 or IR _ RIGHT _ BZ =0 and Delay _ js1= 0), the data is invalid, and the judgment is carried out again.
The difference between the gesture recognition control method for the range hood provided by the embodiment of the invention and the gesture recognition control method for determining the trigger gesture information according to the pulse width count in the embodiment shown in fig. 3 is that after the pulse width count of the left infrared transmitting and receiving pair tube is detected to meet the pulse width range value, the interval time for triggering the left infrared transmitting and receiving pair tube and the right infrared transmitting and receiving pair tube is compared again, then the pulse width count of the right infrared transmitting and receiving pair tube is compared to judge whether the pulse width count meets the pulse width range value, and then gesture recognition is performed, so that the gesture recognition condition is stricter, and the recognition accuracy is higher.
Further, in the above embodiment, as shown in fig. 6 and 7, when the master control board is initialized, the configuring of the master control timer further includes the following steps:
s601: and configuring a master control timer.
S602: the timer outlet square wave frequencies f1 (left) and f2 (right) are set.
S603: and judging whether the range hood is in a starting state or not. If yes, go to S604; otherwise, S605 is executed.
S604: and closing the timer and closing the infrared identification detection.
S605: the start timer outputs a square wave of a specified frequency.
In this embodiment, the square wave frequencies f1 (left side) and f2 (right side) of the output ports of the control timer are used for driving the on or off of the infrared emission receiving pair transistors. Specifically, the normal open or the normal close of the infrared transmitting and receiving pair tube can be directly controlled through the IO port level. When the infrared emitting and receiving tube is normally opened, the infrared emitting and receiving tube works to emit infrared light with fixed wavelength. Particularly, in order to achieve the effect of energy saving, when the range hood is in a shutdown state, the infrared transceiver module stops working; only when the range hood is in a starting state, the gesture recognition starts to work, so that the phenomenon that the range hood is started by mistake due to the change of ambient light when a user is not at home can be effectively avoided.
Further, in the above embodiment, as shown in fig. 6, before determining whether there is a gesture to trigger the left or right infrared emission and reception pair tubes, the method may further include:
s701 a: a detection threshold Gesture _ value is set.
S702 a: gesture _ High and Gesture _ Low are set.
Further, in the above embodiment, as shown in fig. 7, before determining whether there is a gesture to trigger the left or right infrared emission and reception pair tubes, the method may further include:
s701 b: a detection threshold Gesture _ value is set.
S702 b: gesture _ High, Gesture _ Low, and IR _ MAX _ Distence are set.
Further, in the above embodiment, the controlling the range hood according to the trigger gesture information may include: the gears of the range hood are switched circularly according to the triggering gesture information. Wherein the cyclic switching means: if the user always waves the hand in the same direction, the gear of the range hood can be switched circularly all the time.
Fig. 8 is a flowchart illustrating a process of triggering a gesture to control a range hood to perform a corresponding function according to an embodiment of the present invention, as shown in fig. 8, the process may specifically include:
s801: and initializing a gesture control recognition configuration program.
S802: when it is determined that the gesture is swung to the left, S804 is performed.
S803: when it is determined that the gesture is swung to the right, S811 is performed.
S804: and judging whether the range hood is in a shutdown state or not. If yes, go to S805; otherwise, S806 is performed.
S805: the range hood starts the stir-frying function and turns on the illuminating lamp.
In this embodiment, in the shutdown state of the range hood, when the gesture is detected to wave to the left, the range hood directly executes the high-grade of the stir-fry function. Wherein, the range hood can have four grades of low, medium, high and super high, and the stir-fry function is in high grade.
S806: and judging whether the range hood is in a stir-frying state or not. If yes, go to S807; otherwise, S808 is performed.
S807: the range hood starts the pressure boost function.
In this embodiment, under the stir-fry function, when detecting that the gesture waves to the left, the range hood shifts up and executes the super high-grade of pressure boost function.
S808: and judging whether the range hood is in a pressurization state or not. If yes, go to S809; otherwise, S810 is performed.
S809: the range hood starts the stir-frying function.
In this embodiment, in order to improve the use experience, a cycle function in the boot state is further added. That is, when the range hood is under the pressure boost function, when detecting that the gesture waves to the left, the circulation is the high-grade of carrying out the stir-fry function. In the starting state, the gesture swings from right to left, and the high-grade and the ultrahigh-grade are switched in a circulating mode.
S810: no action is performed.
S811: and judging whether the range hood is in a shutdown state or not. If yes, go to S812; otherwise, S813 is performed.
S812: no action is performed.
S813: the range hood is closed.
In this embodiment, if the range hood is in the on state, when detecting that the gesture waves to the right, directly close range operation function of range hood (can guarantee that the light still works this moment). When the range hood is in a power-off state or a gear non-running state (the lighting lamp is turned on), no action can be executed when a gesture is detected to wave rightwards; or the lighting lamp can be switched off when the gear is not in the running state but the lighting lamp is switched on.
In addition, range hood gear according to triggering gesture information circulation switching also can include: 1. when the range hood is in a shutdown state and the gesture is detected to wave leftwards, the range hood is started and starts to operate from a low gear. The range hood can have four grades of low, medium, high and ultrahigh, and the gesture is swung to the left once and is shifted up by one grade. 2. When the range hood is in a gear working state, the gesture swings rightwards once, and downshifts by one stage. 3. Under the lowest gear, the gesture is waved to the right, and the range hood shuts down or closes the range hood gear function. 4. When the range hood is in a shutdown state or a gear closing functional state, the gesture swings rightwards, and no action is executed. 5. In the highest gear, the gesture is waved to the left, no action is performed, or the cycle is back to the low gear operation.
In the above embodiments, the function executed by swinging to the left may be interchanged with the function executed by swinging to the right, and the embodiment is not limited herein.
Fig. 9 is a schematic structural diagram of a range hood provided in an embodiment of the present invention, and as shown in fig. 9, the range hood provided in the embodiment of the present invention includes: a first group of infrared emission and reception pair tubes 91, a second group of infrared emission and reception pair tubes 92 and a main control board 93. The main control board 93 is respectively connected with the first group of infrared transmitting and receiving geminate transistors 91 and the second group of infrared transmitting and receiving geminate transistors 92, the first group of infrared transmitting and receiving geminate transistors 91 and the second group of infrared transmitting and receiving geminate transistors 92 are respectively positioned on the left side and the right side of the range hood, and a spacing distance W is arranged between the first group of infrared transmitting and receiving geminate transistors 91 and the second group of infrared transmitting and receiving geminate transistors 92.
The first group of infrared transmitting and receiving geminate transistors 91 are used for being conducted when the left side of the range hood is waved by a gesture, and outputting a voltage sampling value Ave _ L;
the second group of infrared transmitting and receiving geminate transistors 92 are used for being conducted when the right side of the range hood is waved by a gesture, and outputting a voltage sampling value Ave _ R;
the main control board 93 is configured to drive the first group of infrared emission/reception pair tubes 91 and the second group of infrared emission/reception pair tubes 92 to operate, and execute the gesture recognition control method of the range hood according to any of the above embodiments.
In this embodiment, through two sets of infrared emission receiving geminate transistors on the left and right sides of the design, the high accuracy recognition to the user gesture is realized. The main control board drives the infrared transmitting tubes on the left side and the right side to work through certain PWM waves, and when a gesture waves, the infrared receiving tubes on the left side and the right side can be conducted, and then certain voltage is output. The voltage of the left infrared receiving tube and the voltage of the right infrared receiving tube are detected through the AD sampling port on the main control board, and then whether gesture actions exist or not is judged.
Further, as shown in fig. 8, the range hood provided in the embodiment of the present invention may further include: a power panel 94, a main motor 95, a door control motor 96 and an illumination lamp 97. The main control board 93 is connected to a power board 94, and the power board 94 is connected to a main motor 95, a door control motor 96 and an illumination lamp 97.
In this embodiment, after the main control board detects the gesture, the control signal is transmitted to the power board through a serial Universal Asynchronous Receiver/Transmitter (UART), and the power board controls the main motor, the gate control motor, and the lighting lamp.
Further, in the above embodiment, each group of infrared transmitting and receiving pair transistors includes an infrared emitting diode and an infrared receiving transistor, and the specific structure thereof may include the following two implementation manners:
the first implementation mode comprises the following steps: the anode of the infrared emitting diode is connected with one end of a first resistor, and the other end of the first resistor is connected with a high level; the cathode of the infrared emitting diode is connected with the collector electrode C of the triode, the emitter electrode E of the triode is grounded, the base electrode B of the triode is connected with one end of a second resistor, and the other end of the second resistor is connected with a control output pin IR _ TX of the main control board;
an emitter E electrode of the infrared receiving triode is grounded, and a collector C electrode of the infrared receiving triode is respectively connected with one end of the capacitor, one end of the third resistor and one end of the fourth resistor; the other end of the capacitor is grounded, the other end of the third resistor is connected with a control input pin IR _ RX of the main control board, and the other end of the fourth resistor is connected with a high level.
Specifically, fig. 10A is a schematic structural diagram of an infrared transmitting and receiving pair transistor according to a first embodiment of the present invention, and as shown in fig. 10A, D1 and D2 are infrared transmitting transistors, and 5V is adopted for power supply; the IR _ TX1 and the IR _ TX2 are connected with a main control board, and the main control board outputs PWM square waves to control the connection and disconnection of D1 and D2; q4 and Q5 are infrared receiving tubes. The specific realization principle is as follows:
(1) when the infrared transmitting tube D1 is turned on and a gesture is performed to wave and form infrared light reflection, Q4 is turned on, and at this time, the theoretical calculation voltage at IR _ RX1 is 0V.
(2) When the infrared transmitting tube D1 is turned on but no gesture wave forms infrared light reflection, Q4 is turned off, and at this time, the theoretical calculation voltage at IR _ RX1 is 5V.
(3) When the infrared transmitting tube D2 is turned on and a gesture is performed to form an infrared light reflection, Q5 is also turned on, and the theoretical calculation voltage at IR _ RX2 is 0V.
(4) When the IR transmitting tube D2 is turned on but no gesture wave forms an IR light reflection, Q5 is also turned off, at which time the theoretical calculated voltage at IR RX2 is 5V.
(5) When the infrared emission tubes D1, D2 were off, Q4 and Q5 were also off, and the theoretical calculated voltage at IR _ RX1 and IR _ RX2 was 5V.
In this embodiment, the IR _ RX port voltage value change on Q4 and Q5 is detected based on detecting whether or not Q4 and Q5 receive infrared light reflection. In this case, the IR _ RX port voltage values at Q4 and Q5 change to the concave wave shown in fig. 4A and 4B.
The second implementation mode comprises the following steps: the anode of the infrared emitting diode is connected with one end of a first resistor, and the other end of the first resistor is connected with a high level; the cathode of the infrared emitting diode is connected with the collector electrode C of the triode, the emitter electrode E of the triode is grounded, the base electrode B of the triode is connected with one end of a second resistor, and the other end of the second resistor is connected with a control output pin IR _ TX of the main control board;
the collector C pole of the infrared receiving triode is connected with a high level, and the emitter E pole of the infrared receiving triode is respectively connected with one end of the capacitor, one end of the third resistor and one end of the fourth resistor; the other end of the capacitor is grounded, the other end of the third resistor is connected with a control input pin IR _ RX of the main control board, and the other end of the fourth resistor is grounded.
Specifically, fig. 10B is a schematic structural diagram of an infrared transmitting-receiving pair transistor according to a second embodiment of the present invention, and as shown in fig. 10B, D1 and D2 are infrared transmitting tubes, and 5V is adopted for power supply; the IR _ TX1 and the IR _ TX2 are connected with a main control board, and the main control board outputs PWM square waves to control the connection and disconnection of D1 and D2; q4 and Q5 are infrared receiving tubes.
(1) When the infrared transmitting tube D1 is turned on and a gesture is performed to wave and form infrared light reflection, Q4 is turned on, and at the moment, the theoretical calculation voltage at IR _ RX1 is 5V.
(2) When the infrared transmitting tube D1 is turned on but no gesture wave forms infrared light reflection, Q4 is turned off, and at this time, the theoretical calculation voltage at IR _ RX1 is 0V.
(3) When the infrared transmitting tube D2 is turned on and a gesture is performed to form an infrared light reflection, Q5 is also turned on, and the theoretical calculation voltage at IR _ RX2 is 5V.
(4) When the IR transmitting tube D2 is turned on but no gesture wave forms an IR light reflection, Q5 is also turned off, at which time the theoretical calculated voltage at IR _ RX2 is 0V.
(5) When the infrared emission tubes D1, D2 were turned off, Q4 and Q5 were also turned off, and the theoretical calculation voltage at IR _ RX1 and IR _ RX2 was 0V.
In this embodiment, the IR _ RX port voltage value change on Q4 and Q5 is detected based on detecting whether or not Q4 and Q5 receive infrared light reflection. The IR _ RX port voltage values at Q4 and Q5 change to the convex wave shown in fig. 5.
In which the operating current of the pair of ir transmitting-receiving tubes can be adjusted to pass through a thicker display panel by setting the resistance values of R47 and R48 in fig. 10A and 10B. The display panel mainly refers to a glass material or other transparent plastic materials. In specific implementation, if the resistance values of R47 and R48 are reduced, the transmission power of the infrared transmitting and receiving pair transistors is increased, the distance of gesture recognition is increased, but the maximum working current cannot exceed the maximum current limit value of the infrared transmitting and receiving pair transistors. If the resistance values of R47 and R48 are increased, the transmission power of the infrared transmitting and receiving pair tube is reduced, and the distance of gesture recognition is reduced. In a specific application, R47 and R48 may be adjusted according to an actual application scenario, and the implementation of the present invention is not limited herein.
Further, in the above embodiment, a light shield is respectively disposed on the first group of infrared emission-receiving pair tubes 91 and the second group of infrared emission-receiving pair tubes 92, for preventing interference between the first group of infrared emission-receiving pair tubes 91 and the second group of infrared emission-receiving pair tubes 92.
Specifically, fig. 11 is a front view of the main control board according to the embodiment of the present invention, and as shown in fig. 11, a light shield for the left and right infrared transmitting and receiving pair transistors (infrared pair transistors for short) is disposed on the main control board, and the cylindrical shape of the light shield forms a combination similar to a '8' shape. The cylindrical shape of the light shield may also be other shapes, which is not limited and described herein.
In this embodiment, the two sets of transmitting and receiving geminate transistors may be disposed in the middle of the range hood, or may be disposed on two sides of the range hood, respectively, that is, the spacing distance W between the two sets of transmitting and receiving geminate transistors is not affected by the gesture width of the user, and the spacing distance W may be greater than the gesture width of the user, or may be less than or equal to the gesture width of the user.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
Claims (10)
1. A gesture recognition control method of a range hood is characterized by comprising the following steps:
respectively acquiring voltage sampling values Ave _ L and Ave _ R on a first group of infrared transmitting and receiving geminate transistors and a second group of infrared transmitting and receiving geminate transistors on the range hood;
respectively determining whether voltage sampling values of a first group of infrared transmitting and receiving geminate transistors and a second group of infrared transmitting and receiving geminate transistors are valid according to Ave _ L and Ave _ R;
after the voltage sampling value is determined to be valid, determining triggering gesture information according to the sampling duration of the voltage sampling value of the first group of infrared transmitting and receiving geminate transistors and/or the second group of infrared transmitting and receiving geminate transistors, and controlling the range hood according to the triggering gesture information;
the determining of the trigger gesture information according to the sampling duration of the voltage sampling values of the first group of infrared transmitting and receiving geminate transistors and/or the second group of infrared transmitting and receiving geminate transistors comprises the following steps:
determining triggering gesture information by judging a first pulse width count IR _ LEFT _ NUM triggered by the first group of infrared emission and reception geminate transistors gestures and/or a second pulse width count IR _ RIGHT _ NUM triggered by the second group of infrared emission and reception geminate transistors gestures;
or,
the determining of the trigger gesture information according to the sampling duration of the voltage sampling values of the first group of infrared transmitting and receiving geminate transistors and/or the second group of infrared transmitting and receiving geminate transistors comprises the following steps:
determining a time interval Delay for triggering two groups of infrared emission and reception geminate transistors by the gesture;
judging whether Delay meets 1< Delay is not more than IR _ MAX _ Distensity, if so, judging that the gesture trigger is effective;
the IR _ MAX _ distance is a preset maximum time interval.
2. The method of claim 1, further comprising:
after the voltage sampling value is determined to be valid, a first pulse width count IR _ LEFT _ NUM and a second pulse width count IR _ RIGHT _ NUM triggered by gestures of the first group of infrared emission receiving geminate transistors and the second group of infrared emission receiving geminate transistors are respectively determined.
3. The method according to claim 1, wherein determining the first pulse width count IR _ LEFT _ NUM and/or the second pulse width count IR _ RIGHT _ NUM determines trigger gesture information, including:
when the fact that the Gesture preferentially triggers the first group of infrared transmitting and receiving geminate transistors is determined, whether the IR _ LEFT _ NUM meets the condition that Gesture _ Low is less than IR _ LEFT _ NUM and is not more than Gesture _ High is judged;
when Gesture _ Low is less than IR _ LEFT _ NUM and less than or equal to Gesture _ High, judging whether IR _ RIGHT _ NUM meets the condition that IR _ RIGHT _ NUM is not equal to 0;
when the IR _ RIGHT _ NUM is not equal to 0, determining that the triggering gesture information is waved from left to RIGHT;
or;
when the Gesture is determined to preferentially trigger the second group of infrared transmitting and receiving geminate transistors, judging whether the IR _ RIGHT _ NUM meets the condition that Gesture _ Low is less than IR _ RIGHT _ NUM and is not more than Gesture _ High;
when Gesture _ Low is less than IR _ RIGHT _ NUM and less than or equal to Gesture _ High, judging whether IR _ LEFT _ NUM meets the condition that IR _ LEFT _ NUM is not equal to 0;
when the IR _ LEFT _ NUM is not equal to 0, determining that the triggering gesture information is waved from right to LEFT;
and Gesture _ Low is a preset minimum pulse width count triggered by the Gesture, and Gesture _ High is a preset maximum pulse width count triggered by the Gesture.
4. The method according to claim 1, wherein determining the first pulse width count IR _ LEFT _ NUM and/or the second pulse width count IR _ RIGHT _ NUM determines trigger gesture information, including:
when the fact that the Gesture preferentially triggers the first group of infrared transmitting and receiving geminate transistors is determined, whether the IR _ LEFT _ NUM meets the condition that Gesture _ Low is less than IR _ LEFT _ NUM and is not more than Gesture _ High is judged;
when Gesture _ Low is more than IR _ LEFT _ NUM and less than or equal to Gesture _ High, judging whether IR _ RIGHT _ NUM meets the condition that Gesture _ Low is more than IR _ RIGHT _ NUM and less than or equal to Gesture _ High;
when Gesture _ Low is less than IR _ RIGHT _ NUM and less than or equal to Gesture _ High, determining that the triggering Gesture information is waved from left to RIGHT;
or;
when the Gesture is determined to preferentially trigger the second group of infrared transmitting and receiving geminate transistors, judging whether the IR _ RIGHT _ NUM meets the condition that Gesture _ Low is less than IR _ RIGHT _ NUM and is not more than Gesture _ High;
when Gesture _ Low is more than IR _ RIGHT _ NUM and less than or equal to Gesture _ High, judging whether IR _ LEFT _ NUM meets the condition that Gesture _ Low is more than IR _ LEFT _ NUM and less than or equal to Gesture _ High;
when Gesture _ Low < IR _ LEFT _ NUM is not more than Gesture _ High, determining that the trigger Gesture information is waved from right to LEFT;
and Gesture _ Low is a preset minimum pulse width count triggered by the Gesture, and Gesture _ High is a preset maximum pulse width count triggered by the Gesture.
6. The method according to any one of claims 1-5, wherein said determining whether the first set of IR transmitting and receiving pair transistor and the second set of IR transmitting and receiving pair transistor voltage samples are valid according to Ave _ L and Ave _ R, respectively, comprises:
when the amplitude value of the Ave _ L is larger than or equal to the amplitude value of the detection threshold Gesture _ value, determining that the first group of infrared emission receiving tube voltage sampling values are effective;
and when the amplitude value of the Ave _ R is larger than or equal to the amplitude value of the detection threshold Gesture _ value, determining that the second group of infrared emission receiving tube voltage sampling values are effective.
7. The method according to claim 6, wherein when the waveform of Ave _ L and Ave _ R are both concave, when Ave _ L ≦ Gesture _ value, the amplitude value of Ave _ L is greater than or equal to the amplitude value of the detection threshold Gesture _ value; when Ave _ R is not more than Gesture _ value, the amplitude value of Ave _ R is more than or equal to the amplitude value of the detection threshold Gesture _ value;
or;
when the waveforms of the Ave _ L and the Ave _ R are both convex waves, when the Ave _ L is larger than or equal to the Gesture _ value, the amplitude value of the Ave _ L is larger than or equal to the amplitude value of the detection threshold Gesture _ value; when Ave _ R is larger than or equal to Gesture _ value, the amplitude value of Ave _ R is larger than or equal to that of the detection threshold Gesture _ value.
8. A range hood is characterized by comprising a first group of infrared emission and reception geminate transistors, a second group of infrared emission and reception geminate transistors and a main control board; the main control board is respectively connected with the first group of infrared transmitting and receiving geminate transistors and the second group of infrared transmitting and receiving geminate transistors, the first group of infrared transmitting and receiving geminate transistors and the second group of infrared transmitting and receiving geminate transistors are respectively positioned on the left side and the right side of the range hood, and a spacing distance W is reserved between the first group of infrared transmitting and receiving geminate transistors and the second group of infrared transmitting and receiving geminate transistors;
the first group of infrared transmitting and receiving geminate transistors are used for being conducted when a gesture waves on the left side of the range hood, and outputting a voltage sampling value Ave _ L;
the second group of infrared transmitting and receiving geminate transistors are used for being conducted when a gesture waves on the right side of the range hood, and outputting a voltage sampling value Ave _ R;
the main control board is used for driving the first group of infrared emission receiving geminate transistors and the second group of infrared emission receiving geminate transistors to work and executing the gesture recognition control method of the range hood as claimed in any one of claims 1 to 7.
9. The range hood of claim 8, wherein each set of infrared emission-reception pair transistors comprises an infrared emission diode and an infrared reception triode, wherein:
the anode of the infrared emitting diode is connected with one end of a first resistor, and the other end of the first resistor is connected with a high level; the cathode of the infrared emitting diode is connected with the collector electrode C of the triode, the emitter electrode E of the triode is grounded, the base electrode B of the triode is connected with one end of a second resistor, and the other end of the second resistor is connected with a control output pin IR _ TX of the main control board;
an emitter E electrode of the infrared receiving triode is grounded, and a collector C electrode of the infrared receiving triode is respectively connected with one end of the capacitor, one end of the third resistor and one end of the fourth resistor; the other end of the capacitor is grounded, the other end of the third resistor is connected with a control input pin IR _ RX of the main control board, and the other end of the fourth resistor is connected with a high level;
or;
the collector C pole of the infrared receiving triode is connected with a high level, and the emitter E pole of the infrared receiving triode is respectively connected with one end of the capacitor, one end of the third resistor and one end of the fourth resistor; the other end of the capacitor is grounded, the other end of the third resistor is connected with a control input pin IR _ RX of the main control board, and the other end of the fourth resistor is grounded.
10. The range hood of claim 8 or 9, wherein a light shield is disposed on each of the first and second sets of infrared emission-receiving pair transistors for preventing interference between the first and second sets of infrared emission-receiving pair transistors.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811617765.4A CN109506279B (en) | 2018-12-28 | 2018-12-28 | Gesture recognition control method of range hood and range hood |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811617765.4A CN109506279B (en) | 2018-12-28 | 2018-12-28 | Gesture recognition control method of range hood and range hood |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109506279A CN109506279A (en) | 2019-03-22 |
CN109506279B true CN109506279B (en) | 2020-04-10 |
Family
ID=65755612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811617765.4A Active CN109506279B (en) | 2018-12-28 | 2018-12-28 | Gesture recognition control method of range hood and range hood |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109506279B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111752369A (en) * | 2019-03-26 | 2020-10-09 | 华帝股份有限公司 | Infrared-based non-contact control method and control system for range hood |
CN110307575B (en) * | 2019-07-17 | 2021-04-23 | 华帝股份有限公司 | Non-contact control system and method for range hood |
CN110513742B (en) * | 2019-09-05 | 2024-05-14 | 杭州德意智家股份有限公司 | Gesture control range hood system and control method based on infrared geminate transistor transmitting-receiving principle |
CN110645609B (en) * | 2019-09-16 | 2024-06-14 | 华帝股份有限公司 | Gesture recognition control device and control method for range hood |
CN110780620A (en) * | 2019-10-23 | 2020-02-11 | 华帝股份有限公司 | Gesture recognition control device and control method of range hood |
CN111623391A (en) * | 2020-04-13 | 2020-09-04 | 华帝股份有限公司 | Range hood with induction distance adjusting device and control method thereof |
CN111623392A (en) * | 2020-04-13 | 2020-09-04 | 华帝股份有限公司 | Cigarette machine with gesture recognition assembly and control method thereof |
CN113551280B (en) * | 2020-04-26 | 2024-03-12 | 九阳股份有限公司 | Control method of range hood |
CN111649366A (en) * | 2020-06-16 | 2020-09-11 | 上海纯米电子科技有限公司 | Control method of intelligent range hood and intelligent range hood |
CN111649367A (en) * | 2020-06-16 | 2020-09-11 | 上海纯米电子科技有限公司 | Control method of intelligent range hood and intelligent range hood |
CN115840390B (en) * | 2022-11-29 | 2023-08-15 | 凤凰智能电子(杭州)有限公司 | Low-cost infrared gesture recognition circuit and control method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404437A (en) * | 2010-09-14 | 2012-04-04 | 上海三旗通信科技股份有限公司 | Achieving method for recognizing various gestures by adopting infrared induction buttons |
DE102013206340A1 (en) * | 2013-04-10 | 2014-10-16 | E.G.O. Elektro-Gerätebau GmbH | Device and method for controlling an electrical appliance |
CN103472752B (en) * | 2013-09-17 | 2015-10-28 | 于金田 | A kind of infrared many gears gesture identification switch and gesture identification method |
CN104460987B (en) * | 2014-11-07 | 2019-05-28 | 惠州Tcl移动通信有限公司 | The electronic equipment that can be manipulated by Non-contact gesture |
CN107037884A (en) * | 2017-05-04 | 2017-08-11 | 广东万家乐燃气具有限公司 | A kind of human body intelligent identification and gesture operation control system |
CN108006751B (en) * | 2017-06-21 | 2024-01-16 | 宁波方太厨具有限公司 | Non-contact control system and control method of range hood |
-
2018
- 2018-12-28 CN CN201811617765.4A patent/CN109506279B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109506279A (en) | 2019-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109506279B (en) | Gesture recognition control method of range hood and range hood | |
US20160116891A1 (en) | Method and device for operating a household appliance and household appliance | |
CN109539354B (en) | Gesture recognition control method of extractor hood with accurate recognition and extractor hood | |
US8981698B2 (en) | Apparatus for opening and/or closing a door | |
CN101901088B (en) | Infrared control device | |
CN104566591A (en) | Non-contact control method of extractor hood | |
RU2682091C2 (en) | Directional proximity switch assembly | |
RU2014131022A (en) | DEVICE FOR INFORMATION TERMINAL AND METHOD FOR PROCESSING INFORMATION | |
EP3033923B1 (en) | Sensing within a region. | |
US20150058810A1 (en) | Electronic Device with Lateral Touch Control Combining Shortcut Function | |
EP2887188B1 (en) | Control system for a gesture sensing arrangement and method for controlling a gesture sensing arrangement | |
CN103743430B (en) | A kind of correlation photoelectric sensor | |
WO2014013249A1 (en) | Control of electronic devices | |
CN105627513A (en) | Control method, device and system of air conditioner | |
CN103807973A (en) | Air conditioner and control method thereof | |
US8779670B2 (en) | Lighting device, lighting control device and lighting system | |
JP2017110832A (en) | refrigerator | |
CN106371515A (en) | Method and device for controlling screen states | |
CN109426194B (en) | Test method for microwave induction lamp to enter different modes and microwave induction lamp | |
CN115202515A (en) | Touch key detection method and detection circuit, microcontroller and touch detection system | |
US20120007834A1 (en) | Optical system and click detection method therefor | |
CN114198977A (en) | Method for detecting human body approaching by refrigerator and refrigerator adopting same | |
US8536531B2 (en) | Proximity sensing apparatus and sensing method thereof | |
CN109855354A (en) | Refrigerator and its enabling control method | |
CN208659260U (en) | Dish washer control system capable of being controlled by gestures |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240515 Address after: No. 999, Mei Li Road, Huaiyin District, Ji'nan, Shandong Patentee after: Shandong Jiuchuang Home Appliance Co.,Ltd. Country or region after: China Address before: No. 999, Mei Li Road, Huaiyin District, Ji'nan, Shandong Patentee before: JOYOUNG Co.,Ltd. Country or region before: China |
|
TR01 | Transfer of patent right |