Control device and method for electronic expansion valve

By designing the control device of the electronic expansion valve in the vehicle air conditioning system, and utilizing the collaborative work of the vehicle controller, main controller and drive module, the problem of high load rate of the electronic expansion valve controller is solved and the system efficiency is improved. and reduction in energy consumption.

CN118769812APending Publication Date: 2024-10-15SHANGHAI JINMAI ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410996380.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The controller load rate of the electronic expansion valve in the existing vehicle air conditioning system is too high, resulting in low system efficiency.

Method used

A control device for an electronic expansion valve is designed, including a vehicle controller, a main controller and a drive module. By sending target position instructions and pulse signals, the valve needle of the electronic expansion valve is controlled to move to the target position, and by setting the main control The task duration of the controller is greater than or equal to 5ms, which increases the idle time proportion of the main controller, thereby reducing the load rate of the controller.

Benefits of technology

It effectively reduces the load rate of the main controller, improves system efficiency, and reduces unnecessary energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118769812A_ABST
    Figure CN118769812A_ABST
Patent Text Reader

Abstract

The invention discloses a control device and method for an electronic expansion valve. The control device comprises a vehicle control unit, a main controller and a driving module. The vehicle control unit is connected with the main controller and used for sending a target position instruction to the main controller; the main controller is connected with the driving module and used for calculating the actual position of a valve needle of the electronic expansion valve and sending a pulse signal and a direction signal to the driving module according to a target position instruction and the actual position of the valve needle. The main controller controls the task duration of the electronic expansion valve to be greater than or equal to 5ms; the driving module is connected with the electronic expansion valve and used for controlling a valve needle of the electronic expansion valve to move to a target position according to the pulse signal and the direction signal. The task duration of the main controller for controlling the electronic expansion valve is long, the idle time ratio of the main controller can be effectively increased, and therefore the load rate of the main controller is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of thermal management technology, and in particular to a control device and method for an electronic expansion valve. Background Art

[0002] At present, thermal management is on the rise. For fine temperature control on the refrigerant side, electronic expansion valves replace thermal valves. Electronic expansion valves are actuators that control the operation of stepper motors through host programs, and the valve needle is directly driven by the motor rotor, thereby changing the flow area of ​​the valve port and realizing the control of refrigerant flow in the air-conditioning refrigerant circuit. For automotive air-conditioning systems, the refrigerant flow can be actively controlled to reduce unnecessary energy consumption of the air-conditioning system. By changing the flow area of ​​the electronic expansion valve port, the refrigerant flow in the air-conditioning refrigerant circuit can be controlled.

[0003] At present, mainstream car companies will install three or more electronic expansion valves in the refrigerant side circuit to achieve more precise and flexible temperature control of the passenger compartment and motor battery circuits based on customer comfort and vehicle efficiency. However, multiple actuators will increase the load rate of the controller. Summary of the invention

[0004] The present invention provides a control device and method for an electronic expansion valve to solve the problem of high load rate of the current controller.

[0005] In a first aspect, the present invention provides a control device for an electronic expansion valve, the control device comprising: a vehicle controller, a main controller and a drive module;

[0006] The vehicle controller is connected to the main controller and is used to send a target position instruction to the main controller;

[0007] The main controller is connected to the driving module, and is used to calculate the actual position of the valve needle of the electronic expansion valve, and send a pulse signal and a direction signal to the driving module according to the target position instruction and the actual position of the valve needle; the main controller controls the electronic expansion valve with a task duration greater than or equal to 5ms;

[0008] The driving module is connected to the electronic expansion valve, and is used to control the valve needle of the electronic expansion valve to move to a target position according to a pulse signal and a direction signal.

[0009] Optionally, the drive module is used to generate a pulse signal and a direction signal in 2 N The stepper motor of the electronic expansion valve is driven to operate in a multiple current subdivision manner, and the stepper motor drives the valve needle to move to a target position, wherein N>0 and N is an integer.

