You are on page 1of 14

MECHATRONICS ME156P SECTION E01 EXPERIMENT NO.

2
Experiment TITLE: Love-o-Meter

NAME: RAMOS, Chester Jericho O. Date Performed: August 29, 2019


Student No.: 2015108036 Date Submitted: September 3, 2019
PROFESSOR: Engr. Edward B.O. Ang Course and Year: ME - 4
GROUP # 3

DISCUSSION:
The experiment is entitled "Love-o-Meter" because the aim of this experiment is to
measure the temperature of your body, specifically your warm hands and fingers. This
experiment is entitled in this manner since it is said that when you're in love, your body becomes
warmer because of the sensation/pleasure you feel for your loved once. The heat is due to your
increasing heat rate, this allows the fast-flowing of the blood vessels in which your body
becomes hotter. Consequently, two bodies in contact with sudden movement creates heat due to
friction.
In this experiment, the thermal sensor used was the TMP36 sensor, which is more
sensitive compared to the commonly used LM35. The thermal sensor works by obtaining first
the temperature, wherein theTMP36 converts it to output voltages. This converts the sensed data
into a numerical value shown in the Arduino IDE software via "Serial Monitor" and "Serial Plot"
tool. In the prototype created, 3 LED lights where used to indicate an increasing room/body
temperature. Each LED lights corresponds to a specific range of temperature.
LEARNING OBJECTIVES:

 To learn and experience the usage and functions of a thermal sensor.


 To be able to use "Serial Monitor" and "Serial Plot" tool in reading the temperature on the
Arduino IDE software.
 To be able to interpret and program a sketch and to create a proper wiring to develop the
output temperature needed, with the correct indication of how high the temperature is
with the usage of LED lights.
 To know how to troubleshoot a thermal sensor and the wiring of the prototype.

Course Objectives and Anticipated Student Outcomes


 “A” Ability to apply knowledge of mathematics, science, and engineering
- In this experiment, we were engaged to think and use the principle between the
proportionality of the voltage and temperature, together with its conversion.
 “B” Ability to design and conduct experiments as well as analyze and interpret data
- Using the principles discussed in "A", we've programmed the codes and arrange
the wirings based on the given design of our reference book (Arduino Projects Book).
The "Serial Monitor" AND "Serial Plot" tool in the Arduino IDE Software is highlighted
since it monitors the temperature reading.
 “C” Ability to design a system to meet desired needs
- As discussed in "B", the codes are programmed and the sketch was uploaded
into the Arduino UNO board. troubleshooting the prototype is also done to meet the goal.
 “D” Ability to function on multidisciplinary teams
- To be able to work with the experiment, each student is assigned to different
groups. And within our group, the task was distributed.
 “E” Ability to identify, formulate, and solve engineering problems
- On the designing of the codes, the principles discussed in "A" is optimized and
expanded that the codes can be arranged in chronological order.
 “F” Understanding of professional and ethical responsibility
- We were able to code our own sketch (codes) that is not directly copied from our
reference book, rather, it serves as a guide for the program. Each members of our group
do our tasks completely.
 “G” Ability to communicate effectively
- We, as a group, talked about our tasks accordingly that our work will be
efficient and done in a short amount of time
 “H” Broad education necessary to understand the impact of engineering solutions in a
global/societal context
- By learning and experiencing the usage of a thermal sensor, we could optimize
this program created into a real-life application, especially in our field, where the
temperature is crucial for the computation of transfer of energy and other thermodynamic
principle.
 “I” Recognition of the needs for and ability to engage in lifelong learning
- I learned that thermal sensors, as discussed in "H", is crucial in mechanical
engineering field since in designing machineries, HVAC systems, and the like, we as
mechanical engineers needs to know the initial temperature, and the output temperature
for approval of the product designed.
 “J” Knowledge of contemporary issues
- As discussed in "I", the knowledge about thermal sensors can be used in
designing machineries, HVAC systems, fire safety system, cooling towers and the like.
 “K” Ability to use the techniques, skills, and modern engineering tools for engineering
practice
- As said in "I" and "J", this experiment serves as a fundamental for our
foundation in our field of work and for future technologies needing thermal sensors.
 “L” Knowledge and understanding of engineering and management principles as a
