Changes for page How to do with Linear Calibration?
Last modified by Mengting Qiu on 2024/09/02 17:23
From version 4.1
edited by Mengting Qiu
on 2024/09/02 11:55
on 2024/09/02 11:55
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,18 +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 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 24 24 25 -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:26 +We use two points to make the linear line: Point1(x1,y1) = (4,0), Point2(x2,y2)= (20,10). 26 26 27 -Ste p1:Getk(Slope)for theline:k=(y2-y1)/(x2-x1) =(10-0)/(20-4)=10/16=0.62528 +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: 28 28 29 -Step 2: Getrealvalue (y):30 +* **Step1:** Get (% style="color:blue" %)**k(Slope)**(%%) for the line: 30 30 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 + 31 31 k=(y-y1)/(x-x1) 32 32 33 33 ~-~-> y = k*(x-x1)+y1 = 0.625 * (x-4) + 0. ... ... @@ -34,7 +34,7 @@ 34 34 35 35 ~= 0.625 * (x-4) 36 36 37 -When x=12mA , y=5 meters 42 +When x=12mA , y=5 meters 38 38 39 39 When x=8mA, y= 2.5 meters 40 40 ... ... @@ -81,7 +81,4 @@ 81 81 82 82 83 83 84 - 85 - 86 - 87 87