Ijirt147629 Paper

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/332574596

Temperature Based Speed Control of Fan Using Arduino

Article · April 2019

CITATIONS READS
6 52,967

5 authors, including:

Chaitanya Jambotkar
Jain College of Engineering & Research
38 PUBLICATIONS 69 CITATIONS

SEE PROFILE

All content following this page was uploaded by Chaitanya Jambotkar on 23 April 2019.

The user has requested enhancement of the downloaded file.


© March 2019 | IJIRT | Volume 5 Issue 10 | ISSN: 2349-6002

Temperature Based Speed Control of Fan Using Arduino

Shwetha S Baligar1 , Srinidhi S Joshi2 , Sujay Mudhole 3 , Spoorti S Jadhav4 , Chaitanya K Jambotkar5
1,2,3,4 th
4 SEM Student in Department of Electrical and Electronics Engineering, K.L.E.I.T, Hubli,
Karnataka, India
5
Assistant Professor in Department of Electrical and Electronics Engineering, K.L.E.I.T, Hubli,
Karnataka, India

Abstract- In present scenario, availability of electricity is microcontroller is mainly a single chip


found to reach crucial stage. To protect and safeguard microprocessor suited for control and automation of
one’s future we need to save the energy. As a slogan machines and processes. Today, microcontrollers are
suggest “One unit saved is one unit generated”. The
used in many disciplines of life for carrying out
project is a standalone automatic fan speed controller
automated tasks in a more accurate manner. Almost
that controls the speed of an electric fan according to
our requirement. Use of embedded technology makes every modern day device including air conditioners,
this closed loop feedback control system efficient and power tools, toys, office machines employ
reliable. Arduino microcontroller allows dynamic and microcontrollers for their operation. Microcontroller
faster control. Liquid crystal display (LCD) makes the essentially consists of Central Processing Unit
system user friendly. The sensed temperature and fan (CPU), timers and counters, interrupts, memory,
speed level values are simultaneously displayed on the input/output ports, analog to digital converters (ADC)
LCD panel. It is very compact as it is constructed by on a single chip. With this single chip integrated
using few components and can be interfaced for several
circuit design of the microcontroller the size of
applications including air-conditioners, water-heaters,
control board is reduced and power consumption is
snow-melters, ovens, heat-exchangers, mixers, furnaces,
incubators, thermal baths and veterinary operating low. This project presents the design and simulation
tables. Arduino micro controller is the heart of the of the fan speed control system using PWM
circuit as it controls all the functions. The temperature technique based on the room temperature. A
sensor LM35 senses the temperature and converts it temperature sensor has been used to measure the
into an electrical signal, which is forwarded to the temperature of the room and the speed of the fan is
microcontroller. The sensed and set values of the varied according to the room temperature using
temperature are displayed on the 16x2-line LCD. The
PWM technique. The duty cycle is varied from 0 to
microcontroller drives Transistor to control the fan
100 to control the fan speed depending upon the
speed. This project uses regulated 12V, 2A power
room temperature, which is displayed on Liquid
supply. This project is useful in process industries for
maintenance and controlling of Boilers temperature. Crystal Display.
Pulse Width Modulation, or PWM, is a technique for
Index Terms- Temperature, fan, lm35, speed, PWM getting analog results with digital means. Digital
control is used to create a square wave, a signal
I. INTRODUCTION switched between on and off. This on-off pattern can
simulate voltages in between full on (5 Volts) and off
With the advancement in technology, intelligent (0 Volts) by changing the portion of the time the
systems are introduced every day. Everything is
signal spends on versus the time that the signal
getting more sophisticated and intelligible. There is spends off. The duration of "on time" is called the
an increase in the demand of cutting edge technology pulse width.
and smart electronic systems. Microcontrollers play a
To get varying analog values, we change, or
very important role in the development of the smart modulate, that pulse width. If we repeat this on-off
systems as brain is given to the system. pattern fast enough with an LED for example, the
Microcontrollers have become the heart of the new
result is as if the signal is a steady voltage between 0
technologies that are being introduced daily. A and 5v controlling the brightness of the LED. In the

