Changes for page How to do with Linear Calibration?
Last modified by Mengting Qiu on 2024/09/02 17:23
From version 5.1
edited by Mengting Qiu
on 2024/09/02 12:01
on 2024/09/02 12:01
Change comment:
There is no comment for this version
To version 6.1
edited by Mengting Qiu
on 2024/09/02 13:49
on 2024/09/02 13:49
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -16,17 +16,23 @@ 16 16 In some case, the measurement and real value are in different range, but they are both linear, we have to calculate the real value with the measurement we can use a simple Linear Calibration. 17 17 18 18 19 -Example: we have a water level probe, the measurement range is 0 ~~ 10 meters, and the output is 4~~20mA, this means the when the water level is 0 meter, the output is 4mA, when the water level is 10 meters, the output is 20mA. We can make a coordinate axis as below:19 +**Example:** we have a water level probe, the measurement range is 0 ~~ 10 meters, and the output is 4~~20mA, this means the when the water level is 0 meter, the output is 4mA, when the water level is 10 meters, the output is 20mA. 20 20 21 -1. Y axis is the real value, from 0 ~~ 10 meters 22 -1. X axis is the probe output , from 4~~20mA 21 +We can make a coordinate axis as below: 23 23 24 -We use two points to make the linear line: point1(x1,y1) = (4,0), point2(x2,y2)= (20,10). Since the reading is linear, all probe output and real value is on this line, so we can calculate the real value by probe output in two steps: 23 +1. (% style="color:blue" %)**Y**(%%) axis is the real value, from 0~~10 meters 24 +1. (% style="color:blue" %)**X**(%%) axis is the probe output , from 4~~20mA 25 25 26 - Step1:Getk(Slope)forthe line:k=(y2-y1)/(x2-x1)10-0)/(20-4)10/16=0.62526 +We use two points to make the linear line: Point1(x1,y1) = (4,0), Point2(x2,y2)= (20,10). 27 27 28 -Ste p2:Get real value):28 +Since the reading is linear, all (% style="color:blue" %)**probe output**(%%) and (% style="color:blue" %)**real value**(%%) is on this line, so we can calculate the real value by probe output in two steps: 29 29 30 +* **Step1:** Get (% style="color:blue" %)**k(Slope)**(%%) for the line: 31 + 32 + k=(y2-y1)/(x2-x1) = (10-0)/(20-4) =10/16= 0.625 33 + 34 +* **Step2:** Get (% style="color:blue" %)**kreal value(y)**(%%): 35 + 30 30 k=(y-y1)/(x-x1) 31 31 32 32 ~-~-> y = k*(x-x1)+y1 = 0.625 * (x-4) + 0. ... ... @@ -33,7 +33,7 @@ 33 33 34 34 ~= 0.625 * (x-4) 35 35 36 -When x=12mA , y=5 meters 42 +When x=12mA , y=5 meters 37 37 38 38 When x=8mA, y= 2.5 meters 39 39 ... ... @@ -80,6 +80,4 @@ 80 80 81 81 82 82 83 - 84 - 85 85