CN108489049B - Infrared distance detection method for air conditioner, air conditioner and computer storage medium - Google Patents

Infrared distance detection method for air conditioner, air conditioner and computer storage medium Download PDF

Info

Publication number
CN108489049B
CN108489049B CN201810276118.5A CN201810276118A CN108489049B CN 108489049 B CN108489049 B CN 108489049B CN 201810276118 A CN201810276118 A CN 201810276118A CN 108489049 B CN108489049 B CN 108489049B
Authority
CN
China
Prior art keywords
distance
air conditioner
infrared sensor
infrared
actual
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
Application number
CN201810276118.5A
Other languages
Chinese (zh)
Other versions
CN108489049A (en
Inventor
屈金祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Group Co Ltd, GD Midea Air Conditioning Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201810276118.5A priority Critical patent/CN108489049B/en
Publication of CN108489049A publication Critical patent/CN108489049A/en
Application granted granted Critical
Publication of CN108489049B publication Critical patent/CN108489049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/89Arrangement or mounting of control or safety devices
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/88Electrical aspects, e.g. circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The invention discloses an infrared distance detection method of an air conditioner, wherein a first infrared sensor and a second infrared sensor of a receiving and transmitting type are arranged in the air conditioner, and the method comprises the following steps: controlling the emitting heads of the first infrared sensor and the second infrared sensor to circularly emit a plurality of ranging pulse signals with different duty ratios; when the receiving head of the first infrared sensor is detected not to receive the reflected signal of the ranging pulse signal and the receiving head of the second infrared sensor receives the reflected signal of the ranging pulse signal, calculating to obtain a corresponding first distance and a corresponding second distance according to the duty ratio of the reflected signals; and determining the actual distance between the current person and the air conditioner according to the first distance and the second distance so as to adjust the operating parameters of the air conditioner according to the actual distance. The invention also discloses an air conditioner and a computer storage medium, which realize the detection of the distance between a user moving in a room and the air conditioner through the transceiving infrared sensor so that the air conditioner can adjust the operation parameters according to the distance.

Description

Infrared distance detection method for air conditioner, air conditioner and computer storage medium
Technical Field
The invention relates to the technical field of air conditioners, in particular to an infrared distance detection method of an air conditioner, the air conditioner and a computer storage medium.
Background
The air conditioner is very popular in daily life, almost every household can use the air conditioner, in order to provide better air conditioner using experience for users, and meanwhile, the fact that the users walk in a room irregularly is considered, therefore, the distance between the moving users and the air conditioner is determined, the operating parameters of the air conditioner are correspondingly adjusted according to the distance, excellent comfort is brought to the users, the air conditioner is very important, and the air conditioner is a technical problem which needs to be solved at present.
In the prior art, a thermopile sensor is generally adopted to detect the position of a human body, and the thermopile sensor is generally high in cost and applied to a household air conditioner, so that the production cost of the air conditioner is increased.
Disclosure of Invention
The invention mainly aims to provide an infrared distance detection method of an air conditioner, the air conditioner and a computer storage medium, and aims to solve the technical problem of how to detect the distance of a dynamic object by using a low-cost transceiving infrared sensor.
In order to achieve the above object, the present invention provides an infrared distance detecting method for an air conditioner, which comprises the steps of:
controlling the emitting heads of the first infrared sensor and the second infrared sensor to circularly emit a plurality of ranging pulse signals with different duty ratios;
when the receiving head of the first infrared sensor is detected not to receive the reflected signal of the ranging pulse signal and the receiving head of the second infrared sensor receives the reflected signal of the ranging pulse signal, calculating to obtain a corresponding first distance and a corresponding second distance according to the duty ratio of the reflected signals;
and determining the actual distance between the current person and the air conditioner according to the first distance and the second distance so as to adjust the operating parameters of the air conditioner according to the actual distance.
Preferably, the signals emitted by the emitting heads of the first infrared sensors decrease from large to small, and the signals emitted by the emitting heads of the second infrared sensors increase from small to large.
Preferably, the step of determining an actual distance between the current person and the air conditioner according to the first distance and the second distance to adjust an operation parameter of the air conditioner according to the actual distance comprises:
judging whether the absolute value of the difference value of the first distance and the second distance is smaller than or equal to a preset value;
if the difference value is smaller than or equal to the preset value, calculating the average value of the difference value between the first distance and the second distance, and determining the actual distance between the current person and the air conditioner according to the average value so as to adjust the operating parameters of the air conditioner according to the actual distance.
Preferably, the step of determining the actual distance between the current person and the air conditioner according to the average value comprises:
acquiring the maximum value of the first distance and the second distance;
calculating the difference value between the maximum value and the average value, and taking the difference value as the actual distance between the current person and the air conditioner;
or acquiring the minimum value of the first distance and the second distance;
and calculating the sum of the minimum value and the average value, and taking the sum as the actual distance between the current person and the air conditioner.
Preferably, the step of controlling the emitting heads of the first infrared sensor and the second infrared sensor to cyclically emit a plurality of ranging pulse signals with different duty ratios further comprises the following steps:
when receiving pulse signals, receiving heads of the first infrared sensor and the second infrared sensor judge whether the coding format of the pulse signals conforms to the coding format of the ranging pulse signals;
and if so, judging that the reflected signal of the received ranging pulse signal is effective.
Preferably, the step of calculating corresponding first and second distances according to the duty cycle of the reflected signal includes:
respectively acquiring the duty ratios of the reflected signals;
calculating to obtain a maximum trigger distance corresponding to the duty ratio according to a preset formula, and taking the corresponding maximum trigger distance as the first distance and the second distance respectively, wherein the preset formula represents the corresponding relation between the duty ratio and the maximum trigger distance.
Preferably, the infrared distance detecting method of the air conditioner further includes:
calculating an average value of the actual distances when the actual distances are obtained;
and taking the average value of the actual distances as the actual distance between the current person and the air conditioner, and adjusting the operating parameters of the air conditioner according to the actual distance.
Preferably, the first infrared sensor and the second infrared sensor have different heights with respect to the ground.
In addition, to achieve the above object, the present invention further provides an air conditioner, which includes a memory, a processor, a transceiving infrared sensor and a computer program stored in the memory and operable on the processor, wherein a transmitting head of the transceiving infrared sensor cyclically transmits a plurality of ranging pulse signals having different duty ratios, and the computer program, when executed by the processor, implements the steps of the infrared distance detecting method of the air conditioner as described above.
Further, to achieve the above object, the present invention also provides a computer storage medium having stored thereon an infrared detection distance program of an air conditioner, which when executed by the processor, implements the steps of the infrared detection distance method of an air conditioner as described above.
The invention provides an infrared distance detection method of an air conditioner, the air conditioner and a computer storage medium, wherein a transceiving type first infrared sensor and a transceiving type second infrared sensor are arranged in the air conditioner, a plurality of ranging pulse signals with different duty ratios are circularly transmitted by controlling transmitting heads of the first infrared sensor and the second infrared sensor, when a receiving head of the first infrared sensor is detected not to receive a reflection signal of the ranging pulse signal and a receiving head of the second infrared sensor receives the reflection signal of the ranging pulse signal, a corresponding first distance and a second distance are calculated according to the duty ratio of the reflection signal, finally, the actual distance between a current person and the air conditioner is determined according to the first distance and the second distance, the purpose that the distance between a user moving in a room and the air conditioner is detected by the transceiving type infrared sensors is realized, so that the air conditioner can adjust the operation parameters of the air conditioner according to the distance, to provide a comfortable indoor environment for the user.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a first embodiment of an infrared distance detecting method for an air conditioner according to the present invention;
FIG. 3 is a detailed flowchart of the step of determining the actual distance between the current person and the air conditioner according to the first distance and the second distance in FIG. 2;
FIG. 4 is a flowchart illustrating a third exemplary embodiment of a method for detecting a distance by infrared rays of an air conditioner according to the present invention;
fig. 5 is a flowchart illustrating a fourth embodiment of an infrared distance detecting method for an air conditioner according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows:
controlling the emitting heads of the first infrared sensor and the second infrared sensor to circularly emit a plurality of ranging pulse signals with different duty ratios;
when the receiving head of the first infrared sensor is detected not to receive the reflected signal of the ranging pulse signal and the receiving head of the second infrared sensor receives the reflected signal of the ranging pulse signal, calculating to obtain a corresponding first distance and a corresponding second distance according to the duty ratio of the reflected signals;
and determining the actual distance between the current person and the air conditioner according to the first distance and the second distance so as to adjust the operating parameters of the air conditioner according to the actual distance.
Because among the prior art, adopt the thermopile sensor to detect human position usually, and the thermopile sensor is usually with higher costs, uses on domestic air conditioner, will increase the manufacturing cost of air conditioner, in addition, because the people can not move at regular time in the room, also be convenient for detect the distance of dynamic object.
The invention provides a solution, a first infrared sensor and a second infrared sensor of a receiving and transmitting type are arranged in an air conditioner, by controlling the emitting heads of the first infrared sensor and the second infrared sensor to circularly emit a plurality of ranging pulse signals with different duty ratios, when it is detected that the receiving head of the first infrared sensor does not receive the reflected signal of the ranging pulse signal and the receiving head of the second infrared sensor receives the reflected signal of the ranging pulse signal, calculating corresponding first distance and second distance according to the duty ratio of the reflected signal, determining the actual distance between the current person and the air conditioner according to the first distance and the second distance, detecting the distance between the user moving in the room and the air conditioner through the transceiving infrared sensor, the air conditioner adjusts the operation parameters according to the distance so as to provide comfortable indoor environment for users.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention is various household air-conditioning equipment.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a transceiver ir sensor 1006, a memory 1005 and a communications bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The transmitting head of the transceiving infrared sensor 1006 cyclically transmits a plurality of ranging pulse signals having different duty ratios. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an infrared detection distance program of an air conditioner.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call an infrared detection distance program of the air conditioner stored in the memory 1005, and perform the following operations:
controlling the emitting heads of the first infrared sensor and the second infrared sensor to circularly emit a plurality of ranging pulse signals with different duty ratios;
when the receiving head of the first infrared sensor is detected not to receive the reflected signal of the ranging pulse signal and the receiving head of the second infrared sensor receives the reflected signal of the ranging pulse signal, calculating to obtain a corresponding first distance and a corresponding second distance according to the duty ratio of the reflected signals;
and determining the actual distance between the current person and the air conditioner according to the first distance and the second distance so as to adjust the operating parameters of the air conditioner according to the actual distance.
Further, the processor 1001 may call an infrared detection distance program of the air conditioner stored in the memory 1005, and also perform the following operations:
the signals transmitted by the transmitting heads of the first infrared sensors are sequentially reduced from large to small, and the signals transmitted by the transmitting heads of the second infrared sensors are sequentially increased from small to large.
Further, the processor 1001 may call an infrared detection distance program of the air conditioner stored in the memory 1005, and also perform the following operations:
judging whether the absolute value of the difference value of the first distance and the second distance is smaller than or equal to a preset value;
if the difference value is smaller than or equal to the preset value, calculating the average value of the difference value between the first distance and the second distance, and determining the actual distance between the current person and the air conditioner according to the average value so as to adjust the operating parameters of the air conditioner according to the actual distance.
Further, the processor 1001 may call an infrared detection distance program of the air conditioner stored in the memory 1005, and also perform the following operations:
acquiring the maximum value of the first distance and the second distance;
calculating the difference value between the maximum value and the average value, and taking the difference value as the actual distance between the current person and the air conditioner;
or acquiring the minimum value of the first distance and the second distance;
and calculating the sum of the minimum value and the average value, and taking the sum as the actual distance between the current person and the air conditioner.
Further, the processor 1001 may call an infrared detection distance program of the air conditioner stored in the memory 1005, and also perform the following operations:
when receiving pulse signals, receiving heads of the first infrared sensor and the second infrared sensor judge whether the coding format of the pulse signals conforms to the coding format of the ranging pulse signals;
and if so, judging that the reflected signal of the received ranging pulse signal is effective.
Further, the processor 1001 may call an infrared detection distance program of the air conditioner stored in the memory 1005, and also perform the following operations:
respectively acquiring the duty ratios of the reflected signals;
calculating to obtain a maximum trigger distance corresponding to the duty ratio according to a preset formula, and taking the corresponding maximum trigger distance as the first distance and the second distance respectively, wherein the preset formula represents the corresponding relation between the duty ratio and the maximum trigger distance.
Further, the processor 1001 may call an infrared detection distance program of the air conditioner stored in the memory 1005, and also perform the following operations:
calculating an average value of the actual distances when the actual distances are obtained;
and taking the average value of the actual distances as the actual distance between the current person and the air conditioner, and adjusting the operating parameters of the air conditioner according to the actual distance.
Further, the processor 1001 may call an infrared detection distance program of the air conditioner stored in the memory 1005, and also perform the following operations:
the first infrared sensor and the second infrared sensor have different heights relative to the ground.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of an infrared distance detection method of an air conditioner according to the present invention;
the embodiment provides an infrared distance detection method of an air conditioner, which comprises the following steps:
step S10, controlling the emitting heads of the first infrared sensor and the second infrared sensor to circularly emit a plurality of ranging pulse signals with different duty ratios;
duty cycle refers to the proportion of the time that power is applied to the total time in a pulse cycle. The duty cycle (DutyRatio) has the following meaning in the field of telecommunications: for example: the pulse width is 1 mus and the duty cycle of the pulse sequence is 0.25 for a signal period of 4 mus. Because different duty ratio signals correspond different powers, and different signal powers correspond the object distance that detects different, specifically: the high-power signal can increase the power of infrared emission, so that a remote object can be detected; low power signals, which reduce the power of the infrared emission, can only detect objects in close proximity. Based on the principle, the invention realizes low-cost object distance detection through the low-cost infrared transmitting head and the low-cost infrared receiving head, and finally realizes the low cost of the air conditioner. Furthermore, the invention considers that the user can walk in the room with the air conditioner at variable time, so two active transceiving infrared sensors are adopted to achieve the effect of detecting the distance between the moving user and the air conditioner by adjusting the duty ratio signals of the two active transceiving infrared sensors. The two active transceiving infrared sensors in the invention are both provided with a transmitting head and a receiving head, and the heights of the first infrared sensor and the second infrared sensor relative to the ground are different, taking a three-dimensional air conditioner as an example for illustration, the preferable positions are as follows: one is less than 1.2m high from the ground and the other is more than 1.2m high from the ground. Specifically, in the implementation process, the signals emitted by the emitting heads of the first infrared sensors are controlled to be sequentially reduced from large to small, namely, the duty ratios are adjusted to be sequentially reduced, the signals emitted by the emitting heads of the second infrared sensors are controlled to be sequentially increased from small to large, namely, the duty ratios are adjusted to be sequentially increased, and the signals are ranging pulse signals.
Step S20, when detecting that the receiving head of the first infrared sensor cannot receive the reflected signal of the ranging pulse signal and the receiving head of the second infrared sensor receives the reflected signal of the ranging pulse signal, calculating to obtain a corresponding first distance and a second distance according to the duty ratio of the reflected signals;
the maximum trigger distance of the ranging pulse signal and the duty ratio corresponding to the ranging pulse signal satisfy the following formula: d ═ ax2+ bx + c, where a, b, and c are constant values, and a ═ 0.001, b ═ 0.07, and c ═ 0.997, respectively. It can be understood that, if the duty ratio of 0.25 corresponds to the maximum trigger distance of 2m, that is, the distance between the human and the air conditioner is less than or equal to 2m, the receiving head of the infrared sensor can receive the reflected signal of the ranging pulse signal.
Because the distance measuring pulse signals transmitted by the transmitting head of the first infrared sensor are sequentially reduced from large to small, namely the corresponding duty ratios are sequentially reduced, the distance measuring pulse signals transmitted by the transmitting head of the second infrared sensor are sequentially increased from small to large, namely the corresponding duty ratios are sequentially increased, at a certain moment, the receiving head of the first infrared sensor cannot receive the reflected signals of the distance measuring pulse signals and the receiving head of the second infrared sensor receives the reflected signals of the distance measuring pulse signals, at the moment, the duty ratios corresponding to the transmitted distance measuring pulse signals or the received reflected signals of the distance measuring pulse signals are obtained, and the duty ratios corresponding to the transmitted distance measuring pulse signals or the received reflected signals of the distance measuring pulse signals are ax according to a formula D2The + bx + c obtains the corresponding maximum trigger distance, i.e. the first distance and the second distance currently detected by the first infrared sensor and the second infrared sensor, which are respectively denoted as D1 and D2.
And step S30, determining the actual distance between the current person and the air conditioner according to the first distance and the second distance, and adjusting the operation parameters of the air conditioner according to the actual distance.
After the first distance and the second distance (D1 and D2) are obtained, a more accurate actual distance between the current person and the air conditioner is calculated according to the two values, so that the air conditioner can adjust the operation parameters thereof according to the actual distance to provide a very comfortable indoor environment for the user. The specific calculation method will be described in detail in the second embodiment, and will not be described here.
In the infrared distance detecting method for an air conditioner according to this embodiment, a first infrared sensor and a second infrared sensor of a transceiving type are built in the air conditioner, by controlling the emitting heads of the first infrared sensor and the second infrared sensor to circularly emit a plurality of ranging pulse signals with different duty ratios, when it is detected that the receiving head of the first infrared sensor does not receive the reflected signal of the ranging pulse signal and the receiving head of the second infrared sensor receives the reflected signal of the ranging pulse signal, calculating corresponding first distance and second distance according to the duty ratio of the reflected signal, determining the actual distance between the current person and the air conditioner according to the first distance and the second distance, detecting the distance between the user moving in the room and the air conditioner through the transceiving infrared sensor, the air conditioner adjusts the operation parameters according to the distance so as to provide comfortable indoor environment for users.
Further, referring to fig. 3, a second embodiment of the infrared distance detecting method for an air conditioner according to the present invention is proposed based on the first embodiment, and in this embodiment, the step S30 includes:
step S31, judging whether the absolute value of the difference value of the first distance and the second distance is less than or equal to a preset value;
step S32, if the difference value is less than or equal to the preset value, calculating the average value of the difference values of the first distance and the second distance;
step S33, obtaining a maximum value of the first distance and the second distance;
step S34, calculating the difference between the maximum value and the average value, and taking the difference as the actual distance between the current person and the air conditioner so as to adjust the operation parameters of the air conditioner according to the actual distance;
step S35, acquiring a minimum value of the first distance and the second distance;
and step S36, calculating the sum of the minimum value and the average value, and using the sum as the actual distance between the current person and the air conditioner so as to adjust the operation parameters of the air conditioner according to the actual distance.
This embodiment describes a method for obtaining a more accurate actual distance between the current person and the air conditioner according to D1 and D2. The specific calculation method is as follows: firstly calculating | D1-D2|, and then judging whether the value of | D1-D2| is smaller than or equal to a preset value, wherein the preset value is generally a small value, in the embodiment, a positive number smaller than or equal to 0.2 is preferred, the preset value is 0.2 for example, assuming that D represents the actual distance between a person and an air conditioner, when | D1-D2| is smaller than or equal to 0.2, | D1-D2|/2 is calculated, and if D1 > D2, D1 | -D1-D2 |/2 or D2+ | D1-D2|/2 is calculated; if D1 < D2, then D1+ | D1-D2|/2 or D2- | D1-D2 |/2; if D1-D2, D1-D2. Further, if | D1-D2| is greater than 0.2, it is considered that the frequency of the people walking indoors, which is detected by the first infrared sensor and the second infrared sensor, is too high, which leads to inaccurate measurement of the actual distance between the people and the air conditioner, at this time, the air conditioner can be operated according to the preset operation parameters, and when | D1-D2| is less than or equal to 0.2, the operation parameters of the air conditioner are adjusted according to the calculated D.
In the technical scheme disclosed in the embodiment, the method for obtaining the actual distance between the current person and the air conditioner according to D1 and D2 is introduced, the calculation process of the method is simple, and the method is supported in a scientific calculation mode, so that the calculated distance value is closer to the actual distance, and the error is effectively reduced.
Further, referring to fig. 4, a third embodiment of the infrared distance detecting method for an air conditioner according to the present invention is provided based on any one of the first to second embodiments, in this embodiment, after step S10, the method further includes:
step S40, when the receiving heads of the first infrared sensor and the second infrared sensor receive pulse signals, judging whether the coding format of the pulse signals conforms to the coding format of the ranging pulse signals;
in step S50, if yes, it is determined that the reflected signal of the ranging pulse signal is received is valid.
In the daily use scene of the air conditioner, the pulse signal transmitted by the infrared transmitting head and the pulse signal received by the infrared receiving head can be the same or different (for example, the received pulse signal is interference pulse signal). Therefore, in order to avoid the erroneous determination in the object distance detection process, the interference pulse signal is further determined and processed correspondingly in this embodiment.
If the coding formats of the pulse signals received by the receiving heads of the first infrared sensor and the second infrared sensor conform to the coding format of the ranging pulse signal, the received signal is judged to be the reflection signal of the ranging pulse signal, otherwise, the signal is judged to be the interference pulse signal.
In the invention, if the infrared receiving head receives the pulse signals, based on the preset coding format of the ranging pulse signals, the rising edge and/or the falling edge of each pulse signal are judged so as to determine whether the width of the pulse signal and the interval width between adjacent ranging pulse signals accord with the coding format of the ranging pulse signals. In the present invention, the coding format of the ranging pulse signal is not limited, and it is preferable to design the coding format of the ranging pulse signal based on the width of the pulse signal and the width between adjacent pulse signals.
The preset coding format one: the width of each transmitted ranging pulse signal is fixed and the same, and the interval width between each adjacent ranging pulse signals is fixed and the same;
presetting a second coding format: the width of each transmitted ranging pulse signal is fixed and the same, and the interval width between each two adjacent ranging pulse signals is different;
presetting a coding format three: the width of each transmitted ranging pulse signal is different, and the interval width between each adjacent ranging pulse signals is different.
In the technical scheme disclosed in the embodiment, the received signal is judged to be the reflection signal or the interference pulse signal of the ranging pulse signal, so that the influence of the interference signal can be eliminated, the distance detected by the infrared sensor is more accurate, and the more accurate actual distance between a person and the air conditioner is further obtained.
Further, referring to fig. 5, a fourth embodiment of the method for detecting a distance by infrared of an air conditioner according to the present invention is provided based on any one of the first to third embodiments, and in this embodiment, the method for detecting a distance by infrared of an air conditioner further includes:
step S60, calculating an average value of the plurality of actual distances when the plurality of actual distances are obtained;
and step S70, taking the average value of the actual distances as the actual distance between the current person and the air conditioner, and adjusting the operation parameters of the air conditioner according to the actual distance.
In the technical solution disclosed in this embodiment, a scenario is described in which a plurality of people are in a room in which an air conditioner is installed and a plurality of D are obtained, and at this time, the simplest and most straightforward way is to calculate an average value of the plurality of D, and use the average value as an actual distance D, so that the air conditioner adjusts its operating parameters according to the value. In addition, the actual distance D may be calculated by other mathematical calculation methods, such as a weighted average, and the present invention is not limited to the method of calculating the average value. Therefore, the scheme of the invention can be suitable for more scenes, and has stronger applicability and wider application range.
In addition, an embodiment of the present invention further provides an air conditioner, where the air conditioner includes a memory, a processor, a transceiver infrared sensor, and a computer program stored in the memory and operable on the processor, where a transmitting head of the transceiver infrared sensor cyclically transmits a plurality of ranging pulse signals with different duty ratios, and the computer program, when executed by the processor, implements the steps of the infrared distance detecting method of the air conditioner according to the above embodiment.
In addition, an embodiment of the present invention further provides a computer storage medium, where an infrared distance detection program of an air conditioner is stored on the computer storage medium, and when the infrared distance detection program of the air conditioner is executed by the processor, the steps of the infrared distance detection method of the air conditioner according to the above embodiment are implemented.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be substantially or partially embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a cloud server, an air conditioner, or a network device) to execute the method of the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. An infrared distance detection method of an air conditioner is characterized in that a first infrared sensor and a second infrared sensor of a transceiving type are built in the air conditioner, and the infrared distance detection method of the air conditioner comprises the following steps:
controlling the emitting heads of the first infrared sensor and the second infrared sensor to circularly emit a plurality of ranging pulse signals with different duty ratios;
when the receiving head of the first infrared sensor is detected not to receive the reflected signal of the ranging pulse signal and the receiving head of the second infrared sensor receives the reflected signal of the ranging pulse signal, calculating to obtain a corresponding first distance and a corresponding second distance according to the duty ratio of the reflected signals;
judging whether the absolute value of the difference value of the first distance and the second distance is smaller than or equal to a preset value;
if the difference value is smaller than or equal to a preset value, calculating the average value of the difference values of the first distance and the second distance;
acquiring the maximum value of the first distance and the second distance;
calculating the difference value between the maximum value and the average value, and taking the difference value as the actual distance between the current person and the air conditioner;
or acquiring the minimum value of the first distance and the second distance;
and calculating the sum of the minimum value and the average value, and taking the sum as the actual distance between the current person and the air conditioner so as to adjust the operating parameters of the air conditioner according to the actual distance.
2. The infrared detection distance method of an air conditioner according to claim 1, wherein the signals emitted from the emitting heads of the first infrared sensors are sequentially decreased from large to small, and the signals emitted from the emitting heads of the second infrared sensors are sequentially increased from small to large.
3. The infrared detection distance method of an air conditioner as claimed in claim 1, wherein the step of controlling the emission heads of the first and second infrared sensors to cyclically emit a plurality of ranging pulse signals having different duty ratios further comprises, after the step of:
when receiving pulse signals, receiving heads of the first infrared sensor and the second infrared sensor judge whether the coding format of the pulse signals conforms to the coding format of the ranging pulse signals;
and if so, judging that the reflected signal of the received ranging pulse signal is effective.
4. The infrared detection distance method of an air conditioner according to claim 1, wherein the step of calculating corresponding first and second distances according to the duty ratio of the reflection signal comprises:
respectively acquiring the duty ratios of the reflected signals;
calculating to obtain a maximum trigger distance corresponding to the duty ratio according to a preset formula, and taking the corresponding maximum trigger distance as the first distance and the second distance respectively, wherein the preset formula represents the corresponding relation between the duty ratio and the maximum trigger distance.
5. The infrared distance detecting method of an air conditioner as claimed in claim 1, further comprising:
calculating an average value of the actual distances when the actual distances are obtained;
and taking the average value of the actual distances as the actual distance between the current person and the air conditioner, and adjusting the operating parameters of the air conditioner according to the actual distance.
6. An infrared detection distance method of an air conditioner according to any one of claims 1 to 5, wherein the first infrared sensor and the second infrared sensor are different in height with respect to the ground.
7. An air conditioner, characterized in that the air conditioner comprises a memory, a processor, a transceiving infrared sensor and a computer program stored on the memory and operable on the processor, wherein a transmitting head of the transceiving infrared sensor cyclically transmits a plurality of ranging pulse signals having different duty ratios, and the computer program, when executed by the processor, implements the steps of the infrared distance detecting method of the air conditioner according to any one of claims 1 to 6.
8. A computer storage medium, characterized in that the computer storage medium has stored thereon an infrared detection distance program of an air conditioner, which when executed by a processor, implements the steps of the infrared detection distance method of an air conditioner according to any one of claims 1 to 6.
CN201810276118.5A 2018-03-29 2018-03-29 Infrared distance detection method for air conditioner, air conditioner and computer storage medium Active CN108489049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810276118.5A CN108489049B (en) 2018-03-29 2018-03-29 Infrared distance detection method for air conditioner, air conditioner and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810276118.5A CN108489049B (en) 2018-03-29 2018-03-29 Infrared distance detection method for air conditioner, air conditioner and computer storage medium

