Professional Documents
Culture Documents
Automatic Fan Controlled by LM 35 Kiptum Kelvin Kiptoo
Automatic Fan Controlled by LM 35 Kiptum Kelvin Kiptoo
INDEX NO:
COURSE CODE:
ELECTRONIC ENGINEERING.
SUPERVISOR:
-1-
DECLARATION
I declare that this project is my own authentic work and has never been presented elsewhere.
DATE ………………………...
SUPERVISOR SIGNATURE
.....……………………
DATE ………………………..
-2-
DEDICATION
To my guardian, all my relatives and classmates.
-3-
ABSTRACT:
This project presents the design and implementation of an automatic fan system. An automatic
fan air conditioner system is a self-regulating temperature system which uses a set point or
value to maintain the temperature of a room. This system allows the user to set a desired
temperature which is then compared to the room temperature measured by a temperature
sensor and with the help of a microcontroller, the system responds by turning on cooler or
depending on the temperature difference. The cooler is triggered on when the room
temperature is higher than the set temperature. The system was designed and simulated using
IC, a circuit building software used for building electronics system. For coding the PIC
microcontroller, micro-c compiler was used. A 5 V DC power supply was designed in order to
provide a biasing voltage to most of the active devices used in the system design circuit.
However in this study I will extend this designed system, to regulate the temperature of motor
vehicle, providing a regulated temperature for passengers who travel long distances. The
system will installed in the motor vehicle, to regulate the high temperature inside the vehicle,
this is due heat produced by the engine and also due number of passengers inside the motor
vehicle.
-4-
ACKNOWLEDGEMENT
All this moment of accomplishment and presenting my work with joy and thanksgiving I would like to
express my sincere gratitude to all persons who helped in the successful completion of this project.
Above all I thank Almighty God for his and mercy.
-5-
Contents
TRADE PROJECT .............................................................................................................................................. - 1 -
DECLARATION ............................................................................................................................................. - 2 -
DEDICATION................................................................................................................................................. - 3 -
ABSTRACT: ....................................................................................................................................................... - 4 -
ACKNOWLEDGEMENT ................................................................................................................................... - 5 -
CHAPTER ONE .................................................................................................................................................. - 7 -
INTRODUCTION ........................................................................................................................................... - 7 -
1.1 OBJECTIVES ........................................................................................................................................ - 7 -
1.2 SPECIFICATION .................................................................................................................................. - 7 -
1.3 BLOCK DIAGRAM.............................................................................................................................. - 8 -
CHAPTER TWO ................................................................................................................................................. - 9 -
2.0 THEORY OF COMPONENTS ................................................................................................................. - 9 -
2.2 RESISTORS ........................................................................................................................................ - 10 -
2.3LM358 Op-Amp ........................................................................................................................................... - 15 -
12DC FAN ..................................................................................................................................................... - 17 -
CHAPTER FOUR ............................................................................................................................................. - 18 -
WORKING AND DESING........................................................................................................................... - 18 -
REVERSE CHARACTERISTICS ............................................................................................................ - 19 -
POWER SUPPLY ......................................................................................................................................... - 20 -
TRANSFORMER LESS TRANSFORMER ................................................................................................. - 21 -
RECTIFIER .................................................................................................................................................... - 21 -
FILTER .......................................................................................................................................................... - 22 -
REGULATION ............................................................................................................................................. - 22 -
CHAPTER FOUR ............................................................................................................................................. - 24 -
CIRCUIT DIAGRAM ....................................................................................................................................... - 24 -
COMPONENTS LISTINGS ......................................................................................................................... - 24 -
CHAPTER FIVE ............................................................................................................................................... - 26 -
CONCLUSION ................................................................................................................................................ - 26 -
OBSERVATIONS............................................................................................................................................ - 26 -
RECOMMENDATION AND FUTURE SCOPE ............................................................................................... - 26 -
REFERENCE ................................................................................................................................................ - 27 -
-6-
CHAPTER ONE
INTRODUCTION
Automatic Fan air conditioner is a type of control system that automatically control the
temperature of an object or an area.
We commonly use temperature control system in air conditioners, Refrigerators, geysers etc.
Where the temperature is automatically adjusted as per the input setting .In order to
implement a temperature control system, we need a temperature sensor, a controller, and a
cooling system
In this project, I have implemented a simple temperature control system using simple
components. The aim of this project is to automatically turn on or off the fan by detecting the
surrounding temperature.
The hardware requirements for this simple temperature control system are; LM35, L293D,
LM358, a fan and a few passive components (resistor).
1.1 OBJECTIVES
- The project is to design and make an environment conducive using temperature sensor in high temperature
places.
- The project will regulate the temperature inside the motor vehicle.
1.2 SPECIFICATION
- Power supply 5v
-7-
1.3 BLOCK DIAGRAM
FEEDBACK
-8-
CHAPTER TWO
Humidity is the measure of water vapor present in the air. The level of humidity in air affects various physical,
chemical and biological processes. In industrial applications, humidity can affect the business cost of the
products, health and safety of the employees. So, in semiconductor industries and control system industries
measurement of humidity is very important. Humidity measurement determines the amount of moisture
present in the gas that can be a mixture of water vapor, nitrogen, argon or pure gas etc… Humidity sensors
are of two types based on their measurement units. They are a relative humidity sensor and Absolute
humidity sensor. DHT11 is a digital temperature and humidity sensor
-9-
DHT11 sensor has four pins- VCC, GND, Data Pin and a not connected pin. A pull-up resistor of 5k to 10k ohms
is provided for communication between sensor and micro-controller.
Applications
Its compact size and sampling rate made this sensor popular among hobbyists. Some of the sensors which can
be used as an alternative to DHT11 sensor are DHT22, AM2302, and SHT71. Which of the specification of the
DHT11 sensor was helpful for your application?
2.2 RESISTORS
A resistor is a passive component that is used to limit the flow of current in an electrical /
- 10 -
2.2.1 Classification of Resistors
There are two classes of resistors: fixed resistors and variable resistors.
Fixed resistors have fixed value of resistance while the valuable resistance has three connectors,
the wiper tag and the end tags. The wiper facilitates alteration of the resistance as desired.
I. Series resistors
I R1 R2
Run
V1 V2
V1=V1+V2…………………… (ii)
Shows low V= 1R
V1 = IR1
V2 = IR2
- 11 -
Hence total voltage
IRT=IR, +I, R2
Dividing through by I
RT =RI +R2
(b) The total current, equals to the sum of separated current through each resistor.
2.2.3 Identification
The value and tolerance of a resistor is normally given by a sequence of colored bands on the
resistor body .Normally there are four bands on three to give the value and the one for tolerance.
- 12 -
Colour Significant figures Multiplier Tolerance
Black 0 x100
Brown 1 x101 + 1%
Red 2 x102 + 2%
Orange 3 x103
Yellow 4 x104
White 9 x109
Nova +20%
- 13 -
Example
A resistor is a color coded yellow, Violet, Red, Gold, The resistance would be => yellow 4
All modern fixed value resistors can be classified into four broad groups
a. Carbon composition Resistors – mode of carbon dust or graphite paste, low voltage value
b. Film or cermet’s Resistors –made from conductive metal oxide pate, very low voltage value
c. Wire- wound resistor – Metallic bodies for heat sink mounting, very high voltage ratings
d. Semiconductor Resistor – High frequency / precise surface mount thin film technology
I. Carbon Resistors
They are a cheap general purpose resistor. They are made of a mixture of finally ground carbon
dust or graphite and a non- conducting ceramic (clay) powder to bind if all together. They have
low inductance making them ideal for high frequency applications but they can suffer from else
The generic term “Film Resistor” Consist of metal film , Carbon Film and metal oxide film ,
resistor types which are generally made by depositing pure metals , such as licked , or an oxide
film, such as film - oxide auto an insulating ceramic rod or substrate. The restive value of the
- 14 -
- Metal film resistor – have much better temperature stability than their carbon equivalents,
lower noise and are generally better for high frequency applications.
- Metal Oxide resistors have better high surge current capability with a much higher
It’s made by winding a thin metal alloy wire (Chrome) or similar wire auto an insulating ceramic
2.3LM358 Op-Amp
LM358 is an operational amplifier ice which consist of two independent op-amp.LM358 has a
wide range of application like filters,LED,or lamp drivers, pulse generator, voltage controlled
oscillator(VCO),amplifier,etc.In this project ,we are using the LM358ic in its comparator mode
5KΩ POTENTIOMETER
A Potentiometer is a manually adjustable variable resistor with 3 terminals. Two terminal
Are connected to both ends of a resistive elements, and the third terminal connects
To a sliding contact called wiper moving over the resistive element .the position of
the Wiper determines the output voltage of the potentiometer.
- 16 -
A5kΩ potentiometer is connected to the inverting input pin2 of the op-amp .pin8 and 4 are
connected to 12 dc voles supply and GND The output of the op-amp i.e. pin 1 is connected to
the 1A pin 3 which is the first driver input of the motor driver ice L293D.
The second driver input of L293D pin 1, 8 and 16 are connected to GND .12dc fan is connected
between pin3 and 6
12DC FAN
This the 12dc fan that controls the temperature when it is higher than the certain point
- 17 -
CHAPTER THREE
DHT
11
closed loop control system. A closed loop control system consists of an input, a control device,
output and feedback. The input is typically a sensor that continuously monitors the test
parameter. Here, the input is the DHT 11 Temperature Sensor and the parameter we are
interested in measuring is the Temperature the data from the input is given to a control device or
system. This control device will actuate the output according to the input signals. In our project,
LM358 Op Amp is controller and it acts as a comparator. If the temperature is more than the
desired temperature, we need to activate the fan. So, we need to adjust the Potentiometer such
- 18 -
that if the temperature increases above value, the output from the Op Amp should be HIGH. This
HIGH output from the Op Amp is given to the Motor Driver, which along with the Fan, forms
the output part of the Control System. Since the other drive input of the motor driver is already
connected to GND, whenever the output from the Op Amp is HIGH, the Input to the L293D is
HIGH and the Fan starts rotating. This will cool down the surroundings and this phenomena acts
as the feedback in the control system. If the temperature decreases, the DHT 11senses it and
signals the Op to turn off the Fan. The following image shows the closed loop control system
REVERSE CHARACTERISTICS
Through the diode. As reverse voltage is increased from Zero , the reverse current varies quickly,
until it reaches a maximum or saturation value Io, that is also known as leakage current , when
- 19 -
The voltage ampere characteristics is described by the analytic equation called Boltzmann diode
POWER SUPPLY
The circuit was design to use +5VDC that had to be convened from 12VAC transformer. The
Transfomerl
Rectifier Filter Voltage
ess
Regulator
AC Input transformer
DC Output
- 20 -
TRANSFORMER LESS TRANSFORMER
It’s used either to step –up or step-down the ac supply to suit the requirement of the solid state
electronic devices. It also provides isolation from the supply line and their losses which occur
P=I2R
When a sense dal voltage VIP is applied to primary with secondary open circuit there will be no
energy transfer. No load current will be flowing and its function will produce a magnetic flux in
the core
+ QM .2M as the maximum value of the core flux. It also provides a compound to account for
The turn’s ratio gives a measure of how much the secondary voltage raised or covered in relation
The fall in voltage due to losses in termed as regulation and is given by.
Regulation = VO –
VTx100
VO
When VO is no load secondary voltage VI voltage under full load current .The transformer that
RECTIFIER
- 21 -
In this case the wo4 bridge rectifier was used because it provided the derived ratings and its
FILTER
The main function of a filter circuit is to minimize the ripple content from the rectifier output
because the conserved project. Uses full wave rectifier the ripple contents and harmonies are
Vic = Vmax
2RLCF
F = supply frequency
IC = capacitor current
IC is at maximum when the voltage is maximum .this is a stand of the conduction period and is
given as IMAX =
From the above two formula we can n calculate the real ripple current and IC max. The chosen
ӨC – Cos-1 [5-0.119] =
0.99 5
= 0.031A
REGULATION
It’s the measure of a circuit ability to maintain a constant output voltage even when either input
following features:-
- 23 -
CHAPTER FOUR
CIRCUIT DIAGRAM
Complete circuit diagram is show in appendix A, B, C,
COMPONENTS LISTINGS
- 24 -
Advantages
i. The project implements a closed loop type control system for automatically
ii. Closed loop type control system is more efficient than an open loop system as the
Applications
The Temperature Control System is a common type of control system implemented in different types
of systems like Air Conditioning, Water Heaters, Refrigerators, etc. This type of Temperature
- 25 -
CHAPTER FIVE
CONCLUSION
I conclude that a lot of companies and industries operating under high room temperatures lack the
OBSERVATIONS
This set up is performed to use in operate mostly in companies to control high temperatures
The prototype function as expected but when it was subjected to Vigorous uses testing led burnt
out, this was found out after a hectic fault finding mission. Which established the led with a trial
actually burn out because it a lower rating than the specified one which was unavailable at the
The other section of the prototype is the main display and the power supply performed as desired
For the future scope of the project I‘ll recommend for the use of a microcontroller to simplify the
- 26 -
REFERENCE
Books Referred
DHT 11
LM358
Websites referred
www.efymagazine.com
www.fairchildsemi.com
- 27 -