Group Assigmment
Group Assigmment
….....….018/13
..…….....031/13
...............031/13
Keywords: PIC Microcontroller, LM35 temperature sensor, Liquid Crystal Display (LCD)
Chapter one…………………………………………………………………………………………………………….6
Introduction……………………………………………………………………………………………………………6
1.4 Objective…………………………………………………………………………………………………………………………………….10
1.6 Methodology………………………………………………………………………………………………………………………………10
Chapter two…………………………………………………………………………………………………………….11
Literature Review………………………………………………………………………………………………………..11
2 Previous work………………………………………………………………………………………………………………………………..11
Chapter three…………………………………………………………………………………………………………..13
Physical system of mathematical modeling……………………………………………………………..13
4.3.5 DC motor……………………………………………………………………………………………………………24
Chapter five……………………………………………………………………………………………………..………28
5.1 Conclusion…………………………………………………………………………………………………………..28
Reference ………………………………………………………………………………………………………………..29
Fig 3.1……………………………………………………………………………………………………………..13
Fig 3.2……………………………………………………………………………………………………………..14
Fig 3.3……………………………………………………………………………………………………………..15
Fig 3.4……………………………………………………………………………………………………………...17
Fig 4.1………………………………………………………………………………………………………………18
Fig 4.2………………………………………………………………………………………………………………19
Fig 4.3………………………………………………………………………………………………………………20
Fig 4.5………………………………………………………………………………………………………………21
Fig 4.6………………………………………………………………………………………………………………22
Fig 4.7………………………………………………………………………………………………………………24
Fig 4.8………………………………………………………………………………………………………………24
Fig 4.10……………………………………………………………………………………………………………..26
Fig 4.11……………………………………………………………………………………………………………26
Generally, some electronic systems produce heat, while operating. The heat should be
reduced in order to keep the system performance, so the automatic temperature control is
certified as the best method in any application because the temperature is usually
controlled automatically (no human intervention involved) throughout the process. As the
human civilization is being modernized day by day the demand of automatic is increasing
accordingly, because weather is forever varying and changes on short intervals, and as a
result, the external conditions always shave an influence on the room conditions, so the
automatic control of many days to day tasks relieves the human beings from performing
repetitive manual operations. The principle of automatic control is not a human being,
executes the control action. Where a control system is a system of devices or set of devices,
that manages commands, directs or regulates the behavior of other device(s) or system(s)
to achieve desire results. The reason one wishes to control a process is to have it behave in
a desired way. Now the same operation of measuring the temperature and estimating the
error between the desired temperature and the actual temperature, or error between the
actual temperature and the desired temperature is continuously obtained and used to
activate the controller. This may involve the process becoming more accurate, more
reliable or more economic. In some cases, the uncontrolled process is unstable and good
control is necessary in order not to damage it (which sometimes can cause extensive
damage). Hence, good control can mean different things in different applications. The
control signal is adjusted automatically, by the controller, until the difference between the
references or set point (desired) value and the actual, measured value of the process
variable is sufficiently small. This difference is denoted the control error. Hence, automatic
control is obtained with error-driven control. [1]This project uses a microcontroller to
automatically control the temperature of an area. This are a could be research area, small
plant, a house or any place or devices that require a controlled temperature like an
incubator (egg) system.
An automatic controller compares the actual value of the plant output with the reference
input (set value), determines the deviation, and produces a control signal that will reduce
the deviation to zero or to a small value. Control systems can be classified as either open
loop or closed loop.
In an open loop system, (a non-feedback control system) there is no means by which the
output is monitored by the system, or a system in which the output has no effect on the
control action ,or control system. That mean no measurements are made at the output. For
a given input the system produces a certain output. If there are any disturbances, the
output changes and there is no adjustment of the input to bring back the output to the
original value. A traffic control system is a good example of an open loop system. The
signals change according to a preset time and are not affected by the density of traffic on
any road. This control type is simple and easy to build, cheaper, as they use, less number of
components to build and usually stable. But this open loop control system is less accurate,
if external disturbances are present, output differs significantly from the desired value.
The input to the entire system is called as a reference input or a command input, r (t). An
error detector senses the difference between the reference input and the feedback signal
equal to or proportional to the controlled output. The feedback elements measure the
controlled output and convert or transform it to a suitable value so that it can be compared
with the reference input. If the feedback signal, b (t), is equal to the controlled output, c (t),
the feedback system is called as unity feedback system. The difference between the
reference input and the feedback signal is known as the error signal or actuating signal e
(t), this signal is the input to the control elements which produce a signal known as
manipulated variable, u (t). This signal manipulates the system or plant dynamics so that
the desired output is obtained. The controller acts until the error between the output
variable and the reference input is zero. The major advantage of feedback system is that it
is insensitive to external disturbances and variations in parameters .Comparatively
cheaper components can be used to build these systems, as accuracy and tolerance, and do
not affect the performance.
The final element is Controlled variable (output) Quantity or condition of the plant
which is controlled the quantity that must be maintained at prescribed value
Most of the time it is difficult to adjust the room temperature level using manually when
the computer room temperature changes, and in most time the electrical devices control
and operation in Ethiopia is predominantly manual control. Since the data and documents
store in the computer have been lost as a result of this, and the problem happens when the
temperature is uncontrolled and must be manually turned ON and OFF the fun. Sometimes
it can lead to high usage of temperature from the computer room, because computers itself
generate high amount of heat in a limited space, and the data store have lost. One of these
limitations is when the temperature is still functioning in the computer room although the
function is uncontrolled and must be manually control by the user. And also the user has to
adjust the system every time the external conditions change. This is very tiring and proves
out not to be an effective way of controlling temperature of a room.
To design and develop an automatic temperature control for computer room using pic
microcontroller, project scopes need to be defined for assist and guide the development of
the project. The main scopes for this project are:
Data collection: Collect necessary data through literature review on existing control
systems, microcontroller, sensor, driven motor and circuit design.
Design electronics system: Design a circuit diagram.
Programming and Testing: Build the complete set of program for pic
microcontroller unit and run the testing for the complete automatic control
temperature for computer room.
1.6 Methodology
For successful completion of this project some steps have been followed to carry out
different tasks. We started with the problem, and we tried to identify and view previous
works on automatic controls. After that we made our specification and proposed the
automatic temperature control for high power computer room. And we have to design the
software prototype.
Whenever a task is to be performed, a set of physical objects are connected together and a
suitable input is given to them, to obtain the desired output. This group of objects is usually
termed as the system. In order to analyses, design or synthesize a complex system, a
physical model has to be obtained, no physical system can be represented in its full
physical intricacies and therefore idealizing assumption are always made for the purpose
of analysis and synthesis of a system. A physical system can be modeled in number of ways
depending up on the specific problem to be dealt with and the desired accuracy. For
example, an electronic amplifier may be modeled as interconnection of linear lumped
elements, or some of these may be pictured as nonlinear elements in case the stress is on
the distortion analysis. A communication satellite may be modeled as a point, a rigid body
or a flexible body depending up on the type of the study to be carried out. As idealizing
assumption are gradually removed for obtaining a more accurate model. Once a physical
model of a physical system is obtained, the next step is to obtain a mathematical model
which is the mathematical representation of the physical model through use of appropriate
physical laws. Depending upon the choice of variable and the coordinate system, accurate
model. Once a physical model of a physical system is obtained, he next step is to obtain a
mathematical model which is the mathematical accurate model. Once a physical model of a
physical system is obtained, the next step is to obtain a mathematical model which is the
mathematical representation of the physical model through use of appropriate physical
laws. Depending up on the choice of variable and the coordinate system, a given physical
model may lead to different mathematical model.
Consider from the thermal system shown fig 3.4 assume that the room is insulated to
eliminate heat loss to the surrounding air, there is no heat storage in the insulation and the
computer in the room is kept at uniform temperature. Thus single temperature may be
used to describe the thermal state of the entire temperature. If there is high temperature
present so, there is a complex temperature distribution through the computer and the
problem becomes one of the distributed parameters, requiring the use of partial
differential equations.
Benefits
Sensor
Or
Where VT is the supply voltage and Vout, is the output voltage of the LM35 temperature
sensor.
Though, from our code, we have declared how this temperature is going to be read and
converted.
LCD is used to show alpha numeric characters. In this project LCD we use is 16×2 which
means we can display 16 characters in two lines. LCD is used to show the reference
temperature and actual temperature, In order to display the room temperature.
The LCD has many advantages, such as low consumption, small Volume, rich contents
displayed, delicate and thin etc. It has been widely used in many kinds of meters and other
low consumption systems. It is integrated with PIC16F877A MCU. A liquid crystal display
or LCD is combination of two states of matter, the solid and the liquid. LCD uses a liquid
crystal to produce a visible image. Advantage of LCD‟s:
Motor drivers act as current amplifiers since they take a low-current control signal and
provide a higher-current signal. This higher current signal is used to drive the motors.
Enable pins 1 and 9(corresponding to the two motors) must be high for motors to start
operating. When an enable input is high, the associated driver gets enabled. As a result, the
outputs become active and work in phase with their inputs. Similarly, when the enable
input is low, that driver is disabled, and their outputs are off and in the high-impedance
state.
4.3.7 Buzzer
Buzzer is an electrical device, which is similar to a bell that makes a buzzing when the room
temperature is above the reference value the buzzer is ON. To interface a buzzer the
standard transistor interfacing circuit is used; because the transistor is used as a switch to
control the buzzer. And power supply must be connected to provide a common reference. If
a battery is used as the power supply, it is worth remembering that Pezos sounders draw
much less current than buzzers. Buzzers also just have one tone, where as a Pezos sounder
is able to create sounds of many different tones.
Derbre Berhan Polytechnic College | AUTOMATIC TEMPERATURE CONTROL 25
4.3.8 Crystal Oscillators
A quartz crystal determines the frequency at which an oscillator works. When a direct
current is applied, these crystals vibrate at a frequency that depends on its thickness value
and on the manner in which it is cut from the original mineral rock. To determine the
frequency, some oscillators employ combinations of inductors, resistors, and capacitors.
But, the use of quartz crystals gives the best stability (constancy of frequency) in
oscillators. In a computer the clock serves as a sort of pacemaker for the microcontroller.
The clock is nothing but a specialized oscillator. The clock frequency (also called as clock
speed) is usually specified in megahertz (MHz)frequency.
Limitations
All projects have their own limitations. We have tried our best to achieve the goal but our
project also has some limitations which cannot read negative temperature.
5.2 Recommendation
The goal of this project was purposely kept within what was believed to be attainable
within the allotted timeline. As such many improvements can be made upon this initially
design the following recommendations are provided as ideas for future expansion of this
project.
[1]. A text book of Richard C. Dorf, Modern Control Systems, University of California,
DavisTwelfth edition
[2]. A text book of Katsuhiko Ogata, Modern Control Engineering Fifth Edition.
[3]. Arun Bera, and Sonal Kumar, automatic temperature control with cooling system
usingMicrocontroller, Department of Electronics and Communication Engineering May,
2011
[4]. Okpagu, P.E. &Nwosu, A.W. Development and temperature control of smart egg
incubatorSystem for various types of egg, University Uli Anambra State, NIGERIA)
[6]. Gaurav S. Ashara1, Dipesh S.Vyas, design and simulation of temperature control of
chamber