IJIRT 147629 INTERNATIONAL JO URNAL OF INNOVATIVE RESEARCH IN TECHNOLOGY 18


© March 2019 | IJIRT | Volume 5 Issue 10 | ISSN: 2349-6002

graphic below, the green lines represent a regular Fig. 2 Power Consumption in India
time period. This duration or period is the inverse of
the PWM frequency.
Review of Relevant projects
There are some abstractions of publications which are
relevant to our proposed system. According to those
publications we have included the information about
existing system. The existing system has scope of
upgrade. And existing system has some limitations.
We have gathered lot of information from the
literature and have discussed here. The information
we have gathered which are about Automatic control
fan using various electronic component and Arduino
as well. We have got additional knowledge from
particular publication about human sensing device.
We have gathered knowledge about our proposed
system from some article as well which has been
published by an organization.
Fig. 1 Various duty cycle PWM signals
IV. OBJECTIVE
II. PROBLEM STATEMENT
To develop an low cost, user friendly automated
Most human feels the badly designed about changing
temperature controlled fan regulator which reduces
the fan rate level physically when the room
power consumption and also assist people who are
temperature changes. Along these lines, the
unable to control the speed of fan from their
programmed fan framework that consequently
locations.
changes the velocity level as indicated by
V. METHODOLOGY
temperature changes is prescribed to be fabricated for
tackling this issue.

III. LITERATURE SURVEY

Power Consumption Rate of India


The U.S. Energy Information Administration
provides data for India from 1980 to 2015. The
average value for electricity consumption of India
during that period was 15.1 billion kilowatt-hours
with a minimum of 1.8 billion kilowatthours in 1980 Fig. 1 Block diagram of the proposed concept
and a maximum of 46.17 billion kilowatthours in The above figure 1 represents the block diagram
2014. [1] representation of the proposed concept. The
temperature sensor DHT11 is interfaced with
Arduino to fetch the data of temperature in the room.
The data is processed if the temperature is high fan
speed is more relatively if the temperature is low fan
speed is low. Moreover if the temperature is below
the threshold set then fan will be in off condition. The
data related to temperature, fan speed is displayed on
the LCD for user interaction. The fan speed is
controlled relatively with the temperature using
PWM pins available on the Arduino. As duty cycle of

IJIRT 147629 INTERNATIONAL JO URNAL OF INNOVATIVE RESEARCH IN TECHNOLOGY 19


© March 2019 | IJIRT | Volume 5 Issue 10 | ISSN: 2349-6002

