Design and Implementation of Automatic R
Design and Implementation of Automatic R
Design and Implementation of Automatic R
*
Corresponding E-mail: [email protected]
Abstract— Most human feels the inconvenient about changing the fan speed level manually when the
room’s temperature changed. So, the automatic fan system that automatically changes the speed level
according to temperature changes is recommended to be built for solving this problem. Hence, the
objectives for this project are to enable the electric fan to automatically change the speed level according
to temperature changes and develop an automatic fan system that can change the speed level due to the
environment temperature changes. This project presents the designs and the simulation of a DC fan control
system based on room temperature using pulse width modulation technique and temperature sensor
namely LM35 with Arduino Uno Microcontroller. The fan will be used to reduce the temperature of a
room at certain level. To build the fan, we use LM35 heat sensor. The sensor will measure the room
temperature continuously. When the room temperature sensed by the sensor crossed the threshold, value
fan is switched on; the LED will be turn on. The fan will remain on till the temperature reduces below the
threshold value. This general idea is used in this project.
International Journal of Engineering Creativity and Innovation ( IJECI ) is licensed under a Creative Commons Attribution-
NonCommercial 4.0 International License. Libraries Resource Directory. We are listed under Research Associations category.
International Journal of Engineering Creativity and Innovation, 2019, 1 (2), 8-14
room temperature by controlling the fan’s speed room is high and the light will turn on and
automatically. decrease if the temperature of the room is low and
the light will turn off.
Furthermore, a short introductory video of this
work has been uploaded to the YouTube with the Fig. 1 shows the block diagram of fan speed
link: control system. The Arduino Uno is the heart of
https://www.youtube.com/watch?v=3ZL_LcM6D the system. It accepts inputs from the temperature
dI. sensor, LM35 which employed to sense the
temperature of the surrounding. The output of the
II.RELATED WORKS temperature sensor (analogue signal) is fed to the
In recent years the energy crisis has become input of the ADC, which converts the analogue
main problem which the whole world must temperature value to digital equivalent required by
confront. Home power consumption makes up the the micro-controller. Thus, the output of the ADC
largest part of energy consumption in the world. is directly coupled to the microcontroller whose
This is to be found that the automation is the use main task is to control / regulate the Fan speed via
of control systems and information technologies to the actuators.
reduce the need for human work in the production
of goods and services. Home automation is a Overall of this project is all about controlling
widely used automated system. There is an the fan by sensing the surrounding temperature,
approach to control the electrical and electronic whereby the sensor will detect the temperature and
home appliances according to the attendance of send to the microcontroller. The output from the
persons [1-2]. microcontroller will control the fan speed via
actuators. This work also can turn on the fan
Implementation of the ATmega8L manually with the speed fan desired without using
microcontroller for Speed control of DC motor fed temperature sensor.
by a DC chopper has been investigated. The
chopper is driven by a high frequency PWM The circuit presents the design and control of
signal. Controlling the PWM duty cycle is automatic switching electric fan. The idea is based
equivalent to controlling the motor terminal on the problem occurs in human’s life nowadays
voltage, which in turn adjusts directly the motor by improving the existing technology. The work is
speed [3-4]. The design and simulation of a novel based on microcontroller board design, produced
fan speed control system based on room by several vendors using various microcontrollers.
temperature using Pulse Width Modulation These systems provide sets of digital and analog
Technique. The duty cycle is made to vary input/output (I/O) pins that can interface with
according to the room temperature and the fan various expansion boards and other circuits.
speed is controlled accordingly [5].
The board features a serial communication
III. METHODOLOGY interface or a universal serial bus (USB) on some
In this work, Arduino Uno is used. There are models, for loading program from personal
many works reported to use Arduino computers to program the microcontrollers. The
microcontroller, such as in the field of robotics [6- Arduino project provides an integrated
23], and mini-projects [24~26]. The development environment (IDE) based on both the
microcontroller has been programmed using C and C and C# languages. In this work, it was used to
C# language according to the designed features program the microcontroller on what to do at a
and is loaded to Arduino Uno. Speed control of certain temperature. First, we devised a schematic
the DC motor is using PWM signal which requires diagram (as shows in Fig. 2) that would control a
manipulation the pulses’ width. The system has fan to operate at 3 different speeds. The speed
been designed to configure temperature sensor. would be controlled by the microcontroller by
Temperature sensor senses the temperature of a sending out a +5V signal through a network of
room and it gives the microcontroller signal. The transistors which would result at turning on the fan
speed of fan will increase if the temperature of the at a particular speed.
The system measures the temperature from the 4, 5 and 6 respectively, series with a resistor of
Integrated Circuit (IC) LM35, where it will control each LED. The others toggle switch whereby SW2
the fan according to the setting values in the are connected parallel to pin A1 and SW3
programming. The temperature sensor LM35 is connected parallel with pin A2 to the Arduino Uno.
employed to sense the temperature from
surrounding. It produces voltage of 10mV for 1°C Fig. 3 depicts the flowchart of the overall
rise in temperature. The output of the temperature system. At first, when the fan is turn on manually,
sensor (analogue signal) is fed to the input of the user can choose either low or medium speed of the
ADC, which converts the analogue temperature fan. The fan will rotate at medium speed and the
value to digital equivalent required by the micro- program will turn off all the speed of LED and the
controller. Thus, the output of the ADC is directly medium speed LED will light up if the user
coupled to the microcontroller whose main task is chooses for medium speed. The flow program
to control and regulates the fan speed via the when we choose the low speed will be same just
actuators. like when we choose the medium speed. Just the
differences are that the fans are rotating at low
Fig. 2 shows the schematic diagram of the speed and low speed LED will light up.
proposed system, whereby the battery, toggle
switch; motor DC and NPN transistor is connected When the fan is automatically on, it will detect
in series. Pin 2 (Base) of the NPN transistor is surrounding temperature. The fan will detect either
connected to Pin 2 of Arduino Uno. Pin 2 can be the temperature is higher than 28℃ or lower than
configured to trigger an interrupt on a low value, a 28 ℃ . If the temperature below than 28 ℃ is
rising or falling edge, or a change in value. detected, the fan will stop, and the all the speed
Meanwhile, LM35 is connected to the Arduino LEDs will turn off. Meanwhile, when the
Uno. Pin 3 of LM35 is connected to GDN. Pin 1 temperature is higher than 28℃, the sensor will
of LM35 is connected to pin A0 and pin 2 is compare with at a certain temperature to set the
connected to 5V. Three LED are connected to pin level of fan speed. When the compared
temperature is higher than 32℃, the speed of fan is the heat sensor has a sensitivity range of ± 0.5
will set to high, meanwhile when the compared degree Celsius. It operates at a range of –55
temperature is between 30℃ & 32℃, the speed of degree Celsius to a 150-degree Celsius range.
fan will set to medium and the speed of the fan is
low if the compared temperature is between 28℃ Repeatability is where the system can get the
same reading for the same condition multiple
&30℃. The speed of fan will rotate depends on
times. We have achieved such level in our product.
the temperature that are detected. The LED will
We were able to get constant readings for the same
turn on when the fan are in low, medium or in the
conditions.
high speed. All LEDs will turn off except the LED
that is programmed will light up depending on the
This work is also promoting energy saving.
specific condition.
Normally, for USB fan, it has an average of 2.5W
IV. RESULT
power consumption and a total power usage of
0.02 kWh from 10pm – 6am. Our fan, if used for
Accuracy is one of the major criteria in the same period, can save energy, electricity and
innovating or creating a new product. In our work, money.
the accuracy needed to accomplish a good product
was to be able to measure the temperature as For example, the average temperature in Penang,
accurate as possible. The sensor we have used is Malaysia, from: 10pm – 12am is ± 29°C; 12am –
accurate and the maximum deviation is only ± 0.5 2am is ± 28°C; 2am – 6am is between 24-27°C.
degree Celsius. Therefore, the average power consumption of the
proposed system is: ± 2.3W for 10pm – 12am; ±
Sensitivity is almost closely related to accuracy. 2.1W for 12am – 2am; 0W from 2am – 6am.
Sensitivity is how fast it can react to changes in its Yields, the total power consumption is only
surrounding. In this work, the sensitivity level is 0.0088kWh.
the measurement on how quick the proposed
system reacts to changes in its surrounding The pulse width modulation speed control
temperature. The sensor that we have used which function is a function that externally controls the
rotation speed of the fan by changing the duty temperature. Then, the work implements a closed
cycle of the input pulse signal. loop type control system for automatically
adjusting the temperature closed loop type control
V. DISCUSSION system is more efficient than an open loop system
After designing, assembling and testing the as the output is continuously monitored as
circuit, we concluded that the circuit of the feedback.
proposed temperature-based fan speed controller is
working satisfactorily. The logic used in the There is also the disadvantage for this work that
system is verified and shown in the flowchart form. is micro controller is the heart of the circuit, if
The duty cycle is varied according to room controller is damaged the whole system will be
temperature and speed of the fan is controlled spoiled and speed control is dependent of
accordingly. individual preference.