[0010] Optionally, the main controller sends a pulse signal and a direction signal to the drive module. The main controller is also used to calculate the real-time position of the valve needle of the electronic expansion valve by superimposing the position of the valve needle according to the number of pulses of the pulse signal sent and the direction signal, and send the real-time position of the valve needle of the electronic expansion valve to the vehicle controller.

[0011] Optionally, the main controller is also used to store the pulse number information of the sent pulse signal in a register.

[0012] Optionally, the main controller is also used to detect whether the drive module fails. When the drive module fails, the main controller stops sending pulse signals and direction signals to the drive module, controls the drive module to stop working, and sends fault information to the vehicle controller.

[0013] In a second aspect, the present invention provides a control method for an electronic expansion valve, wherein the control method for the electronic expansion valve is performed by a control device for the electronic expansion valve, and the control method includes:

[0014] The vehicle controller sends the target position command to the main controller;

[0015] The main controller obtains the target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; the main controller controls the task time of the electronic expansion valve to be greater than or equal to 5ms;

[0016] The drive module controls the valve needle of the electronic expansion valve to move to the target position according to the pulse signal and the direction signal.

[0017] Optionally, the driving module controls the valve needle of the electronic expansion valve to move to a target position according to the pulse signal and the direction signal, including:

[0018] The drive module uses 2 N The stepper motor of the electronic expansion valve is driven to operate in a multiple current subdivision manner, and the stepper motor drives the valve needle to move to a target position, wherein N>0 and N is an integer.

[0019] Optionally, the main controller obtains a target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; while the main controller controls the task duration of the electronic expansion valve to be greater than or equal to 5 ms, it also includes:

[0020] The main controller calculates the real-time position of the valve needle of the electronic expansion valve by superimposing the position of the valve needle according to the number of pulses of the sent pulse signal and the direction signal, and sends the real-time position of the valve needle of the electronic expansion valve to the vehicle controller.

[0021] Optionally, the main controller obtains a target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; while the main controller controls the task duration of the electronic expansion valve to be greater than or equal to 5 ms, it also includes:

[0022] The main controller stores the pulse number information of the transmitted pulse signal in the register.

[0023] Optionally, the main controller obtains a target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; while the main controller controls the task duration of the electronic expansion valve to be greater than or equal to 5 ms, it also includes:

[0024] The main controller detects whether the drive module fails. When the drive module fails, the main controller stops sending pulse signals and direction signals to the drive module, controls the drive module to stop working, and sends fault information to the vehicle controller.

[0025] The technical solution of the present invention is to set a main controller to receive a target position instruction, and send a pulse signal and a direction signal to a drive module according to the target position instruction and the actual position of the valve needle, and the drive module controls the valve needle of the electronic expansion valve to move to the target position according to the pulse signal and the direction signal. Setting the main controller to control the electronic expansion valve for a longer task duration can effectively increase the idle time ratio of the main controller, thereby effectively reducing the load rate of the main controller.

[0026] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 It is a structural schematic diagram of the connection between a control device for an electronic expansion valve and an electronic expansion valve provided by an embodiment of the present invention;

[0029] Figure 2 is a flow chart of a control method of an electronic expansion valve provided by an embodiment of the present invention;

[0030] Figure 3is a flow chart of another method for controlling an electronic expansion valve provided by an embodiment of the present invention;

[0031] Figure 4 is a flow chart of another method for controlling an electronic expansion valve provided by an embodiment of the present invention;

[0032] Figure 5 is a flow chart of another method for controlling an electronic expansion valve provided by an embodiment of the present invention;

[0033] Figure 6 is a flow chart of another method for controlling an electronic expansion valve provided by an embodiment of the present invention;