PWM signal increases the fan speed increases and the • Stronger RESET circuit.
same is true conversely. • ATmega 16U2 replace the 8U2.
"Uno" means one in Italian and is named to mark the
VI. HARDWARE IMPLEMENTATION upcoming release of Arduino 1.0. The Uno and
A. Arduino version 1.0 will be the reference versions of Arduino,
Arduino is an open-source platform used for building moving forward. The Uno is the latest in a series of
electronics papers. Arduino consists of both a USB Arduino boards, and the reference model for the
physical programmable circuit board (often referred Arduino platform.
to as a microcontroller) and a piece of software, or
IDE (Integrated Development Environment) that runs
on your computer, used to write and upload computer
code to the physical board.
The Arduino platform has become quite popular with
people just starting out with electronics, and for good
reason. Unlike most previous programmable circuit
boards, the Arduino does not need a separate piece of
hardware (called a programmer) in order to load new
code onto the board – you can simply use a USB
cable. Additionally, the Arduino IDE uses a
simplified version of C++, making it easier to learn to
program. Finally, Arduino provides a standard form Fig. 2 Arduino UNO
factor that breaks out the functions of the micro- B. Arduino IDE.
controller into a more accessible package. The open-source Arduino Software (IDE) makes it
The Arduino is a microcontroller board based on the easy to write code and upload it to the board. It runs
ATmega8. It has 14 digital -input/output pins (of on Windows, Mac OS X, and Linux. The
which 6 can be used as PWM outputs), 6 analog environment is written in Java and based on
inputs, a 16 MHz ceramic resonator, a USB Processing and other open-source software. This
connection, a power jack, an ICSP header, and a reset software can be used with any Arduino board. The
button. It contains everything needed to support the Arduino development environment contains a text
microcontroller; simply connect it to a computer with editor for writing code, a message area, a text
a USB cable or power it with a AC-to-DC adapter or console, a toolbar with buttons for common
battery to get started. functions, and a series of menus. It connects to the
The Uno differs from all preceding boards in that it Arduino hardware to upload programs and
does not use the FTDI USB-to-serial driver chip. communicate with them.
Instead, it features the Atmega16U2 (Atmega8U2 up Software written using Arduino are called sketches.
to version R2) programmed as a USB-to-serial These sketches are written in the text editor. Sketches
converter. Revision 2 of the Uno board has a resistor are saved with the file extension .ino. It has features
pulling the 8U2 HWB line to ground, making it for cutting/pasting and for searching/replacing text.
easier to put into DFU mode. Revision of the board The message area gives feedback while saving and
has the following new features: exporting and also displays errors. The console
• 1.0 pinout: added SDA and SCL pins that are near displays text output by the Arduino environment
to the AREF pin and two other new pins placed near including complete error messages and other
to the RESET pin, the IOREF that allow the shields information. The bottom right-hand corner of the
to adapt to the voltage provided from the board. In window displays the current board and serial port.
future, shields will be compatible with both the board The toolbar buttons allow you to verify and upload
that uses the AVR, which operates with 5V and with programs, create, open, and save sketches, and open
the Arduino Due that operates with 3.3V. The second the serial monitor.
one is a not connected pin that is reserved for future
purposes. C. Liquid Crystal Display (LCD)

IJIRT 147629 INTERNATIONAL JO URNAL OF INNOVATIVE RESEARCH IN TECHNOLOGY 20


© March 2019 | IJIRT | Volume 5 Issue 10 | ISSN: 2349-6002

LCD (Liquid Crystal Display) screen is an electronic microcontroller. Its technology ensures the high
display module and find a wide range of applications. reliability and excellent long-term stability. This
A 16x2 LCD display is very basic module and is very sensor includes a resistive element and a sensor for
commonly used in various devices and circuits. wet NTC temperature measuring devices. It has
These modules are preferred over seven segments excellent quality, fast response, anti-interference
and other multi segment LEDs. The reasons being: ability and high performance.
LCDs are economical; easily programmable; have no Each DHT11 sensors features extremely accurate
limitation of displaying special & even custom calibration of humidity calibration chamber. The
characters (unlike in seven segments), animations and calibration coefficients stored in the OTP program
so on. memory, internal sensors detect s ignals in the
A 16x2 LCD means it can display 16 characters per process, we should call these calibration coefficients.
line and there are 2 such lines. In this LCD each The single-wire serial interface system is integrated
character is displayed in 5x7 pixel matrix. This LCD to become quick and easy. Small size, low power,
has two registers, namely, Command and Data. signal transmission distance up to 20 meters,
The command register stores the command enabling a variety of applications and even the most
instructions given to the LCD. A command is an demanding ones. The product is 4-pin single row pin
instruction given to LCD to do a predefined task like package. Convenient connection, special packages
initializing it, clearing its screen, setting the cursor can be provided according to users need.
position, controlling display etc. The data register
stores the data to be displayed on the LCD. The data
is the ASCII value of the character to be displayed on
the LCD.

Fig. 5 Hardware implementation of the proposed


concept
The above figure 5 depicts the hardware
implementation of the proposed concept. It is at
present in the rest state.
Fig. 3 Pin diagram of 16 x 2 LCD

D. DHT11 Temperature sensor

Fig. 6 Hardware implementation of the proposed


concept
Fig.4 DHT 11 Temperature and Moisture sensor The above figure 6 depicts the hardware
This DHT11 Temperature and Humidity Sensor implementation of the proposed concept. The motor
features a calibrated digital signal output with the at present is running at maximum speed as the
temperature and humidity sensor capability. It is temperature is high.
integrated with a high-performance 8-bit
VII.SOFTWARE IMPLEMENTATION

