Cabalse - Keen LE7 Nocode

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Laboratory Exercise 7 - Temperature Sensing

Keen Cabalse
Bachelor of Science in Mechanical Engineering
Visayas State University
Baybay City, Philippines
keen.cabalse@gmail.com

Abstract— This laboratory exercise deals with basic III. METHODOLOGY


electronics and its application when used with Arduino
hardware and software. The laboratory specifically uses a A. Materials
temperature sensor to create a temperature sensing device and The following are materials needed for the laboratory
circuit. The use of Arduino Programming software allows for exercise.
the temperature sensor electronics to record the temperature of
the environment, and be converted into degrees and be • 1 – Arduino UNO R3
displayed for monitoring and recording.
• 1 – USB Cable (USB-A to USB-B)
Keywords—temperature sensor, Arduino, basic electronics, • 1 – LM35 Temperature Sensor
circuit, temperature sensing device
• 1 – Breadboard
I. INTRODUCTION
• Connecting Wires
This laboratory exercise will deal with simple and basic
electronics. Electronics by definition is a branch of physics • Computer with Arduino software
and electrical engineering revolving on electrical applications B. Circuit Diagram
on / with electronic devices [1]. The specific electronics
device explored in this laboratory exercise is the Temperature This schematic diagram of the light sensor circuit is made
sensor. A temperature sensor is an electronic device that is use using Fritzing.
to monitor the temperature or temperature change of its
environment, which then converts the data into electronic
information [2].
The use of the temperature sensor can be applied to build
a simple monitoring system. In this laboratory exercise, the
use of temperature sensor and Arduino hardware and software
allows the reading of the data from the temperature sensor.

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;

MEng 125n – Basic Electronics


2nd Semester SY 2020-2021
Instructor: Engr. Philip Caesar L. Ebit
void setup() The temperature sensor is effective and was able to read
{ and display the temperature. The displayed data into the Serial
// call a serial monitor communication to view the monitor is the temperature in degree, which was programmed
readings in the Arduino code and was uploaded into the Arduino
Serial.begin(9600); Hardware.
} The temperature sensor reacts accordingly when placed
near a hot object or a cold object. Temperature drop is
// the loop is where your program runs repeatedly. recorded when the sensor is close enough to a cold object. And
void loop() an increase in the temperature is recorded when the sensor is
{ close enough to a hot object or environment.
// First we get the value of the temperature read by the
An analog pin from pins 0 to 5 present in the Arduino
sensor
hardware can be used for the circuit. When a change of pins is
// from Arduino analog pin 0. done it is necessary to apply the changes in the code required
int tempReading = analogRead(temperaturesensorPin); for the circuit to function properly and have the proper
connections for the input data.
// We multiply the resulting value of "tempreading" by
.488 V. CONCLUSIONS AND RECOMMENDATIONS
// to get the exact calibrated value of the temperature in To summarize all the points, a temperature sensor is an
degree electronic device that specifically function to react to the
// Celsius. temperature of the environment. This device can be paired
int correctTemperature = tempReading * 0.488; with an Arduino hardware to create a temperature sensing
device that can display data in degree – for this laboratory
// print the result to the serial monitor. exercise. An Arduino code is necessary for the temperature
Serial.print(correctTemperature); sensor to have its input data be converted into degrees.
Serial.println(" degree Celsius"); // print result in a new It is recommended to have the sensor isolated from the
line other components of the circuit for it to no be influence by
delay(1000); // 1 second delay to display the value every the internal heat of components. Being separated from other
second. components also allocate space around the sensor for objects
} to be placed and be checked of its temperature.
IV. RESULTS AND DISCUSSIONS
This part will present the results of the laboratory exercise ACKNOWLEDGMENT
as well as the functions of each devices/components, along The following are given acknowledgment because this
with the post lab questions presented in the objective part of laboratory exercise is made possible with their help.
the paper.
DOST, as I am a beneficiary of DOST-SEI Undergraduate
In this laboratory components/devices used are Arduino Scholarship Program.
UNO R3, LM35 temperature sensor, USB Cable (USB-A to
USB-B), Breadboard, and Connecting wires. Lazada, for being an easy access shop during the pandemic
to acquire the necessary materials for the laboratory.
Arduino UNO R3 is an electronic device or component
that is a microcontroller, allowing input or uploading of Sir Philip Caesar Ebit, REE, for the knowledge and
program that instigate specific actions and functions to guidance, and other requirements provided within the
components in a circuit like the LED to function [3]. laboratory manual.
USB Cable, is a wire that connects the Arduino to the My family, for providing financial support throughout the
computer, allowing the transfer of data from the program completion of the project.
application.
.
Breadboard is a component or device that is designed to
contain electronics to test circuit design. It is built as to not REFERENCES
require any soldering to contain electronic components, and [1] Scace, Robert I.. "Electronics". Encyclopedia Britannica, 2 Jun. 2020,
has integrated metal strips within the device, that serves as https://www.britannica.com/technology/electronics. Accessed 13 April
2021
wiring. between components to form a connection [4].
[2] Jost, Danny. "What Is A Temperature Sensor?". Fierceelectronics,
Connecting wires, are wires that has metal tips in both ends 2021, https://www.fierceelectronics.com/sensors/what-a-temperature-
used to connect the Arduino to other components attached on sensor. Accessed 13 June 2021.
the breadboard. [3] "Pololu - Arduino Uno R3". Pololu.Com, 2021,
https://www.pololu.com/product/2191#:~:text=The%20Arduino%20
LM35 temperature sensor is an electronic device that is Uno%20is%20a,header%2C%20and%20a%20reset%20button
used to sense the temperature around it or its environment. [4] Barrag, H. (n.d.). Breadboard \ Wiring. Wiring cover.
http://wiring.org.co/learning/tutorials/breadboard/.

MEng 125n – Basic Electronics


2nd Semester SY 2020-2021
Instructor: Engr. Philip Caesar L. Ebit

You might also like