Introduction




Name of Experiment: Interfacing of Temperature Sensor

Exp No: 3

Background: Student should have a basic knowledge of Arduino software & Arduino programming.

Summary: After going through this experiment, student should be able to display the temperature on the serial monitor of Arduino Software.

Learning Objective: To understand the interfacing of temperature sensor with Intel Galileo Gen1.

Target

Target Platform: This experiment is tested on Intel Galileo Board Gen1 using Arduino software.

Procedure

SourceCode

Source Code:

//initializes/defines the output pin of the LM335 temperature sensor
int outputpin= 0;
//this sets the ground pin to LOW and the input voltage pin to high
void setup()
{
Serial.begin(9600);
}

//main loop
void loop()
{

int rawvoltage= analogRead(outputpin);
float millivolts= (rawvoltage/1024.0) * 5000;
float celsius= millivolts/10;
Serial.print(" BY IGDTUW:ESENS,");
Serial.print(celsius);
Serial.println("C");
delay(1000);
}

Snapshots





Observation

Observation: It is observed that the room temperature of Embedded Systems Lab is displayed on the Serial Monitor in degree Celsius & degree Fahrenheit as shown in snapshot 2.

Video Link

Download

Right Click Here And Select Save Target For Entire Download:

Temperature Sensor