Professional Documents
Culture Documents
Cabalse - Keen LE7 Nocode
Cabalse - Keen LE7 Nocode
Cabalse - Keen LE7 Nocode
Keen Cabalse
Bachelor of Science in Mechanical Engineering
Visayas State University
Baybay City, Philippines
keen.cabalse@gmail.com
II. OBJECTIVES
A. Objectives
This laboratory exercise aims to create a fully functioning
simple temperature sensing system, and the use of Arduino
hardware and software to monitor the temperature data from
the sensor.
The exercise specifically aims to a) convert the reading to
Celsius by multiplying 0.488; b) use LM35 temperature
sensor; c) monitor temperature change in different
environment; d) using different analog pin for the circuit. Figure 1:Circuit Schematic Diagram
C. Code
B. Scope and Limitation This is the Arduino code to be used for the laboratory
exercise which was provided in the laboratory manual.
This laboratory exercise focuses mainly in building a fully
functioning temperature sensing system and circuit using /* Temperature Sensing with LM35 */
simple and basic electronic devices such as a LM35
temperature sensor and the usage of Arduino UNO R3. //assign variable to use for the program
// use a float variable tempReading for decimal reading
The use of another model of Arduino will not be discussed float tempReading;
in this laboratory exercise. The circuit created in this
laboratory is a prototype kind of circuit made of basic // use a float variable correctTemperature for decimal
electronic device and is not a large circuit system. Other types reading float correctTemperature;
of temperature sensor will not be explored in this laboratory
exercise.
// use Arduino Analog pin 0 for temprature reading
int temperaturesensorPin = 0;