Control method, control valve, water softening system, water treatment equipment and medium

By using Hall elements as sensor elements in the control valve, combined with reference rotation position calibration and target gear control methods, the problem of degradation of control valve accuracy in water wading environments is solved, and higher stability and reliability are achieved.

CN120042965APending Publication Date: 2025-05-27FOSHAN SHUNDE MIDEA WATER DISPENSER MFG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510207365.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

The sensing elements of the control valve are prone to aging or detection errors in the wading environment, resulting in a decrease in control accuracy.

Method used

Using the Hall element as the sensing element, the target gear and the target Hall element are calibrated by calibrating the reference rotation position of the first gear and the second gear, and determining the target gear and the target Hall element according to the working position of the valve core, the target gear is controlled using the trigger signal of the target Hall element to ensure the accurate movement of the valve core.

Benefits of technology

It effectively ensures the control accuracy of the control valve, is not easily affected by the water wading environment, and improves the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120042965A_ABST
    Figure CN120042965A_ABST
Patent Text Reader

Abstract

The invention provides a control method, a control valve, a water softening system, water treatment equipment and a medium. The method comprises the steps that in response to an instruction for controlling a valve element to be switched from a first working position to a second working position, reference rotation position calibration is conducted on a first gear and a second gear; determining a target gear according to the first working position and the second working position, wherein the target gear is one of the first gear and the second gear; determining a target Hall element from a Hall array corresponding to the target gear according to the second working position; and the target gear is controlled according to the trigger signal of the target Hall element so as to drive the valve element to move to the second working position. Based on the scheme, the control accuracy of the control valve can be effectively ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of control technology, and more specifically, to a control method, a control valve, a soft water system, a water treatment device and a medium in the field of control valve technology. Background Art

[0002] For some systems or equipment capable of water treatment, the control valves provided therein can be used to control the operation of the systems or equipment. However, the sensing elements of the control valves may be affected by the water environment and age faster or detect errors, which may lead to a decrease in the control accuracy of the control valves. Summary of the invention

[0003] The present invention application provides a control method, a control valve, a soft water system, a water treatment device and a medium, and the method can effectively ensure the accuracy of the control of the control valve.

[0004] In a first aspect, a control method is provided, which is applied to a control valve, wherein the control valve includes a valve core, a first gear driving the valve core to move along a first axis direction, a second gear driving the valve core to move along a second axis direction, a Hall array corresponding to the first gear, and a Hall array corresponding to the second gear; the method includes:

[0005] In response to an instruction for the control valve core to switch from the first working position to the second working position, the first gear and the second gear are calibrated for a reference rotation position respectively;

[0006] Determine a target gear according to the first working position and the second working position, the target gear being one of the first gear and the second gear;

[0007] According to the second working position, determining a target Hall element from a Hall array corresponding to the target gear;

[0008] The target gear is controlled according to the trigger signal of the target Hall element to drive the valve core to move to the second working position.

[0009] In combination with the first aspect, in some possible implementations, the first gear and the second gear are calibrated for a reference rotation position respectively, including: if a trigger signal of a first reference Hall element in the Hall array corresponding to the first gear is detected, the reference rotation position calibration of the first gear is terminated; if the trigger signal of the first reference Hall element is not detected, the first gear is controlled to rotate, and the reference rotation position calibration of the first gear is terminated when the trigger signal of the first reference Hall element is detected; if a trigger signal of a second reference Hall element in the Hall array corresponding to the second gear is detected, the reference rotation position calibration of the second gear is terminated; if the trigger signal of the second reference Hall element is not detected, the second gear is controlled to rotate, and the reference rotation position calibration of the second gear is terminated when the trigger signal of the second reference Hall element is detected; the trigger signal of the first reference Hall element is triggered when the first gear is in the corresponding reference rotation position, and the trigger signal of the second reference Hall element is triggered when the second gear is in the corresponding reference rotation position.

[0010] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the target gear is determined according to the first working position and the second working position, including: determining the target movement direction of the valve core according to the first working position and the second working position; if the target movement direction is the first axis direction, the first gear is determined as the target gear; if the target movement direction is the second axis direction, the second gear is determined as the target gear.

[0011] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, according to the second working position, the target Hall element is determined from the Hall array corresponding to the target gear, including: according to the second working position, determining the target rotation position corresponding to the target gear; according to the target rotation position corresponding to the target gear, determining the target Hall element in the Hall array corresponding to the target gear, and the trigger signal of the target Hall element is triggered when the target gear is in the corresponding target rotation position.

[0012] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the target gear is controlled according to the trigger signal of the target Hall element to drive the valve core to move to the second working position, including: obtaining the first trigger signal count reference value required for the process of the valve core moving from the first working position to the second working position; controlling the target gear to rotate to drive the valve core to move to the second working position; determining the first trigger signal count of the target Hall element during the rotation of the target gear according to the trigger signal of the target Hall element; when the first trigger signal count is equal to the first trigger signal count reference value, controlling the target gear to stop rotating to move the valve core to the second working position.

[0013] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the target gear is controlled according to the trigger signal of the target Hall element to drive the valve core to move to the second working position, including: obtaining the second trigger signal count reference value and the third trigger signal count reference value required for the process of the valve core moving from the first working position to the second working position; controlling the target gear to rotate to drive the valve core to move to the second working position; determining the second trigger signal count of the target reference Hall element during the rotation of the target gear according to the trigger signal of the target reference Hall element in the Hall array corresponding to the target gear; after the second trigger signal count is equal to the second trigger signal count reference value, determining the third trigger signal count of the target Hall element during the rotation of the target gear according to the trigger signal of the target Hall element; when the third trigger signal count is equal to the third trigger signal count reference value, controlling the target gear to stop rotating to move the valve core to the second working position.

[0014] In a second aspect, a control valve is provided. The control valve is configured to perform the method in the first aspect or any possible implementation of the first aspect. The control valve includes:

[0015] Valve core;

[0016] A first gear, used for driving the valve core to move along the first axis direction;

[0017] A second gear, used for driving the valve core to move along the second axis direction;

[0018] The Hall array corresponding to the first gear;

[0019] The Hall array corresponding to the second gear;

[0020] A first magnetic member, used for triggering a Hall element in a Hall array corresponding to the first gear to generate a trigger signal;

[0021] The second magnetic member is used to trigger the Hall element in the Hall array corresponding to the second gear to generate a trigger signal.

[0022] In combination with the second aspect, in some possible implementations, the control valve also includes a fixing member, and the first magnetic member and the second magnetic member are arranged on the fixing member; the Hall array corresponding to the first gear is arranged on the first gear, and the Hall array corresponding to the second gear is arranged on the second gear.

[0023] In combination with the second aspect, in some possible implementations, the control valve also includes a fixing member, and the Hall array corresponding to the first gear and the Hall array corresponding to the second gear are arranged on the fixing member; the first magnetic member is arranged on the first gear, and the second magnetic member is arranged on the second gear.

[0024] In a third aspect, a soft water system is provided, characterized in that the soft water system comprises the control valve in the second aspect or any possible implementation of the second aspect.

[0025] In a fourth aspect, a water treatment device is provided, characterized in that the water treatment device comprises the control valve in the second aspect or any possible implementation of the second aspect.

[0026] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0027] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least: in response to the instruction to switch the control valve core from the first working position to the second working position, the reference rotation position of the first gear and the second gear is calibrated to ensure the accuracy of subsequent control. Then, according to the first working position and the second working position of the valve core, the target gear to be controlled is determined, and according to the second working position, the target Hall element serving as a signal reference is determined from the Hall array corresponding to the target gear. Finally, the target gear is controlled according to the trigger signal of the target Hall element to drive the valve core to accurately move to the second working position. Since the Hall element is not easily affected by the wading environment, the use of the Hall element as a sensing element and combined with the above-mentioned control method can effectively ensure the accuracy of the control valve control. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 It is a schematic diagram of the assembly of a control valve provided in an embodiment of the present invention;

[0030] Figure 2 It is an exploded schematic diagram of a control valve provided in an embodiment of the present invention;

[0031] Figure 3 It is a schematic diagram of the corresponding relationship between the reference Hall element and the magnetic member provided in the embodiment of the present invention;

[0032] Figure 4 It is a flow chart of a control method provided by an embodiment of the present invention;

[0033] Figure 5 It is a schematic diagram of a flow chart of a reference rotation position calibration provided by an embodiment of the present invention;

[0034] Figure 6 It is a schematic diagram of a process for determining a target gear provided by an embodiment of the present invention;

[0035] Figure 7 It is a schematic diagram of a process for determining a target Hall element provided by an embodiment of the present invention;