Publications (2)

Publication Number Publication Date
CN108489049A CN108489049A (en) 2018-09-04
CN108489049B true CN108489049B (en) 2020-03-06

Family

ID=63317668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810276118.5A Active CN108489049B (en) 2018-03-29 2018-03-29 Infrared distance detection method for air conditioner, air conditioner and computer storage medium

Country Status (1)

Country Link
CN (1) CN108489049B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112665168B (en) * 2020-12-28 2022-04-12 佛山市顺德区美的电子科技有限公司 Method and device for controlling working state of infrared sensor and storage medium
CN112274143B (en) * 2020-12-29 2021-06-01 四川写正智能科技有限公司 Human body existing state detection method and detection device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5637040A (en) * 1995-04-13 1997-06-10 Samsung Electronics Co., Ltd. Infrared object detector
CN102022806A (en) * 2009-09-09 2011-04-20 日立空调·家用电器株式会社 Air conditioner
AT15034U1 (en) * 2013-04-26 2016-11-15 Zumtobel Lighting Gmbh Arrangement and method for recognizing gestures
CN106226777A (en) * 2016-08-17 2016-12-14 乐视控股(北京)有限公司 Infrared acquisition localization method and system
CN107525237A (en) * 2017-08-18 2017-12-29 青岛海尔空调器有限总公司 A kind of intelligent air conditioner control method and intelligent air conditioner
CN107561546A (en) * 2017-08-22 2018-01-09 广东美的制冷设备有限公司 Infrared detection method, infrared detecting device and air conditioner
CN107702278A (en) * 2017-09-11 2018-02-16 美的集团武汉制冷设备有限公司 Air-conditioning system, human body thermal source detection method and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102342081B1 (en) * 2015-04-22 2021-12-23 삼성디스플레이 주식회사 Multimedia device and method for driving the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5637040A (en) * 1995-04-13 1997-06-10 Samsung Electronics Co., Ltd. Infrared object detector
CN102022806A (en) * 2009-09-09 2011-04-20 日立空调·家用电器株式会社 Air conditioner
AT15034U1 (en) * 2013-04-26 2016-11-15 Zumtobel Lighting Gmbh Arrangement and method for recognizing gestures
CN106226777A (en) * 2016-08-17 2016-12-14 乐视控股(北京)有限公司 Infrared acquisition localization method and system
CN107525237A (en) * 2017-08-18 2017-12-29 青岛海尔空调器有限总公司 A kind of intelligent air conditioner control method and intelligent air conditioner
CN107561546A (en) * 2017-08-22 2018-01-09 广东美的制冷设备有限公司 Infrared detection method, infrared detecting device and air conditioner
CN107702278A (en) * 2017-09-11 2018-02-16 美的集团武汉制冷设备有限公司 Air-conditioning system, human body thermal source detection method and computer-readable recording medium