[0034] Figure 7 It is a schematic diagram of a working process of a main controller provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction 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 the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0037] Figure 1 1 is a schematic diagram of a structure of a connection between an electronic expansion valve control device and an electronic expansion valve provided by an embodiment of the present invention. Figure 1As shown, the control device includes: a vehicle controller 1, a main controller 2 and a drive module 3. The vehicle controller 1 is connected to the main controller 2, and is used to send a target position instruction to the main controller 2; the main controller 2 is connected to the drive module 3, and is used to calculate the actual position of the valve needle of the electronic expansion valve 4, and send a pulse signal Step and a direction signal Dir to the drive module 3 according to the target position instruction and the actual position of the valve needle; the main controller 2 controls the task duration of the electronic expansion valve 4 to be greater than or equal to 5ms. The drive module 3 is connected to the electronic expansion valve 4, and the drive module 3 is used to control the valve needle of the electronic expansion valve 4 to move to the target position according to the pulse signal Step and the direction signal Dir.

[0038] Specifically, the control device of the electronic expansion valve includes a vehicle control unit 1 (VCU), a main controller 2 and a drive module 3. Exemplarily, the main controller 2 may include a microcontroller unit (MCU), and the MCU may include a control module and a pulse width modulation (PWM) module. The drive module 3 may include a DRV8889 chip. The vehicle controller 1 is connected to the main controller 2, and the vehicle controller 1 sends a target position instruction to the main controller 2 according to demand. Exemplarily, the vehicle controller 1 can send the target position instruction to the main controller 2 through the LIN communication protocol, and the vehicle controller 1 can also send the target position instruction to the main controller 2 through the CAN communication protocol.

[0039] The main controller 2 is connected to the driving module 3. After the main controller 2 receives the target position instruction, the control module of the main controller 2 can calculate the current actual position of the valve needle of the electronic expansion valve 4 based on the pulse signal Step and the direction signal Dir sent previously, and parse the target position instruction, and confirm the direction signal Dir according to the current position of the valve needle and the target position instruction. For example, the direction signal Dir can be 1 or 0, 1 can represent that the valve needle of the electronic expansion valve 4 needs to be controlled to rotate forward, increasing the flow area of ​​the valve port. 0 can represent that the valve needle of the electronic expansion valve 4 needs to be controlled to reverse, reducing the flow area of ​​the valve port. And according to the current position of the valve needle and the target position instruction, the driving frequency, driving current and number of pulses are determined to confirm the pulse signal Step. The pulse signal Step is a certain number of pulses sent at the driving frequency. The PWM module can be used to send the pulse signal Step.

[0040] The driving module 3 is connected to the electronic expansion valve 4. The driving module 3 receives the pulse signal Step and the direction signal Dir, and controls the operation of the stepper motor of the electronic expansion valve 4 according to the pulse signal Step and the direction signal Dir. The stepper motor rotor directly drives the valve needle to move the valve needle of the electronic expansion valve 4 to the target position.

[0041] The task duration of the main controller 2 controlling the electronic expansion valve 4 is greater than or equal to 5 ms. For example, the task duration of the main controller 2 controlling the electronic expansion valve 4 can be set to 10 ms or 20 ms. Figure 1 The 10ms task in the figure is that the task duration of the main controller 2 controlling the electronic expansion valve 4 is set to 10ms. The task duration of the main controller 2 controlling the electronic expansion valve 4 can be set to a larger value according to actual needs. For example, the program execution time of the main controller 2 controlling the electronic expansion valve 4 is 500us. If the task duration of the main controller 2 controlling the electronic expansion valve 4 is set to 10ms, the idle time proportion of the main controller 2 is 95%. By setting the task duration of the main controller 2 controlling the electronic expansion valve 4 to be longer, the idle time proportion of the main controller 2 can be effectively increased, thereby effectively reducing the load rate of the main controller 2.

[0042] The technical solution of the embodiment of the present invention is to set the main controller to receive the target position instruction, and send a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle, and the drive module controls the valve needle of the electronic expansion valve to move to the target position according to the pulse signal and the direction signal. Setting the main controller to control the electronic expansion valve for a longer task duration can effectively increase the idle time ratio of the main controller, thereby effectively reducing the load rate of the main controller.

[0043] Optionally, based on the above embodiment, continue to refer to Figure 1 The driving module 3 is used to drive the pulse signal Step and the direction signal Dir in 2 N The stepper motor of the electronic expansion valve 4 is driven to operate in a multiple current subdivision manner, and the stepper motor drives the valve needle to move to the target position, wherein N>0 and N is an integer.

[0044] Specifically, the driving module 3 can drive the stepper motor of the electronic expansion valve 4 to operate in a 16-fold current subdivision mode, or can be set to drive the stepper motor of the electronic expansion valve 4 to operate in a 32-fold current subdivision mode, or can be set to drive the stepper motor of the electronic expansion valve 4 to operate in a 256-fold current subdivision mode. No specific limitation is made here. The 16-fold current subdivision drive means that the current of each phase of the driving module 4 when driving the stepper motor of the electronic expansion valve 4 gradually increases in 16 steps in a step-like manner, so that the force attracting the stepper motor rotor changes slowly, and each time the rotor is stationary at the balance point of the force. The step angle is subdivided into 16 parts. The larger the subdivision multiple, the denser the current vector segmentation circle, which can make the rotor run smoothly. During operation, increasing the subdivision multiple is one of the effective methods to reduce vibration. After the subdivision multiple is determined, the degree of position change of the valve needle of the electronic expansion valve 4 corresponding to each pulse in the pulse signal Step is determined.

[0045] The main body of the electronic expansion valve 4 is a stepper motor, which is easy to control and has no accumulated error. The electronic expansion valve 4 converts the rotational motion of the stepper motor into linear motion.

[0046] Exemplarily, the control mode of the drive module 3 requires 16 subdivisions, the vehicle controller 1 instructs 0-576 strokes (in half steps), the driving speed is 100PPS (1s drives the stepper motor 100 half steps), and 8 pulses are required in 10ms. The control of the stepper motor is placed in the 10ms task of the main controller 2. The main controller 2 calculates the current actual position of the valve needle of the electronic expansion valve 4 as 0 based on the previously sent pulse signal Step and the direction signal Dir. The target position instruction received by the main controller 2 is 10. After receiving the target position instruction, the main controller 2 compares the target position instruction 10 with the actual position 0, gives the direction signal Dir to the DRV8889 chip, and sends 8 pulses to the DRV8889 chip at the same time.

[0047] Optionally, based on the above embodiments, continue to refer to Figure 1 The main controller 2 sends a pulse signal Step and a direction signal Dir to the drive module 3. The main controller 2 is also used to calculate the real-time position of the valve needle of the electronic expansion valve 4 by superimposing the position of the valve needle according to the number of pulses of the sent pulse signal Step and the direction signal Dir, and send the real-time position of the valve needle of the electronic expansion valve 4 to the vehicle controller 1.

[0048] Specifically, the PWM module of the main controller 2 sends a pulse signal Step and a direction signal Dir to the drive module 3. At the same time, each time the PWM module sends a pulse, it will return to the control module. The control module triggers the counter in the main controller 2 to add one. The count value of the counter is updated in real time and stored in the register of the main controller 2. The main controller 2 obtains the number of pulses sent in the register, and calculates the real-time position of the valve needle of the electronic expansion valve 4 by superimposing the position of the valve needle according to the number of pulses of the pulse signal Step sent and the direction signal Dir, and sends the real-time position of the valve needle of the electronic expansion valve 4 to the vehicle controller 1. Exemplarily, the main controller 2 can send the real-time position of the valve needle of the electronic expansion valve 4 to the vehicle controller 1 through the LIN communication protocol, and the main controller 2 can also send the real-time position of the valve needle of the electronic expansion valve 4 to the vehicle controller 1 through the CAN communication protocol, and the vehicle controller 1 obtains the current position of the valve needle of the electronic expansion valve 4 in real time.

[0049] Optionally, based on the above embodiments, continue to refer to Figure 1 The main controller 2 is also used to store the pulse number information of the sent pulse signal Step in the register.

[0050] Specifically, the PWM module of the main controller 2 sends a pulse signal Step and a direction signal Dir to the drive module 3. At the same time, each time the PWM module sends a pulse, it will return to the control module. The control module triggers the counter in the main controller 2 to add one. The count value of the counter is updated in real time and stored in the register of the main controller 2. The staff can read the storage information in the register to obtain the number of pulses that the main controller 2 has sent to the drive module 3. This setting allows the staff to accurately obtain the position information of the valve needle of the electronic expansion valve 4. If the valve needle of the electronic expansion valve 4 does not move to the target position in the end, the valve needle movement of the electronic expansion valve 4 can be re-driven manually.

[0051] Optionally, based on the above embodiments, continue to refer to Figure 1 The main controller 2 is also used to detect whether the drive module 3 fails. When the drive module 3 fails, the main controller 2 stops sending the pulse signal Step and the direction signal Dir to the drive module 3, controls the drive module 3 to stop working, and sends the fault information to the vehicle controller 1.

[0052] Specifically, the main controller 2 is connected to the drive module 3, and the main controller 2 can detect whether the drive module 3 fails. The main controller 2 detects whether the drive module 3 fails based on the detection signal Fault. Exemplarily, the main controller 2 can detect whether the drive module 3 has an overcurrent fault, an overvoltage fault, an overtemperature fault, etc. based on the detection signal Fault. If the drive module 3 fails, the main controller 2 stops sending the pulse signal Step and the direction signal Dir to the drive module 3, and controls the drive module 3 to stop working. The main controller 2 will also feed back the fault information to the vehicle controller 1, and the vehicle controller 1 will obtain the fault information of the drive module 3 in real time. When the drive module 3 fails, it can also stop sending the target position instruction to the main controller 2.

[0053] Figure 2 is a flow chart of a control method of an electronic expansion valve provided by an embodiment of the present invention. The control method of the electronic expansion valve is executed by a control device of the electronic expansion valve. Figure 2 As shown, the control method includes:

[0054] S100: The vehicle controller sends a target position instruction to the main controller.

[0055] Specifically, refer to Figure 1 The vehicle controller 1 sends the target position instruction to the main controller 2 according to the demand. For example, the vehicle controller 1 can send the target position instruction to the main controller 2 through the LIN communication protocol, and the vehicle controller 1 can also send the target position instruction to the main controller 2 through the CAN communication protocol.

[0056] S110: The main controller obtains the target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; the main controller controls the task duration of the electronic expansion valve to be greater than or equal to 5ms.

[0057] Specifically, refer to Figure 1 After receiving the target position instruction, the control module of the main controller 2 can calculate the current actual position of the valve needle of the electronic expansion valve 4 based on the previously sent pulse signal Step and the direction signal Dir, and parse the target position instruction, and confirm the direction signal Dir according to the current position of the valve needle and the target position instruction. For example, the direction signal Dir can be 1 or 0, 1 can represent that the valve needle of the electronic expansion valve 4 needs to be controlled to rotate forward, increasing the flow area of ​​the valve port. 0 can represent that the valve needle of the electronic expansion valve 4 needs to be controlled to reverse, reducing the flow area of ​​the valve port. And determine the driving frequency, driving current and number of pulses according to the current position of the valve needle and the target position instruction, so as to confirm the pulse signal Step. The pulse signal Step is a certain number of pulses sent at the driving frequency. The PWM module can be used to send the pulse signal Step.

[0058] The task duration of the main controller 2 controlling the electronic expansion valve 4 is greater than or equal to 5ms. For example, the task duration of the main controller 2 controlling the electronic expansion valve 4 can be set to 10ms or 20ms. The task duration of the main controller 2 controlling the electronic expansion valve 4 can be set to a larger value according to actual needs. For example, the program execution time of the main controller 2 controlling the electronic expansion valve 4 is 500us. If the task duration of the main controller 2 controlling the electronic expansion valve 4 can be set to 10ms, the idle time proportion of the main controller 2 is 95%. By setting the task duration of the main controller 2 controlling the electronic expansion valve 4 to be longer, the idle time proportion of the main controller 2 can be effectively increased, thereby effectively reducing the load rate of the main controller 2.

[0059] S120: The driving module controls the valve needle of the electronic expansion valve to move to a target position according to the pulse signal and the direction signal.