[0036] Figure 8 It is a schematic diagram of a flow chart of controlling a target gear provided by an embodiment of the present invention;

[0037] Fig. 9 It is a schematic diagram of a flow chart of controlling a target gear provided by an embodiment of the present invention;

[0038] Fig.10 It is a structural schematic diagram of a water purifier provided in an embodiment of the present invention.

[0039] Description of Figure Numbers:

[0040]

[0041] DETAILED DESCRIPTION

[0042] In order to make the features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be described clearly and completely in combination with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0043] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0044] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0045] The following are detailed descriptions respectively. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0046] For some systems or equipment that can perform water treatment, the control valves provided therein can be used to control the operation of the system or equipment. For example, the control valves in the soft water system can control the inflow and outflow of water, the start and stop of the regeneration cycle, etc. For another example, the control valves in some water treatment equipment can adjust the water flow rate, control the amount of liquid injected, etc.

[0047] The control valve often realizes its function by the cooperation of the valve core and the gear. Specifically, the valve core and the gear are movably connected, and the rotation of the gear drives the valve core to move, thereby realizing the opening, closing or adjustment function of the control valve. In the related technology, the control valve uses an infrared tube as a sensor element to detect the rotation of the gear. However, the infrared tube is prone to the following situations in a water environment: the infrared tube is a sensor element based on optical principles and ages quickly; the salt crystals in the water environment adhere to the infrared tube, causing the detection signal of the infrared tube to weaken or fail; the water environment easily causes the light-transmitting material of the infrared tube to age and discolor, such as yellowing, etc., causing the detection signal of the infrared tube to weaken or fail.

[0048] It can be seen that the sensor element of the control valve may be affected by the water environment and accelerate aging or detection errors, which may lead to a decrease in the control accuracy of the control valve.

[0049] In response to the above problems, the embodiment of the present invention application proposes a control valve that can detect the gear movement of the control valve based on the Hall element. Among them, the Hall element is not easily affected by the water environment, mainly based on its working principle and characteristics. The Hall element is a magnetic sensor based on the Hall effect, which relies on the magnetic field to detect the movement or position of an object, rather than the optical principle. Therefore, factors such as humidity and salt crystal adhesion in the water environment have little effect on the performance of the Hall element. The detection results of the Hall element are mainly affected by the change of the magnetic field, and the magnetic field has strong penetrability and is not easily affected by the environmental medium. In addition, the Hall element is usually encapsulated in a sealed structure, which further protects its internal circuit from the influence of the water environment. Therefore, compared with the infrared pair tube, the Hall element has higher stability and reliability in the water environment, and can more accurately detect the gear movement of the control valve.

[0050] The following combination Figure 1 - Figure 3 The structure of the control valve in the embodiment of the present invention is described.

[0051] In one embodiment, the control valve of the present invention may include:

[0052] Valve core;

[0053] A first gear, used for driving the valve core to move along the first axis direction;

[0054] A second gear, used for driving the valve core to move along the second axis direction;

[0055] The Hall array corresponding to the first gear;

[0056] The Hall array corresponding to the second gear;

[0057] A first magnetic member, used for triggering a Hall element in a Hall array corresponding to the first gear to generate a trigger signal;

[0058] The second magnetic member is used to trigger the Hall element in the Hall array corresponding to the second gear to generate a trigger signal.

[0059] Specifically, see Figure 1 and Figure 2 , Figure 1 It is a schematic diagram of the assembly of a control valve 8 provided in an embodiment of the present invention. Figure 2 It is an exploded schematic diagram of a control valve 8 provided in an embodiment of the present invention. The valve core 83 changes the flow state of the control valve 8 by moving. The control valve 8 may also include a valve seat, which is used to support the valve core 83 and provide a sealing surface. The valve core 83 has multiple working positions, and the working position of the valve core 83 refers to the different positions of the valve core 83 inside the control valve 8. These working positions determine the flow path and flow characteristics of the control valve 8. Taking the soft water system as an example, when the control valve 8 is used in the soft water system, when the valve core 83 of the control valve 8 enters different working positions, the soft water system will enter different working modes, such as regeneration mode, flushing mode or other operating modes.

[0060] The first gear 81 and the second gear 82 are movably connected to the valve core 83, respectively. When the first gear 81 rotates, the valve core 83 can be driven to move along the first axis direction, and when the second gear 82 rotates, the valve core 83 can be driven to move along the second axis direction. It can be understood that the rotation directions of the first gear 81 and the second gear 82 are opposite. Assuming that the rotation direction of the first gear 81 is clockwise, the rotation direction of the second gear 82 is counterclockwise; assuming that the rotation direction of the first gear 81 is counterclockwise, the rotation direction of the second gear 82 is clockwise.

[0061] Driving the valve core 83 to move along the first axis direction means that the valve core 83 is displaced in the first axis direction by the rotation of the first gear 81. Driving the valve core 83 to move along the second axis direction means that the valve core 83 is displaced in the second axis direction by the rotation of the second gear 82.

[0062] The Hall array 811 corresponding to the first gear refers to a set of Hall elements arranged inside the control valve 8 for detecting the movement of the first gear 81. The Hall element in the Hall array 811 corresponding to the first gear is referred to as the first Hall element 812 below. There are multiple first Hall elements 812, which are arranged inside the control valve 8 in a certain arrangement to detect the rotation position of the first gear 81. Correspondingly, the control valve 8 is also equipped with a first magnetic member 841, which is used to trigger the Hall element in the Hall array 811 corresponding to the first gear to generate a trigger signal. Specifically, when the first gear 81 rotates, relative movement occurs between the first magnetic member 841 and the first Hall element 812. When the distance between the first magnetic member 841 and the first Hall element 812 is close enough, the first Hall element 812 is triggered to generate an electrical signal (i.e., the trigger signal of the first Hall element 812). It can be understood that the trigger signal of the first Hall element 812 can be used to control the first gear 81.

[0063] Similarly, the Hall array 821 corresponding to the second gear refers to a set of Hall elements arranged inside the control valve 8 for detecting the movement of the second gear 82. The Hall elements in the Hall array 821 corresponding to the second gear are referred to as second Hall elements 822 below. There are multiple second Hall elements 822, which are arranged inside the control valve 8 in a certain arrangement to detect the rotation position of the second gear 82. Correspondingly, the control valve 8 is also equipped with a second magnetic member 842, which is used to trigger the Hall element in the Hall array 821 corresponding to the second gear to generate a trigger signal. Specifically, when the second gear 82 rotates, relative movement occurs between the second magnetic member 842 and the second Hall element 822. When the distance between the second magnetic member 842 and the second Hall element 822 is close enough, the second Hall element 822 is triggered to generate an electrical signal (i.e., the trigger signal of the second Hall element 822). It can be understood that the trigger signal of the second Hall element 822 can be used to control the second gear 82.

[0064] Considering that the trigger signal of the Hall element presents a pulse feature, that is, whenever the distance between the magnetic element and the Hall element is close enough, the Hall element will generate a short trigger signal, and the frequency of occurrence of this trigger signal is low. In order to accurately detect whether the valve core 83 moves to a certain working position, this embodiment proposes to set corresponding Hall elements in the Hall array 811 corresponding to the first gear and the Hall array 821 corresponding to the second gear for each working position of the valve core 83. For example, for a certain working position of the valve core 83, there is a first Hall element 812 corresponding to the working position in the Hall array 811 corresponding to the first gear. When the first gear 81 rotates until the trigger signal count of the first Hall element 812 meets a specific condition, the valve core 83 moves to the working position. Similarly, for a certain working position of the valve core 83, there is a second Hall element 822 corresponding to the working position in the Hall array 821 corresponding to the second gear. When the second gear 82 rotates until the trigger signal count of the second Hall element 822 meets a specific condition, the valve core 83 moves to the working position.

[0065] It should be noted that there are two possible installation methods for the Hall array 811 corresponding to the first gear and the first magnetic member 841. In one possible installation method, the Hall array 811 corresponding to the first gear is arranged on the first gear 81, and the first magnetic member 841 is installed at other fixed positions in the control valve 8 except the first gear 81, for example, it is installed on the fixing member 84 in the control valve 8. In a possible implementation method, the first magnetic member 841 is arranged on the first gear 81, and the Hall array 811 corresponding to the first gear is installed at other fixed positions in the control valve 8 except the first gear 81, for example, it is installed on the fixing member 84 in the control valve 8. It can be understood that the above installation methods can be applied selectively, as long as the Hall element (i.e., the first Hall element 812) in the Hall array 811 corresponding to the first gear and the first magnetic member 841 can move relative to each other during the rotation of the first gear 81.

