Arduino UNO Based System To Monitor The Cooling Process of Hot Fluid
Arduino UNO Based System To Monitor The Cooling Process of Hot Fluid
https://doi.org/10.22214/ijraset.2022.46174
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VIII August 2022- Available at www.ijraset.com
Abstract: Temperature is a crucial parameter used in various systems and industrial sectors, various sensors. In this work, the
rate of change of energy of boiling water is monitored as it cools down to room temperature using Arduino UNO based system.
The temperature readings are captured using the DS18B20 temperature sensor which are then processed using MATLAB to
compute changes in energy using customized code based on Newton’s law of cooling.
Keywords: Arduino UNO, DS18B20, MATLAB Support for Arduino, Newton's Law of Cooling
I. INTRODUCTION
Temperature is one of the most important metrics, used in a wide variety of sectors, including chemical, pharmaceutical and food,
machinery and equipment, and almost every other industry. There are a number of devices that can be used to measure temperature
such as temperature transmitter, thermocouples, Change-of-State temperature measurement devices, Resistance Temperature
Devices (RTD), Fluid-Expansion devices, Bimetallic measurement devices, and Infrared temperature measurement devices. The
changes in temperatures have a direct relation with change in the energy of the body, substance or fluid under study hence accurate
temperature measurements play an important role.
A. Arduino UNO
Arduino UNO [1] is a low-cost, flexible and easy-to-use programmable open-source microcontroller based on the ATmega328P
microchip, which can interface other peripherals such as sensors, other microcontroller boards, LEDs, servos, and motors. The UNO
is a 68.6 mm x 53.4 mm board that comprises 6 analog pin inputs, 14 digital pins, a USB connector, a power jack, and an ICSP (In-
Circuit Serial Programming) header.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 327
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VIII August 2022- Available at www.ijraset.com
A labelled diagram of the Arduino UNO board is shown in Figure 1 and the functionality of each of the component is explained in
detail as below:
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 328
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VIII August 2022- Available at www.ijraset.com
II. METHODOLOGY
The experimentation was divided into two segments, first the hardware connections setup and secondly the MATLAB-Arduino
software linkage.
A. Hardware connections
The connections of the sensors with the Arduino board are done as per the circuit diagram shown in Figure 3, upon which the board
is powered up using the USB connection to a laptop computer. The sensor is configured using the Arduino IDE version 1.8.13,
where the DallasTemperature version 3.9.0 library is imported to code workspace using the library manager. Upon defining the
programming instructions for the temperature sensing, the code is uploaded to the Arduino and it initializes the temperature sensing
process.
(a)
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 329
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VIII August 2022- Available at www.ijraset.com
(b)
Figure 3. (a) Arduino UNO connections, Experimental Setup
III. RESULTS
The calibration of the temperature sensor was done at room temperature of 30oC as evident from the Figure 4.
Once the sensor was calibrated, a dynamic link between Arduino system and MATLAB was established, that enabled MATLAB to
directly read the temperature from the sensor. The temperature readings were then plotted in MATLAB plot GUI as shown in Figure
5. As evident, due a to high sampling frequency of the Arduino certain noises in the data is obtained, which are nullified and
processed.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 330
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VIII August 2022- Available at www.ijraset.com
Figure 5. Real-time data capture and plotting using Arduino interfaced with MATLAB
The Figure 6 shows the temperature variation of the hot water with respect to time. The experimentation and sampling were done at
a surrounding temperature of 35oC and hot water used at the start of the experimentation was at 95oC. The water reached the
temperature of the surrounding after 307 seconds (~ 5 mins).
Figure 6. Variation of temperature of water (in Kelvin) as it cools down to room temperature
Using a customized MATLAB script, the calculation of rate of loss of energy of water was implemented and the results is shown in
Figure 7, where y-axis represents the loss of energy in kJ/s and x-axis denotes time in seconds. As evident from the plot, at the start
of the experiment, the magnitude of energy loss was high and as time increased the magnitude reduced, which is obvious from the
fact that, with the passage of time the energy content of water reduces on account of cooling.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 331
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VIII August 2022- Available at www.ijraset.com
Figure 7. Variation of energy loss of water (in kJ/s) as it cools down to room temperature
IV. CONCLUSION
Given the importance of temperature measurements in various applications, this study attempted to highlight its significance in
estimating the loss of energy of water as it cools down from boiling state. The temperature measurements were carried out using a
DS18B20 sensor linked with Arduino UNO and interfaced with MATLAB. The MATLAB software leveraged the data capture and
live plotting. After processing the data to remove the noise, the variation of temperature and loss of energy with respect to time was
visualized.
REFERENCES
[1] UNO R3. (2022). Arduino Documentation. Retrieved August 4, 2022, from https://docs.arduino.cc/hardware/uno-rev3
[2] DS18B20 Programmable Resolution 1-Wire Digital Thermometer, datasheets.maximintegrated.com/en/ds/DS18B20.pdf
[3] MATLAB Support Package for Arduino Hardware Documentation - MathWorks India. (2022). MATLAB Support Package for Arduino Hardware.
https://in.mathworks.com/help/supportpkg/arduinoio/
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 332