CN110865225B - Proportional valve current acquisition method and system and electronic equipment - Google Patents

Proportional valve current acquisition method and system and electronic equipment Download PDF

Info

Publication number
CN110865225B
CN110865225B CN201911210733.7A CN201911210733A CN110865225B CN 110865225 B CN110865225 B CN 110865225B CN 201911210733 A CN201911210733 A CN 201911210733A CN 110865225 B CN110865225 B CN 110865225B
Authority
CN
China
Prior art keywords
current
voltage signal
time corresponding
current value
computing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911210733.7A
Other languages
Chinese (zh)
Other versions
CN110865225A (en
Inventor
夏光
李嘉诚
纵华宇
于星海
王跃强
许立平
石鹏
赵名卓
汪韶杰
孙保群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei University of Technology
Original Assignee
Hefei University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei University of Technology filed Critical Hefei University of Technology
Priority to CN201911210733.7A priority Critical patent/CN110865225B/en
Publication of CN110865225A publication Critical patent/CN110865225A/en
Application granted granted Critical
Publication of CN110865225B publication Critical patent/CN110865225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16504Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the components employed
    • G01R19/16509Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the components employed using electromagnetic relays, e.g. reed relay
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0092Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring current only

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Magnetically Actuated Valves (AREA)

Abstract

The invention discloses a proportional valve current acquisition method, a system and electronic equipment, wherein the proportional valve current acquisition method comprises the following steps: according to the amplitude of the voltage signal, and the time corresponding to the adjacent rising edge and the time corresponding to the falling edge in the voltage signal, calculating the areas of the voltage signal at the time corresponding to the adjacent rising edge and the time corresponding to the adjacent falling edge, obtaining a current proportion coefficient, according to the areas of the voltage signal and the current proportion coefficient, calculating the current values of a plurality of groups of electromagnetic valves, and performing weighted average calculation on the current values of the plurality of groups of electromagnetic valves to obtain the current value of the electromagnetic valve after weighted average. The invention ensures higher precision and greatly improves the speed of current signal acquisition.

Description

Proportional valve current acquisition method and system and electronic equipment
Technical Field
The invention relates to the technical field of automatic control, in particular to a proportional valve current acquisition method, a proportional valve current acquisition system and electronic equipment.
Background
Along with the development of automobile electric automation control, the application quantity and variety of the electromagnetic valve are more and more, and the requirement on the control precision of the electromagnetic valve is higher and higher. Therefore, improving the accuracy of solenoid control is one of the important goals of hardware design.
In the current application, for the acquisition of current information of a proportional valve driven by PWM (pulse width modulation), a common method is to use a low-pass filter to filter out other frequency components in the current of the solenoid valve to form a relatively stable direct current, but in the filtering process, there is a contradiction between the linearity of the direct current and the filtering conversion time, and if a direct current with strong linearity is obtained, the charging and discharging time of the filter is long, the current waveform conversion speed is slow, and the acquisition speed and accuracy are low. Meanwhile, in practical engineering, because the precision of a hardware circuit driving chip and an electronic element in a control system is different, and the consistency of proportional solenoid valves has a certain difference, when the PWM with the same frequency and duty ratio is output to the hardware circuits of the control system in different batches, and the solenoid valves in different batches control the same actuating mechanism, different driving currents are generated, so that the actuating mechanism has deviation from the target position, the duty ratio of the PWM must be re-calibrated according to the current hardware circuit and solenoid valve of the control system, so that the actuating mechanism reaches the target position, the calibration workload is huge, and the self-adaptive capacity is poor. In addition, the stable change of the working environment of the hardware circuit, the electromagnetic valve and the execution mechanism of the control system can cause the deviation between the execution mechanism and the target position, and the duty ratio of the PWM needs to be calibrated again to enable the execution mechanism to reach the target position.
Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present invention is to provide a method, a system and an electronic device for collecting current of a proportional valve, which are used to solve the problems of low collection efficiency, low speed and low accuracy in the current collection process in the prior art.
To achieve the above and other related objects, the present invention provides a proportional valve current collecting method, including:
the first calculator calculates the areas of the voltage signals at the adjacent moments corresponding to the rising edges and the falling edges according to the amplitude of the voltage signals and the moments corresponding to the adjacent rising edges and the adjacent falling edges in the voltage signals;
acquiring a current proportionality coefficient by using a current proportionality coefficient acquirer;
the second calculator calculates the current values of the multiple groups of electromagnetic valves according to the area of the voltage signal and the current proportionality coefficient;
and carrying out weighted average calculation on the current values of the multiple groups of electromagnetic valves by using a third calculator to obtain the current value of the electromagnetic valve after weighted average.
In an embodiment of the present invention, the proportional valve current collecting method further includes:
and collecting the amplitude of the voltage signal fed back by the pulse width modulation, and the time corresponding to the adjacent rising edge and the time corresponding to the falling edge in the fed back voltage signal.
In an embodiment of the present invention, the step of calculating the areas of the voltage signals at the adjacent time points corresponding to the rising edge and the falling edge according to the amplitude of the voltage signal and the adjacent time points corresponding to the rising edge and the falling edge in the voltage signal includes:
the area formula of the voltage signal at the time corresponding to the adjacent rising edge and the time corresponding to the falling edge is as follows:
Figure BDA0002297993210000021
wherein, Ii ComputingIndicates the time corresponding to the rising edge and the falling edgeArea of voltage signal of (V)iThe amplitude of the voltage signal representing the pulse width modulation feedback,
Figure BDA0002297993210000022
the time corresponding to the rising edge and the time corresponding to the falling edge of the voltage signal are shown.
In an embodiment of the present invention, the step of calculating the current values of the plurality of sets of solenoid valves according to the areas of the voltage signals and the current proportionality coefficients includes:
the formula of the current value of the electromagnetic valve is as follows:
Figure BDA0002297993210000023
wherein, IiDenotes the current value of the solenoid valve, gamma denotes the current proportionality coefficient, Ii ComputingThe area of the voltage signal at the time corresponding to the rising edge and the time corresponding to the falling edge is shown.
In an embodiment of the present invention, the step of obtaining the current scaling factor includes:
calculating the area I of the voltage signal at the time corresponding to the rising edge and the falling edgei Computing
Measuring current values I of multiple groups of actual electromagnetic valveskWherein k is 1, 2, 3.. n, and a current value I for a plurality of sets of the actual solenoid valveskTaking an average value to obtain an average current value of the actual electromagnetic valve;
assigning the average current value of the actual electromagnetic valve to Ii
According to formula Ii=γ×Ii ComputingTo calculate the proportionality coefficient gamma.
In an embodiment of the present invention, the step of performing weighted average calculation on the current values of the plurality of groups of solenoid valves to obtain the current value of the solenoid valve after weighted average includes:
while in the same cycle
Figure BDA0002297993210000024
When the value of (A) is constant, according to formula Ii=γ×Ii ComputingWherein I is 1, 2, 3.. n, to calculate the current value I of the electromagnetic valve n times1、I2、I3、...、In
According to the formula
Figure BDA0002297993210000031
Wherein n is more than 1, and alpha is more than 0 and less than 1, so as to calculate the current value I of the electromagnetic valve after weighted average; wherein n represents the period of n-time collection, and alpha represents a weight coefficient;
when in use
Figure BDA0002297993210000032
When the value of (a) is changed, according to formula Ii=γ×Ii ComputingTo calculate the current value I of the (n +1) th solenoid valven+1Let a formula
Figure BDA0002297993210000033
Is zero, then In+1The current value of the solenoid valve after weighted average is obtained.
In an embodiment of the present invention, the step of performing weighted average calculation on the current values of the plurality of groups of solenoid valves to obtain the current value of the solenoid valve after weighted average includes:
while in the same cycle
Figure BDA0002297993210000034
Is constant within a set time T, according to formula Ii=γ×Ii ComputingWherein I is 1, 2, 3.. n, to calculate the current value of the first electromagnetic valve except T as I1In I1Then the value measured each time is I2′、I3′...In′
According to the formula
Figure BDA0002297993210000035
Wherein n is more than 1, and alpha is more than 0 and less than 1, so as to calculate the current value I of the electromagnetic valve after weighted average; wherein n represents the period of n-time collection, and alpha represents a weight coefficient;
when in use
Figure BDA0002297993210000036
When the value of (a) is changed, according to formula Ii=γ×Ii ComputingTo calculate the current value I of the (n +1) th solenoid valven+1′Let a formula
Figure BDA0002297993210000037
Is zero, then In+1′The current value of the solenoid valve after weighted average is obtained.
In an embodiment of the invention, the set time T is within 2-7 cycles.
The invention also provides a proportional valve current acquisition system, which comprises:
the first calculator is used for calculating the areas of the voltage signals at the adjacent moments corresponding to the rising edges and the falling edges according to the amplitude of the voltage signals and the moments corresponding to the adjacent rising edges and the adjacent falling edges in the voltage signals;
the current proportionality coefficient acquirer is used for acquiring a current proportionality coefficient;
the second calculator is used for calculating the current values of the multiple groups of electromagnetic valves according to the area of the voltage signal and the current proportionality coefficient;
and the third calculator is used for carrying out weighted average calculation on the current values of the multiple groups of electromagnetic valves so as to obtain the current value of the electromagnetic valve after weighted average.
The invention also provides electronic equipment which comprises a processor and a first memory, wherein the first memory stores program instructions, and the processor runs the program instructions to realize the proportional valve current acquisition method.
As described above, the proportional valve current collection method, system and electronic device of the present invention have the following beneficial effects:
the proportional valve current acquisition method acquires the area between the rising edge and the falling edge in the same period of the current signal, and converts the proportional coefficient obtained through actual calculation to obtain the acquired current value which is the current value Ii of the electromagnetic valve. Compared with the traditional current collecting method of the filter, the method ensures higher precision and greatly improves the current signal collecting speed.
The proportional valve current acquisition method provided by the invention adopts a brand-new weighted average calculation method and processes the acquired information in real time, wherein the weight coefficient of the newly acquired current information is smaller, so that the influence of the newly acquired information on the whole is reduced. Therefore, the invention greatly reduces the influence of clutter on the whole numerical value in the current acquisition process, thereby greatly improving the accuracy of system information acquisition.
Drawings
Fig. 1 is a flowchart illustrating a method for collecting a current of a proportional valve according to an embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a method for collecting a current of a proportional valve according to another embodiment of the present disclosure.
Fig. 3 is a block diagram of a structure of a proportional valve current collection system according to an embodiment of the present disclosure.
Fig. 4 is a block diagram of a hardware device according to which a proportional valve current collection method provided in the embodiment of the present application works.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Fig. 6 is a waveform diagram of a current signal acquisition feedback voltage of a proportional valve current acquisition method according to an embodiment of the present application.
Description of the element reference numerals
1 controller
2 solenoid valve
3 temperature sensor
4 demarcate the switch
5 operating system
6 hydraulic pump
7 second memory
8 actuating mechanism
10 first memory
20 processor
30 first calculator
40 current proportionality coefficient obtainer
50 second calculator
60 third calculator
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the drawings only show the components related to the present invention rather than the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
Referring to fig. 4, fig. 4 is a block diagram of a hardware device according to an embodiment of the present disclosure. The invention provides a proportional valve current acquisition method, which relates to hardware structures including but not limited to a controller 1, an electromagnetic valve 2, a temperature sensor 3, a calibration switch 4, an operating system 5, a hydraulic pump 6, a second memory 7 and an actuating mechanism 8, wherein the operating system 5 can be but not limited to a switch, the operating system 5 may be, for example, an operating handle or a thumb switch for controlling the raising or lowering, the signal input end of the controller 1 is respectively connected with the signal output ends of the temperature sensor 3, the calibration switch 4 and the control system 5, the controller 1 is in two-way communication connection with the electromagnetic valve 2 and the second storage 7, the signal input end of the electromagnetic valve 2 is respectively connected with the signal output ends of the temperature sensor 3 and the hydraulic pump 6, and the signal output end of the electromagnetic valve 2 is connected with the signal input end of the actuating mechanism 8. The controller 1 is used for receiving and transmitting control signals and transmitting information, when the calibration switch 4 is in an open state, the controller 1 sends out PWM duty ratio signals to drive the electromagnetic valve 2 to a corresponding position, the controller 1 receives temperature signals collected by the temperature sensor 3, an analog-to-digital converter and an ECT module in a single chip microcomputer in the controller 1 receive feedback current signals of the electromagnetic valve 2, and meanwhile, the controller 1 sends the collected signals to the second memory 7 to be stored as new standard values. When the calibration switch 4 is in a closed state, the system is in a working state, the controller 1 receives a control instruction of the control system 5, outputs PWM duty ratio information to enable the electromagnetic valve 2 to reach different opening degrees, and the hydraulic system controls the passing oil quantity through the opening degree of the electromagnetic valve 2 to enable the execution structure to reach a corresponding position. In the process, the controller 1 receives feedback current information of the electromagnetic valve 2 and carries out real-time adjustment. The temperature sensor 3 may be, but is not limited to, installed in the vicinity of the solenoid valve 2 to measure the operating temperature of the solenoid valve 2 and transmit temperature information to the controller 1. The proportional valve current collection method in the present invention can be applied to, but is not limited to, power devices driven by pulse width modulation, such as: PWM driven high speed motor, step motor, high speed switch valve, etc.
Referring to fig. 1 and fig. 2, fig. 1 is a flowchart illustrating a method for collecting a current of a proportional valve according to an embodiment of the present disclosure. Fig. 2 is a flowchart illustrating a method for collecting a current of a proportional valve according to another embodiment of the present disclosure. The invention provides a proportional valve current acquisition method, which comprises the following steps: s1, the first calculator 30 calculates the adjacent rising edge corresponding time and falling edge corresponding time according to the amplitude of the voltage signal and the adjacent rising edge corresponding time and falling edge corresponding time in the voltage signalThe area of the voltage signal at the moment. S2, the current scaling factor acquirer 40 acquires a current scaling factor. And S3, the second calculator 50 calculates the current values of the multiple groups of solenoid valves according to the areas of the voltage signals and the current proportionality coefficients. And S4, utilizing the third calculator 60 to perform weighted average calculation on the current values of the multiple groups of electromagnetic valves to obtain the current value of the electromagnetic valve after weighted average. The proportional valve current collection method further comprises a step S0, wherein the step S0 is as follows: and acquiring the amplitude of a voltage signal corresponding to the current signal fed back by pulse width modulation, and the time corresponding to the adjacent rising edge and the time corresponding to the falling edge in the voltage signal corresponding to the fed back current signal. Electromagnetic valve current I acquired by proportional valve current acquisition methodiThe method can be applied to a current self-adaptive calibration control method, and the current self-adaptive calibration control method comprises the following steps: the electromagnetic valve hydraulic system driven by pulse width modulation enters a calibration state, and when the temperature of the electromagnetic valve hydraulic system is thetai(i ═ 1, 2, 3.. n), the solenoid valve hydraulic system performs a calibration operation. Specifically, the step of performing calibration operation on the hydraulic system of the electromagnetic valve comprises: the electromagnetic valve hydraulic system is at the working temperature thetaiTime calibration is carried out, and the duty ratio of the pulse width modulation signal is increased from zero by the step length delta lambda to lambdaiWhen the actuator reaches the maximum displacement, the pulse width modulation signal stops increasing. Pulse width modulation driven solenoid valve hydraulic system controller 1 records solenoid valve current IiAnd the duty cycle M of the pulse width modulated signaliObtaining the current I of the electromagnetic valve by a proportional valve current acquisition methodiAnd the data is saved to the storage unit of the controller 1 to be used as calibrated standard data. Completing the calibration operation of the electromagnetic valve hydraulic system, and enabling the electromagnetic valve hydraulic system to enter a working state so as to realize the target I of the electromagnetic valve currentiAnd (6) tracking. Specifically, the electromagnetic valve hydraulic system enters a working state to realize the target I of the electromagnetic valve currentiThe step of tracking includes: when the target of the current of the solenoid valve is IiThe controller 1 is controlled according to the working temperature theta of the electromagnetic valve hydraulic systemiQuery and said operating temperature θiTarget I of corresponding solenoid valve currentiAnd the duty cycle M of the pulse width modulated signali. Outputting the duty ratio MiTo achieve the target I of the solenoid valve currentiTracking can quickly realize the current target I of the electromagnetic valveiAnd (6) tracking. Specifically, the calibration switch 4 is activated, the PWM-driven electromagnetic valve system enters a self-calibration state, the PWM-driven electromagnetic valve system enters a calibration state, and the system only performs a calibration receiving operation, and shields other redundant operations. When the temperature of the working hydraulic system of the electromagnetic valve is thetaiAnd (i ═ 1, 2, 3.. n), the calibration operation is performed. Specifically, the maximum displacement of the actuator is the limit position of the actuator, the actuator may be, but is not limited to, an oil cylinder, and the oil cylinder or the actuator reaches the limit block.
Referring to fig. 1 and 2, the proportional valve current collecting method includes collecting a proportional driving current for a certain type of electromagnetic valve 2, where parameters of the type of proportional control electromagnetic valve 2 are as follows: the PWM operating frequency range may be, but is not limited to, 120Hz to 150Hz, the coil resistance value may be, but is not limited to, 4 to 6.1 Ω, the maximum current corresponding to the rated operating voltage 12V is 1.76A, the number of coil turns may be, but is not limited to, 526 turns, and the controller 1 may be, but is not limited to, MC9S12XS128 MAL. Obtaining the current I of the electromagnetic valve by a proportional valve current acquisition methodiComprises the following steps: step 1, setting the PWM working frequency to be 120Hz, and when the single chip microcomputer outputs a 50% PWM duty ratio signal to a proportional control electromagnetic valve 2, the proportional control electromagnetic valve is one of the electromagnetic valves 2, and the opening of the proportional electromagnetic valve reaches a stable position. At this time, the output current information passing through the proportional control solenoid valve is a stable signal of one period. The acquisition module of the analog-to-digital converter of the single chip microcomputer acquires voltage information of the measuring resistor in the line to form a square wave signal with a stable period, please refer to fig. 6 for the square wave signal with the stable period, and fig. 6 is a waveform diagram of current signal acquisition feedback voltage of the proportional valve current acquisition method provided by the embodiment of the application. Rising edge in one period of the recording signal in FIG. 6
Figure BDA0002297993210000071
And a falling edge
Figure BDA0002297993210000072
Obtaining the time interval DeltaT between the rising edge and the falling edgeiAnd simultaneously acquiring the amplitude V of the PWM feedback voltage signali. The singlechip acquires the corresponding time of adjacent rising edges in the PWM feedback voltage signal
Figure BDA0002297993210000073
Falling edge corresponding time
Figure BDA0002297993210000074
Wherein
Figure BDA0002297993210000075
Amplitude V of PWM feedback voltage signal is acquired simultaneously14.2V. Step 2, passing through a formula
Figure BDA0002297993210000076
Calculating the area I of the voltage signal at the time corresponding to the rising edge and the falling edgei ComputingSaid I isi ComputingWas 17.22. Meanwhile, a plurality of groups of currents I are measured by a high-precision ammeterk(k 1, 2, 3.. n), and finally assigning the average current value of the actual solenoid valve 2 to IiThe average current value of the actual electromagnetic valve 2 is 0.95A, IiAssigned a value of 0.95A. By the formula Ii=γ×Ii ComputingThe proportionality coefficient γ was determined to be 0.055. And 3, setting the weight coefficient alpha to be 0.8 according to the precision requirement. Specifically, the weight coefficient α is set in principle as follows: the higher the precision required by the system is, the larger the weight coefficient alpha is in value, but the maximum value of the weight coefficient alpha is not more than 1, namely alpha is more than 0 and less than 1, and the weight coefficient alpha is obtained through experiments, and the setting principle of the weight coefficient alpha needs to meet the requirement that the value is close to 1, so that the value of 1-alpha is smaller. The weight calculation method can be performed according to the steps of the first method: the method comprises the following steps: step 3.1, in the same weekIn the course of time
Figure BDA0002297993210000077
When the value of (A) is constant, according to formula Ii=γ×Ii ComputingWhere I is 1, 2, 3.. n, to calculate the current value I of the solenoid valve 2 n times1、I2、I3、...In. Step 3.2, according to the formula
Figure BDA0002297993210000078
And calculating the current value I of the electromagnetic valve 2 after weighted average, wherein the calculated current value has small fluctuation due to the existence of noise waves, the final value is stabilized near 0.94A, and the precision of the current acquisition system meets the actual engineering requirement. And 3.3, when the PWM duty ratio signal sent by the controller 1 changes, changing the 50% PWM duty ratio signal into a 70% PWM duty ratio signal. When the time interval between the adjacent rising edge corresponding time and the falling edge corresponding time in the voltage signal is greatly changed in the process of duty ratio change, the voltage signal is controlled to be in a state of being in a stable state
Figure BDA0002297993210000081
Zero clearing, then In+1When the current value of the solenoid valve 2 after weighted average reaches the stable duty ratio signal at a certain time, the system performs weighted calculation again. The weight calculation method can be performed according to the steps of the method two: the second method comprises the following steps: step 3.1, in the same period
Figure BDA0002297993210000082
Is constant within a set time T, according to formula Ii=γ×Ii ComputingWhere I is 1, 2, 3.. n, to calculate the current value I of the first solenoid valve 2 except T1The value measured after I1 is I in turn2′、I3′...In′. Step 3.2, according to the formula
Figure BDA0002297993210000083
Calculating the current value I of the electromagnetic valve 2 after weighted average, and calculatingThe current value can have small fluctuation due to the existence of clutter, the final value is stabilized near 0.95A, and the precision of the current acquisition system meets the actual engineering requirements. And 3.3, when the PWM duty ratio signal sent by the controller 1 changes, changing the 50% PWM duty ratio signal into the 70% PWM duty ratio signal. When in use
Figure BDA0002297993210000084
When the value of (a) is changed, according to formula Ii=γ×Ii ComputingTo calculate the current value I of the (n +1) th solenoid valve 2n+1′Let a formula
Figure BDA0002297993210000085
Is zero, then In+1′The current value of the solenoid valve 2 after weighted averaging. When the stable duty ratio signal is reached at a certain time, the system carries out weighting calculation again.
Referring to fig. 3 and 5, fig. 3 is a block diagram of a proportional valve current collecting system according to an embodiment of the present disclosure. Fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure. The present invention also provides a proportional valve current collection system including a first calculator 30, a current proportionality coefficient obtainer 40, a second calculator 50, and a third calculator 60. The first calculator 30, the current proportionality coefficient acquirer 40, the second calculator 50, and the third calculator 60 are connected in sequence. The first calculator 30 is configured to calculate areas of the voltage signals at adjacent time points corresponding to the rising edge and the falling edge according to the amplitude of the voltage signal and the time points corresponding to the rising edge and the falling edge adjacent to each other in the voltage signal. The current scaling factor acquirer 40 is configured to acquire a current scaling factor. The second calculator 50 is used for calculating the current values of the multiple groups of solenoid valves according to the areas of the voltage signals and the current proportionality coefficients. The third calculator 60 is configured to perform weighted average calculation on the current values of a plurality of groups of the solenoid valves to obtain a weighted average current value of the solenoid valve. The invention further provides an electronic device, which comprises a processor 20 and a first memory 10, wherein the first memory 10 stores program instructions, and the processor 20 executes the program instructions to implement the proportional valve current collection method.
In summary, in the proportional valve current collection method of the present invention, the area between the rising edge and the falling edge in the same period of the current signal is collected, and the ratio coefficient obtained through actual calculation is converted to obtain the collected current value, which is the current value I of the solenoid valvei. Compared with the traditional current collecting method of the filter, the method ensures higher precision and greatly improves the current signal collecting speed.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (6)

1. A proportional valve current collection method is characterized by comprising the following steps:
collecting the amplitude of a voltage signal corresponding to a current signal fed back by pulse width modulation, and the time corresponding to the adjacent rising edge and the time corresponding to the falling edge in the voltage signal corresponding to the fed back current signal;
the first calculator calculates the areas of the voltage signals at the adjacent moments corresponding to the rising edges and the falling edges according to the amplitude of the voltage signals and the moments corresponding to the adjacent rising edges and the adjacent falling edges in the voltage signals;
the area formula of the voltage signal at the time corresponding to the adjacent rising edge and the voltage signal at the time corresponding to the falling edge is as follows:
Figure FDA0003207255420000011
wherein, Ii ComputingV represents the area of the voltage signal at the time corresponding to the rising edge and the falling edgeiThe amplitude of the voltage signal representing the pulse width modulation feedback,
Figure FDA0003207255420000012
the time corresponding to the adjacent rising edge and the time corresponding to the falling edge in the voltage signal are represented;
acquiring a current proportionality coefficient by using a current proportionality coefficient acquirer;
wherein, the area I of the voltage signal at the time corresponding to the rising edge and the falling edge is calculatedi Computing
Measuring current values I of multiple groups of actual electromagnetic valveskWherein k is 1, 2, 3.. n, and a current value I for a plurality of sets of the actual solenoid valveskTaking an average value to obtain an average current value of the actual electromagnetic valve;
assigning the average current value of the actual electromagnetic valve to Ii
According to formula Ii=γ×Ii ComputingTo calculate a proportionality coefficient gamma;
the second calculator calculates the current values of the multiple groups of electromagnetic valves according to the area of the voltage signal and the current proportionality coefficient;
wherein, the formula of the current value of the electromagnetic valve is as follows:
Ii=γ×Ii computing
Wherein, IiDenotes the current value of the solenoid valve, gamma denotes the current proportionality coefficient, Ii ComputingThe area of the voltage signal at the time corresponding to the rising edge and the time corresponding to the falling edge which are adjacent to each other is represented;
and carrying out weighted average calculation on the current values of the multiple groups of electromagnetic valves by using a third calculator to obtain the current value of the electromagnetic valve after weighted average.
2. The proportional valve current collection method according to claim 1, wherein the step of performing weighted average calculation on the current values of a plurality of groups of solenoid valves to obtain a weighted average current value of a solenoid valve comprises:
while in the same cycle
Figure FDA0003207255420000013
When the value of (A) is constant, according to formula Ii=γ×Ii ComputingWherein I is 1, 2, 3.. n, to calculate the current value I of the electromagnetic valve n times1、I2、I3、...、In
According to the formula
Figure FDA0003207255420000014
Wherein n is more than 1, and alpha is more than 0 and less than 1, so as to calculate the current value I of the electromagnetic valve after weighted average; wherein n represents the period of n-time collection, and alpha represents a weight coefficient;
when in use
Figure FDA0003207255420000021
When the value of (a) is changed, according to formula Ii=γ×Ii ComputingTo calculate the current value I of the (n +1) th solenoid valven+1Let a formula
Figure FDA0003207255420000022
Is zero, then In+1The current value of the solenoid valve after weighted average is obtained.
3. The proportional valve current collection method according to claim 1, wherein the step of performing weighted average calculation on the current values of a plurality of groups of solenoid valves to obtain a weighted average current value of a solenoid valve comprises:
while in the same cycle
Figure FDA0003207255420000023
Is constant within a set time T, according to formula Ii=γ×Ii ComputingWherein i is 1, 2, 3Calculating the current value of the first electromagnetic valve except T as I1In I1Then the value measured each time is I2′、I3′...In′
According to the formula
Figure FDA0003207255420000024
Wherein n is more than 1, and alpha is more than 0 and less than 1, so as to calculate the current value I of the electromagnetic valve after weighted average; wherein n represents the period of n-time collection, and alpha represents a weight coefficient;
when in use
Figure FDA0003207255420000025
When the value of (a) is changed, according to formula Ii=γ×Ii ComputingTo calculate the current value I of the (n +1) th solenoid valven+1′Let a formula
Figure FDA0003207255420000026
Is zero, then In+1′The current value of the solenoid valve after weighted average is obtained.
4. The proportional valve current collection method of claim 3, wherein: the set time T is within 2-7 periods.
5. A proportional valve current collection system characterized in that: the proportional valve current collection system comprises:
the singlechip is used for acquiring the amplitude of a voltage signal corresponding to the current signal fed back by pulse width modulation, and the time corresponding to the adjacent rising edge and the time corresponding to the falling edge in the voltage signal corresponding to the fed back current signal;
the first calculator is used for calculating the areas of the voltage signals at the adjacent moments corresponding to the rising edges and the falling edges according to the amplitude of the voltage signals and the moments corresponding to the adjacent rising edges and the adjacent falling edges in the voltage signals;
the area formula of the voltage signal at the time corresponding to the adjacent rising edge and the voltage signal at the time corresponding to the falling edge is as follows:
Figure FDA0003207255420000027
wherein, Ii ComputingV represents the area of the voltage signal at the time corresponding to the rising edge and the falling edgeiThe amplitude of the voltage signal representing the pulse width modulation feedback,
Figure FDA0003207255420000028
the time corresponding to the adjacent rising edge and the time corresponding to the falling edge in the voltage signal are represented;
the current proportionality coefficient acquirer is used for acquiring a current proportionality coefficient;
wherein, the area I of the voltage signal at the time corresponding to the rising edge and the falling edge is calculatedi Computing
Measuring current values I of multiple groups of actual electromagnetic valveskWherein k is 1, 2, 3.. n, and a current value I for a plurality of sets of the actual solenoid valveskTaking an average value to obtain an average current value of the actual electromagnetic valve;
assigning the average current value of the actual electromagnetic valve to Ii
According to formula Ii=γ×Ii ComputingTo calculate a proportionality coefficient gamma;
the second calculator is used for calculating the current values of the multiple groups of electromagnetic valves according to the area of the voltage signal and the current proportionality coefficient;
wherein, the formula of the current value of the electromagnetic valve is as follows:
Ii=γ×Ii computing
Wherein, IiDenotes the current value of the solenoid valve, gamma denotes the current proportionality coefficient, Ii ComputingThe area of the voltage signal at the time corresponding to the rising edge and the time corresponding to the falling edge which are adjacent to each other is represented;
and the third calculator is used for carrying out weighted average calculation on the current values of the multiple groups of electromagnetic valves so as to obtain the current value of the electromagnetic valve after weighted average.
6. An electronic device comprising a processor and a first memory, the first memory storing program instructions, characterized in that: the processor executes the program instructions to realize the proportional valve current collection method as claimed in any one of claims 1 to 4.
CN201911210733.7A 2019-12-02 2019-12-02 Proportional valve current acquisition method and system and electronic equipment Active CN110865225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911210733.7A CN110865225B (en) 2019-12-02 2019-12-02 Proportional valve current acquisition method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911210733.7A CN110865225B (en) 2019-12-02 2019-12-02 Proportional valve current acquisition method and system and electronic equipment

Publications (2)

Publication Number Publication Date
CN110865225A CN110865225A (en) 2020-03-06
CN110865225B true CN110865225B (en) 2021-11-09

Family

ID=69657943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911210733.7A Active CN110865225B (en) 2019-12-02 2019-12-02 Proportional valve current acquisition method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN110865225B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112763791B (en) * 2020-12-23 2022-09-23 潍柴动力股份有限公司 Current detection method and device for series electromagnetic valve
CN112769132B (en) * 2021-01-06 2022-08-12 华南理工大学 Converter valve state and valve current solving method based on valve side current time sequence characteristics
CN114228684B (en) * 2022-02-28 2022-05-06 天津所托瑞安汽车科技有限公司 Commercial vehicle EBS bridge module pressure control method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021553A (en) * 2007-03-16 2007-08-22 三一重工股份有限公司 PWM current measuring method
CN104796003A (en) * 2015-05-05 2015-07-22 西安电子科技大学 Calculating circuit for output current under DCM (discontinuous conducting mode) of flyback PWM (pulse width modulation) converter
CN105889603A (en) * 2016-05-20 2016-08-24 合肥工业大学 PWM (Pulse Width Modulation) control method of improving proportion property of high-speed on-off solenoid valve
CN110208596A (en) * 2019-05-16 2019-09-06 深圳和而泰小家电智能科技有限公司 Load current monitoring circuit and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4884356B2 (en) * 2007-11-26 2012-02-29 オムロンオートモーティブエレクトロニクス株式会社 Control device for multiphase motor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021553A (en) * 2007-03-16 2007-08-22 三一重工股份有限公司 PWM current measuring method
CN104796003A (en) * 2015-05-05 2015-07-22 西安电子科技大学 Calculating circuit for output current under DCM (discontinuous conducting mode) of flyback PWM (pulse width modulation) converter
CN105889603A (en) * 2016-05-20 2016-08-24 合肥工业大学 PWM (Pulse Width Modulation) control method of improving proportion property of high-speed on-off solenoid valve
CN110208596A (en) * 2019-05-16 2019-09-06 深圳和而泰小家电智能科技有限公司 Load current monitoring circuit and method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
The Decoupling Control of ARS and DYC Based on the Neutral Network Inverse System Method;Xiwen Tang等;《Materials Science and Engineering》;20180121;全文 *
Vehicle Chassis Decoupling Control Based on Neural Network Inverse Method;Jun Yang等;《Inter-noise》;20141130;全文 *
基于PWM控制模式的高速开关阀开关特性分析及优化;王琼等;《合肥工业大学学报(自然科学版)》;20160930;第39卷(第9期);全文 *
基于电流跟踪控制法的比例电磁阀驱动控制系统;蔡胜年等;《沈阳化工大学学报》;20170930;第31卷(第3期);全文 *
比例电磁阀PWM驱动器中阀线圈电流检测技术;邓世建等;《机床与液压》;20131130;第41卷(第22期);全文 *

Also Published As

Publication number Publication date
CN110865225A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN110865225B (en) Proportional valve current acquisition method and system and electronic equipment
CA2694295C (en) Method and system for optimizing filter compensation coefficients for a digital power control system
CN110850721B (en) Current adaptive calibration control method and system and electronic equipment
US20150220484A1 (en) Memristor linear modeling method for switched reluctance motor
CN102176653A (en) Method for observing rotary speed of induction motor of Kalman filter with index fading factor
CN102141484B (en) Multi-functional portable electric servo control loading device and loading method thereof
CN103513181A (en) Ultrasonic wave motor transient characteristic testing device and control system thereof
CN107171612A (en) Fuzzy score rank PID switched reluctance machines method for controlling torque and system
CN109245532A (en) A kind of fractional order sliding-mode control of buck-boost converter
CN104779779A (en) Method for inhibiting temperature drift of switching power supply
CN104697659A (en) Temperature measuring device and method using NTC thermistor
Wang et al. A novel piezoelectric hysteresis modeling method combining LSTM and NARX neural networks
CN109520453A (en) High precision position sensor automatic calibration system and scaling method
CN104022772A (en) Close-loop analog quantity output method and circuit capable of zero setting automatically
CN106787902A (en) One kind amendment ripple inverter output voltage control system and control method
CN110955290A (en) Intelligent temperature compensation device for high-precision high-power converter
CN104993702B (en) A kind of use DSP realizes the Buck inverter control methods of Second Order Sliding Mode Control
Wu et al. Modeling and tracking control of dielectric elastomer actuators based on fractional calculus
CN106526299B (en) A kind of power converter current detection method based on Non-smooth surface observation technology
CN102789192A (en) Feedback control system and frequency response measuring device thereof
CN103092815A (en) Calibration device and method for carrying out calibration on transfer function in monitoring device
CN103412480B (en) Based on H ∞the excitation force controller method for designing of robust control
CN106533285B (en) Permanent magnet DC motor method for controlling number of revolution based on Kriging model
CN104699154B (en) Adjustable power supply and average-current system with same
CN106788064A (en) Induction motor stator resistance parameter identification method based on EMD ELM

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant