Disclosure of Invention
The invention provides a control method of an air deflector, which aims to solve the technical problem that the air deflector cannot be closed when the driving voltage of an air deflector driving motor is too low in the existing control method of the air conditioner air deflector.
In order to realize the purpose of the invention, the invention is realized by adopting the following technical scheme:
a control method of an air deflector comprises the following steps:
initializing, namely determining the driving voltage pulse time of the air deflector driving motor as a first driving voltage pulse time;
and controlling the air deflector to act, namely controlling a driving motor to drive the air deflector to act according to the pulse time of the first driving voltage.
Further, the initializing step includes:
controlling the air deflector to drive the motor to operate within a set pulse time;
detecting the running current of the air deflector driving motor;
detecting a changing state of the operating current, comprising: and when the running current is in a changing state, comparing the running current with a set threshold, if the running current is not less than the set threshold, controlling the air deflector to drive the motor to stop rotating, taking the current driving voltage pulse time as the first driving voltage pulse time, and when the running current is in an unchanging state, increasing the driving voltage pulse time of the air deflector to drive the motor, and returning to the step of detecting the changing state of the running current.
Further, the initialization step further comprises the step of detecting the currently executed action of the air deflector, and the step of detecting the change state of the operating current is executed when the air deflector currently executes the uplink action.
Further, when the air deflector currently executes a downward motion, the operating current is compared with a first threshold value, and when the operating current is not less than the first threshold value, the air deflector is controlled to drive the motor to stop rotating.
Further, the step of controlling the action of the air deflector further comprises detecting a power on/off control command, and when the received control command corresponds to the uplink action of the air deflector, the method comprises the following steps:
controlling the air deflector driving motor to operate in the first driving voltage pulse time;
detecting the running current of the air deflector driving motor;
and comparing the running current with a set threshold, and controlling the air deflector to drive the motor to stop rotating if the running current is not less than the set threshold.
Further, when the received control command is a power-on command and corresponds to a downlink motion of the air deflector in the step of controlling the motion of the air deflector, the method further comprises the step of further judging a free swing set state of the air deflector, and if the air deflector is set to swing freely, the method comprises the following steps:
(11) controlling the air deflector driving motor to operate in the first driving voltage pulse time;
(12) detecting the position of the air guide plate, judging whether the air guide plate reaches a first standard position, and controlling the air guide plate to drive the motor to reversely rotate and rotate in a second driving voltage pulse time if the air guide plate reaches the first standard position;
and (5) when the air deflector reaches the second standard position, controlling the operation direction of the air deflector driving motor to be reversed again, and returning to the step (11).
Further, the height of the first standard position is higher than the height of the second standard position.
Further, in the step of determining whether the air deflector reaches the first standard position in the step (12), if the air deflector does not reach the first standard position, the method further includes a step of determining whether the operating current is decreased, and when the operating current is continuously decreased for a set time, the driving voltage pulse time of the air deflector driving motor is reduced, and the method returns to the step (12).
Further, if the air deflector is not set to swing freely in the step of controlling the action of the air deflector, the in-place control of the air deflector comprises the following steps:
controlling the air deflector driving motor to execute starting operation according to the pulse time of the second driving voltage;
detecting the running current of the air deflector driving motor;
comparing the running current with a first threshold, and if the running current is not less than the first threshold, controlling the air deflector to drive the motor to run reversely and to run in a first driving voltage pulse time;
and judging whether the air deflector is in place or not, detecting the position of the air deflector, and controlling the air deflector to drive the motor to stop rotating when the air deflector reaches the target position.
Further, the step of controlling the air deflector in place further comprises: and when the air deflector does not reach the target position, judging whether the running current is reduced, if the running current is continuously reduced for a set time, reducing the driving voltage pulse time of the air deflector driving motor, and returning to the step of judging whether the air deflector is in place.
The invention also provides an air conditioner which comprises an air deflector, an air deflector driving motor and a controller, wherein the air deflector is controlled to operate according to the air deflector control method recorded in any one of the preceding claims.
Compared with the prior art, the invention has the advantages and positive effects that: according to the control method of the air deflector, the first driving voltage pulse time is determined in the initialization step, the pulse time is the pulse time of the air deflector with different weights, and under the condition that the driving motor drives different working voltages, sufficient torque can be provided for the air deflector.
Other features and advantages of the present invention will become more apparent from the following detailed description of the invention when taken in conjunction with the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and examples.
It should be noted that in the description of the present invention, the terms of direction or positional relationship indicated by the terms "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are merely for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In an embodiment, a first air deflector is disposed at an air outlet of an air conditioner, and plays a role of guiding air when the air conditioner is in operation, and the first air deflector is closed during non-operation of the air conditioner to plug the air outlet, so as to play a role of dust prevention, and this embodiment provides a method for controlling an air deflector, as shown in fig. 1, including the following steps:
initializing, namely determining the driving voltage pulse time of the air deflector driving motor as a first driving voltage pulse time;
the initialization step may be performed once after each power-on, and in order to prevent resource waste caused by calculation of the first driving voltage pulse time during each power-on, it is preferable that before the initialization step, when the power-on is started, the method further includes a step of determining whether the air conditioner is powered on for the first time, and when it is determined that the power-on is performed for the first time, the initialization step is performed once, otherwise, the initialization step is not performed.
The driving motor in this embodiment is implemented by a stepping motor, which is an actuator that converts an electrical pulse into an angular displacement. When the step driver receives a pulse signal, it drives the step motor to rotate a fixed angle according to the set direction, and can control the rotating speed and acceleration of the motor by controlling the voltage pulse time, thus achieving the purpose of speed regulation and positioning. The longer the voltage pulse time is, the smaller the rotating speed of the motor is, and the larger the torque correspondingly acts on the air deflector, namely the characteristic that the voltage pulse time is prolonged and the torque is increased is utilized, so that the problem that the motor is locked up when the torque is insufficient due to the fact that the voltage is small can be solved.
In this embodiment, after the air conditioner is powered on and operated, the air deflector driving motor drives the air deflector to rotate, the resistance of the rotation of the air deflector is the load of the air deflector, the load is large when the resistance is large, the load is small when the resistance is small, and the load and the current of the load are in a direct proportion relation. When the working voltage of the air deflector driving motor meets the requirement, under the constant working voltage, when the air deflector normally rotates, the rotating speed is constant, the resistance is constant, when the working voltage is not constant, the lower the voltage is, the smaller the moment of the stepping motor under the condition of the same pulse number is, and when the actual operation is caused, the guide plate is out of step, the swing amplitude cannot reach the preset value, even the situation that the driving motor is locked up due to insufficient moment (because the air deflector is not in place, the air deflector driving motor continuously rotates, and simultaneously because the moment is insufficient, the air deflector does not move). In order to cope with the situation that the working voltage of the air deflector driving motor is not constant, the scheme firstly determines the driving voltage pulse time of the air deflector driving motor, namely the first driving voltage pulse time in the initialization step, the first driving voltage pulse time is determined according to the principle that when the air deflector is not in place (completely opened or closed), the first driving motor can provide enough torque for the air deflector so as to drive the air deflector to continue to rotate until the air deflector is in place, and the first driving voltage pulse time is changed along with the self weight and the driving voltage value of the air deflector, so that the action of finally controlling the air deflector is not interfered by any external factors.
According to the scheme, the weight of the air deflector is taken into consideration in the determination process of the first driving voltage pulse time, so that the method can be suitable for air conditioners of any type and any air deflector, control parameters or threshold values do not need to be respectively debugged, and the applicability is particularly strong.
And after the first driving voltage pulse time is determined, controlling the air deflector to act, and controlling the driving motor to drive the air deflector to act according to the first driving voltage pulse time.
As a preferred embodiment, as shown in fig. 2, the initialization step includes:
controlling the air deflector to drive the motor to operate within a set pulse time; the set pulse time can be determined in an experimental manner according to the selected type of the driving motor and the air deflector, and the set pulse time is directly written into a memory of the air conditioner before the air conditioner leaves a factory, and the set pulse time stored in the memory is directly called when the air conditioner is used. The set pulse time is only an initial value, the finally determined first driving voltage pulse time may be equal to or not equal to the set pulse time, and further judgment and determination are needed in subsequent steps, so that an initial value which can be basically suitable for all models can be written in the set pulse time, and the setting mode can be further simplified in the scheme compared with the conventional scheme.
Detecting the running current of the air deflector driving motor; since the operating current of the air deflector driving motor reflects the load condition, the operating state of the air deflector needs to be judged by detecting the operating current in the subsequent steps.
Detecting a changing state of the operating current, comprising: and when the running current is in a changing state, comparing the running current with a set threshold, if the running current is not less than the set threshold, controlling the air deflector to drive the motor to stop rotating, taking the current driving voltage pulse time as the first driving voltage pulse time, and when the running current is in an unchanging state, increasing the driving voltage pulse time of the air deflector to drive the motor, and returning to the step of detecting the changing state of the running current. The resistance of the rotation of the air deflector is the load, when the air deflector normally rotates, the load is only influenced by gravity, the change of the running current of the air deflector is reflected along with the change of the gravity center, but the change rule is different along with whether the air deflector is over a balance point, which is reflected in that the current is increased sometimes and the current is reduced sometimes. When the air deflector is in place, the load is increased due to the limitation of the limiting mechanism, the corresponding operating current is increased, the operating current is correspondingly increased to a certain value along with the accumulation of the duration, and the air deflector is considered to be in place by judging that the operating current is not less than a set threshold value, so that the air deflector is controlled to drive the motor to stop rotating, and meanwhile, the current driving voltage pulse time can provide enough torque for the air deflector to enable the air deflector to be in place, so that the current driving voltage pulse time is taken as the first driving voltage pulse time. When the operation current is in a constant state, a locked-rotor condition possibly occurs, namely the moment is not enough to drive the air deflector to be in place, the pulse time of the driving voltage of the air deflector driving motor is increased, and the step of detecting the change state of the operation current is returned. Increasing the driving voltage pulse time of the air deflector driving motor, namely increasing the torque of the driving motor, then returning to the step of detecting the change state of the running current, judging whether the running current changes at the moment, and continuing to judge according to a normal program. The time for increasing the driving voltage pulse can be increased for multiple times, the step length of each increase can be set, however, the increased driving voltage pulse time has an upper limit value, when the upper limit value is reached, the running current still cannot be changed, the air deflector is indicated to have a fault, and the fault can be reported for processing.
The action directions of the air deflector comprise a descending motion and an ascending motion, the action direction of the ascending motion is from bottom to top, the action direction of the descending motion is from top to bottom, according to the specific assembly mode of the air deflector, the air outlet can be opened or closed during the descending motion, correspondingly, the air outlet can be closed or opened during the ascending motion, the required moments in different motion directions are different under the influence of the gravity of the air deflector, therefore, the scheme is further optimized, and different controls are respectively executed on two conditions.
The initialization step also comprises the step of detecting the currently executed action direction of the air deflector, and the step of detecting the change state of the running current is executed when the air deflector currently executes the uplink action. The air deflector runs upwards when executing the ascending action, the gravity of the air deflector needs to be overcome at the same time, and the required torque is the largest, so that the step of detecting the change state of the running current is executed only when the air deflector currently executes the ascending action, namely the first driving voltage pulse time is determined only when the air deflector currently executes the ascending action, so that the determined driving voltage pulse time is ensured to be large enough, and the provided torque can meet the requirement when the air deflector needs to overcome the gravity of the air deflector during running.
When the air deflector performs a descending action currently, the action of doing work is not required to be overcome, the rotating force required to be provided by the driving motor is small, the current is increased when the air deflector is in place, the operation current is only required to be compared with a first threshold value, when the operation current is not less than the first threshold value, the air deflector is in place, and the air deflector is controlled to drive the motor to stop rotating. It will be appreciated that the drive motor performs less work in this case, and therefore the first threshold is less than the set threshold.
The operation of controlling the air deflector is performed after the initialization step, the control panel receives control from a remote controller or a control panel, the control includes power-on control and power-off control, and the two control modes completely differ the rotation directions executed by the air deflector, so as to further optimize the scheme, the operation step of controlling the air deflector further includes detecting a switch control command, as shown in fig. 3, when the received control command corresponds to the uplink operation of the air deflector, the method includes:
controlling the air deflector to drive the motor to run in a first driving voltage pulse time; as mentioned above, the wind deflector is required to overcome the gravity of the wind deflector when ascending, so that a larger torque is required to be provided, and the first driving voltage pulse operation can ensure that a sufficient torque is provided for the wind deflector.
Detecting the running current of the air deflector driving motor;
and comparing the running current with a set threshold, and controlling the air deflector to drive the motor to stop rotating if the running current is not less than the set threshold. The step is used for judging whether the air deflector is in place when closing is executed. When the running current is not less than the set threshold value, the running current is judged to be in place, and the air deflector is controlled to drive the motor to stop rotating.
In this embodiment, the air outlet is closed by the upward movement of the air guiding plate and opened by the downward movement of the air guiding plate.
In the step of controlling the action of the air deflector, when the received control command is a start-up and corresponds to a downlink action of the air deflector, the method further comprises the step of further judging a free swing set state of the air deflector, and if the air deflector is set to swing freely, the method comprises the following steps:
s11, controlling the air deflector to drive the motor to run in a first driving voltage pulse time; in the scheme, the air deflector moves upwards to correspondingly close the air outlet, and moves downwards to correspondingly open the air outlet, so that the air deflector is firstly carried upwards in the first driving voltage pulse time, namely, the air deflector is firstly closed, the aim of determining a reference position for the air deflector is fulfilled, and inaccurate step number control caused by the reasons of loss of steps of the motor and the like is prevented. Because the wind deflector runs upwards, the gravity of the wind deflector needs to be overcome, the required moment is large, and therefore the wind deflector runs in the first driving voltage pulse time.
S12, detecting the position of the air deflector, judging whether the air deflector reaches the first standard position, if the air deflector reaches the first standard position, controlling the air deflector to drive the motor to reversely rotate, namely converting the operation into a descending operation, and operating in a second driving voltage pulse time without overcoming the gravity of the air deflector; in this embodiment, the first standard position is also the upper limit position of the air deflector in the automatic swing mode.
When the air deflector reaches the second standard position, the operation direction of the air deflector driving motor is controlled to be reversed again, and the step S11 is returned. The second standard position is a lower limit position when the air deflector is in the automatic swinging mode. Through the control, the air deflector can swing back and forth between the first standard position and the second standard position.
Since the first standard position is the maximum position when the air deflector swings upward, the height of the first standard position is higher than that of the second standard position.
In the ascending operation of the air deflector, although the gravity of the air deflector needs to be overcome in the operation process, because the air deflector is pivoted at the air outlet and has a balance point in the ascending operation, the required moment is gradually increased before the air deflector reaches the balance point, the corresponding operation current is gradually increased, the required moment is gradually reduced after the air deflector passes the balance point, and the corresponding operation current is reduced, therefore, after the air deflector passes the balance point and before the air deflector reaches the first standard position, the large moment is not needed, in order to save energy consumption, the driving voltage pulse time can be correspondingly reduced, therefore, in the step of judging whether the air deflector reaches the first standard position in the step of S12, if the air deflector does not reach the first standard position, the step of judging whether the operation current is reduced is also included, when the operation current continuously reduces the setting time, the driving voltage pulse time of the air deflector driving motor is reduced, and returns to step S12 to continue the determination.
If the air deflector is not set to swing freely in the step of controlling the action of the air deflector, namely only can be opened normally, a default opening angle or a set opening angle is provided under the general condition, and at the moment, the air deflector only needs to be controlled in place to reach the position of the opening angle, and the method comprises the following steps:
controlling the air deflector driving motor to execute starting operation within the pulse time of the second driving voltage; as mentioned above, the turn-on operation in this embodiment is a down operation, and does not need to overcome gravity, and therefore, the turn-on operation is performed with a small second driving voltage pulse time.
Detecting the running current of the air deflector driving motor;
comparing the running current with a first threshold, and if the running current is not less than the first threshold, controlling the air deflector to drive the motor to run reversely and to run in a first driving voltage pulse time; if the running current is not less than the first threshold value, it is indicated that the air deflector runs in place in the downward direction, that is, is completely started, so as to provide a reference starting position for the air deflector, prevent the problem of inaccurate step counting caused by step loss, rotation blockage and the like, and then drive the motor to run in the reverse direction, that is, start running to the target position by taking the current position as the starting position.
And judging whether the air deflector is in place or not, detecting the position of the air deflector, and controlling the air deflector to drive the motor to stop rotating when the air deflector reaches the target position. Because the air deflector is firstly operated to the maximum opening position in the front, the reference is provided for the air deflector, and therefore, the air deflector is controlled to operate to the target position only by the step number, the operation is accurate, the control is simple, and certainly, the control can also be carried out by a proximity sensor and the like, and the air deflector and the control method belong to the protection range of the patent.
The step of controlling the air deflector in place further comprises the following steps: and when the air deflector does not reach the target position, judging whether the running current is reduced, if the running current is continuously reduced for a set time, reducing the driving voltage pulse time of the air deflector driving motor, and returning to the step of judging whether the air deflector is in place. Because the air deflector has a balance point during upward operation, the required torque is gradually increased and the corresponding operating current is gradually increased before the air deflector reaches the balance point, and the required torque is gradually reduced and the corresponding operating current is reduced after the air deflector passes the balance point, so that the large torque is not needed after the air deflector passes the balance point and before the air deflector reaches a target position, and the driving voltage pulse time can be correspondingly reduced in order to save energy consumption.
In a second embodiment, as shown in fig. 4, the present embodiment provides an air conditioner, which includes an air guiding plate 11, an air guiding plate driving motor 12, and a controller (not shown in the drawings for reasons of angle), where the air guiding plate is pivoted at an air outlet 13 of a casing, and the air guiding plate is controlled to operate according to the air guiding plate control method described in the first embodiment.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions.