100% found this document useful (1 vote)
566 views8 pages

Automatic Temperature Control System Using Arduino: Kyi - Kyi - Khaing@miit - Edu.mm

The document describes an automatic temperature control system using an Arduino microcontroller. It includes an abstract, introduction describing temperature control applications and prior research, and sections on the related work, hardware implementation using an Arduino board, temperature sensor and LCD display, and software implementation of the temperature control logic.

Uploaded by

Ali Adnan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
566 views8 pages

Automatic Temperature Control System Using Arduino: Kyi - Kyi - Khaing@miit - Edu.mm

The document describes an automatic temperature control system using an Arduino microcontroller. It includes an abstract, introduction describing temperature control applications and prior research, and sections on the related work, hardware implementation using an Arduino board, temperature sensor and LCD display, and software implementation of the temperature control logic.

Uploaded by

Ali Adnan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Automatic Temperature Control System

Using Arduino

Kyi Kyi Khaing, K. Srujan Raju, G. R. Sinha and Wit Yee Swe

Abstract Automatic temperature control system is an important application used


in almost all modern gadgets and smart homes. The system for controlling tem-
perature automatically is achieved by using Arduino Uno-based microcontroller
system. Arduino Uno due to its increased popularity finds its varied range of
applications. Temperature sensor LM35 and Arduino Uno are the hardware used
interfaced with computer, and the temperature is controlled in the room.
Temperature is displayed on LCD display employing A1 pin of hardware with the
help of analog pin utilizing pulse width modulation (PWM). We have designed
temperature control as an automatic system that has been not attempted before the
way it has been implemented.

Keywords Temperature control  Arduino Uno  Temperature sensor  LCD


display

1 Introduction

Temperature control becomes an important task in many of automatic operations.


There are sensors, right from simple to smart sensors that are used for detecting the
temperature. The environmental monitoring application, room temperature control
are few of popular examples of temperature control. Now, with the advent of new
technologies—hardware and software support—temperature can be controlled,
monitored, and recorded more flexibly and with the programmable ways [1–4].
Information and communication technology (ICT) or smart appliances are using

K. K. Khaing (&)  G. R. Sinha  W. Y. Swe


Myanmar Institute of Information Technology (MIIT), Mandalay, Myanmar
e-mail: kyi_kyi_khaing@[Link]
K. Srujan Raju
CMR Technical Campus Hyderabad, Hyderabad, India
e-mail: drksrujanraju@[Link]

© Springer Nature Singapore Pte Ltd. 2020 219


K. S. Raju et al. (eds.), Proceedings of the Third International Conference
on Computational Intelligence and Informatics, Advances in Intelligent
Systems and Computing 1090, [Link]
220 K. K. Khaing et al.

some sort of temperature control; this may be artificial intelligence (AI)-based


refrigerator or washing machine.
Microcontroller-based temperature control has become so important that it acts
as benchmark for testing and simulation of particular sensors for detection and
monitoring of temperature automatically. Various types of projects like minor
projects as well as major projects are carried out on suitable hardware and software
platform [4–9].
This paper presents an application of control theory using ICT and
hardware-based temperature control including design of a circuit (hardware) and
implementation and testing on Arduino Uno board. The test results are displayed
with the help of LCD display. The program is written in Arduino IDE and facilitates
the display of temperature in degree centigrade and also in Fahrenheit. The Arduino
Uno board facilitates the temperature measurements input to the fan and cooling
system ON/OFF that is automatically done based on varied values of temperature.

2 Related Research and Problem Identification

In the existing literature, there are many research papers that are temperature control
but very few of them have used Arduino for automatic control of temperature,
especially for monitoring applications. We studied several papers and here few of
important contributions are presented.
Atilla et al. presented a case study that the design of heating system controlled
by Arduino and has studied the technology, software, hardware used in the heating
system, which consists of isolated box, dry resistance, voltage regulator, thermo-
couple, air fan, microcontroller, and computer. Proportional–integral–derivative
(PID), neural network, fuzzy logic is mainly used for the temperature control of
heating systems. The system uses PID controller and exhibits satisfactory value of
stability, good reliability, and sensitivity also. Microcontroller-based temperature
control was designed with comparing theoretical values of temperature. However,
Arduino control and implementation were not done [1].
Abdullah et al. suggested a design of temperature control system and imple-
mented on TudungSaji microcontroller. Hardware implementation, as well as
software simulation, was tested and obtained. The purpose of this work includes
protection against bacteria after certain value of temperature. The application seems
to be very good controlling and rather preventing from bacteria since after certain
temperature, the bacteria can be killed. This could be also tested on Arduino IDE
system [2]. Wayan et al. proposed the development and design of temperature
distribution control for baby incubator application. In this system, it is a very
important to maintain a certain temperature inside the room to take care of proper
health of a baby. Humidity was also included in the study of experiment using
microcontroller-based system for temperature measurement and control. This
proved to be very important application for baby care and health [3].
Automatic Temperature Control System Using Arduino 221

Nagendra et al. presented a design and the implementation of Arduino-based


temperature sensor that was also used to measure humidity level [4]. Kanishak et al.
brought out a case study on temperature control systems using microcontroller,
TRIAC, and bridge rectifiers [5]. Vaibhav et al. implemented speed control system
based on change in temperature; for changing temperature measurement, the tem-
perature control system was used. PWM and a simulation software were used to
design the hardware and simulate on computer [6]. Theophilus et al. presented a
testing of temperature monitoring mechanism with the help of Atmel Atmega 8385
system and LM35 temperature sensor [7].
Kiranmai et al. also proposed a temperature control system, and it was claimed
that it is very useful for Internet of things (IoT)-related applications. However, the
real-time application for any such application was not tested [8]. Singhala et al.
studied a fuzzy-based temperature control system that was completely
simulation-based, and no hardware implementation was achieved. The system
suggested was very simple and effective but hardware implementation and real-
ization remain as future scope of the work [9].
Muhammad [10] designed a PID controller and implemented on virtual labo-
ratory platform, LabVIEW of National Instruments. It was suggested that
Arduino-based hardware realization would produce much relevant and appropriate
results for temperature control. Samil et al. employed the concept of PWM and
displayed the values of temperature using LCD displays [11]. Masstor et al. sug-
gested a case study for alarm system based on sensing temperature and humidity.
Arduino controlled GSM/GPRS module was suggested, but temperature measure-
ment was not accurate in the system [12]. Okpagu et al. suggested the development
of temperature control system for egg incubator system utilizing sensors, PID
controllers, LCD displays, DC motors, and fan control system. This is a very
important type of incubator system because it becomes essential to monitor embryo
and its growth, and therefore, temperature control and monitoring played an
important role in this system [13].
Christina et al. presented a case study of light and humidity control including
temperature control also. Light sensor, temperature sensor, and Arduino hardware
interfaced with computer, and the work was implemented. Basically, the work was
suggested for environmental monitoring for hospital application [14]. Merean et al.
proposed a design and development of remote-controlled temperature monitoring
system. Arduino-based work aims at providing a viable solution to the environ-
mental monitoring and care [15].
Summarizing the current literature, temperature control that too automatic way
of monitoring has not been attempted by the researchers mainly on temperature in
focus of research. We suggest an Arduino control and hardware-based temperature
control system, mainly highlighting temperature monitoring and measurement.
222 K. K. Khaing et al.

3 Hardware Implementation

Hardware implementation was obtained on Arduino IDE interfaced with P-IV


computer. Data flow and block diagram of the hardware implementation are shown
in Figs. 1 and 2, respectively.
Figures 1 and 2 are simple and self-explanatory where temperature sensors are
connected with the help of Arduino and LCD display of 16  2 matrix. The fan
was additionally connected for cooling mechanism so that automatic control could
be achieved which is main objective of the proposed work. The hardware design is
very simple without any circuit complexity (Fig. 3).
We used temperature sensor IC LM35 that helps in generating a small voltage
for detecting the change in temperature across the temperature sensor.

Fig. 1 Data flow in hardware implementation

Fig. 2 Block diagram of temperature control hardware


Automatic Temperature Control System Using Arduino 223

Fig. 3 Flowchart of the


control system

The generated voltage was continuous and analog signal generated through analog
pin of Arduino hardware. Arduino (ATmega328) controller was used, and the
voltage is taken as analog input in port 1 (A1) of Arduino Uno. The hardware reads
the analog signal, and it is then converted into suitable digital output with the help
of appropriate analog-to-digital converter (ADC) circuit that is inbuilt in it. ADC
has maximum capacity of 10-bits output generating from 0 to 1023 (1024
combinations).
Digital data corresponding to analog input received through the port is converted
and multiplied by a coefficient 0.488 just to normalize in centigrade. Similarly,
suitable multipliers such as 1.8 and afterward adding with 32 used to convert the
temperature measurement in Fahrenheit scale. The hardware sends the data to
16  2 LCD display which is connected with controller as shown in Fig. 4. Pin 1
and pin 2 are connected to ground and supply VCC, respectively, through Arduino
for activating or switching ON the LCD. Pin 3 enables through 10 K resister as
adjustment of brightness value of LCD display.
So, the display can be made on both the scales of temperature. A control bit,
either 0 or 1, is also sent by the Arduino to port 6 basically for providing control
224 K. K. Khaing et al.

Fig. 4 Temperature control system

application. Pins 8 and 9 can be seen connected with fans just to adjust, normalize,
and automatically control the temperate. Whenever temperature goes down after
certain value, the fans will be OFF else it will keep running. This is how the control
of temperature becomes automatic. Figure 3 shows the flowchart of the system.

4 Results

However, experimental setup was done and lot of temperature measurement was
recorded with suitable displays. Few of sample displays and the observations are
presented here with brief discussion.
Mainly, we have two outputs in this work: one for displaying the temperature
automatically on LCD display and second was even important that is for automatic
switching ON/OFF of fans so as to monitor the temperatures on automatic basis.
LCD display produces the output of temperature as well as the status of fans. For
example, in Fig. 4, it can be seen that 28 degree centigrade is being displayed by
the LCD display along with status of fan as ON. Actually, the running condition of
fans depends on the threshold value set. We set 25 degree centigrade as the value,
and therefore, it can be seen that for 28 degree centigrade fan is running (i.e., in ON
condition). Obviously, for below, for example 23 degree centigrade, the fan will go
OFF. The interface of display with bread board and Arduino hardware can be seen
in Fig. 5.
Automatic Temperature Control System Using Arduino 225

Fig. 5 Display of a
temperature and status of fan
in automatic control of
temperature

5 Conclusions

We have designed a simple method of temperature control system automatically.


Utilizing the concept cooling after certain temperature, Arduino-based hardware
along with display was realized in hardware. Few samples are shown in result, but
any value of temperature can be generalized in this work. The work is focused
mainly on temperature control, and no other parameter is involved. This seems to be
robust way of handling only temperature control on automatic basis. This can be
extremely useful for persons of physical disability. Soft computing method could be
used to make it more robust and fuzzy controlled.

Acknowledgements The successful and final outcome of this paper is required a lot of guidance
and assistance from my teacher. I respect and thank Mr. G.R. Sinha, Professor, Myanmar Institute
of Information Technology (MIIT), Mandalay (Adjunct Professor, IIIT Bangalore, India).

References

1. Bayram, Atilla, Sulaiman Abdullah Moammed, and Fırat Kara. 2016. Design of Heating
System Controlled by Arduino. In 4th International Symposium on Innovative Technologies
in Engineering and Science, 1583–1591.
2. Abdullah, Rina, Zairi Ismael, Rizman, Nik Nur Shaadah Nik, Dzulkefli, SyilaIzawana, Ismail,
Rosmawati, Shafie, and Mohamad Huzaimy, Jusoh. 2016. Design an Automatic Temperature
Control System for Smart Tudung Saji Using Arduino Microcontroller. ARPN Journal of
Engineering and Applied Sciences 11(16):9578–9581.
3. Widhiada, W., D.N.K.P. Negara, and P.A. Suryawan. 2017. Temperature Distribution Control
for Baby Incubator System Using Arduino ATMega 2560. Bali Indonesia 19 (20) part xv,
1748–1751.
4. Dangi, Nagendra. 2017. Monitoring Environmental Parameters: Humidity and Temperature
Using Arduino Based Microcontroller and Sensors.
5. Kesarwani, Kanishak, S.M. Pranav, Tanish Nikhilesh Noah, and K.V.N. Kavitha. 2016.
Design of Temperature Based Speed Control System Using Arduino Microcontroller 14 (S3):
753–760. [Link].
226 K. K. Khaing et al.

6. Bhatia, Vaibhav, and Gavish Bhatia. 2013. Room Temperature based Fan Speed Control
System using Pulse Width Modulation Technique. International Journal of Computer
Applications (0975–8887) 81 (5): 35–40.
7. Wellem, Theophilus, and Bhudi Setiawan. 2012. A Microcontroller—Based Room
Temperature Monitoring System. International Journal of Computer Applications 53 (1):
7–10.
8. Nandagiri, Kiranmai, and Jhansi Rani Mettu. 2018. Implementation of Weather Monitoring
System. International Journal of Pure and Applied Mathematics 118 (16): 477–494.
9. Singhala, P., D.N. Shah, and B. Patel. 2014. Temperature Control using Fuzzy Logic.
International Journal of Instrumentation and Control Systems (IJICS).
10. Muhammad Asraf, H., K.A. NurDalila, A.W. Muhammad Hakim, and R.H. Muhammad
Faizzuan Hon. 2017. Development of Experimental Simulator via Arduino-based PID
Temperature Control System using LabVIEW. Journal of Telecommunication, Electronic and
Computer Engineering. 9 (1–5): 53–57.
11. Sami, K., M. Lavanya, M. Arivalagan and Yathrasi Sree Harsha. 2016. Temperature
Controlled Based Cooler Pad Using Arduino. Journal of Chemical and Pharmaceutical
Sciences 216–220.
12. Masstor, Norhidayah Binti. 2015. Temperature Alert Alarm System (TAAS).
13. Okpagu, P.E., and A.W. Nwosu. 2016. European Journal of Engineering and Technology 2
(7): 13–21.
14. Tan, Christina. 2010. Integrated Temperature, Light and Humidity Monitoring System.
15. Eltrubaly, Meream. 2016. Remote Temperature Monitoring of Electronic Systems, 1–29.
Sweden: Blekinge Institute of Technology.

Common questions

Powered by AI

Current literature indicates research gaps in Arduino-based automatic temperature control systems, particularly in real-world implementation and multi-parameter integration. Many studies focus on theoretical or simulation-based approaches without substantial application to real-world scenarios. There is also a lack of multi-sensor integration beyond basic temperature sensors, which limits the system's functionality in complex environments. Additionally, the incorporation of advanced control theories like adaptive and predictive models remains underexplored. Future research could address these gaps by enhancing hardware robustness, integrating additional environmental sensors, and implementing advanced algorithms that enable more comprehensive and adaptive temperature management systems .

Optimization of Arduino-based automatic temperature control systems for real-time environmental monitoring can be achieved through several strategies. Integration of wireless communication modules like GSM/GPRS enhances remote monitoring capabilities, allowing adjustments and data access in real-time. Incorporating advanced algorithms like fuzzy logic or neural networks can provide adaptive control mechanisms that respond to varying environmental conditions more efficiently. Optimizing sensor placement and calibration ensures accurate temperature readings, while enhanced GUI interfaces can facilitate better interaction and data visualization. Real-time data logging and analysis using cloud or edge computing support predictive maintenance and system optimization, making the system more robust and responsive to dynamic environmental changes .

