Method for calibrating mechanical stop position of electric valve and control device
By detecting Hall pulses and recording the number of pulses generated during the movement of the electric valve, the problem of mechanical stop position offset is solved, and accurate calibration without position sensors and the implementation of valve functions is achieved, reducing costs.
Patent Information
- Application Number
- CN202311068504.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-23
- Publication Date
- 2025-02-25
AI Technical Summary
After mechanical wear, the actual position of the mechanical stop position will be offset, causing the valve to not be fully opened or closed, and adding position sensors will increase costs.
By detecting the Hall pulse, the number of Hall pulses generated during the movement of the valve is recorded in two opposite directions of motion. If the quantity difference is within the set range, the mechanical stop position calibration is considered to be successful.
The mechanical stop position of the electric valve can be accurately calibrated without the use of a position sensor, ensuring that the valve can be fully opened or closed, reducing costs and improving calibration accuracy.
Smart Images

Figure CN119508573A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electric valves and electronic control, and in particular to a method and a control device for calibrating a mechanical stop position of an electric valve. Background Art
[0002] The electric valve includes a motor and a valve controlled by the motor. The motor controls the opening and closing of the valve and adjusts the valve position (ie, the opening degree of the valve).
[0003] At present, position sensors are generally used to detect the valve position of the valve. However, adding position sensors will increase the cost. In addition, as the valve wears mechanically, the actual position of the valve's mechanical stop will shift, causing the valve's mechanical stroke to change. If the valve is always operated according to the initially calibrated mechanical stop and mechanical stroke, the valve may not be able to perform its function, such as being unable to fully open or close. Summary of the invention
[0004] The starting point of the present invention is to provide a method and a control device for calibrating the mechanical stop position of an electric valve, thereby solving at least one of the above problems in the prior art.
[0005] An embodiment of the present invention provides a method for calibrating a mechanical stop position of an electric valve, wherein the electric valve comprises a motor and a valve controlled by the motor, and the method comprises:
[0006] The rotor of the motor rotates in a first rotation direction to drive the valve to move in a first movement direction, and the Hall pulse is continuously detected. If no Hall pulse is detected within a set time period, the position of the valve is stored as a first mechanical stop position;
[0007] The rotor of the motor is caused to rotate in a second rotation direction opposite to the first rotation direction to drive the valve to move from the first mechanical stop position in a second movement direction opposite to the first movement direction, and the Hall pulses are continuously detected and the number X of Hall pulses generated during the movement of the valve is recorded. If no Hall pulses are detected during the time period, the position of the valve is stored as the second mechanical stop position;
[0008] The rotor of the motor rotates along the first rotation direction to drive the valve to move along the first movement direction from the second mechanical stop position, and the Hall pulses are continuously detected and the number Y of Hall pulses generated in the process is recorded until no Hall pulses are detected in the time period;
[0009] If the difference between the quantity X and the quantity Y is within the set difference threshold range, it is considered that the first mechanical stop position and the second mechanical stop position of the valve are calibrated successfully.
[0010] Optionally, the method further comprises: if the difference between the quantity X and the quantity Y is not within the difference threshold range, the calibration is deemed unsuccessful, and the mechanical stop position of the electric valve is recalibrated.
[0011] Optionally, the method further comprises: when the calibration is successful, establishing a mapping relationship between the number X of Hall pulses and the mechanical stroke of the valve.
[0012] Optionally, the first mechanical stop corresponds to one of an open position and a closed position of the valve, and the second mechanical stop corresponds to the other of the open position and the closed position of the valve.
[0013] Optionally, the time period is set according to the type and / or rotation speed of the motor.
[0014] Optionally, the mechanical stop position of the valve is calibrated after each power-on start of the electric valve.
[0015] Optionally, the position data of the first mechanical stop position and the second mechanical stop position of the valve are stored in an EEPROM (Electrically Erasable Programmable Read-Only Memory) of the electric valve.
[0016] Optionally, after each power-on start of the electric valve, the valve is controlled according to the position data stored in the EEPROM of the electric valve.
[0017] Optionally, each time a preset time period has passed, the mechanical stop position of the valve is recalibrated, and the position data stored in the EEPROM of the electric valve is updated according to the calibration result.
[0018] An embodiment of the present invention further provides a control device, which is communicatively connected to the electric valve and is configured to execute the above method provided by the embodiment of the present invention.
[0019] The method and control device for calibrating the mechanical stop position of an electric valve according to the embodiment of the present invention have at least the following advantages:
[0020] In the present invention, the mechanical stop position of the electric valve is determined according to whether the Hall pulse can be detected in a set time period, so that the mechanical stop position of the valve can be calibrated without using a position sensor, thereby saving costs.
[0021] In the present invention, the mechanical stop position of the valve can be calibrated in real time, and the valve can be operated according to the mechanical stop position calibrated in real time, thereby ensuring that the valve realizes its function, for example, the valve can be fully opened or closed.
[0022] In the present invention, whether the calibration is successful is determined by recording and comparing the number of Hall pulses generated during the movement of the valve in two opposite directions, thereby ensuring the accuracy of the calibrated mechanical stop position.
[0023] In the present invention, when the calibration is successful, a mapping relationship between the number of Hall pulses and the mechanical stroke of the valve can be established, so that the actual position of the valve can be known according to the number of recorded Hall pulses during the process of controlling the operation of the valve.
[0024] In the present invention, the mechanical stop position of the valve can be calibrated after each power-on start of the electric valve, thereby ensuring the accuracy of the mechanical stop position of the valve in real time.
[0025] In the present invention, the position data of the first mechanical stop position and the second mechanical stop position of the valve can be stored in the EEPROM of the electric valve, and the electromagnetic valve can be controlled according to the stored position data after each power-on start of the electric valve, so that the electric valve does not need to be calibrated after each power-on start, saving the waiting time for the operation of the electric valve. In addition, the mechanical stop position of the valve can be recalibrated and the position data stored in the EEPROM of the electric valve can be updated every time a preset time period passes, thereby ensuring the accuracy of the mechanical stop position of the valve. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Other details and advantages of the present invention will become apparent from the detailed description provided below. It should be understood that the following drawings are merely schematic and not drawn to scale, and thus cannot be regarded as limiting the present application. The following will be described in detail with reference to the drawings, wherein:
[0027] Figure 1 A flow chart of a method for calibrating a mechanical stop position of an electric valve according to a specific embodiment of the present invention is shown. DETAILED DESCRIPTION
[0028] Embodiments of the present invention are described below with reference to the accompanying drawings. In the following description, many specific details are set forth so that those skilled in the art can more fully understand and implement the present invention. However, it is obvious to those skilled in the art that the present invention may be implemented without some of these specific details. In addition, it should be understood that the present invention is not limited to the specific embodiments described. On the contrary, any combination of the features and elements described below may be considered to implement the present invention, regardless of whether they relate to different embodiments. Therefore, the following aspects, features, embodiments and advantages are for illustrative purposes only and should not be regarded as elements or limitations of the claims unless clearly stated in the claims.
[0029] Now refer to Figure 1 , shows a flow chart of a method for calibrating the mechanical stop position of an electric valve according to a specific embodiment of the present invention. Figure 1 As shown, the method includes:
[0030] Step S101, the rotor of the motor rotates along a first rotation direction to drive the valve to move along a first movement direction, and continuously detects Hall pulses. If no Hall pulses are detected within a set time period, the position of the valve is stored as a first mechanical stop position.
[0031] Step S102, causes the rotor of the motor to rotate along a second rotation direction opposite to the first rotation direction to drive the valve to move from the first mechanical stop position along a second movement direction opposite to the first movement direction, and continuously detects the Hall pulses and records the number X of Hall pulses generated during the movement of the valve. If no Hall pulses are detected during the time period, the position of the valve is stored as the second mechanical stop position.
[0032] Step S103, causing the rotor of the motor to rotate in the first rotation direction to drive the valve to move in the first movement direction from the second mechanical stop position, and continuously detecting the Hall pulses and recording the number Y of Hall pulses generated in the process until no Hall pulses are detected in the time period.
[0033] Step S104: If the difference between the quantity X and the quantity Y is within the set difference threshold range, it is considered that the first mechanical stop position and the second mechanical stop position of the valve are calibrated successfully.
[0034] If the difference between the quantity X and the quantity Y is not within the difference threshold range, the calibration is deemed unsuccessful, and the calibration of the mechanical stop position of the electric valve is repeated.
[0035] When the calibration is successful, a mapping relationship between the number X of Hall pulses and the mechanical stroke of the valve can be established, so that the actual position of the valve can be known according to the number of recorded Hall pulses during the process of controlling the operation of the valve.
[0036] The first mechanical stop may correspond to one of an open position and a closed position of the valve, and the second mechanical stop may correspond to the other of the open position and the closed position of the valve.
[0037] The size of the set time period can be set according to actual conditions, and these variations do not exceed the scope of protection of the present invention. For example, the size of the time period can be set according to the type and / or speed of the motor. The set time period is preferably greater than the minimum time period in which the Hall pulse should be detected in theory, and more preferably multiple times greater than the minimum time period. For example, if the minimum time period in which the Hall pulse should be detected in theory is 100ms, the time period can be set to 300ms.
[0038] The mechanical stop position of the valve can be calibrated after each power-on start of the electric valve, thereby ensuring the accuracy of the mechanical stop position of the valve in real time.
[0039] The position data of the first mechanical stop position and the second mechanical stop position of the valve can also be stored in the EEPROM of the electric valve. After each power-on start of the electric valve, the valve is controlled according to the position data stored in the EEPROM of the electric valve, thereby saving the waiting time for the operation of the electric valve. In addition, the mechanical stop position of the valve can be recalibrated and the position data stored in the EEPROM of the electric valve can be updated every time a preset time period passes, thereby ensuring the accuracy of the mechanical stop position of the valve. The size of the set time period can be set according to actual conditions, and these variations do not exceed the protection scope of the present invention. For example, the set time period can be one week, one month, etc.
[0040] The embodiment of the present invention further provides a control device, which is in communication connection with the electric valve, and the control device is configured to execute the method for calibrating the mechanical stop position of the electric valve provided by the embodiment of the present invention. Any suitable electronic device with data processing function can be used as the control device, and these variations do not exceed the protection scope of the present invention. For example, a desktop computer, a tablet computer, a smart phone, etc. can be used.
[0041] Compared with the prior art, the method and control device for calibrating the mechanical stop position of the electric valve according to the embodiment of the present invention have at least the following advantages:
[0042] In the present invention, the mechanical stop position of the electric valve is determined according to whether the Hall pulse can be detected in a set time period, so that the mechanical stop position of the valve can be calibrated without using a position sensor, thereby saving costs.
[0043] In the present invention, the mechanical stop position of the valve can be calibrated in real time, and the valve can be operated according to the mechanical stop position calibrated in real time, thereby ensuring that the valve realizes its function, for example, the valve can be fully opened or closed.
[0044] In the present invention, whether the calibration is successful is determined by recording and comparing the number of Hall pulses generated during the movement of the valve in two opposite directions, thereby ensuring the accuracy of the calibrated mechanical stop position.
[0045] In the present invention, when the calibration is successful, a mapping relationship between the number of Hall pulses and the mechanical stroke of the valve can be established, so that the actual position of the valve can be known according to the number of recorded Hall pulses during the process of controlling the operation of the valve.
[0046] In the present invention, the mechanical stop position of the valve can be calibrated after each power-on start of the electric valve, thereby ensuring the accuracy of the mechanical stop position of the valve in real time.
[0047] In the present invention, the position data of the first mechanical stop position and the second mechanical stop position of the valve can be stored in the EEPROM of the electric valve, and the electromagnetic valve can be controlled according to the stored position data after each power-on start of the electric valve, so that the electric valve does not need to be calibrated after each power-on start, saving the waiting time for the operation of the electric valve. In addition, the mechanical stop position of the valve can be recalibrated and the position data stored in the EEPROM of the electric valve can be updated every time a preset time period passes, thereby ensuring the accuracy of the mechanical stop position of the valve.
[0048] It is pointed out that the above description is only an example and not a limitation of the present invention. In other embodiments of the present invention, the method may have more, fewer or different steps, and the order, inclusion and function of the steps may be different from those described and illustrated. For example, generally multiple steps can be combined into a single step, and a single step can also be divided into multiple steps. For those of ordinary skill in the art, without paying creative work, the sequential changes of the steps are also within the scope of protection of the present invention.
[0049] The technical solution of the present invention, in essence or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor or a microcontroller to perform all or part of the steps of the method described in each embodiment of the present invention.
[0050] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0051] Although the present invention has been disclosed as above with preferred embodiments, the present invention is not limited thereto. Any changes and modifications made by any person skilled in the art without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention, and therefore the protection scope of the present invention should be subject to the scope defined by the claims.
Claims
1. A method for calibrating a mechanical stop position of an electric valve, the electric valve comprising a motor and a valve controlled by the motor, characterized in that: The method comprises: The rotor of the motor rotates in a first rotation direction to drive the valve to move in a first movement direction, and the Hall pulse is continuously detected. If no Hall pulse is detected within a set time period, the position of the valve is stored as a first mechanical stop position; The rotor of the motor is caused to rotate in a second rotation direction opposite to the first rotation direction to drive the valve to move from the first mechanical stop position in a second movement direction opposite to the first movement direction, and the Hall pulses are continuously detected and the number X of Hall pulses generated during the movement of the valve is recorded. If no Hall pulses are detected during the time period, the position of the valve is stored as the second mechanical stop position; The rotor of the motor rotates along the first rotation direction to drive the valve to move along the first movement direction from the second mechanical stop position, and the Hall pulses are continuously detected and the number Y of Hall pulses generated in the process is recorded until no Hall pulses are detected in the time period; If the difference between the quantity X and the quantity Y is within the set difference threshold range, it is considered that the first mechanical stop position and the second mechanical stop position of the valve are calibrated successfully.
2. The method according to claim 1, further comprising: If the difference between the quantity X and the quantity Y is not within the difference threshold range, the calibration is deemed unsuccessful, and the calibration of the mechanical stop position of the electric valve is performed again.
3. The method according to claim 1, further comprising: When the calibration is successful, a mapping relationship between the number X of Hall pulses and the mechanical stroke of the valve is established.
4. The method according to claim 1, wherein: The first mechanical stop corresponds to one of an open position and a closed position of the valve, and the second mechanical stop corresponds to the other of the open position and the closed position of the valve.
5. The method according to claim 1, wherein: The time period is set according to the type and / or rotation speed of the motor.
6. The method according to claim 1, wherein: The mechanical stop position of the valve is calibrated after each power-on start of the electric valve.
7. The method according to claim 1, wherein: Position data of the first mechanical stop and the second mechanical stop of the valve are stored in the EEPROM of the electric valve.
8. The method according to claim 7, wherein: After each power-on start of the electric valve, the valve is controlled according to the position data stored in the EEPROM of the electric valve.
9. The method according to claim 8, wherein: Whenever a preset time period has passed, the mechanical stop position of the valve is recalibrated, and the position data stored in the EEPROM of the electric valve is updated according to the calibration result. 10 . A control device, the control device being in communication with an electric valve, the control device being configured to execute the method according to claim 1 .