[0066] Similarly, there are two possible installation methods for the Hall array 821 corresponding to the second gear and the second magnetic member 842. In one possible installation method, the Hall array 821 corresponding to the second gear is arranged on the second gear 82, and the second magnetic member 842 is installed in other fixed positions in the control valve 8 except the second gear 82, for example, it is installed on the fixing member 84 in the control valve 8. In one possible implementation method, the second magnetic member 842 is arranged on the second gear 82, and the Hall array 821 corresponding to the second gear is installed in other fixed positions in the control valve 8 except the second gear 82, for example, it is installed on the fixing member 84 in the control valve 8. It can be understood that the above installation methods can be applied selectively, as long as the Hall element (i.e., the second Hall element 822) in the Hall array 821 corresponding to the second gear and the second magnetic member 842 can move relative to each other during the rotation of the second gear 82.

[0067] It is understandable that the fixing member 84 in the control valve 8 is used to fix and install the Hall element or the magnetic element. In some cases, the control valve 8 may not have a separate fixing member 84, but the Hall element or the magnetic element may be installed at other fixed positions in the control valve 8. In some cases, the fixing member 84 does not need to be fixed at a fixed position. Figure 1 , Figure 2 The installation can be performed in the manner shown, as long as the Hall element and the magnetic component can move relative to each other when the first gear 81 and the second gear 82 move.

[0068] In this embodiment, the control valve 8 drives the valve core 83 to move along different axial directions by setting the first gear 81 and the second gear 82 respectively, and correspondingly sets the Hall array of the first gear 81, the Hall array of the second gear 82, the first magnetic member 841, and the second magnetic member 842, thereby realizing accurate detection of the working position of the valve core 83. Since the Hall element works based on the Hall effect and is not easily affected by the wading environment, the use of the Hall element as a sensing element can effectively ensure the accuracy of the control of the control valve 8.

[0069] In some possible implementations, the control valve of the embodiment of the present application further includes a fixing member, and the first magnetic member and the second magnetic member are disposed on the fixing member;

[0070] The Hall array corresponding to the first gear is arranged on the first gear, and the Hall array corresponding to the second gear is arranged on the second gear.

[0071] Specifically, please combine Figure 2The fixing member 84 involved in this embodiment refers to a fixing structure inside the control valve 8, and the fixing member 84 is used to support and fix the first magnetic member 841 and the second magnetic member 842. The first magnetic member 841 and the second magnetic member 842 are arranged on the fixing member 84, which means that the first magnetic member 841 and the second magnetic member 842 maintain a stable position during the operation of the control valve 8 and will not move due to the rotation of the first gear 81 and the second gear 82.

[0072] Correspondingly, the Hall array 811 corresponding to the first gear is arranged on the first gear 81, and each first Hall element 812 in the Hall array 811 corresponding to the first gear is distributed along the circumference of the first gear 81. Similarly, the Hall array 821 corresponding to the second gear is arranged on the second gear 82, and each second Hall element 822 in the Hall array 821 corresponding to the second gear is distributed along the circumference of the second gear 82.

[0073] It can be understood that in order for the first magnetic member 841 to trigger the Hall element in the Hall array 811 corresponding to the first gear, that is, the first Hall element 812 generates a trigger signal, when the first gear 81 rotates, the first Hall element 812 generates a circular motion trajectory, and the motion trajectory of the first Hall element 812 coincides with the projection of the first magnetic member 841 in the axial direction of the first gear 81. Similarly, in order for the second magnetic member 842 to trigger the Hall element in the Hall array 821 corresponding to the second gear, that is, the second Hall element 822 generates a trigger signal, when the second gear 82 rotates, the second Hall element 822 generates a circular motion trajectory, and the motion trajectory of the second Hall element 822 coincides with the projection of the second magnetic member 842 in the axial direction of the second gear 82.

[0074] In addition, in order to avoid cumulative errors caused by the reciprocating motion of the valve core 83 along different axial directions, this embodiment proposes to set a reference Hall element in the Hall array for reference calibration of the rotation position of the gear and determining whether the gear has rotated to the reference rotation position.

[0075] See also Figure 3 , Figure 3 Schematic diagram of the corresponding relationship between the reference Hall element and the magnetic component provided in the embodiment of the present invention. The Hall array 811 corresponding to the first gear includes a first reference Hall element 8121, and the first reference Hall element 8121 is one of the multiple first Hall elements 812. When the valve core 83 is in the initial working position, the projection of the first reference Hall element 8121 and the first magnetic component 841 in the axial direction of the first gear 81 coincides, and the first gear 81 is also in the corresponding reference rotation position.

[0076] Similarly, the Hall array 821 corresponding to the second gear includes a second reference Hall element 8221, which is one of the plurality of second Hall elements 822. When the valve core 83 is in the initial working position, the second reference Hall element 8221 coincides with the projection of the second magnetic member 842 in the axial direction of the second gear 82, and the second gear 82 is also in the corresponding reference rotation position.

[0077] In this embodiment, by setting a fixing member 84 to support and fix the first magnetic member 841 and the second magnetic member 842, the position stability of the magnetic member during the operation of the control valve 8 is ensured, thereby ensuring that the magnetic member can accurately trigger the Hall element in the corresponding Hall array. The Hall arrays corresponding to the first gear 81 and the second gear 82 are respectively arranged on the gears, and the Hall elements are distributed along the circumference of the gears, so that when the gears rotate, the Hall elements can generate a circular motion trajectory, which coincides with the projection of the magnetic member in the direction of the gear axis, thereby realizing accurate detection of the rotation position of the gear. In addition, by setting a reference Hall element in the Hall array, this embodiment can not only perform a reference calibration on the rotation position of the gear, but also determine whether the gear has rotated to the reference rotation position, effectively avoiding the cumulative error caused by the reciprocating motion of the valve core 83 along different axial directions, and improving the control accuracy and stability of the control valve 8.

[0078] In one embodiment, the control valve of the embodiment of the present application further includes a fixing member, and the Hall array corresponding to the first gear and the Hall array corresponding to the second gear are arranged on the fixing member;

[0079] The first magnetic component is arranged on the first gear, and the second magnetic component is arranged on the second gear.

[0080] Specifically, the fixing member 84 involved in this embodiment refers to a fixed structure inside the control valve 8, and the fixing member 84 is used to support and fix the Hall array 811 corresponding to the first gear and the Hall array 821 corresponding to the second gear. The Hall array 811 corresponding to the first gear is arranged on the fixing member 84, which means that the first Hall elements 812 in the Hall array 811 corresponding to the first gear are distributed along the circumference of the fixing member 84, and keep a stable position during the operation of the control valve 8, and will not move due to the rotation of the first gear 81. The Hall array 821 corresponding to the second gear is arranged on the fixing member 84, which means that the second Hall elements 822 in the Hall array 821 corresponding to the second gear are distributed along the circumference of the fixing member 84, and keep a stable position during the operation of the control valve 8, and will not move due to the rotation of the second gear 82.

[0081] Correspondingly, the first magnetic member 841 and the second magnetic member 842 are disposed on the first gear 81 .

[0082] It can be understood that, in order for the first magnetic member 841 to trigger the Hall element in the Hall array 811 corresponding to the first gear, that is, the first Hall element 812 generates a trigger signal, when the first gear 81 rotates, the first magnetic member 841 generates a circular motion trajectory, and the motion trajectory of the first magnetic member 841 coincides with the projection of the first Hall element 812 in the axial direction of the first gear 81. Similarly, in order for the second magnetic member 842 to trigger the Hall element in the Hall array 821 corresponding to the second gear, that is, the second Hall element 822 generates a trigger signal, when the second gear 82 rotates, the second magnetic member 842 generates a circular motion trajectory, and the motion trajectory of the second magnetic member 842 coincides with the projection of the second Hall element 822 in the axial direction of the second gear 82.

[0083] In this embodiment, by setting the Hall array 811 corresponding to the first gear and the Hall array 821 corresponding to the second gear on the fixing member 84, the position stability of the Hall array during the operation of the control valve 8 is ensured, and it will not move due to the rotation of the gear, thereby improving the accuracy of the detection. At the same time, the first magnetic member 841 is set on the first gear 81, and the second magnetic member 842 is set on the second gear 82, so that when the gear rotates, the magnetic member can rotate with the gear and generate a circular motion trajectory. Since the motion trajectory of the magnetic member coincides with the projection of the corresponding Hall element in the direction of the gear axis, when the magnetic member passes through the Hall element, it can accurately trigger the Hall element to generate a trigger signal, thereby realizing accurate detection of the rotation position of the gear.

[0084] Any control valve provided in the above embodiments is configured to execute any control method provided in the following embodiments.

[0085] The following will be combined Figure 4 - Fig. 9 , the control method provided by the embodiment of the present application is introduced in detail.