Designing Arduino-based temperature control systems for healthcare applications poses challenges such as ensuring high accuracy, reliability, and compliance with health standards. Temperature fluctuations could compromise patient safety and data integrity. To mitigate these challenges, incorporating redundant systems and sensors adds a layer of reliability. Calibration against certified medical standards ensures accuracy. Implementing failsafe mechanisms through software and hardware precautions prevents data loss and system failure. Additionally, integrating advanced data analytics and real-time monitoring can detect and correct anomalies promptly, maintaining the system's integrity and alignment with healthcare requirements .

The automatic temperature control system functions by using an Arduino Uno microcontroller as the central unit. Key components include the LM35 temperature sensor, which detects temperature changes and sends an analog signal to the Arduino Uno. The Arduino Uno processes this signal and uses a pulse width modulation (PWM) technique to automatically control a fan and cooling system. The temperature readings are displayed on a 16x2 LCD display interfaced with the Arduino. The system operates by reading temperature input, converting it with an Analog-to-Digital Converter (ADC), and executing control logic coded in the Arduino IDE to maintain desired temperature levels .

Automatic temperature control systems are particularly beneficial in scenarios requiring precise environmental conditions, such as laboratories, greenhouses, and server rooms. In laboratories, maintaining a specific temperature is crucial for the accuracy and reliability of experiments. Greenhouses benefit from these systems to ensure optimal growing conditions, improving plant health and yield. Server rooms require stable temperatures to prevent overheating of equipment, ensuring sustained efficiency and preventing data loss. Additionally, applications in healthcare, such as baby incubators and pharmaceutical storage, where precise temperature is critical, would greatly benefit from such control systems due to their ability to automatically adjust and maintain optimal conditions .

An Arduino-based system offers several advantages for automatic temperature control. It provides a user-friendly platform with a vast support community, making it accessible for both hobbyists and researchers. Arduino's open-source nature allows easy integration with various sensors and modules, including the LM35 temperature sensor and LCD displays, which are crucial for temperature monitoring and control. Compared to other microcontrollers, Arduino facilitates rapid prototyping and iteration due to its simple programming environment, the Arduino IDE. Furthermore, it supports PWM and has inbuilt ADC features which are essential for maintaining system stability and efficiency in controlling temperature-related hardware like cooling fans .

PWM, or Pulse Width Modulation, plays a critical role in the Arduino-based temperature control system by regulating the speed of connected cooling fans. When the temperature exceeds a set threshold, PWM adjusts the power delivered to the fans, thereby controlling their operational speed. This modulation helps maintain the desired temperature range, contributing to efficient energy usage and prolonging the fan's operational lifespan. The use of PWM allows for smooth transitions rather than abrupt changes in fan speed, which enhances the overall stability and efficiency of the system .

The design methodology for Arduino-based temperature control systems includes defining system requirements, selecting appropriate sensors and actuators, and developing control algorithms. Prototyping with breadboards allows for iterative testing and refinement. Programming in the Arduino IDE involves coding the logic to read sensor data, convert and calculate outputs, and control devices such as fans. This methodology emphasizes real-time responsiveness, stability, and precision in temperature regulation. Challenges include optimizing each component's performance and interface constraints, suggesting further designs might leverage more robust computing and sensor technologies .

LM35 temperature sensors are connected to the Arduino's analog input pins to measure temperature. The sensor outputs a voltage that is proportional to the temperature, which the Arduino reads and converts into digital data using its inbuilt ADC circuit. The digital data is then processed to display temperature values on an LCD and to control actuators like fans, thus achieving automatic temperature regulation based on pre-set thresholds .

Control theories such as Proportional-Integral-Derivative (PID) are instrumental in microcontroller-based temperature control systems. A PID controller continuously calculates an error value as the difference between a desired setpoint and a measured process variable (in this case, temperature). It applies corrections based on proportional, integral, and derivative terms, which results in a control signal to minimize the error. In these systems, PID control helps achieve stability and accuracy, making it particularly useful in maintaining consistent temperatures in applications such as heating systems and incubators. Although some systems discussed, such as the Arduino-based controllers, primarily utilize PWM, integrating PID can improve precision and responsiveness in temperature regulation .

You might also like