Jump to content

UL212/UL212 Temperature Compensation温度补偿

From Ning-IoT Wiki

How to calibrate temperature compensation?

Taking 0 diesel as an example:
when the default sound speed value of the fuel sensor is:
5℃=1345,55℃=1345

Test based on this sound speed(5℃=1345,55℃=1345):
If you think the actual fuel level height is 640mm,used to represent H (real)

But when you actually test it:
At 5 ℃, get smooth height value of 648mm
At 55 ℃, get smooth height value of 660mm

So,the new sound speed value will be obtained:

5℃ sound speed=(H (real) x 1345) / Smooth height value at 5 ℃
means 5℃ sound speed=(640 x 1345)/648=1328

55℃ sound speed=(H (real) x 1345) / Smooth height value at 55 ℃
means 55℃ sound speed=(640 x 1345)/660=1304

Summary:
The new sound speed value is:
5℃=1328,55℃=1304