[0086] See also Figure 4 , Figure 4 A flow chart of a control method provided in an embodiment of the present invention. The control method is applied to a control valve, which includes a valve core, a first gear driving the valve core to move along a first axis, a second gear driving the valve core to move along a second axis, a Hall array corresponding to the first gear, and a Hall array corresponding to the second gear; Figure 4 As shown, the method of the embodiment of the present invention may include the following steps S101-S103.

[0087] S101, in response to an instruction to switch the control valve core from the first working position to the second working position, calibrate the reference rotation position of the first gear and the second gear respectively.

[0088] Specifically, the instruction for switching the control valve core from the first working position to the second working position involved in this embodiment is a manually or automatically generated control instruction, which is intended to switch the valve core from the first working position currently located to the second working position. The first working position and the second working position are different. In some possible implementations, the instruction is generated based on user operation, for example, the user inputs an instruction through a related control panel or remote control system, requiring the control valve to perform a position switching operation of the valve core. In some possible implementations, the instruction is automatically generated by the control valve based on certain conditions, for example, according to a preset workflow or schedule, the control valve automatically determines that the valve core needs to be switched from the first working position to the second working position.

[0089] Regarding the process of calibrating the reference rotation position of the first gear and the second gear respectively in response to the instruction of switching the control valve core from the first working position to the second working position, in some possible implementations, the Hall array corresponding to the first gear includes a first reference Hall element, and when the trigger signal of the first reference Hall element is detected, it can be determined that the first gear is in the corresponding reference rotation position, that is, the reference rotation position calibration of the first gear is completed; similarly, the Hall array corresponding to the second gear includes a second reference Hall element, and when the trigger signal of the second reference Hall element is detected, it can be determined that the second gear is in the corresponding reference rotation position, that is, the reference rotation position calibration of the second gear is completed.

[0090] In some possible implementations, the reference rotation position calibration may not be implemented based on Hall elements, but other sensors or detection methods may be used, such as photoelectric sensors, mechanical contacts or encoders, to detect the rotation positions of the first gear and the second gear, and perform reference rotation position calibration.

[0091] S102, determining a target gear according to the first working position and the second working position, wherein the target gear is one of the first gear and the second gear.

[0092] Specifically, since the first working position and the second working position jointly indicate the direction in which the valve core needs to move, and the directions in which the first gear and the second gear can drive the valve core to move are also predetermined, then, according to the relative relationship between the first working position and the second working position, and the directions in which the first gear and the second gear can each drive the valve core to move, it is possible to determine which gear needs to work to drive the valve core to move from the first working position to the second working position, and then determine the target gear. It should be noted that the target gear is one of the first gear and the second gear, that is, the target gear is the first gear, or the target gear is the second gear.

[0093] Regarding the process of determining the target gear according to the first working position and the second working position, in some possible implementations, the target gear can be determined by querying a related data file. Specifically, a table file can be pre-set, and the table file lists all possible combinations of the first working position and the second working position, as well as the corresponding target gears. When it is necessary to determine the target gear, the target gear can be determined by simply searching the corresponding combination of the first working position and the second working position in the table file.

[0094] In some possible implementations, the target gear can be determined by logic judgment. Specifically, the relative relationship between the first working position and the second working position, and the directions in which the first gear and the second gear can drive the valve core to move can be used. When the target gear needs to be determined, the target gear can be determined by making judgments one by one according to the relevant logic judgment conditions.

[0095] S103, determining a target Hall element from a Hall array corresponding to the target gear according to the second working position.

[0096] Specifically, the target Hall element refers to a Hall element that corresponds to the second working position. Assuming that the target gear is the first gear, the target Hall element is one of the first Hall elements; assuming that the target gear is the second gear, the target Hall element is one of the second Hall elements.

[0097] Regarding the process of determining the target Hall element from the Hall array corresponding to the target gear according to the second working position, in some possible implementations, the target Hall element can be determined by querying the relevant data file. Specifically, a table file can be pre-set, which lists all possible second working positions and target gear combinations, as well as the corresponding target Hall elements. When it is necessary to determine the target Hall element, it is only necessary to find the corresponding second working position and target gear combination in the table file to determine the target Hall element.

[0098] In some possible implementations, the target Hall element can be determined by logical judgment. Specifically, the target Hall element corresponding to the second working position can be determined by logical judgment based on the specific information of the second working position and the arrangement and position information of the Hall elements in the Hall array corresponding to the target gear. For example, the position of the target Hall element can be determined by calculation based on the offset of the second working position relative to the initial position or the reference position, and the arrangement order and spacing of the Hall elements in the Hall array corresponding to the target gear, thereby determining the target Hall element.

[0099] S104, controlling the target gear according to the trigger signal of the target Hall element to drive the valve core to move to the second working position.

[0100] Specifically, after determining the target Hall element, the trigger signal count reference value required for the process of the valve core moving from the first working position to the second working position can be obtained. The trigger signal count reference value represents the number of times the trigger signal of the target Hall element is detected when the valve core moves from the first working position to the second working position.

[0101] Then the target gear is controlled to rotate. During the rotation of the target gear, the target Hall element and the corresponding magnetic part move relative to each other. When the distance between the magnetic part and the target Hall element is close enough, the target Hall element will be triggered to generate an electrical signal, and then the trigger signal of the target Hall element will be detected. By counting the trigger signal of the target Hall element, the trigger signal count of the target Hall element can be obtained.

[0102] The trigger signal count of the target Hall element represents the number of times the target gear passes through the rotation position corresponding to the target Hall element. When the trigger signal count of the target Hall element reaches the preset trigger signal count reference value, it means that the valve core has moved to the second working position. At this time, the target gear is controlled to stop rotating, and the valve core can be maintained in the second working position.

[0103] For example, in the Hall array corresponding to the first gear, some of the first Hall elements have a mapping relationship with the working position of the valve core. Assume that these first Hall elements are Hall element A1, Hall element A2, Hall element A3, Hall element A4, and Hall element A5, which correspond to the working position P1, working position P2, working position P3, working position P4, and working position P5 of the valve core respectively. Among them, the initial working position of the valve core is the working position P1, then the Hall element A1 can be determined as the reference Hall element in the Hall array corresponding to the second gear. When the Hall element A1 generates a trigger signal, the first gear is in the corresponding reference rotation position, and the trigger signal count of the Hall element A1 can represent the integer number of revolutions of the first gear. Similarly, when the Hall element A2, Hall element A3, Hall element A4, and Hall element A5 generate a trigger signal, the first gear is in the corresponding rotation position, and the trigger signal counts of the Hall element A2, Hall element A3, Hall element A4, and Hall element A5 can represent the decimal number of revolutions of the first gear.

[0104] If it is necessary to drive the valve core to switch from the working position P1 to the working position P3 (the valve core is in the working position P1, which means that there is no need to calibrate the reference rotation position of the first gear), the first gear needs to rotate a corresponding number of circles. The integer number of circles of the first gear can be determined by counting the trigger signal of the Hall element A1, and the decimal number of circles of the first gear can be determined by counting the trigger signal of the Hall element A3. Alternatively, the integer number and decimal number of circles of the first gear can be directly determined by counting the trigger signal of the Hall element A3. When the above trigger signal count meets certain conditions, it is determined that the valve core is in the working position P3, and the first gear can be controlled to stop rotating.

[0105] Similarly, if it is necessary to drive the valve core to switch from the working position P3 to the working position P5, it is necessary to first calibrate the reference rotation position of the first gear and the second gear so that the first gear and the second gear are respectively in the corresponding reference rotation position. Then, the first gear needs to rotate a corresponding number of circles. The integer number of circles of the first gear rotation can be determined by counting the trigger signal of the Hall element A1, and the decimal number of circles of the first gear rotation can be determined by counting the trigger signal of the Hall element A5. Alternatively, the integer number and decimal number of circles of the first gear rotation can be directly determined by counting the trigger signal of the Hall element A5. When the above-mentioned trigger signal count meets certain conditions, it is determined that the valve core is in the working position P5, and the first gear can be controlled to stop rotating.

[0106] Similarly, in the Hall array corresponding to the second gear, some of the second Hall elements have a mapping relationship with the working position of the valve core. Assume that these second Hall elements are Hall element B1, Hall element B2, Hall element B3, Hall element B4, and Hall element B5, which correspond to the working position P1, working position P2, working position P3, working position P4, and working position P5 of the valve core, respectively. Among them, the initial working position of the valve core is the working position P1, then the Hall element B1 can be determined as the reference Hall element in the Hall array corresponding to the second gear. When the Hall element B1 generates a trigger signal, the second gear is in the corresponding reference rotation position, and the trigger signal count of the Hall element B1 can represent the integer number of revolutions of the second gear. Similarly, when the Hall element B2, Hall element B3, Hall element B4, and Hall element B5 generate a trigger signal, the second gear is in the corresponding rotation position, and the trigger signal counts of the Hall element B2, Hall element B3, Hall element B4, and Hall element B5 can represent the decimal number of revolutions of the second gear.