Also Published As

Publication number Publication date
CN108489049A (en) 2018-09-04

Similar Documents

Publication Publication Date Title
US9170095B1 (en) Distance detection device and method including dynamically adjusted frame rate
US20180146045A1 (en) Method and apparatus for controlling peripheral device
US9143954B2 (en) Position identification apparatus, position identification method, position identification system, recording medium, air conditioning system, and lighting system
CN104335064B (en) The trilateration improved processes
CN111182579B (en) Positioning measurement information reporting method, terminal and network equipment
CN108489049B (en) Infrared distance detection method for air conditioner, air conditioner and computer storage medium
US9485626B2 (en) Building floor determination for a location based service
CN109089156B (en) Sound effect adjusting method and device and terminal
CN110057039B (en) Air conditioner, control method thereof, terminal and computer readable storage medium
CN103237347A (en) Terminal positioning method and device
WO2018216088A1 (en) Human position detection device, human position detection system, human position detection method, and program
US9320004B2 (en) Communication apparatus, control method for communication apparatus, and storage medium storing program
CN108895603B (en) Air supply equipment, air supply control method and device thereof and readable storage medium
Obreja et al. Evaluation of an indoor localization solution based on bluetooth low energy beacons
CN114501119B (en) Interactive display method, device, electronic equipment, system and storage medium
CN108810614B (en) Volume adjustment method, system and readable storage medium
CN107784298B (en) Identification method and device
CN108605310B (en) Method and device for adjusting positioning period
EP3959834B1 (en) Method for adjusting length of golay sequence for object recognition and electronic device therefor
CN110031860B (en) Laser ranging method and device and mobile terminal
US20170115161A1 (en) Measuring device, measuring method, and programs therefor
US20180139717A1 (en) Apparatus and method for assessing a relative distance of persons and objects
CN110136424B (en) Equipment control method and equipment
CN104767947A (en) Electronic device controlled by radio frequency remote controller
CN109727191B (en) Image processing method and mobile terminal

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