Automatic Room Temperature Control System Using Arduino UNO R3 and DHT11 Sensor
Automatic Room Temperature Control System Using Arduino UNO R3 and DHT11 Sensor
Authorized licensed use limited to: Institut Teknologi Sepuluh Nopember. Downloaded on April 27,2021 at 04:42:01 UTC from IEEE Xplore. Restrictions apply.
depending on the current room temperature and the
predefined reference temperatures. Arduino is used for the
central controlling system. The keypad is used to input the
reference temperature ranges. Every time the users need to
change (set) his /her own desired range of temperature, they
use the keypad device to set the ranges of temperature values.
In this case, the user can set his / her own desired reference
temperature anytime. The sensor senses the temperature and
sends it to the Arduino microcontroller. Afterwards, the
microcontroller compares the sensor read value with the
setpoint, then automatically makes a decision. If the
temperature is below the minimum of the reference room
temperature, then the heater automatically turned on to warm Fig.1 Block diagram of the proposed system
up the room until the temperature gets back to the desired The microcontroller measures the temperature from the
value and then turned off [4]. If the room temperature is Digital Integrated Circuit (DIC) DHT11 sensor, which senses
larger than the maximum of the desired room temperature, the humidity and temperature from the surrounding. This
then the microcontroller automatically triggered on the fan sensor can measure a temperature ranges from 0 °C to 50 °C
to cool the room until it returns to the desired value and then and humidity range from 20% to 90% with an accuracy of
turned off [4]. The fan's speed is controlled and changed ±1 °C and ±1% [7]. It works within operating voltages of
based upon the current temperature and the maximum of the 3.5V to 5.5V and operating currents of up to 0.3mA. The
reference temperature [5]. Fig.1 demonstrates the block DHT11 sensor module gives the measured value of the
diagram of the proposed automatic room temperature control temperature in degree Celsius. When a room temperature
system. The Arduino Uno being the heart of this system, increased by one-degree Celsius, the sensor generates a
accessed the inputs signal from the DHT11 sensor's serial voltage of 10mV [8]. Fig.2 demonstrates the schematic
data (output) pin. The analogue-digital converter (ADC) diagram of the proposed system simulated by proteus
converts the accessed information into an equivalent digital software. For the cooling purpose, we connected the battery
value and execute them one by one. Additionally, the and the dc fan, relay switch, an NPN transistor in series and
microcontroller allows the relay switch to control and the base of the NPN transistor connected to a 10 KΩ resistor
monitor the heater and fan's operation. and Pin 6 of Arduino.
In this project, we proposed the fan speed control Meanwhile, Pin 2 of DHT11 connected to Pin 14 of the
system [1,2,4,5,6,8] as well. Pulse width modulation Arduino, while Pin 4 and Pin 1 are connected to GND and
techniques (PWM) is introduced to control the speed of the +5V power, respectively. However, Pin 3 has no connection
fan. In this case, the pulse width modulation (PWM) will (NC). The relay switches are used to control the power
significantly control the power supplied to the fan. The status transmitted to the dc fan and the heater (lamp). The Liquid
of the speed of the fan is divided into zero speed, slow speed, Crystal Display (LCD) was connected to the pin
medium speed, fast speed, and very-fast speed [6]. The relay (13,12,11,10,22,20) of Arduino to display the data feed into
switches keep both the fan and the heaters from damage due the microcontroller and the output information. The value of
to overcurrent. Both the fan and the heater used an external the DHT11 sensor reading is displayed on the LCD screen
power supply of 12V battery while Arduino used a maximum every second. The potentiometer measures the voltage used
input voltage of 5V. by LCD. It has three connected pins, in which Pin1
The signal from the microcontroller passed through a connected to the ground, Pin 2 connected to 5V power, and
network of transistors (BC108 NPN bipolar junction Pin 3 connected to Pin 3 (V_{EE}) of LCD.
transistor). The base is connected to a resistor. Both the
collector and the emitter are connected to diode, relay switch
and ground in series. Fig.1 below shows the block diagram
of the proposed system of this project.
429
Authorized licensed use limited to: Institut Teknologi Sepuluh Nopember. Downloaded on April 27,2021 at 04:42:01 UTC from IEEE Xplore. Restrictions apply.
Table 1 The components and specification of materials
used.
Name of Components Description
Rectifier diode 1N4001
Resistors 10 KΩ
Relay switch Two relay switches
Arduino Arduino Uno R3
Humidity and Temperature DHT11 sensor
sensor
Transistor BC108
Fan DC fan
Heater heater lamp
Keypad 3x4 Keypad
LCD LM044L (20x4) LCD
Battery 12 volts battery
Potentiometer POT-HG potentiometers
430
Authorized licensed use limited to: Institut Teknologi Sepuluh Nopember. Downloaded on April 27,2021 at 04:42:01 UTC from IEEE Xplore. Restrictions apply.
2.3.2. Flowchart 2
Fig.6 a)
4. Conclusions
431
Authorized licensed use limited to: Institut Teknologi Sepuluh Nopember. Downloaded on April 27,2021 at 04:42:01 UTC from IEEE Xplore. Restrictions apply.
monitor both the heater and the fan simultaneously. The DC https://components101.com/dht11-temperature-sensor,
fan is on when the room temperature is higher than the (Accessed November 4, 2020)
reference temperature, and its speed is controlled based upon [8] Zairi Ismael Rizmam, Design an Automatic
the room temperature. When the room temperature is lower Temperature Control System for Smart Electric Fan
than the minimum of the reference temperature, then the Using PIC, International Journal of Science and
heater lamp is turned on while the DC fan triggered off. Research (IJSR), Volume 2, Issue 9, September 2013.
When the room temperature is within the reference range, all [9] Biswajit Das, August 20, 2019, Temperature Based Fan
the loads are automatically off. The main advantages of this Speed Control and Monitoring Using Arduino,
system are for its low cost, ease of installation, simplicity, https://www.electronicsforu.com/electronics-
low power consumption, small size, and user-friendly. This projects/fan-speed-control-monitoring-arduino
project efficiently optimizes energy consumption in a room [10] AL Amoo, Design, and Implementation of a Room
while keeping the room at a comfortable temperature. Temperature Control System: Microcontroller- Based,
IEEE,2014.
Acknowledgements
References
432
Authorized licensed use limited to: Institut Teknologi Sepuluh Nopember. Downloaded on April 27,2021 at 04:42:01 UTC from IEEE Xplore. Restrictions apply.