The present invention discloses a PWM
average current calculation device and method for a proportional
solenoid valve. Its acquisition module acquires the
power supply voltage, the peak and valley drive currents of the spool and the corresponding moments; the parameter calculation module calculates parameters such as the
inductance and resistance of the proportional
solenoid valve coil; the filter module performs low-pass filtering on the
coil inductance and resistance; the current refinement module calculates the
time constant, establishes the corresponding
circuit equation, and calculates the refined current value to determine the current sequence; the
average current module performs trapezoidal summation on the current sequence and then divides it by the PWM period to calculate the
average current. The present invention not only has the
advantage of calculating the average current through
software, but also has the advantages of reducing the sampling frequency, reducing costs, improving the calculation accuracy, thereby improving the spool control accuracy, enhancing the
rapidity and stability of current control, etc., which is beneficial to eliminating the changes in the resistance of the proportional
solenoid valve caused by changes in environmental factors, increasing the adaptability, and at the same time enhancing the responsiveness of the proportional solenoid valve.