Professional Documents
Culture Documents
Figure.1: A-Connect LM35 To The Arduino, B-Temperature Sensor Pins
Figure.1: A-Connect LM35 To The Arduino, B-Temperature Sensor Pins
Second Class
RAC Division/Mech. Eng. Dep./UOT EXPREMENT No.4
Objectives:
-Make a calibration for digital thermometer with semiconductor sensor.
-Draw the calibration curve for the measuring device.
-Calculate the absolute relative error beside the standard error.
Introduction: Before using any thermometer we should be insure about its accuracy. The brand
new device has certificate about their accuracy valid for a limit time. Therefore, the measuring
devices need to be calibrated according to specified schedule. To calibrate thermometers, reference
points temperatures must be defined by employing accurate thermometer like liquid-in-glass or
other types of thermometers with a controlled temperature bath working within the specified range
of temperature.
Experimental procedure: By connecting the LM35 temperature sensor to the microcontroller and
upload the code program after check, then immersed the sensor to the hot water figure.2. Other
thermometer (mercury or alcohol) immersed to the same hot path and employ as a reference to
calibrate the system of measuring temperature (Arduino+LM35).
12
Laboratory of Instrumentation
Second Class
RAC Division/Mech. Eng. Dep./UOT EXPREMENT No.4
Controlled-Temperature Baths:
Calibrations usually are made in electrically heated temperature controlled stirred-liquid baths
wherein test sensors and standard thermometers are placed and the resulting outputs are compared.
Readings: The readings can be organized in a table format that includes the temperature measured
by the semiconductor sensor and compared with mercury or alcohol thermometer reading as
shown in table.1.
Table-1
Reading Synchronous measuring temperature
Real temperature ( ) notes
no ( )
1 X1 Y1
2 X2 Y2 Write notes
.. … … if there is
… .... .... any error
n Xn Yn
13
Laboratory of Instrumentation
Second Class
RAC Division/Mech. Eng. Dep./UOT EXPREMENT No.4
Calculations: Create the calibration curve from the reading table as shown in figure.3 below
| | ∗ 100%
∑
The average of , where n= number of reading
Briefly:
14
Laboratory of Instrumentation
Second Class
RAC Division/Mech. Eng. Dep./UOT EXPREMENT No.4
Below is the code program upload to the PIC of arduino-uno, this code program was wrote
specially to the temperature semiconductor sensor LM35.
Code program
// LM35 TEMPERATURE SENSOR
//HVAC-MECH. ENG. DEPA./UOT
float temp; //Define the temp float variable
int sensor = 0; // sensor middle pin on analog pin 0
void setup()
{
Serial.begin(9600); //start the serial monitor
}
void loop()
{
temp = analogRead(sensor); //assigning the analog output to temp
temp = temp * 0.48828125; //converting volts to degrees celsius ----- 0.48828125 = [(5V*1000)/1024]10
//wait 1 second
delay(2000);
}
15