[0107] If it is necessary to drive the valve core to switch from the working position P5 to the working position P3, it is necessary to first calibrate the reference rotation position of the first gear and the second gear so that the first gear and the second gear are respectively in the corresponding reference rotation position. Then, the second gear needs to rotate a corresponding number of circles. The integer number of circles of the second gear rotation can be determined by counting the trigger signal of the Hall element B1, and the decimal number of circles of the second gear rotation can be determined by counting the trigger signal of the Hall element B3. Alternatively, the integer number and decimal number of circles of the second gear rotation can be directly determined by counting the trigger signal of the Hall element B3. When the above-mentioned trigger signal count meets certain conditions, it is determined that the valve core is in the working position P3, and the first gear can be controlled to stop rotating.

[0108] Similarly, if the valve core needs to be driven to switch from the working position P3 to the working position P1, the first gear and the second gear need to be calibrated for the reference rotation position first, so that the first gear and the second gear are respectively in the corresponding reference rotation position. Then, the second gear needs to rotate a corresponding number of circles, and the integer number of circles of the second gear rotation can be determined by counting the trigger signal of the Hall element B1. When the above trigger signal count meets certain conditions, it is determined that the valve core is in the working position P1, and the first gear can be controlled to stop rotating.

[0109] In this embodiment, in response to the instruction to switch the control valve core from the first working position to the second working position, the reference rotation position of the first gear and the second gear is calibrated to ensure the accuracy of subsequent control. Then, according to the first working position and the second working position of the valve core, the target gear to be controlled is determined, and according to the second working position, the target Hall element serving as a signal reference is determined from the Hall array corresponding to the target gear. Finally, the target gear is controlled according to the trigger signal of the target Hall element to drive the valve core to accurately move to the second working position. Since the Hall element is not easily affected by the wading environment, the use of the Hall element as a sensing element combined with the above-mentioned control method can effectively ensure the accuracy of the control valve control.

[0110] See also Figure 5 , a schematic diagram of a flow chart of a reference rotation position calibration is provided for an embodiment of the present invention, such as Figure 5 As shown, the method of the embodiment of the present invention may include the following steps S201-S204, and steps S201-S204 may be used as Figure 4 The illustrated embodiment shows a detailed step of “calibrating the reference rotation position of the first gear and the second gear respectively” in step S101.

[0111] S201, if a trigger signal of a first reference Hall element in a Hall array corresponding to a first gear is detected, then the reference rotation position calibration of the first gear is terminated;

[0112] S202, if the trigger signal of the first reference Hall element is not detected, controlling the first gear to rotate, and ending the reference rotation position calibration of the first gear when the trigger signal of the first reference Hall element is detected;

[0113] S203, if a trigger signal of a second reference Hall element in the Hall array corresponding to the second gear is detected, then the reference rotation position calibration of the second gear is terminated;

[0114] S204, if the trigger signal of the second reference Hall element is not detected, controlling the second gear to rotate, and ending the reference rotation position calibration of the second gear when the trigger signal of the second reference Hall element is detected;

[0115] The trigger signal of the first reference Hall element is generated when the first gear is in the corresponding reference rotation position, and the trigger signal of the second reference Hall element is generated when the second gear is in the corresponding reference rotation position.

[0116] Specifically, the installation method of the first reference Hall element, the second reference Hall element, the first magnetic element, and the second magnetic element involved in this embodiment can be referred to. Figure 3 . Or different from Figure 3 In the installation method shown, the Hall array corresponding to the first gear (including the first reference Hall element) and the Hall array corresponding to the second gear (including the second reference Hall element) are installed on the fixing part in the control valve, and the first magnetic part and the second magnetic part are installed on the first gear and the second gear respectively.

[0117] If the trigger signal of the first reference Hall element in the Hall array corresponding to the first gear is detected, it indicates that the first gear is already in the corresponding reference rotation position. At this point, the reference rotation position calibration of the first gear can be ended.

[0118] If the trigger signal of the first reference Hall element is not detected, it indicates that the first gear is not yet in the corresponding reference rotation position. At this time, the first gear can be controlled to rotate so that the first reference Hall element and the first magnetic member move relative to each other. When the distance between the first magnetic member and the first reference Hall element is close enough, the first reference Hall element will be triggered to generate a trigger signal. When the trigger signal of the first reference Hall element is detected, the calibration of the reference rotation position of the first gear is ended.

[0119] If the trigger signal of the second reference Hall element in the Hall array corresponding to the second gear is detected, it indicates that the second gear is already in the corresponding reference rotation position. At this point, the reference rotation position calibration of the second gear can be ended.

[0120] If the trigger signal of the second reference Hall element is not detected, it indicates that the second gear is not yet in the corresponding reference rotation position. At this time, the second gear can be controlled to rotate so that the second reference Hall element and the second magnetic member move relative to each other. When the distance between the second magnetic member and the second reference Hall element is close enough, the second reference Hall element will be triggered to generate a trigger signal. When the trigger signal of the second reference Hall element is detected, the calibration of the reference rotation position of the second gear is ended.

[0121] In this embodiment, when the trigger signal of the first reference Hall element is detected, it indicates that the first gear is already in the reference rotation position, and the calibration is terminated at this time, thereby ensuring the accuracy of the position of the first gear. If it is not detected, dynamic calibration is achieved by controlling the rotation of the first gear until a trigger signal is generated. Similarly, for the second gear, the accuracy of the position of the second gear is ensured by detecting the trigger signal of the second reference Hall element. It should be noted that this embodiment proposes to perform reference rotation position calibration on the first gear and the second gear respectively, which can effectively eliminate the cumulative error that may be caused by switching the valve core between different working positions.

[0122] See also Figure 6 , a schematic diagram of a process for determining a target gear is provided for an embodiment of the present invention, such as Figure 6 As shown, the method of the embodiment of the present invention may include the following steps S301-S303, and steps S301-S303 may be used as Figure 4 The detailed steps of step S102 of the illustrated embodiment.

[0123] S301, determining a target moving direction of the valve core according to the first working position and the second working position;

[0124] S302, if the target moving direction is the first axis direction, determining the first gear as the target gear;

[0125] S303: If the target moving direction is the second axis direction, the second gear is determined as the target gear.

[0126] Specifically, by comparing the specific coordinates or position identifiers of the first working position and the second working position, it can be determined in which direction the valve core needs to move from the first working position to reach the second working position. The direction in which the valve core needs to move is determined as the target moving direction.

[0127] After the target moving direction of the valve core is determined, it is necessary to compare the target moving direction with the first axis direction and the second axis direction respectively.

[0128] The first gear is responsible for driving the valve core to move along the first axis direction. If the target moving direction is the first axis direction, the first gear is the gear that needs to be controlled to drive the valve core to move, that is, the target gear.

[0129] The second gear is responsible for driving the valve core to move along the second axis direction. If the target moving direction is the second axis direction, the second gear is the gear that needs to be controlled to drive the valve core to move, that is, the target gear.

[0130] In this embodiment, the target moving direction of the valve core is determined by comparing the first working position and the second working position, and then the target moving direction is compared with the first axis direction and the second axis direction to clarify which gear is responsible for driving the valve core to move along the target moving direction, thereby accurately determining the target gear. The process of this embodiment does not rely on complex algorithms or external sensors, but is only based on the working position of the valve core and the movement direction of the gear, and has strong versatility.

[0131] See also Figure 7 , a schematic diagram of a process for determining a target Hall element is provided for an embodiment of the present invention, such as Figure 7 As shown, the method of the embodiment of the present invention may include the following steps S401-S402, and steps S401-S402 may be used as Figure 4 The detailed steps of step S103 of the illustrated embodiment.

[0132] S401, determining a target rotation position corresponding to a target gear according to the second working position;

[0133] S402, determining a target Hall element in a Hall array corresponding to the target gear according to a target rotation position corresponding to the target gear, wherein a trigger signal of the target Hall element is generated when the target gear is at the corresponding target rotation position.

[0134] Specifically, the second working position information of the valve core may be expressed as specific position coordinates, a position identifier, or a relative offset from an initial position or a reference position.

[0135] In some possible implementations, the target rotation position to which the target gear needs to rotate can be calculated based on the number of teeth of the target gear (i.e., the first gear or the second gear), the tooth pitch, and the mechanical transmission ratio between the gear and the valve core movement. The target rotation position means that when the target gear rotates to this position, the valve core can accurately move to the second working position.

