Disclosure of Invention
The invention solves the problems that the position detection scheme of the existing air conditioner external unit cannot execute detection under the condition that the air conditioner is stopped, and higher safety risk exists.
In order to solve the above problems, the present invention provides a device for bidirectionally detecting the position of an air conditioner external unit, which comprises an acceleration sensor and a controller; the controller comprises a control module, a power supply module, an operational amplifier, a triode and a relay; the output end of the acceleration sensor is respectively connected with the control module and an external machine controller of the air conditioner, and the external machine controller of the air conditioner supplies power to the acceleration sensor; the power supply module is respectively connected with the control module and the operational amplifier, is connected with the acceleration sensor through the relay and is used for supplying power to the control module, the operational amplifier and the acceleration sensor; the inverting input end of the operational amplifier is connected to a power supply circuit between an external machine controller of the air conditioner and the acceleration sensor, and the non-inverting input end of the operational amplifier is grounded; the output end of the operational amplifier is connected with the base electrode of the triode, the emitting electrode of the triode is grounded, and the collecting electrode of the triode is connected with the control end of the relay; the acceleration sensor is fixedly arranged in the air conditioner external machine.
The device for bidirectionally detecting the position of the air conditioner outdoor unit provided by the embodiment of the invention can respectively supply power to the acceleration sensor through the outdoor unit controller and the power supply module, and under the condition that the air conditioner stops running, the controller can collect power supply voltage and control the power supply module to supply power to the acceleration sensor, so that the position of the air conditioner can be bidirectionally detected, the abnormal position information of the outdoor unit can be accurately detected, the probability that the air conditioner outdoor unit falls from high altitude is reduced, the service life of the air conditioner outdoor unit is prolonged, and the loss of lives and properties is effectively avoided.
Optionally, the control module is wirelessly connected with the mobile terminal; the control module is used for receiving the acceleration information and the inclination angle information output by the acceleration sensor and sending the acceleration information and the inclination angle information to the mobile terminal.
The embodiment of the invention can send the position information to the mobile terminal, and the user can check the information at the mobile terminal and process the information in time.
Optionally, the power supply terminal of the operational amplifier is connected to the power supply module, and the ground terminal of the operational amplifier is grounded.
Optionally, the non-inverting input terminal of the operational amplifier is grounded through the resistor.
In the embodiment of the invention, whether the external machine controller supplies power to the acceleration sensor can be determined through the operational amplifier so as to control the power supply module to supply power to the acceleration sensor, and the position monitoring can still be carried out under the condition that the air conditioner stops running.
Optionally, the acceleration sensor is fixedly mounted on a casing of the outdoor unit of the air conditioner.
The embodiment of the invention can ensure the acceleration sensor and the air conditioner external unit to move synchronously, and improve the accuracy of the acceleration sensor in measuring the position information.
Optionally, an air hole is formed in the position, close to the acceleration sensor, of the housing, and an air hole is formed in the position, at the same height as the air hole, of the air isolating vertical plate.
The embodiment of the invention can ensure that the acceleration sensor can fully dissipate heat and prolong the service life of the acceleration sensor.
Optionally, the acceleration sensor is a six-axis acceleration sensor.
Optionally, the control module is an MCU.
The invention provides a method for bidirectionally detecting the position of an air conditioner external unit, which is applied to the device for bidirectionally detecting the position of the air conditioner external unit and comprises the following steps: the acceleration sensor collects acceleration information and inclination angle information of the air conditioner outdoor unit and sends the acceleration information and the inclination angle information to the controller or an outdoor unit controller of the air conditioner; when the controller acquires that the voltage on a power supply line between an external machine controller of the air conditioner and the acceleration sensor is zero, the controller controls the power supply module to supply power to the acceleration sensor; and the controller sends the acceleration information and the inclination angle information to a mobile terminal.
The invention provides a computer-readable storage medium, in which a computer program is stored, which, when read and executed by a processor, implements the above-mentioned method.
The method for bidirectionally detecting the position of the air conditioner external unit and the computer readable storage medium can achieve the same technical effects as the device for bidirectionally detecting the position of the air conditioner external unit.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
The invention provides a device capable of bidirectionally detecting the position of an air conditioner outdoor unit, taking a household hanging machine as an example, and fig. 1 shows an installation schematic diagram of the device capable of bidirectionally detecting the position of the air conditioner outdoor unit. As shown in fig. 1, the acceleration sensor is fixedly installed in the air conditioner external unit.
Fig. 2 is a schematic diagram illustrating a logical structure of an apparatus for bidirectionally detecting a position of an outdoor unit of an air conditioner, according to an embodiment of the present invention, the apparatus including an acceleration sensor and a controller.
As shown in fig. 2, the controller includes a control module, a power module, an operational amplifier U1, a transistor U2, and a relay RY1.
The output end of the acceleration sensor is connected with the control module and the outer machine controller of the air conditioner respectively, and the outer machine controller of the air conditioner can supply power to the acceleration sensor under the condition that the air conditioner runs.
The power module is connected with the control module and the operational amplifier U1 respectively, and is connected with the acceleration sensor through the relay RY1, and the power module can supply power to the control module, the operational amplifier U1 and the acceleration sensor. It should be noted that, the power module can still supply power to the above elements when the air conditioner stops operating, so as to ensure that the acceleration sensor continuously monitors the position information of the external unit. Under the condition that the air conditioner runs and stops running, power supply can be kept, and the purpose of bidirectionally detecting the position of an air conditioner external unit is achieved.
The inverting input end of the operational amplifier U1 is connected to a power supply line between an external machine controller of the air conditioner and the acceleration sensor, and the non-inverting input end of the operational amplifier U1 is grounded. The output end of the operational amplifier U1 is connected with the base electrode of the triode U2, the emitting electrode of the triode U2 is grounded, and the collecting electrode of the triode U2 is connected with the control end of the relay RY1.
The operational amplifier U1 can detect the voltage of the power supply of the external machine controller to the acceleration sensor, if the voltage is zero, a signal is output to control the triode U2 to be not conducted, in this case, the relay RY1 does not act, and the power supply module can supply power to the acceleration sensor; if the voltage is not zero (the outer machine controller supplies power to the acceleration sensor), a signal is output to control the conduction of the triode U2, in this case, the relay RY1 is disconnected, and the power module does not supply power to the acceleration sensor. The relay RY1 is illustratively a normally closed relay.
The acceleration sensor is fixedly arranged in the air conditioner external machine. If the air conditioner outdoor unit moves or inclines, the acceleration sensor moves or inclines along with the air conditioner outdoor unit, and the current movement acceleration or inclination angle can be acquired, so that the abnormal position information of the outdoor unit can be acquired.
The device of outer quick-witted position of bidirectional detection air conditioner that this embodiment provided can supply power to acceleration sensor respectively through outer quick-witted controller and power module, under the condition of air conditioner out of service, the controller can gather supply voltage and control power module and supply power to acceleration sensor, realizes bidirectional detection air conditioner position to the outer machine abnormal position information of accurate detection, the probability that the outer machine of reduction air conditioner falls from the high altitude, improve the outer machine's of air conditioner life, effectively avoid the loss of lives and property.
Fig. 2 also shows that the control module is connected with the mobile terminal, for example, by wireless communication, and after receiving the acceleration information and the inclination angle information output by the acceleration sensor, the control module can send the acceleration information and the inclination angle information to the mobile terminal. The user can check the information at the mobile terminal and timely make treatment.
As shown in fig. 2, the power supply terminal of the operational amplifier is connected to the power supply module, the ground terminal of the operational amplifier is grounded, and further, the non-inverting input terminal of the operational amplifier is grounded through a resistor R1. The operational amplifier may compare the power supply voltage output by the outer unit controller with the ground voltage to determine whether the outer unit controller is supplying power to the acceleration sensor.
In consideration of improving the accuracy of the acceleration sensor in measuring the position information, the acceleration sensor can be fixedly arranged on the shell of the air conditioner outdoor unit, and the acceleration sensor and the air conditioner outdoor unit are ensured to move synchronously.
In order to facilitate the heat dissipation of the acceleration sensor during working, an air hole is formed in the position, close to the acceleration sensor, of the shell, and an air hole is formed in the position, on the air isolating vertical plate, of the same height as the air hole.
The acceleration sensor can be arranged in a cavity at the side where the outer machine controller is arranged, and is fixed on an outer machine sheet metal by using screws. As shown in fig. 1, an acceleration sensor is fixed to the housing 10, and a vent hole 102 is provided near the acceleration sensor. Because the wind-isolating vertical plate is arranged between the fan and the acceleration sensor, in order to improve the heat dissipation efficiency, the ventilation hole 101 can be formed in the position, at the same height as the ventilation hole, of the wind-isolating vertical plate. Illustratively, the vent 101 may be a louvered vent. Based on above-mentioned ventilation hole structure, make acceleration sensor can fully dispel the heat, prolong acceleration sensor's life.
The acceleration sensor is, for example, a six-axis acceleration sensor (model ADXL 345).
Illustratively, the control module is an MCU (micro controller Unit).
Fig. 2 also shows an external unit controller, an internal unit controller, a buzzer and a nixie tube of the air conditioner. The outer machine controller is used for controlling the fan and the compressor, and the inner machine controller is used for controlling the buzzer and the nixie tube. The outer machine controller is also in communication connection with the upper computer.
When the air conditioner is operated and the position of the outdoor unit is not obviously changed, the acceleration sensor can send normal position information to the outdoor unit controller through A/D conversion. Then, the outer machine controller transmits corresponding information to the inner machine controller through zero-fire communication, and simultaneously, the outer machine controller transmits position information to the upper computer through 485 communication. And the software of the upper computer can display the position information of the outer machine in real time.
After the inner machine controller receives the correct information, no command is sent out, and the nixie tube still displays the normal temperature. When the position of the outer machine obviously moves or the inclination degree of the outer machine is large, the six-axis acceleration sensor can transmit abnormal position information on X, Y and Z axes to the outer machine controller through A/D conversion, then the outer machine controller transmits corresponding abnormal information to the inner machine controller through zero-fire communication, meanwhile, the outer machine controller transmits the abnormal position information to an upper computer through 485 communication, and abnormal position information of the outer machine and corresponding faults are displayed on upper computer software. The internal machine controller sends out corresponding commands to the nixie tube and the buzzer, the nixie tube displays corresponding error codes (such as 5F), and the buzzer gives an alarm.
The inner machine controller respectively sends corresponding commands to the outer machine controller and the inner fan to control the outer machine and the inner fan to stop working. At the moment, the external machine controller supplies power to the acceleration sensor, the operational amplifier U1 transmits a voltage signal to the triode U2, the triode U2 is conducted, the relay RY1 is disconnected, the power supply module stops supplying power to the acceleration sensor, and only the MCU and the operational amplifier U1 are supplied with power. Meanwhile, the MCU keeps a standby state and does not send any information to the outside.
When the air conditioner stops working, the voltage detected by the operational amplifier U1 is 0, the triode U2 is not conducted, the relay RY1 does not act, the power supply module supplies power to the acceleration sensor, the MCU and the operational amplifier U1 at the same time, the acceleration sensor transmits the position information of the external unit to the MCU through A/D conversion, and the MCU transmits the information to the mobile terminal (such as a mobile phone) through wireless communication so as to remind a user of corresponding operation.
The device for bidirectionally detecting the position of the outdoor unit can accurately detect the information of the abnormal position of the outdoor unit, greatly reduce the occurrence of safety accidents (fire and explosion), effectively avoid property loss, reduce the probability of falling of the outdoor unit of the air conditioner from high altitude, and greatly prolong the service life of the outdoor unit of the air conditioner. The controller and the acceleration sensor used by the device for bidirectionally detecting the position of the external machine have good sealing performance, good ventilation effect and longer service life.
Fig. 3 is a schematic flowchart of a method for bidirectionally detecting a position of an external unit of an air conditioner according to an embodiment of the present invention, where the method is applied to the apparatus for bidirectionally detecting a position of an external unit of an air conditioner, and the method includes the following steps:
and S302, the acceleration sensor collects acceleration information and inclination angle information of the air conditioner outdoor unit and sends the acceleration information and the inclination angle information to the controller or an outdoor unit controller of the air conditioner.
And S304, when the controller acquires that the voltage on a power supply line between an external machine controller of the air conditioner and the acceleration sensor is zero, controlling the power supply module to supply power to the acceleration sensor.
And S306, the controller sends the acceleration information and the inclination angle information to the mobile terminal.
According to the method for bidirectionally detecting the position of the air conditioner outdoor unit, the controller can collect the power supply voltage and control the power supply module to supply power to the acceleration sensor under the condition that the air conditioner stops running, so that the position of the air conditioner can be bidirectionally detected, the abnormal position information of the outdoor unit can be accurately detected, the probability of falling of the air conditioner outdoor unit from high altitude can be reduced, the service life of the air conditioner outdoor unit can be prolonged, and the loss of lives and properties can be effectively avoided.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is read and executed by a processor, the method provided in the foregoing embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Of course, those skilled in the art can understand that all or part of the processes in the methods according to the above embodiments may be implemented by instructing a control device to implement the methods according to the above embodiments by a computer, and the program may be stored in a computer-readable storage medium, and when executed, the program may include the processes according to the above method embodiments, where the storage medium may be a memory, a magnetic disk, an optical disk, or the like.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The PFC circuit and the outdoor unit of the air conditioner disclosed in the embodiments correspond to the current sampling method of the PFC circuit disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected by one skilled in the art without departing from the spirit and scope of the invention, as defined in the appended claims.