Summary of the invention
It is an object of the invention to provide the dynamic weighing modification method of a kind of vehicle-mounted Weighing module, to solve the problem that existing vehicle-mounted weighing technique cannot accurately measure vehicle dynamic weight.
For achieving the above object, the invention provides the dynamic weighing modification method of a kind of vehicle-mounted Weighing module, the vehicle weight detected during in order to travel vehicle is modified, first one is provided to have gyro sensor, memory element and the vehicle-mounted Weighing module of processing unit, described vehicle-mounted Weighing module is arranged on vehicle, in order to the weight of vehicle is detected, set forward/backward direction when described vehicle is horizontal as X-axis, left and right directions is Y-axis, above-below direction is Z axis, the vertical direction of gyro sensor and angle of deviation Φ 0 of described Z axis when described cell stores has described vehicle to be horizontal, the sideway force coefficient kx of gyro sensor X-direction and the sideway force coefficient ky of gyro sensor Y direction;
Secondly, by gyro sensor obtain vehicle a certain dynamic time be engraved in the component of acceleration a of X-axis, Y-axis and Z axisx、ay、az, gravity acceleration g and the angle Φ of vertical direction and Z axis at described a certain dynamic moment gyro sensor;
Angle of deviation Φ is utilized by processing unit0, the sideway force coefficient kx of X-direction, the sideway force coefficient ky of Y direction, component of acceleration ax、ay、az, gravity acceleration g and angle Φ be calculated angular variation correction factor A and acceleration correction coefficient B;
Vehicle sense weight S in the described a certain dynamic moment is obtained by vehicle-mounted Weighing module;
Equation below: G=S/ (A*B) is used to be calculated actual weight G of vehicle.
As a further improvement on the present invention, the sideway force coefficient kx of described X-direction and the sideway force coefficient ky of Y direction demarcates acquisition after vehicle-mounted Weighing module has produced, and calibration process is as follows:
Making described vehicle-mounted Weighing module load the weight of constant weight, the weight of described weight is less than the range of described vehicle-mounted Weighing module;
Control described vehicle-mounted Weighing module along X-direction accelerated motion, and record acceleration ax1The interior code value C exported with vehicle-mounted Weighing modulex1;
Control described vehicle-mounted Weighing module along X-direction with another acceleration accelerated motion, and record acceleration ax0The interior code value C exported with vehicle-mounted Weighing modulex0;
Control described vehicle-mounted Weighing module along Y direction accelerated motion, and record acceleration ay1The interior code value C exported with vehicle-mounted Weighing moduley1;
Control described vehicle-mounted Weighing module along Y direction with another acceleration accelerated motion, and record acceleration ay0The interior code value C exported with vehicle-mounted Weighing moduley0;
Utilize formula kx=(Cx1-Cx0)/(ax1-ax0)、ky=(Cy1-Cy0)/(ay1-ay0) obtain the sideway force coefficient kx of X-direction and the sideway force coefficient ky of Y direction.
As a further improvement on the present invention, formula θ=Φ-Φ is utilized0, draw the actual shifts angle θ of gyro sensor when the gyro sensor relative vehicle in described a certain dynamic moment is horizontal.
As a further improvement on the present invention, angular variation correction factor A utilizes formula A=cos θ+kx*sin θ to be calculated by processing unit.
As a further improvement on the present invention, acceleration correction coefficient B utilizes B=(kx*ax+ky*ay+gz)/g to be calculated by processing unit.
The invention has the beneficial effects as follows: the dynamic weighing modification method of the vehicle-mounted Weighing module of the present invention, being modified the weight weighed in vehicle operation, solve angular variation and the impact of acceleration weighing weight simultaneously, principle of operation is simple, the speed of service is fast, and accuracy of detection is high.
Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with specific embodiment.
The dynamic weighing modification method of the vehicle-mounted Weighing module of the present invention, the vehicle weight detected during in order to travel vehicle on slope is modified, and implementation step is as follows:
First a kind of vehicle-mounted Weighing module with gyro sensor, memory element and processing unit is provided, described vehicle-mounted Weighing module is arranged on vehicle, in order to the weight of vehicle is detected, set forward/backward direction when described vehicle is horizontal as X-axis, left and right directions is Y-axis, above-below direction is Z axis, the vertical direction of gyro sensor and angle of deviation Φ of described Z axis when described cell stores has described vehicle to be horizontal0, the sideway force coefficient kx of gyro sensor X-direction and the sideway force coefficient ky of gyro sensor Y direction.
Secondly, by gyro sensor obtain vehicle a certain dynamic time be engraved in the component of acceleration a of X-axis, Y-axis and Z axisx、ay、az, local gravitational acceleration g and the angle Φ of vertical direction and Z axis at described a certain dynamic moment gyro sensor.
Utilize formula θ=Φ-Φ0, draw the actual shifts angle θ of gyro sensor when the gyro sensor relative vehicle in described a certain dynamic moment is horizontal.
Wherein, it is considered to angle of deviation Φ0Primarily to solve the error that gyro sensor produces when mounted.
Angle of deviation Φ is utilized by processing unit0, the sideway force coefficient kx of X-direction, the sideway force coefficient ky of Y direction, component of acceleration ax、ay、az, gravity acceleration g and angle Φ be calculated angular variation correction factor A and acceleration correction coefficient B.
Wherein, angular variation correction factor A utilizes formula A=cos θ+kx*sin θ to be calculated by processing unit, and acceleration correction coefficient B utilizes B=(kx*ax+ky*ay+gz)/g to be calculated by processing unit.
The formulation process of angular variation correction factor A is as follows:
The vehicle-mounted Weighing module being loaded with thing block is placed on the inclined-plane that inclination angle is α, and described thing block is G by gravity1, gravity G1Component in the power being perpendicular to inclined-plane and be parallel to inclined-plane is respectively F1And F2, F1=G1* cos α, F2=G1*sinα.Vehicle-mounted Weighing module detects that the power being perpendicular to inclined-plane and the power being parallel to inclined-plane are respectively W1And W2, sense weight S1= W1+W2.Understand W1= F1, and gyro sensor can be made to produce a distortion power owing to being parallel to the power on inclined-plane, the data causing gyro sensor to detect produce deviation, understand W according to experiment2= kx*F2, the sideway force coefficient kx of X-direction is parallel direction power and changes coefficient.
Therefore S1=G1*cos α+kx* G1*sin α, therefore G1=S1/(cos α+kx*sin α).
Although vehicle all has inclination angle with X-axis, Y-axis and Z axis, but the tiltangleθ of the vertical direction of reality only sensor and Z axis can produce impact to the measurement result of gyro sensor, it can be considered that G1=S1/(cos θ+kx*sin θ), therefore A=cos θ+kx*sin θ.
The formulation process of acceleration correction coefficient B is as follows:
The vehicle-mounted Weighing module being loaded with the weight that quality is m gives it the gun with acceleration a on inclined-plane, and gyro sensor detects that local acceleration is g, and acceleration a is respectively a at X-axis, Y-axis, the component of acceleration of Z axisx、ay、az.Then weight A/W G2=mg。
If not considering the angle skew impact on the weight of detection, the most described vehicle-mounted Weighing module detection gravity is S2=kx*m*ax+ky*m*ay+m*az, in X-axis and Y-axis, acceleration force can produce twisting resistance to gyro sensor, therefore needs to consider the sideway force coefficient kx and the sideway force coefficient ky of Y direction of X-direction.
Can be obtained from above: G2= S2/(kx*ax+ky*ay+az)/g, therefore can obtain acceleration correction coefficient B=(kx*ax+ky*ay+gz)/g.
Vehicle sense weight S in the described a certain dynamic moment is obtained by vehicle-mounted Weighing module;
Actual corners offset correction coefficient A and acceleration correction coefficient B are not independent effect institute sense weight, use equation below: G=S/ (A*B) to be calculated actual weight G of vehicle.
The sideway force coefficient kx of described X-direction and the sideway force coefficient ky of Y direction demarcates acquisition after vehicle-mounted Weighing module has produced, and calibration process is as follows:
Making described vehicle-mounted Weighing module load the weight of constant weight, the weight of described weight, less than the range of described vehicle-mounted Weighing module, typically chooses the weight that weight is range half.
Control described vehicle-mounted Weighing module along X-direction accelerated motion, and record acceleration ax1The interior code value C exported with vehicle-mounted Weighing modulex1。
Control described vehicle-mounted Weighing module along X-direction with another acceleration accelerated motion, and record acceleration ax0The interior code value C exported with vehicle-mounted Weighing modulex0。
Control described vehicle-mounted Weighing module along Y direction accelerated motion, and record acceleration ay1The interior code value C exported with vehicle-mounted Weighing moduley1。
Control described vehicle-mounted Weighing module along Y direction with another acceleration accelerated motion, and record acceleration ay0The interior code value C exported with vehicle-mounted Weighing moduley0。
Utilize formula kx=(Cx1-Cx0)/(ax1-ax0)、ky=(Cy1-Cy0)/(ay1-ay0) obtain the sideway force coefficient kx of X-direction and the sideway force coefficient ky of Y direction.
The dynamic weighing modification method of the vehicle-mounted Weighing module of the present invention, is modified the weight weighed in vehicle operation, solves angular variation and the impact of acceleration weighing weight simultaneously, and principle of operation is simple, and the speed of service is fast, and accuracy of detection is high.
Above example is only in order to illustrate technical scheme and unrestricted, although the present invention being described in detail with reference to preferred embodiment, it will be understood by those within the art that, technical scheme can be modified or equivalent, without deviating from the spirit and scope of technical solution of the present invention.