[0060] Specifically, refer to Figure 1 The driving module 3 receives the pulse signal Step and the direction signal Dir, and controls the operation of the stepper motor of the electronic expansion valve 4 according to the pulse signal Step and the direction signal Dir, and the stepper motor rotor directly drives the valve needle to move the valve needle of the electronic expansion valve 4 to the target position.

[0061] Optionally, based on the above embodiment, Figure 3 is a flow chart of another method for controlling an electronic expansion valve provided by an embodiment of the present invention. Figure 3As shown, the control method includes:

[0062] S200: The vehicle controller sends a target position instruction to the main controller.

[0063] S210: The main controller obtains the target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; the main controller controls the task duration of the electronic expansion valve to be greater than or equal to 5ms.

[0064] S220: The drive module uses 2 N The stepper motor of the electronic expansion valve is driven to operate in a multiple current subdivision manner, and the stepper motor drives the valve needle to move to the target position, wherein N>0 and N is an integer.

[0065] Specifically, refer to Figure 1 , the driving module 3 can drive the stepper motor of the electronic expansion valve 4 to operate in a 16-fold current subdivision mode, or can be set to drive the stepper motor of the electronic expansion valve 4 to operate in a 32-fold current subdivision mode, or can be set to drive the stepper motor of the electronic expansion valve 4 to operate in a 256-fold current subdivision mode. No specific limitation is made here. The 16-fold current subdivision drive means that the current of each phase of the driving module 4 when driving the stepper motor of the electronic expansion valve 4 gradually increases in 16 steps in a step-like manner, so that the force attracting the stepper motor rotor changes slowly, and each time the rotor stops at the balance point of the force. The step angle is subdivided into 16 parts. The larger the subdivision multiple, the denser the current vector segmentation circle, which can make the rotor run smoothly. During operation, increasing the subdivision multiple is one of the effective ways to reduce vibration. After the subdivision multiple is determined, the degree of position change of the valve needle of the electronic expansion valve 4 corresponding to each pulse in the pulse signal Step is determined.

[0066] Exemplarily, the control mode of the drive module 3 requires 16 subdivisions, the vehicle controller 1 instructs 0-576 strokes (in half steps), the driving speed is 100PPS (1s drives the stepper motor 100 half steps), and 8 pulses are required in 10ms. The control of the stepper motor is placed in the 10ms task of the main controller 2. The main controller 2 calculates the current actual position of the valve needle of the electronic expansion valve 4 as 0 based on the previously sent pulse signal Step and the direction signal Dir. The target position instruction received by the main controller 2 is 10. After receiving the target position instruction, the main controller 2 compares the target position instruction 10 with the actual position 0, gives the direction signal Dir to the DRV8889 chip, and sends 8 pulses to the DRV8889 chip at the same time.

[0067] Optionally, based on the above embodiment, Figure 4 is a flow chart of another method for controlling an electronic expansion valve provided by an embodiment of the present invention. Figure 4 As shown, the control method includes:

[0068] S300: The vehicle controller sends a target position instruction to the main controller.

[0069] S310: The main controller obtains the target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; the main controller controls the task duration of the electronic expansion valve to be greater than or equal to 5ms; the main controller calculates the real-time position of the valve needle of the electronic expansion valve by superimposing the position of the valve needle according to the number of pulses of the pulse signal sent and the direction signal, and sends the real-time position of the valve needle of the electronic expansion valve to the vehicle controller.

[0070] Specifically, refer to Figure 1 , the PWM module of the main controller 2 sends a pulse signal Step and a direction signal Dir to the drive module 3. At the same time, each time the PWM module sends a pulse, it will return to the control module. The control module triggers the counter in the main controller 2 to add one. The count value of the counter is updated in real time and stored in the register of the main controller 2. The main controller 2 obtains the number of pulses sent in the register, and calculates the real-time position of the valve needle of the electronic expansion valve 4 by superimposing the position of the valve needle according to the number of pulses of the pulse signal Step sent and the direction signal Dir, and sends the real-time position of the valve needle of the electronic expansion valve 4 to the vehicle controller 1. Exemplarily, the main controller 2 can send the real-time position of the valve needle of the electronic expansion valve 4 to the vehicle controller 1 through the LIN communication protocol, and the main controller 2 can also send the real-time position of the valve needle of the electronic expansion valve 4 to the vehicle controller 1 through the CAN communication protocol, and the vehicle controller 1 obtains the current position of the valve needle of the electronic expansion valve 4 in real time.

[0071] S320: The driving module controls the valve needle of the electronic expansion valve to move to the target position according to the pulse signal and the direction signal.

[0072] Optionally, based on the above embodiment, Figure 5 is a flow chart of another method for controlling an electronic expansion valve provided by an embodiment of the present invention. Figure 5 As shown, the control method includes:

[0073] S400: The vehicle controller sends a target position instruction to the main controller.

[0074] S410: The main controller obtains the target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; the main controller controls the task duration of the electronic expansion valve to be greater than or equal to 5ms; the main controller stores the pulse number information of the pulse signal that has been sent in the register.

[0075] Specifically, refer to Figure 1 , the PWM module of the main controller 2 sends a pulse signal Step and a direction signal Dir to the drive module 3. At the same time, each time the PWM module sends a pulse, it will return to the control module. The control module triggers the counter in the main controller 2 to add one. The count value of the counter is updated in real time and stored in the register of the main controller 2. The staff can read the storage information in the register to obtain the number of pulses that the main controller 2 has sent to the drive module 3. This setting allows the staff to accurately obtain the position information of the valve needle of the electronic expansion valve 4. If the valve needle of the electronic expansion valve 4 does not move to the target position in the end, the valve needle movement of the electronic expansion valve 4 can be re-driven manually.

[0076] S420: The driving module controls the valve needle of the electronic expansion valve to move to the target position according to the pulse signal and the direction signal.

[0077] Optionally, based on the above embodiment, Figure 6 is a flow chart of another method for controlling an electronic expansion valve provided by an embodiment of the present invention. Figure 6 As shown, the control method includes:

[0078] S500: The vehicle controller sends a target position instruction to the main controller.

[0079] S510: The main controller obtains the target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; the main controller controls the task duration of the electronic expansion valve to be greater than or equal to 5ms; the main controller detects whether the drive module fails. When the drive module fails, the main controller stops sending pulse signals and direction signals to the drive module and controls the drive module to stop working; and sends fault information to the vehicle controller.

[0080] Specifically, refer to Figure 1 , the main controller 2 can detect whether the drive module 3 fails, and the main controller 2 detects whether the drive module 3 fails according to the detection signal Fault. Exemplarily, the main controller 2 can detect whether the drive module 3 has an overcurrent fault, an overvoltage fault, an overtemperature fault, etc. according to the detection signal Fault. If the drive module 3 fails, the main controller 2 stops sending the pulse signal Step and the direction signal Dir to the drive module 3, and controls the drive module 3 to stop working. The main controller 2 will also feed back the fault information to the vehicle controller 1, and the vehicle controller 1 obtains the fault information of the drive module 3 in real time. When the drive module 3 fails, it can also stop sending the target position instruction to the main controller 2.

[0081] S520: The driving module controls the valve needle of the electronic expansion valve to move to the target position according to the pulse signal and the direction signal.

[0082] The control method of the electronic expansion valve provided in any of the above embodiments of the present invention can be executed by the control device of the electronic expansion valve provided in any of the above embodiments of the present invention, and has the beneficial effects of the control device of the electronic expansion valve provided in any of the above embodiments of the present invention.

[0083] Optional, Figure 7 FIG. 1 is a schematic diagram of a working process of a main controller provided by an embodiment of the present invention, such as Figure 1 and Figure 7 As shown, the control module of the main controller 2 can calculate the current real position of the valve needle of the electronic expansion valve 4 based on the number of pulses in the previously sent pulse signal Step and the direction signal Dir, and receive the target position instruction and parse the target position instruction, confirm the direction signal Dir according to the current position of the valve needle and the target position instruction, and determine the driving frequency, driving current and number of pulses according to the current position of the valve needle and the target position instruction, thereby confirming the pulse signal Step. Send the pulse signal Step and the direction signal Dir to the drive module 3.