[0136] In some possible implementations, there is a predetermined mapping relationship between the second working position and the target rotational position corresponding to the target gear, and the target rotational position corresponding to the target gear can be determined according to the second working position and the mapping relationship without related mathematical operations.

[0137] After determining the target rotational position of the target gear, it is necessary to determine the target Hall element corresponding to the target rotational position from the Hall array corresponding to the target gear. In some possible implementations, the target Hall element corresponding to the target rotational position can be determined by searching a pre-stored table file, which lists the correspondence between each possible rotational position of the target gear and the Hall element in the Hall array. By searching the table file, the target Hall element corresponding to the target rotational position can be accurately found.

[0138] In this embodiment, first, according to the second working position information, the target rotation position to which the target gear needs to rotate is determined through mathematical operations or a predetermined mapping relationship. Then, the target Hall element corresponding to the target rotation position is determined according to the target rotation position, which provides a basis for the subsequent control process. Moreover, based on the logical judgment chain of the second working position, the target rotation position, and the target Hall element, the accuracy of the target Hall element is effectively ensured.

[0139] See also Figure 8 , a schematic diagram of a flow chart for controlling a target gear is provided for an embodiment of the present invention, such as Figure 8 As shown, the method of the embodiment of the present invention may include the following steps S501-S504, and steps S501-S504 may be used as Figure 4 The detailed steps of step S104 of the illustrated embodiment.

[0140] S501, obtaining a first trigger signal count reference value required for the process of the valve core moving from the first working position to the second working position;

[0141] S502, controlling the target gear to rotate to drive the valve core to move to the second working position;

[0142] S503, determining a first trigger signal count of the target Hall element during the rotation of the target gear according to the trigger signal of the target Hall element;

[0143] S504, when the first trigger signal count is equal to the first trigger signal count reference value, control the target gear to stop rotating so that the valve core moves to the second working position.

[0144] Specifically, the first trigger signal count reference value involved in this embodiment refers to the reference value that the first trigger signal count should reach when the target gear rotates to drive the valve core to move from the first working position to the second working position.

[0145] Regarding the process of obtaining the first trigger signal count reference value required for the process of moving the valve core from the first working position to the second working position, in some possible implementations, the first trigger signal count reference value is stored locally in advance, and the first trigger signal count reference value can be obtained from the local query using the combination of the first working position and the second working position as the query condition.

[0146] Furthermore, the target gear is controlled to rotate, and the target gear drives the valve core to move to the second working position during the rotation process. In addition, the target Hall element and the corresponding magnetic part move relative to each other, and when the magnetic part approaches the target Hall element to a certain distance, the target Hall element generates a trigger signal. By counting the trigger signal of the target Hall element, the first trigger signal count of the target Hall element during the rotation process of the target gear can be obtained.

[0147] It is understandable that, during the rotation of the target gear, the relative motion between the target Hall element and the magnetic part is periodic, so the first trigger signal count increases. When the first trigger signal count is equal to the first trigger signal count reference value, it indicates that the target gear has rotated to the predetermined position, and the valve core has also moved to the second working position. At this time, the target gear can be controlled to stop rotating to ensure that the valve core can accurately stay in the second working position.

[0148] Exemplarily, it is assumed that the valve core needs to move from the working position P1 to the working position P3, where the working position P1 is the initial working position. First, obtain the first trigger signal count reference value required for the process of the valve core moving from the working position P1 to the working position P3, assuming that the first trigger signal count reference value is N. Then, control the first gear to rotate to drive the valve core to move to the working position P3. During the rotation of the first gear, relative movement occurs between the first Hall element (assuming it is Hall element A3, corresponding to the working position P3) and the corresponding first magnetic part. When the first magnetic part approaches the Hall element A3 to a certain distance, the Hall element A3 generates a trigger signal. The trigger signal of the Hall element A3 is counted to obtain the first trigger signal count of the Hall element A3 during the rotation of the first gear. When the first trigger signal count is equal to the first trigger signal count reference value N, it indicates that the first gear has rotated to a predetermined position, and the valve core has also moved to the working position P3. At this time, the first gear is controlled to stop rotating to ensure that the valve core can accurately stay in the working position P3.

[0149] In this embodiment, the first trigger signal count reference value required for the valve core to move from the first working position to the second working position is first obtained, which provides an accurate reference for subsequent control. Next, the target gear is controlled to rotate to drive the valve core to move. By monitoring and counting the trigger signal of the target Hall element, the rotation state of the target gear can be determined in real time. When the first trigger signal count is equal to the first trigger signal count reference value, it indicates that the valve core has reached the second working position. At this time, the target gear is controlled to stop rotating to ensure that the valve core stays accurately in the second working position. This embodiment performs control based on the trigger signal count of the Hall element, which effectively avoids detection errors caused by environmental factors.

[0150] See also Fig. 9 , a schematic diagram of a flow chart for controlling a target gear is provided for an embodiment of the present invention, such as Fig. 9 As shown, the method of the embodiment of the present invention may include the following steps S601-S605, and steps S601-S605 may be used as Figure 4 The detailed steps of step S104 of the illustrated embodiment.

[0151] S601, obtaining a second trigger signal count reference value and a third trigger signal count reference value required for the process of the valve core moving from the first working position to the second working position;

[0152] S602, controlling the target gear to rotate to drive the valve core to move to the second working position;

[0153] S603, determining a second trigger signal count of the target reference Hall element during the rotation of the target gear according to a trigger signal of the target reference Hall element in the Hall array corresponding to the target gear;

[0154] S604, after the second trigger signal count is equal to the second trigger signal count reference value, determining a third trigger signal count of the target Hall element during the rotation of the target gear according to the trigger signal of the target Hall element;

[0155] S605, when the third trigger signal count is equal to the third trigger signal count reference value, control the target gear to stop rotating so that the valve core moves to the second working position.

[0156] Specifically, the second trigger signal count reference value involved in this embodiment refers to the reference value that the second trigger signal count should reach during the process of the target gear rotating and driving the valve core to move from the first working position to the second working position. Similarly, the third trigger signal count reference value refers to the reference value that the third trigger signal count should reach during the process of the target gear rotating and driving the valve core to move from the first working position to the second working position.

[0157] Regarding the process of obtaining the second trigger signal count reference value and the third trigger signal count reference value required for the process of moving the valve core from the first working position to the second working position, in some possible implementations, the second trigger signal count reference value and the third trigger signal count reference value are pre-stored locally, and the second trigger signal count reference value and the third trigger signal count reference value can be obtained from the local query by using the combination of the first working position and the second working position as the query condition.

[0158] Furthermore, the target gear is controlled to rotate, and the target gear drives the valve core to move to the second working position during the rotation process. In addition, relative movement occurs between the target reference Hall element and the corresponding magnetic part. When the magnetic part approaches the target reference Hall element to a certain distance, the target reference Hall element generates a trigger signal. By counting the trigger signal of the target reference Hall element, the second trigger signal count of the target reference Hall element during the rotation process of the target gear can be obtained.

[0159] It is understandable that, during the rotation of the target gear, the relative motion between the target reference Hall element and the magnetic member is periodic, so the second trigger signal count increases. When the second trigger signal count is equal to the second trigger signal count reference value, it indicates that the valve core is very close to the second working position.

[0160] Furthermore, the target gear continues to rotate, during which a relative movement occurs between the target Hall element and the corresponding magnetic part. When the magnetic part approaches the target Hall element to a certain distance, the target Hall element generates a trigger signal. By counting the trigger signal of the target Hall element, the third trigger signal count of the target Hall element during the rotation of the target gear can be obtained. When the third trigger signal count is equal to the third trigger signal count reference value, it indicates that the target gear has rotated to a predetermined position, and the valve core has also moved to the second working position. At this time, the target gear can be controlled to stop rotating to ensure that the valve core can accurately stay in the second working position, thereby achieving precise control of the control valve.

[0161] Exemplarily, assume that the valve core needs to move from the working position P1 to the working position P3, where the working position P1 is the initial working position. First, obtain the second trigger signal count reference value M1 and the third trigger signal count reference value M2 required for the process of the valve core moving from the working position P1 to the working position P3. Then, control the rotation of the first gear to drive the valve core to move to the working position P3. During the rotation of the first gear, relative motion occurs between the first reference Hall element (assuming it is Hall element A1, corresponding to the working position P1) and the corresponding first magnetic part. When the first magnetic part approaches the Hall element A1 to a certain distance, the Hall element A1 generates a trigger signal. The trigger signal of the Hall element A1 is counted to obtain the second trigger signal count of the Hall element A1 during the rotation of the first gear.