IJIRT 147629 INTERNATIONAL JO URNAL OF INNOVATIVE RESEARCH IN TECHNOLOGY 21


© March 2019 | IJIRT | Volume 5 Issue 10 | ISSN: 2349-6002

Algorithm:
 Set the baud rate as 9600 for serial
communication.
 Include the LCD.h and DHT11 header file in the
sketch.
 Read the value from the DHT11 temperature
sensor and store it in a variable temp_sens.
 Compare the stored value with the threshold set
to switch ON the fan.
 If temperature sensor value is less than 26°C
motor will be in the OFF state.
Fig. 7 Temperature Vs Duty cycle
 If temperature sensor value is equal to 26°C
motor will be in the ON state and will be rotating
at 20% of its maximu m speed.
 If temperature sensor value is equal to 27°C
motor will be in the ON state and will be rotating
at 40% of its maximu m speed.
 If temperature sensor value is equal to 28°C
motor will be in the ON state and will be rotating
at 60% of its maximu m speed.
 If temperature sensor value is equal to 29°C
motor will be in the ON state and will be rotating
at 80% of its maximu m speed. Fig. 8 Temperature Vs Speed of Fan
 If temperature sensor value is greater than 29°C
motor will be in the ON state and will be rotating IX. CONCLUSION
at 100% of its maximu m speed.
 Monitor the temperature continuously and take Arduino based temperature controlled fan is
the necessary action depending upon the value of implemented. Thus, here fan speed has been
sensor. controlled by using Pulse Width Modulation and
VIII. RESULTS Arduino board according to the temperature sensed
by the help of Temperature and Humidity Sensor
The following table 1 depicts the results obtained by (DHT22). The idea of the project is to change the fan
operating the prototype model at various different temperature automatically. PWM technique is found
temperatures. It defines the behavior of the embedded to be the best technique for controlling the fan speed
system about how it reacts to variation of temperature using the sensed temperature. The system is working
at real time. properly. The speed of fan depends on the
Table 1 Results of embedded system designed temperature and there is no need for regulating the
fan speed manually again and again.

REFERENCES

[1] National Power and Energy Conference (PECon)


2004 Procedures, Kuala Lumpur, Malaysia
121Speed Drive of Single-stage Induction
Motor, Hamad S. H; S. M. Bashi, I. Aris and N.
F. Marlah.
The following represents graphical representation of [2] Global Journal of Advanced Research in
tabulated data. Electrical, Electronics and Instrumentation

IJIRT 147629 INTERNATIONAL JO URNAL OF INNOVATIVE RESEARCH IN TECHNOLOGY 22


© March 2019 | IJIRT | Volume 5 Issue 10 | ISSN: 2349-6002

Engineering, Vol. 2, Issue 7, July 2013,


Copyright to IJAREEIE www.ijareeie.com
3470Design, Modeling and Simulation of a
Microcontroller Based Temperature Control in a
Ventilation System, K.A Akpado1, C.O
Ezeagwu2, A. Ejiofor3, A.O N wokeke.
[3] Investigation of Single-Phase SPWM Inverter; A
Thesis Sub-mitted In incomplete fulfillment of
the requirements for the level of Bachelor in
Electrical Engineering By Bijoyprakash Majhi
Under the supervision of Prof. Somnath Maity.
[4] Global Journal of Innovative Research in
Science, Building and Technology Vol. 4, Issue
7, July 2015 Copyright to IJIRSET .Design and
Fabrication of Temperature based DC Fan Speed
Control System utilizing Microcontroller and
Pulse Width Modulation Technique Surabhi1,
Upendra Prasad2 , Vivek Kumar Jain3.
[5] Sixth Int'l Conference on Electrical, Electronics
and Civil Building (ICEECE'2014) Nov. 27-28,
2014 Cape Town (South Africa) Automatic Fan
Speed Control System Using Microcontroller
Mustafa Saad, Hossam Abdoalgader, and
Muammer Mohamed.

IJIRT 147629 INTERNATIONAL JO URNAL OF INNOVATIVE RESEARCH IN TECHNOLOGY 23

View publication stats

You might also like