[0084] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0085] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A control device for an electronic expansion valve, characterized in that: include: Vehicle controller, main controller and drive module; The vehicle controller is connected to the main controller and is used to send a target position instruction to the main controller; The main controller is connected to the driving module, and is used to calculate the actual position of the valve needle of the electronic expansion valve, and send a pulse signal and a direction signal to the driving module according to the target position instruction and the actual position of the valve needle; The main controller controls the electronic expansion valve for a task duration greater than or equal to 5 ms; The driving module is connected to the electronic expansion valve, and is used for controlling the valve needle of the electronic expansion valve to move to a target position according to the pulse signal and the direction signal.

2. The control device for an electronic expansion valve according to claim 1, characterized in that: The driving module is used to drive the pulse signal and the direction signal in accordance with 2 N The stepper motor of the electronic expansion valve is driven to operate in a multiple current subdivision manner, and the stepper motor drives the valve needle to move to a target position, wherein N>0 and N is an integer.

3. The control device for an electronic expansion valve according to claim 1, characterized in that: The main controller sends a pulse signal and a direction signal to the driving module. The main controller is also used to calculate the real-time position of the valve needle of the electronic expansion valve by superimposing the position of the valve needle according to the number of pulses of the pulse signal sent and the direction signal, and send the real-time position of the valve needle of the electronic expansion valve to the vehicle controller.

4. The control device for an electronic expansion valve according to claim 1, characterized in that: The main controller is also used to store the pulse number information of the sent pulse signal in a register.

5. The control device for an electronic expansion valve according to claim 1, characterized in that: The main controller is also used to detect whether the driving module fails. When the driving module fails, the main controller stops sending the pulse signal and the direction signal to the driving module, and controls the driving module to stop working; And send fault information to the vehicle controller.

6. A method for controlling an electronic expansion valve, characterized in that: The control method of the electronic expansion valve is performed by a control device of the electronic expansion valve, and the control method includes: The vehicle controller sends the target position command to the main controller; The main controller obtains the target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; the main controller controls the task time of the electronic expansion valve to be greater than or equal to 5ms; The driving module controls the valve needle of the electronic expansion valve to move to a target position according to the pulse signal and the direction signal.

7. The control method of the electronic expansion valve according to claim 6, characterized in that: The driving module controls the valve needle of the electronic expansion valve to move to a target position according to the pulse signal and the direction signal, including: The driving module uses 2 N The stepper motor of the electronic expansion valve is driven to operate in a multiple current subdivision manner, and the stepper motor drives the valve needle to move to a target position, wherein N>0 and N is an integer.

8. The control method of the electronic expansion valve according to claim 6, characterized in that: The main controller obtains the target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; When the main controller controls the electronic expansion valve to have a task duration greater than or equal to 5 ms, the main controller further comprises: The main controller calculates the real-time position of the valve needle of the electronic expansion valve by superimposing the position of the valve needle according to the number of pulses of the pulse signal sent and the direction signal, and sends the real-time position of the valve needle of the electronic expansion valve to the vehicle controller.

9. The control method of the electronic expansion valve according to claim 6, characterized in that: The main controller obtains the target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; When the main controller controls the electronic expansion valve to have a task duration greater than or equal to 5 ms, the main controller further comprises: The main controller stores the pulse number information of the sent pulse signal in a register.

10. The control method of the electronic expansion valve according to claim 6, characterized in that: The main controller obtains the target position instruction; calculates the actual position of the valve needle of the electronic expansion valve, and sends a pulse signal and a direction signal to the drive module according to the target position instruction and the actual position of the valve needle; When the main controller controls the electronic expansion valve to have a task duration greater than or equal to 5 ms, the main controller further comprises: The main controller detects whether the driving module fails. When the driving module fails, the main controller stops sending the pulse signal and the direction signal to the driving module, controls the driving module to stop working, and sends fault information to the vehicle controller.