[0162] When the second trigger signal count is equal to the second trigger signal count reference value M1, it indicates that the valve core is close to the working position P3. At this time, the first gear continues to be controlled to rotate, and the trigger signal of the target Hall element (assuming it is Hall element A3) corresponding to the target working position P3 is detected. When the first magnetic member approaches the Hall element A3 to a certain distance, the Hall element A3 generates a trigger signal. The trigger signal of the Hall element A3 is counted to obtain the third trigger signal count of the Hall element A3 during the rotation of the first gear.

[0163] When the third trigger signal count is equal to the third trigger signal count reference value M2, it indicates that the first gear has rotated to the predetermined position and the valve core has moved to the working position P3. At this time, the first gear is controlled to stop rotating to ensure that the valve core can accurately stay in the working position P3.

[0164] In this embodiment, the second trigger signal count reference value and the third trigger signal count reference value required in the valve core movement process are first obtained, providing a dual reference for the control process to improve the accuracy of the control. Next, the target gear is controlled to rotate to drive the valve core to move. By monitoring the trigger signals of the target reference Hall element and the target Hall element and counting them respectively, the rotation state of the target gear can be determined more accurately. When the second trigger signal count is equal to the second trigger signal count reference value, it indicates that the valve core is close to the second working position. At this time, the trigger signal of the target Hall element continues to be monitored. When the third trigger signal count is equal to the third trigger signal count reference value, it indicates that the valve core has reached the second working position. At this time, the target gear is controlled to stop rotating to ensure that the valve core stays accurately in the second working position. This embodiment performs control based on the trigger signal count of the Hall element, which effectively avoids detection errors caused by environmental factors.

[0165] The present invention also provides a water softening system, which includes any control valve provided in the above embodiments. It can be understood that the control valve in the water softening system is a water softening valve. The main function of the water softening system is to remove hardness ions such as calcium and magnesium in water, reduce the hardness of water, thereby preventing the formation of scale, extending the service life of water-related equipment, and improving the purity of water quality.

[0166] As a component in the soft water system, the soft water valve controls the inflow and outflow of water and the start and stop of the regeneration cycle, so as to ensure that the soft water system can operate normally and achieve the expected softening effect. Specifically, when the valve core in the soft water valve is in different working positions, the soft water system can enter different working modes, that is, there is a mapping relationship between the working position of the valve core and the working mode of the soft water system.

[0167] The soft water system provided in this embodiment includes the above-mentioned control valve, which can be used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, which will not be repeated here.

[0168] The present invention also provides a water treatment device, which includes any one of the control valves provided in the above embodiments. Specifically, the water treatment device refers to a device used to perform various treatments on water to improve water quality or meet specific use requirements.

[0169] In some possible implementations, the water treatment equipment may also include the above-mentioned soft water system. The soft water system, as a subsystem or module of the water treatment equipment, is responsible for removing hardness ions in water and reducing the hardness of water.

[0170] The water treatment equipment provided in this embodiment includes the above-mentioned control valve, which can be used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0171] In some possible implementations, the water treatment device is a water purifier, and the control valve is a water softener. Fig.10 , Fig.10 It is a structural schematic diagram of a water purifier 001 provided in an embodiment of the present invention.

[0172] The soft water system 002 includes a resin tank 010 , a soft water valve 020 and a salt box assembly 030 . Raw water enters from the raw water channel of the soft water valve 020 , and flows out from the soft water channel of the soft water valve 020 after passing through the resin tank 010 .

[0173] The soft water system 002 also includes a salt box component 030, which can provide salt for the resin tank 010. The raw water obtains salt through the salt box pipe of the soft water valve 020 to form brine, and then completes ion exchange with the resin tank 010 to complete the regeneration process, and finally is discharged through the sewage pipe of the soft water valve 020. There is no need for users to manually add salt, which makes it convenient for users to use the water purifier 001.

[0174] The soft water system 002 further includes a soft water quality detection component 040 . When the soft water quality detection component 040 detects that the TDS value of the soft water flowing out of the first soft water outlet channel of the soft water valve 020 is abnormal, the water purifier 001 starts the regeneration step of the resin tank 010 .

[0175] When the regeneration mode is started, the controller controls the soft water valve 020 to not connect the resin tank 010 with the water outlet of the soft water system 002, and controls the soft water valve 020 to connect the water inlet and the water outlet of the soft water system 002, and controls the soft water valve 020 to connect the resin tank 010 with the salt tank assembly 030. At this time, hard water enters the resin tank 010 through the soft water valve 020, and enters the salt tank assembly 030 from the resin tank 010 through the soft water valve 020. After the water in the resin tank 010 enters the salt tank assembly 030, it contacts the regeneration salt in the salt tank assembly 030 and melts the regeneration salt to form salt water. The soft water valve 020 can draw the salt water in the salt tank assembly 030 into the resin tank 010, so as to replace the calcium and magnesium ions on the resin with the sodium ions in the salt water, thereby restoring the softening ability of the resin.

[0176] The water purification system 003 includes a pre-filter element 52, a reverse osmosis filter element 53, a booster pump 70, and a wastewater drainage pipeline 54. The soft water flowing out of the first soft water outlet channel of the soft water valve 020 is first filtered by the pre-filter element 52 and then enters the booster pump 70. Driven by the booster pump 70, it enters the reverse osmosis filter element 53, and pure water is obtained by filtering the reverse osmosis filter element 53. The concentrated water of the reverse osmosis filter element 53 is discharged from the wastewater drainage pipeline 54.

[0177] The large particles of impurities in the raw water or soft water are filtered by the pre-filter 52, thereby reducing the filtering pressure of the reverse osmosis filter 53, thereby increasing the service life of the reverse osmosis filter 53. The pre-filter 52 can be one or more of a stainless steel filter, a PP cotton filter, a ceramic filter, a compression filter, and an activated carbon filter, etc., which are not specifically limited here. The pre-filter 52 can remove visible impurities such as mud, rust, and insect eggs in the water.

[0178] Reverse osmosis technology uses the principle of a semipermeable membrane. Under the action of a pressure higher than the osmotic pressure of the solution, water passes through the semipermeable membrane while microorganisms, soluble salts, colloids, heavy metal ions, etc. cannot pass through, thereby achieving the purpose of separation, purification and concentration. The main function of the booster pump 70 is to increase the water pressure and provide sufficient driving force for the reverse osmosis filter element 53 to work, so that the water can overcome the resistance of the membrane of the reverse osmosis filter element 53 and pass through the membrane of the reverse osmosis filter element 53 smoothly, thereby achieving effective separation of impurities, salts, etc. in the water.

[0179] The wastewater drainage pipe 54 is connected to the wastewater outlet of the reverse osmosis filter element 53, and the wastewater drainage pipe 54 is used to discharge the concentrated water of the reverse osmosis filter element 53. In this way, the concentrated water in the reverse osmosis filter element 53 is discharged through the wastewater drainage pipe 541, which can maintain the osmotic pressure balance of the reverse osmosis filter element 53, thereby ensuring the filtering effect of the reverse osmosis filter element 53, and the concentrated water has high concentrations of impurities and salts that may crystallize and precipitate on the membrane surface of the reverse osmosis filter element 53, causing the membrane pores to be blocked and the water permeability of the membrane to decrease, so that the discharge of concentrated water can protect the reverse osmosis filter element 53, thereby increasing the service life of the reverse osmosis filter element 53.

[0180] Preferably, the wastewater drainage pipeline 54 includes a wastewater drainage pipe 541 and a wastewater drainage valve 542, the wastewater drainage pipe 541 is connected to the wastewater outlet of the reverse osmosis filter element 53, and the wastewater drainage valve 542 is installed on the wastewater drainage pipe 541. In this way, the flow rate of the concentrated water in the wastewater drainage pipe 541 is controlled by the wastewater drainage valve 542, so that the filtration efficiency of the reverse osmosis filter element 53 is in the best state, and a certain amount of soft water can be processed per unit time, and it can be effectively separated into pure water and concentrated water. The system runs stably, and the ratio of pure water to concentrated water is relatively stable, which can meet the designed processing capacity.

[0181] When the drainage speed is too slow, the concentrated water stays on the membrane surface of the reverse osmosis filter element 53 for too long, which will hinder the contact and separation process between the subsequent incoming water and the membrane of the reverse osmosis filter element 53, reduce the filtration efficiency of the reverse osmosis filter element 53, and manifest as a decrease in water output and a decrease in the amount of soft water processed per unit time. When the drainage speed is too fast, although the concentrated water can be quickly taken away, the pressure difference on both sides of the membrane may change, affecting the driving force of water molecules passing through the membrane of the reverse osmosis filter element 53, and also reducing the filtration efficiency, causing the water output to decrease instead of increase, and may also increase energy consumption.