member and leader in a team, to manage projects and in multidisciplinary environments.
- Through this experiment, each member of our group diligently focuses on the
task assigned and ask questions to the group when there is a problem. Consequently,
planning and assigning was done by each member including myself.
Group Experiment / Task done by EACH member
GROUP NUMBER 3
EXPERIMENT # 2
Experiment Title Love-o-Meter Due date: September 3, 2019

Group Member Name Brief Description Work % Completed


No. Your Score
Group Member signature Assigned to Member by Member

Delfin, Quintrae C.
1 Documentation 100% 100%

Gampon, Jonas D. Programming and


2 100% 100%
encoding

Gasis, Lloyd Christopher Encoding and


3 100% 100%
Troubleshooting

Pamintuan, John Andrew V. Troubleshooting and


4 100% 100%
testing

Ramos, Chester Jericho O. Bring Laptop and


5 100% 100%
Documentation

6 Santos, Erlvin Fernando A. Troubleshooting and 100% 100%


Assembling the Circuit
List of Materials needed for this Experiment
1. Arduino UNO with attached Breadboard (1 piece)

2. LED lights (3 pieces red lights)

3. Resistors (3 pieces 220Ω)


4. USB cable wire (1 piece)

5. TMP36 temperature sensor (1piece)

6. Connecting wires (8 pieces; 3 red wires, 2 blue wires, 3 brown wires)


Schematic Diagram

Figure 1. Schematic Diagram for Love-o-Meter Experiment.


Connecting
Wires

TMP36
temperature
sensor
Breadboard

Arduino Uno
Board Red LED
Lights

Figure 2. Labelled Actual wiring arrangement of the prototype Resistors 220


Ω
List of ACTUAL SAFETY procedures implemented in this experiment
Step 1. Gather the needed materials (hardware of the experiment).

Figure 3. Material Gathering


Step 2. Assemble the Materials with reference to the diagram shown in Fig. 2 (see figure
3 for actual wiring). Double the placement of the wiring, resistor, and temperature sensor.
In addition, take note of placement of the LED's when wiring since LED is a diode
wherein the longer led is the anode (+) and the shorter leg is the Cathode (-).

Figure 4. Process of assembling


Step 3. Re-program the codes given in the reference material (Arduino Projects Book),
according to the wirings discussed in Step 2.

Figure 5. Encoding Process


Step 4. Connect the Arduino UNO board to the computer using the USB cable wire and
upload the sketch created into it.
Figure 6. Connecting the cable into the computer and uploading the sketch
Step 5. Troubleshoot the codes or the wiring by trial and error of encoding when some
errors have occurred on uploading the sketch. Repeat step 4 when troubleshooting.

Figure 7. Troubleshooting the codes


Step 6. Perform 2 trials on the gathering of the data.
Figure 8. Performing the trials with the data gathered
Step 7. After performing the experiment, and gathering the data, disassemble all the
wirings and place the materials on the box.

Figure 9. Placing back the materials into its container


Arduino Program
const int sensorPin = A0; // Variable where sensor is connected
const float baselineTemp = 24.0; // code setting to 24 degrees Celsius as for room
temperature
void setup () {
Serial.begin (9600); // 9600 is the bit reading of the program
// "for()" loop saves extra coding
for (int pinNumber = 2; pinNumber < 5; pinNumber++){ // code for pinNumber decleration
pinMode (pinNumber, OUTPUT); // code declaring the pinNumber reading output
digitalWrite (pinNumber, LOW); // code for printing the pinNumber reading output
}
}
void loop () { // read the value on Analog pin 0 store in a variable
int sensorVal = analogRead (sensorPin); // code for temperature sensor reading
Serial.print ("sensor Value: "); // code for printing sensor reading in the screen
Serial.print (sensorVal); // code declaring the values for the Sensor Value display
float voltage = (sensorVal / 1024.0) * 5.0; // equation code in terms of Degrees Celsius
Serial.print (", Volts: "); // code declaring the output of voltage
Serial.print (voltage); // code declaring the values for the system voltage
Serial.print (", degrees C: "); // code for the statement degrees C:
float temperature = (voltage - .5) * 100; // code declaring the equation for the temperature
Serial.printIn (temperature); // code declaring the temperature output
if (temperature < baselineTemp + 2) { // code for if function comparing temperature and
baseTemp
digitalWrite (2, LOW); // code for LED 1 light off
digitalWrite (3, LOW); // code for LED 2 light off
digitalWrite (4, LOW); // code for LED 3 light off
}
else if (temperature >= baselineTemp + 2 && temperature < baselineTemp + 3) { //code for if
else function comparing temperature and basetemp
digitalWrite (2, HIGH); // code for LED 1 light ON
digitalWrite (3, LOW); // code for LED 2 light off
digitalWrite (4, LOW); // code for LED 3 light off
}
else if (temperature >= baselineTemp + 3 && temperature < baselineTemp + 4) { //code for if
else function comparing temperature and basetemp
digitalWrite (2, HIGH); // code for LED 1 light ON
digitalWrite (3, HIGH); // code for LED 2 light ON
digitalWrite (4, LOW); // code for LED 3 light off
}
else if (temperature >= baselineTemp + 4) { // code for if else function comparing temperature
and basetemp
digitalWrite (2, HIGH); // code for LED 1 light ON
digitalWrite (3, HIGH); // code for LED 2 light ON
digitalWrite (4, HIGH); // code for LED 3 light ON
}
delay (1000); // code for delay for 1000 of a millisecond
}
Data Sheet / Gathered: WITH CALIBRATION

LED # TRIAL 1 TRIAL 2


LED 1 26.17 °C 26.17 °C
LED 2 27.15 °C 27.15°C
LED 3 29.10 °C 28.12 °C

Analysis of the Experiment Done


Using the discussed and presented codes, which was then uploaded as a sketch in the
Arduino UNO board with the proper wiring, we've created the prototype. The prototype created
was a thermal sensor, in which measures the temperature of the surrounding, the human body.
The TMP36 thermal sensor works by measuring the temperature which was then converted to
output voltages, so that the Arduino IDE software can convert it in digital value (numeric value).
The base temperature was 24°C (room temperature), based on the codes created, as it increases,
the LED will light up in chronological order. For the first LED to light up, the condition is for it
to reach 26°C, for the second LED; 27°C, and for the last LED; 28°C.
Based on the data gathered, the values obtained was theoretically accurate as discussed in
the first statement. This indicates that the prototype created acts on what we're aimed it to be, and
what we designed it to be for application purposes.
With this, I learned how to use the highlighted tool of the Arduino IDE software for this
experiment, which is "Serial Monitor" and "Serial Plot". I also learned how important this
experiment since we are to be Mechanical Engineers in the future, and all the design criteria
needs the usage of thermal sensor or thermometers to see whether the designs output is efficient
or not in the design of different machineries most specially in HVAC systems.

Recommendation:
After doing the experiment, I recommend, primarily, for the group to distribute the task
immediately after knowing the task immediately after knowing the objectives of the experiment,
since making a report consumes an enormous amount of time. In addition, I would like to
recommend interpreting the codes in the Arduino UNO software since it is crucial for real life
application. Lastly, follow the procedures diligently so that the prototype maybe efficient,
quickly done and leave no broken materials for les cost of expenses.
Conclusion:
On the process of experimentation, I learned and experienced creating a prototype about a
thermal sensor, and how to read or monitor the temperature it senses. I was also able to discuss
each line of the sketch. Lastly, in troubleshooting, we used trial and error method while varying
the codes and wiring with respect to our own interpretation of the codes
With that said, and based on the explained data, it can be concluded that the experiment
was done successfully, with which all the objectives have been met.

ANSWERS TO QUESTIONS:
a.) What is the purpose of the serial PLOT in the Arduino IDE?
- We used the Serial Plot tool, which was located at the tools section of the Arduino IDE
software, so that the values/results can be shown in a graphical manner.
b.) HOW does rubbing your hands affects your experiment?
- Rubbing our hands creates friction, which generates heat. This heat can help us
calibrating our prototypes efficiently.
c.) SUGGEST the INDUSTRIAL APPLICATION of this kind of experiment?
- As in the Course Objectives and Anticipated Student Outcomes part of this report, getting
the temperature or creating a temperature sensor is crucial in our field, Mechanical
Engineering, since we based our design of machines, HVAC systems, and the like based
on temperature inputs, and outputs for deliberating the product produced. Consequently,
this output temperatures will indicate the design efficiency of the machines produced.
d.) Individually suggest electrical and mechanical standards or codes and local or international
applicable in this experiment. Cite source/s.
- Republic Act No. 9514 Section 7. Inspections, Safety Measures, Fire Safety,
Constructions and Protective and/or Warning Systems.
- Source: http://www.officialgazette.gov.ph/2008/12/19/republic-act-no-9514/

You might also like