[0182] The hot water system 004 includes a hot tank assembly 20 and a hot tank water supply valve 251 connected to the hot tank assembly 20. The hot tank water supply valve 251 is connected to the water outlet of the reverse osmosis filter element 53. The hot tank assembly 20 is used to provide the user with hot water softened by the soft water system 002 and purified by the water purification system 003. The hot tank assembly 20 is mainly used to store and heat pure water to provide hot water to the user. In this way, when the user needs hot water, the hot tank assembly 20 can provide hot water to the user in time, thereby shortening the time for the user to wait for the hot water to be heated and improving the user's experience.

[0183] The hot tank water replenishment valve 251 is used to control the water inlet of the hot tank assembly 20, thereby preventing the pure water filtered by the reverse osmosis filter element 53 from directly entering the hot tank assembly 20 and affecting the hot water temperature in the hot tank assembly 20 when the user receives water. The hot tank assembly 20 can then provide the user with hot water with stable temperature.

[0184] There are many ways to heat the hot tank assembly 20. The hot tank assembly 20 can heat the pure water by resistance heating, induction heating, or infrared heating, which is not specifically limited here.

[0185] When the water in the hot tank assembly 20 is insufficient, the user can manually open the hot tank water replenishing valve 251 to replenish the hot tank assembly 20 with pure water, or a detection component and a control board can be set in the hot tank assembly 20. When the detection component detects that the pure water in the hot tank assembly 20 is insufficient, the control board will open the hot tank water replenishing valve 251 to replenish the hot tank assembly 20 with water. The details are not listed here.

[0186] The hot water system 004 further includes a water pump 30. The water inlet of the hot tank assembly 20 is connected to the water outlet of the reverse osmosis filter element 53, and the water inlet end of the water pump 30 is connected to the water outlet of the hot tank assembly 20. In this way, pure water can be stored by the hot tank assembly 20, and the hot tank assembly 20 can quickly provide hot water when the user needs hot water, without the user having to wait for a long time for the hot water system 004 to heat the water. At the same time, the water pump 30 can improve the water output efficiency of the hot tank assembly 20.

[0187] The water purification system 003 further includes a pure water outlet valve 003a, which is disposed between the pure water outlet and the outlet of the reverse osmosis filter element 53. With such an arrangement, the user can control the pure water outlet to discharge water or stop discharging water by controlling the on-off of the pure water outlet valve 003a.

[0188] Specifically, the water purifier 001 further includes a faucet 1A, which is connected to the pure water outlet and the outlet of the hot water system 004, and the faucet 1A is used to control the water outlet of the pure water outlet and the outlet of the hot water system 004. In this way, the user can switch the pure water outlet and the hot water outlet through the faucet 1A according to the needs, so as to facilitate the user's operation, and the water outlet of the pure water outlet and the hot water outlet can be adjusted through the faucet 1A to obtain water with a suitable water temperature.

[0189] In some embodiments, the water purifier 001 further includes a pipeline machine 57, which is connected to the water outlet of the reverse osmosis filter element 53. In this way, the user can obtain pure water filtered by the soft water system 002 and the reverse osmosis filter element 53 through the pipeline machine 57. The pipeline machine 57 generally has multiple water volume options. The user can easily select the required water volume according to their needs through buttons or touch operations, without using other containers for measurement. It is convenient and fast, avoiding the problem of taking too much or too little water, thereby improving the user experience.

[0190] The embodiment of the present invention application also provides a computer-readable storage medium, which stores computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement any one of the control methods provided in the above-mentioned embodiments.

[0191] Among them, the control valve and computer-readable storage medium provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0192] The above contents are only specific implementation methods of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A control method, characterized in that: Applied to a control valve, the control valve comprises a valve core, a first gear driving the valve core to move along a first axis direction, a second gear driving the valve core to move along a second axis direction, a Hall array corresponding to the first gear, and a Hall array corresponding to the second gear; The method comprises: In response to an instruction to control the valve core to switch from a first working position to a second working position, respectively calibrating the first gear and the second gear for a reference rotation position; Determine a target gear according to the first working position and the second working position, the target gear being one of the first gear and the second gear; According to the second working position, determining a target Hall element from the Hall array corresponding to the target gear; The target gear is controlled according to the trigger signal of the target Hall element to drive the valve core to move to the second working position.

2. The method according to claim 1, characterized in that The step of respectively calibrating the reference rotation position of the first gear and the second gear comprises: If a trigger signal of a first reference Hall element in the Hall array corresponding to the first gear is detected, the reference rotation position calibration of the first gear is terminated; If the trigger signal of the first reference Hall element is not detected, the first gear is controlled to rotate, and when the trigger signal of the first reference Hall element is detected, the reference rotation position calibration of the first gear is terminated; If a trigger signal of a second reference Hall element in the Hall array corresponding to the second gear is detected, the reference rotation position calibration of the second gear is terminated; If the trigger signal of the second reference Hall element is not detected, the second gear is controlled to rotate, and when the trigger signal of the second reference Hall element is detected, the reference rotation position calibration of the second gear is terminated; The trigger signal of the first reference Hall element is generated when the first gear is in a corresponding reference rotation position, and the trigger signal of the second reference Hall element is generated when the second gear is in a corresponding reference rotation position.

3. The method according to claim 1, characterized in that The step of determining a target gear according to the first working position and the second working position comprises: determining a target moving direction of the valve core according to the first working position and the second working position; If the target moving direction is the first axis direction, the first gear is determined as the target gear; If the target moving direction is the second axis direction, the second gear is determined as the target gear.

4. The method according to claim 1, characterized in that: The step of determining a target Hall element from a Hall array corresponding to the target gear according to the second working position includes: Determining a target rotation position corresponding to the target gear according to the second working position; According to the target rotational position corresponding to the target gear, a target Hall element in the Hall array corresponding to the target gear is determined, and a trigger signal of the target Hall element is triggered when the target gear is in the corresponding target rotational position.

5. The method according to claim 1, characterized in that The controlling the target gear according to the trigger signal of the target Hall element to drive the valve core to move to the second working position includes: Acquire a first trigger signal count reference value required for the process of the valve core moving from the first working position to the second working position; Controlling the target gear to rotate so as to drive the valve core to move toward the second working position; Determining, according to the trigger signal of the target Hall element, a first trigger signal count of the target Hall element during the rotation of the target gear; When the first trigger signal count is equal to the first trigger signal count reference value, the target gear is controlled to stop rotating so that the valve core moves to the second working position.

6. The method according to claim 1, characterized in that The controlling the target gear according to the trigger signal of the target Hall element to drive the valve core to move to the second working position includes: Acquire a second trigger signal count reference value and a third trigger signal count reference value required for the process of the valve core moving from the first working position to the second working position; Controlling the target gear to rotate so as to drive the valve core to move toward the second working position; Determining a second trigger signal count of the target reference Hall element during the rotation of the target gear according to a trigger signal of a target reference Hall element in a Hall array corresponding to the target gear; After the second trigger signal count is equal to the second trigger signal count reference value, determining a third trigger signal count of the target Hall element during the rotation of the target gear according to the trigger signal of the target Hall element; When the third trigger signal count is equal to the third trigger signal count reference value, the target gear is controlled to stop rotating so that the valve core moves to the second working position.

7. A control valve, characterized in that: The control valve is configured to perform the method according to any one of claims 1 to 6, and the control valve comprises: Valve core; A first gear, used for driving the valve core to move along a first axis direction; A second gear, used for driving the valve core to move along the second axis direction; The Hall array corresponding to the first gear; A Hall array corresponding to the second gear; A first magnetic member, used to trigger a Hall element in a Hall array corresponding to the first gear to generate a trigger signal; The second magnetic member is used to trigger the Hall element in the Hall array corresponding to the second gear to generate a trigger signal.

8. The control valve according to claim 7, characterized in that: The control valve further comprises a fixing member, and the first magnetic member and the second magnetic member are arranged on the fixing member; The Hall array corresponding to the first gear is arranged on the first gear, and the Hall array corresponding to the second gear is arranged on the second gear.

9. The control valve according to claim 7, characterized in that: The control valve further comprises a fixing member, and a Hall array corresponding to the first gear and a Hall array corresponding to the second gear are arranged on the fixing member; The first magnetic component is disposed on the first gear, and the second magnetic component is disposed on the second gear.

10. A soft water system, characterized in that: The soft water system comprises the control valve according to any one of claims 7 to 9.

11. A water treatment device, characterized in that: The water treatment equipment comprises the control valve according to any one of claims 7 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code, and when the computer program code is executed, the method according to any one of claims 1 to 6 is implemented.