Professional Documents
Culture Documents
CHAPTER ONE
1. INTRODUCTION
1.1Background
This project extends we control engineering student’s prior works in Automatic Air Conditioner
control system. This device developed in fulfillment of this project evolved from diagnostic
algorithms used in the protest program and hardware developed for the pc board advanced on
board diagnostic device.
In this project, there are several problems when user uses the air conditioner. The problems they
have faced are:
To design and develop a device that it can display the environment temperature value
on LCD screen.
It can able to switch on/off air conditioner automatically based on environment
temperature.
The device provides energy efficiency by not running the air conditioner when the
temperature is as desired. The device turns the air conditioner on only if the
temperature gets above the desired one (200C), and turns it off after the temperature
becomes lower than the desired one(200C) and viceversa.
Economically efficient. (The customer can save money by not buying an expensive
air conditioner and overpaying for unnecessary features. Instead she/he can attach
our relatively inexpensive device to any inexpensive air conditioner unit.)
In order to achieve the objective of this project, there are several scope had been outlined.
The scope of this project includes using MikroC compiler to program PIC 16F874A
microcontroller, build simulation for design and implementation of automatic air conditioner
control unit system and then interface temperature sensor with PIC 16F74A. Last but not least, a
temperature value is obtained by using proteus8 simulator to observe the performance of the
system.
1.5 Methodology
In this project, microcontroller used as the controller to control temperature sensor at desired
input and controlled automatically.
In this section the basic procedural steps that are required and a set of methods followed in order
to realize our project are presented. The sequence we followed in order to complete this project
successfully includes: -
The sequence we followed in order to complete this project will be portrayed in the flow chart
below.
Load Hardware
Compile the Software
compiled assembling
program on development
program to using
microC
protues proteus
Simulation test
Calibration
NO
YES
End
Conclusion and recommendation
Hardware and Software requirement for automatic air conditioner control system described
below.
Microcontroller
Temperature sensor
Liquid crystal display
Simple motor(fan)
Switch buttons
Transistor
Variable resistors
Power supply
MikroC is a powerful, feature rich development tool for PIC micros. It is designed to provide the
easiest possible solution for developing applications for embedded systems, without com-
promising performance or control. PIC and C fit together well: PIC is the most popular 8-bit chip
in the world, used in a wide variety of applications, and C, prized for its efficiency, is the natural
choice for developing embedded systems. MikroC provides a successful match featuring highly
advanced IDE, ANSI compliant compiler, broad set of hardware libraries, comprehensive
documentation, and plenty of ready-to-run examples.
MikroC allows us to quickly develop and deploy complex applications:
Write our C source code using the highly advanced Code Editor
Use the included mikroC libraries to dramatically speed up the development: data
acquisition, memory, displays, conversions, communications...
Monitor our program structure, variables, and functions in the Code Explorer.
Generate commented, human-readable assembly, and standard HEX compatible
with all programmers.
Inspect program flow and debug executable logic with the integrated Debugger.
Get detailed reports and graphs on code statistics, assembly listing, calling tree...
We have provided plenty of examples for you to expand, develop, and use as
building bricks in your projects
Proteus is software for microprocessor simulation, schematic capture, and printed circuit board
(PCB) design. It is developed by Lab center Electronics. Proteus PCB design combines the ISIS
schematic capture and ARES PCB layout programs to provide a powerful, integrated and easy to
use suite of tools for professional PCB Design. All Proteus PCB design products include an
integrated shape based auto router and a basic SPICE simulation capability as standard. More
advanced routing modes are included in Proteus PCB Design Level 2 and higher whilst
simulation capabilities can be enhanced by purchasing the Advanced Simulation option and/or
micro-controller simulation capabilities.
Nowadays our country even the whole world is experiencing hot weather because of our problem
regarding with ozone layer, we are experiencing global warming. Air conditioning is a great
helpful for us. Because we can feel coolness when we are inside a room which is air conditioned
especially when we are experiencing home hot weather most of us stay in a cold place. Air
conditioner refers the general process of altering air properties such as temperature to achieve a
desired condition. Air conditioning is a process which work is done; on more heat from low
temperature to high temperature and typically form one location to other. The design of an
automatic air conditioner control system plays a paramount role in our daily life. A good change-
over switch should minimizes damages to lives and equipment since it has its own monitoring
system and It’s switching requires no human contact with the switch, thus eliminating human
error, reduces change- over time to a minimum, due to its fast response to temperature, maintains
high quality of service through its fast and prompt response. Moreover, the unit is portable, easy,
convenient and safe to install.
The performance requirements must be satisfied to provide a complete end product: The device
should be insensitive to the temperature fluctuations of about ±2 ºC. The device is to have a wide
input voltage range of 220~230 V (ac). Physical isolation of digital and analog circuitry blocks,
i.e. the performance of the microcontroller should not be influenced by the analog side.
It will explain how the project is organized and the flow of process in completing this project.
This thesis consists of five chapters. This chapter discuss about background of project, problem
of statement, objective of project, project scope. Also in this topic discussed the methodology of
the system; methodology for the involved components in this project, significance, limitation of
project and thesis organization.
Chapter 2 contains literature review on description of automatic air conditional control system. It
will explain about the concept of automatic air conditional control system and the application of
this system.
Chapter 3 is system design and description of the project which includes the block diagram
project, material description, flow chart and working principle of the project, circuit design,
software design and the hardware design.
Chapter 4 will be discussing about the result and simulation obtained in this project and a
discussion about the result.
Finally, the conclusions for this project are presented in chapter 5. This chapter also discusses
about the recommendation for the project of the future development.
CHAPTER TWO
LITERATURE REVIEW
2.1 INTRODUCTION
major demand on the nation's electrical power grid in warm weather, when most units are
operating under heavy load. During peak demand, additional power plants must often be brought
online, usually natural gas fired plants because of their rapid startup. So when the user uses the
air conditioner, some time they don’t realize that they have waste lot of energy every day. For
the user that uses the air conditioner, there is a certain way to save some energy. The savings can
be significant when set the thermostat at 1°C or higher (Cooling model) / 2°C or lower (Heating
model). For each degree that raises the thermostat setting, reduce seasonal cooling costs by 10%.
They also can use a ceiling fan or portable fan to supplement the air conditioning. A fan can
make feel a few degrees 3 cooler so can set the thermostat a few degrees higher and save on
cooling costs. User also must make sure the air conditioner is not blocked. A free flowing air
conditioner operates most efficiently. Filters should be checked every 2 weeks. Dirty filters may
reduce cooling and heating efficiency and when air conditioning is on, keep doors and windows
closed. Turn off kitchen or bathroom exhaust fans when the air conditioning is operating.
Ethiopia, like many other developing countries with hot climates, has been experiencing
dramatic growth in the number and use of room air conditioners. As the economy recovers and
income level rise, more consumers will seek air conditioning. Since there is potential of
substantial energy saving in the domestic room air conditioning sector, the establishment of
energy efficiency standard for room air conditioner has been giving priority.
CHAPTER THREE
3.1BLOCK DIAGRAM
3.2.1 MICROCONTROLLER
Microcontrollers are designed for embedded applications, in contrast to the microprocessors used
in personal computers or other general purpose applications. Microcontrollers are used in
automatically controlled products and devices, such as automobile engine control systems,
implantable medical devices, remote controls, office machines, appliances, power tools, toys and
other embedded systems. By reducing the size and cost compared to a design that uses a separate
microprocessor, memory, and input/output devices, microcontrollers make it economical to
digitally control even more devices and processes. Mixed signal microcontrollers are common,
integrating analog components needed to control non-digital electronic systems. The micro
controller we used is called PIC16F874A.
PIC16F874A
The PIC16F874A belongs to the mid-range family of the PIC microcontroller devices. The
program memory contains 1K words, which translates to 1024 instructions, since each 14-bit
program memory word is the same width as each device instruction. The data memory (RAM)
contains 68 bytes. Data EEPROM is 64 bytes. There are also 13 I/O pins that are user-configured
on a pin-to-pin basis.
PIC 16F874A series normally has five input/output ports. They are used for the input/output
interfacing with other devices/circuits. Most of these port pins are multiplexed for handling
alternate function for peripheral features on the devices. All ports in a PIC chip are bi-
directional. When the peripheral action is enabled in a pin, it may not be used as its general
input/output functions. The PIC 16F874A chip basically has 5 input/output ports. The five
input/output ports and its functions are given below.
PORT A and the TRIS A Registers: PORT A is a 6-bit wide bi-directional port, the direction
of this port is controlled by TRIS A data direction register. Setting a TRIS A (=1) makes
corresponding PORT A pin as an input, clearing the TRIS A (=0) making the corresponding
PORT A pin as an output Pin RA4 is multiplexed with the Timer0 module clock input to become
the RA4/T0CKI pin and functioning either input/output operation or Timer 0 clock functioning
module. The RA4/T0CKI pin is a Schmitt Trigger input and an open drain output. All other
PORT A pins has TTL input levels and full CMOS output drivers. Other PORT pins in this
microcontroller multiplexed with analog inputs and the analog VREF input for both the A/D
converters and the comparators. The operation of each pin is selected by clearing/setting the
appropriate control bits in the ADCON1 and/or CMCON registers. The TRIS A register controls
the direction of the PORT pins even when they are being used as analog inputs. The user must
ensure the bits in the TRISA register are maintained set when using them as analog inputs.
PORT B and the TRIS Registers: PORT B is also an 8 bit bi-directional PORT. Its direction
controlled and maintained by TRIS B data direction register. Setting the TRIS B into logic
1‘makes the corresponding PORT B pin as an input. Clearing the TRIS B bit make PORT B as
an output. Three pins of PORT B are multiplexed with the In-Circuit Debugger and Low-Voltage
Programming function: RB3/PGM, RB6/PGC and RB7/PGD for performing its alternate
functions.
PORT C and the TRIS C Registers: PORT C is an 8-bit wide, bidirectional PORT which
controlled and maintained by TRIS C data direction register. Setting a TRIS C bit (= 1) will
make the corresponding PORT C pin an input (i.e., put the corresponding output driver in a
High-Impedance mode). Clearing a TRIS C bit (= 0) will make the corresponding PORT C pin
an output PORT C is also multiplexed with several peripheral functions. PORT C pins have
Schmitt Trigger input buffers. When enabling peripheral functions, more care should be taken in
defining TRIS bits for each PORT C pin as compared to other. Some peripherals override the
TRIS bit to make a pin an output, while other peripherals override the TRIS bit to make a pin an
input. Since the TRIS bit override is in effect while the peripheral is enabled, read-modify write
instructions (BSF, BCF, and XORWF) with TRISC as the destination, should be avoided. The
user should refer to the corresponding peripheral section for the correct TRIS bit settings.
PORT D and TRIS D Registers: PORT D is an 8-bit PORT with bi-directional nature. This
port also with Schmitt Trigger input buffers, each pin in this PORT D individually configurable
as either input or output. PORT D can be configured as an 8-bit wide microprocessor PORT
(functioning as Parallel Slave PORT) by setting control bit, PSPMODE ((TRISE<4>). In this
mode, the input buffers are TTL.
PORT E and TRIS E Registers: PORT E has only three pins (RE0/RD/AN5, RE1/WR/AN6
and RE2/CS/AN7) which are individually configurable as inputs or outputs. These pins
controllable by using its corresponding data direction register TRIS E. These pins also have
Schmitt Trigger input buffers. The PORT E pins become the I/O control inputs for the
microprocessor PORT when bit PSPMODE is set. In this mode, the user must make certain that
the TRIS E bits are set and that the pins are configured as digital inputs. Also, ensure that
ADCON1 is configured for digital I/O. In this mode, the input buffers are TTL. TRISE register
which also controls the Parallel Slave PORT operation. PORT E pins are multiplexed with
analog inputs. When selected for analog input, these pins will read as 0‘s. TRIS E controls the
direction of the RE pins, even when they are being used as analog inputs. The user must make
sure to keep the pins configured as inputs when using them as analog inputs.
The temperature sensor senses the room temperature and it is displayed on the LCD Display.
LCD-Liquid Crystal Display is an electronic device for displaying text or Characters. We are
using 14 pin LCD. 16*2 represents 16 characters and 2 line display. LCD’s are economical and
easily programmable and can easily display special and custom characters.
A push-button (also spelled pushbutton) or simply button is a simple switch mechanism for
controlling some aspect of a machine or a process. Buttons are typically made out of hard
material, usually plastic or metal. The surface is usually flat or shaped to accommodate the
human finger or hand, so as to be easily depressed or pushed. Buttons are most often biased
switches, though even many un-biased buttons (due to their physical nature) require a spring to
return to their un-pushed state. Different people use different terms for the "pushing" of the
button, such as press, depress, mash, and punch.
PIC activated
Most digital logic circuits and processors need a +5 volt power supply. To use these parts we
need to build a regulated +5 volt source. Usually we start with an unregulated power supply
ranging from 9 volts to 24 volts DC. To make a +5 volt power supply, we use a 7805 voltage
regulator IC (Integrated Circuit). The power supply can cause the sensor to heat, leading to an
error in the measurement. There can be several sources of error during the measurement of
temperature. Some important possible errors are described below. Sensor self-heating: RTDs,
thermistors and integrated circuit sensors require an external power supply for their operation.
The effect of self-heating depends on the size of the sensor and the amount of power dissipated
by the sensor. Self-heating can be avoided by using the lowest possible external power, or by
considering the heating effect in the measurement.
Temperature
Sensor
Power
supply
PIC16F874A
The A.C. power supply to the circuit has to be regulated to a reasonable amount for the
workability and durability of the circuit component. The power supply regulation process is
accomplished by following the four stages listed below:
Transformer
Rectification
Filtering
Voltage regulation
Transformer: The a.c. supply gives out 220V or 230V and the supply is stepped down by the
transformer to a reasonable amount of 12V which is needed for the operation of the circuit. A d.c
voltage of 12V is needed for the operation of the motor.
Rectification: There is the need for the conversion of the a.c. voltage to d.c. voltage. Diodes
help in this conversion process. However, in the conversion process the voltage drop across the
diode which is greater than 1V is added to the already stepped down 12V and making the total
voltage in the rectification to be 13V or greater.
Filtering: The capacitor removes or filters the ripples generated and produced alongside the
rectification process.
Voltage Regulation: Voltage regulators are devices that produce constant d.c. voltage regardless
of the variation in the input load. A d.c. voltage of 5V is needed for the operation of the PIC.
Two voltage regulators are used in this stage. These are:
Mimic configuration: The minimum PIC configuration depends on the type of microcontroller
used. Normally, the operation of a PIC microcontroller requires a power supply, reset circuit and
oscillator. The power supply is usually +5 Vdc and can be obtained from the mains supply by
using a step down transformer, a rectifier circuit and a power regulator chip, such as the
LM78L05. Although PIC microcontrollers have built-in power-on reset circuits, it is useful in
many applications to have external reset circuits. When the microcontroller is reset, all of its
special function registers are put into a known state and execution of the user program starts
from address 0 of the program memory. Reset is normally achieved by connecting a 4.7 K pull-
up Resistor from the master clear (MCLR) input to the supply voltage.
Sensors used in computer control: Sensors are an important part of closed-loop systems and
they provide information about the actual output of a plant. A sensor is a device that outputs a
signal which is related to the measurement of (i.e. is a function of) a physical quantity such as
temperature. Sensors can be classified as analog or digital. Analog sensors are more widely
available, and their outputs are analog voltages. For example, the output of an analog
temperature sensor may be a voltage proportional to the measured temperature. Analog sensors
can only be connected to a computer by using an A/D converter. Digital sensors are not very
common and they have logic level outputs which can directly be connected to a computer input
port. The choice of a sensor for a particular application depends on many factors such as the cost,
reliability, required accuracy, resolution, range and linearity of the sensor. Some important
factors are described below.
Range: The range of a sensor specifies the upper and lower limits of the measured variable for
which a measurement can be made. For example, if the range of integrated temperature sensor is
specified as −40 ◦C to +125◦C then the sensor should only be used to measure temperatures
within that range. Resolution: The resolution of a sensor is specified as the largest change in
measured value that will not result in a change in the sensor’s output, i.e. the measured value can
change by the amount quoted by the resolution before this change can be detected by the sensor.
In general, the smaller this amount the better the sensor is, and sensors with a wide range have
less resolution. For example, a temperature sensor with a resolution of 0.001 K is better than a
sensor with a resolution of 0.1 K.
Repeatability: The repeatability of a sensor is the variation of output values that can be expected
when the sensor measures the same physical quantity several times. For example, if the voltage
across a resistor is measured at the same time several times we may get slightly different results.
Linearity: An ideal sensor is expected to have a linear transfer function, i.e. the sensor output is
expected to be exactly proportional to the measured value. However, in practice all sensors
exhibit some amount of nonlinearity depending upon the manufacturing tolerances and the
measurement conditions.
Temperature is one of the fundamental physical variables in most chemical and process control
applications. Accurate and reliable measurement of the temperature is important in nearly all
process control applications. Temperature sensors can be analog or digital. Some of the most
commonly used analog temperature sensors are: thermocouples, resistance temperature detectors
(RTDs) and thermistors. Digital sensors are in the form of integrated circuits. The choice of a
sensor depends on the accuracy, the temperature range, speed of response, thermal coupling, the
environment (chemical, electrical, or physical) and the cost. As shown in Table below,
thermocouples are best suited to very low and very high temperature measurements. The typical
measuring range is from −270 ◦C to +2600 ◦C. In addition, thermocouples are low-cost, very
robust, and they can be used in chemical environments. The typical accuracy of a thermocouple
is ±1 ◦C. Thermocouples do not require external power for operation. RTDs are used in medium-
range temperature measurements, ranging from −200 ◦C to +600 ◦C. They can be used in most
chemical environments but they are not as robust as thermocouples. The typical accuracy of
RTDs is ±0.2 ◦C. They require external power for operation. Thermistors are used in low- to
medium-temperature applications, ranging from −50 ◦C to about +200 ◦C. They are not as robust
as thermocouples or RTDs and they cannot easily be used in chemical environments.
Thermistors are also low-cost devices, they require external power for operation, and they have
an accuracy of ±0.2 ◦C. Integrated circuit temperature sensors are used in low-temperature
applications, ranging from −40 ◦C to +125 ◦C. These devices can be either analog or digital, and
their coupling with the environment is not very good. The accuracy of integrated circuit sensors
is around ±1 ◦C. integrated temperature sensors differ from other sensors in some important
ways: They are relatively small. Their outputs are highly linear. Their temperature range is
limited. Their cost is very low. Some models include advanced features, such as thermostat
functions, built-in A/D converters and so on. An external power supply is required to operate
them. This is our selection for temperature sensor type.
The LM35 series are precision integrated-circuit temperature sensors, with an output voltage
linearly proportional to the Centigrade temperature. Thus the LM35 has an advantage over linear
temperature sensors calibrated in ° Kelvin, as the user is not required to subtract a large constant
voltage from the output to obtain convenient Centigrade scaling. The LM35 does not require any
external calibration or trimming to provide typical accuracies of ±¼°C at room temperature and
±¾°C over a full −55°C to+150°C temperature range.
Figure: 3.11 LM35 temperature sensor on protues (full −55°C to+150°C temperature range)
Low cost is assured by trimming and calibration at the wafer level. The low output impedance,
linear output, and precise inherent calibration of the LM35 make interfacing to readout or control
circuitry especially easy. The device is used with single power supplies, or with plus and minus
supplies. As the LM35 draws only 60mA from the supply, it has very low self-heating of less
than 0.1°C in still air. The LM35 is rated to operate over a -55°C to +150°C temperature range.
FEATURES
This Power Transistor is semiconductor device used to amplify and switch on/off electronic
signals and electrical power. PIC16f874A cannot directly activate the DC brushless fan because
it has not enough current. Since the current of I/O pin from PIC16F874A is limited to drive a DC
Brushless Fan (0.12A). So Power Transistor (BC547NPN) is required for giving current to DC
Brushless Fan sufficiently. The maximum collector current(Ic) of BC547NPN is 1.5A, which
means the DC Brushless Fan greater than 1.5A cannot be driven. Then NPN power transistor
(BC547NPN) is required for controlling the DC brushless fan with sufficient current. So that DC
brushless fan indirectly controlled by PIC16F874A. It is composed of semiconductor material
usually with at list three terminals for connection ton an external circuit. A voltage or current
applied to one pair of the transistor’s terminals changes the current via another pair of terminals.
Because the controlled (output) power come can be higher than the controlling (input) power, a
transistor can amplify a signal. Power semiconductor device is a semiconductor device used as a
switch or rectifier in power electronics; a switch mode power supply is an example. Such devices
are also called a power device or, when used in an integrated circuit a power IC. A power
Semiconductor device is usually used in “communication mode” (i.e., it is either on or off), and
therefore has a design optimized for such usage; it should usually not be used in linear operation.
This project will used PIC16F874A to control power transistor (BC547NPN) further drive DC
brushless fan when the certain temperature was detected. The value of temperature always
displayed on a LCD screen.
Start
LCD display
NO
YES
Microcontroller ON Temp>500C
Microcontroller off
OR
Temp<200C
Transistor ON
Transistor off
END
In this project we use PIC16F874A, Port A is used for Input Connections with LM35 sensor,
Port B is used for LCD output as Output Port and Port C is used for connecting the Fan as a
output port. PIC16F874A will read the analog voltage (using ADC) from temperature sensor
(LM35) as input and display it on LCD display. PIC16f874A has been used to control the LCD
directly for previous Programs. But in this project, PIC16f874A cannot directly activate the DC
brushless fan because it has not enough current. Since the current of I/O pin from PIC16F874A
is limited to drive a DC Brushless Fan (0.12A). So Power Transistor (BC547NPN) is required
for giving current to DC Brushless Fan sufficiently. The maximum collector current(Ic) of
BC547NPN is 1.5A, which means the DC Brushless Fan greater than 1.5A cannot be driven.
Then NPN power transistor (BC547NPN) is required for controlling the DC brushless fan with
sufficient current. So that DC brushless fan indirectly controlled by PIC16F874A. This Fan will
be activated when temperature reaches 200c temperature value. As the LM35 sensor is accurate
from 25C, the Fan will start rotating from 25C to 50C. The other inputs to our PIC16F874A
microcontroller are pushbuttons. One I/O pin is needed for one push button as input for
PIC16f874A microcontroller. The I/O pin should be pull up to 5V using hands and this
configuration will result an active-low input. When the button is being pressed, reading of I/O
pin will be in logic 1, while when the button is not pressed, reading of that I/O pin will be logic
0.
CHAPTER FOUR
4.1 INTRODUCTION
Typically the heating and cooling systems have separate control systems so that the temperature
is only controlled "one-way”. The power utility customer may control the overall energy
expenditure. This Fan will be activated when temperature reaches 250c temperature value. As the
LM35 sensor is accurate from 250C, then the Fan will start rotating from 250C to 500C.
If the ambient temperature rises above the desired temperature (250C), a high signal (digital
value 1) will be sent to a digital to analog converter. This will signal the switch to turn the air
conditioner ON. Conversely, once the ambient temperature goes below the desired temperature
(250C) a low signal (digital value 0) again will be sent indicating to turn OFF the air conditioner.
If the ambient temperature rises below the desired temperature (500C), a high signal (digital
value 1) will be sent to a digital to analog converter. This will signal the switch to turn the air
conditioner ON. Conversely, once the ambient temperature goes above the desired temperature
(500C) a low signal (digital value 0) again will be sent indicating to turn OFF the air conditioner.
Our automatic air-conditioner control is required for maintaining comfort and saving energy.
The power for this block will be provided from the power converter block. The microcontroller
will receive an input signal from LM35 temperature sensor which will determine the ambient
temperature of the room. The sensor output signal will be compared to a push button input, the
desired temperature push button in by the user. The default reading on the push button will be the
ambient temperature the display of which is outputted to an LCD. When a user presses the push
on the push button, the desired temperature shall be displayed on the LCD The micro-controller
will also need to have a built in function that would provide tolerance for the temperature sensor
output. This function is necessary to prevent the air conditioner from turning on and off due to
some minor temperature fluctuations. It can able to switch on/off air conditioner automatically
based on environment temperature.
Total 4609.96 7
CHAPTER FIVE
5.1Conclusion
PIC16F874A will read the analog voltage (using ADC) from temperature sensor (LM35) as input
and display it on LCD (LM016L) as output. When the PIC16F874A digital output is high (1)
then the transistor (BC547NPN) will activate the air conditioner (ON) and the digital output is
low (0) air conditioner is OFF. The push button sends the message into micro controller then
convert to ADC and display on LCD. The sensor determine the proper temperature and the
microcontroller will insure that unstable fluctuations do not occur, i.e. an air conditioner does not
constantly turn on and off due to minor fluctuations to ambient temperature. We need to
implement a wide tolerance range for the temperature readings (a possible ±2 ºC range) to insure
against such operation of the air conditioning device. During the testing of the device at
temperature extremes it will be necessary to provide a sufficient way of raising and lowering the
temperature of the environment on temperature sensor (LM35).
Air conditioner control units are sources of power consumption and sources of noise in
the system are our very important considerations. The fan is also one more mechanical
component in the system not an ideal solution from a reliability standpoint.
5.2 Recommendations
We recommended that electric utilities or users to use this technology as a demand side
management strategy for reducing energy consumption because of Electrical home appliances go
electronic rapidly these days. It will play an important role for performing the control of air
conditioners in future. Therefore our automatic air-conditioner control is required for
maintaining comfort and saving energy.
Inputting Temperature, humidity, clothes, activity, wind velocity, and radiation heat to a
room air-conditioner as control commands are not practical due to sensory difference of each
individual. Since humidity, wind velocity and radiation heat are considered comparatively less
variant in a room, these factors have been excluded from the investigation of our project. In
Ethiopia the comfortable temperature slightly differs with seasons or depending on the outside
temperature as follows: (21-27) 0C in summer and (19- 25) °C in winter. Therefore, the
comfortable temperature range is rather selected.
The performance requirements must be satisfied to provide a complete end product: The
device should be insensitive to the temperature fluctuations of about ±2 ºC. The device is to have
input voltage range of 220~230 V (ac). Physical isolation of digital and analog circuitry blocks,
i.e. the performance of the micro-controller should not be influenced by the analog side.
References
1. Escoffier, C.; Bouncier, J.; Leland, P.; Jeanie Yu, "Towards a Home Application Server,"
Consumer Communications and Networking Conference 2008 CCNC 2008 5th IEEE
vol., No. pp.321-325, 10-12 Jan. 2008.
2. http://depts.washington.edu/dmgftp/publications/html/smarthouse98-mdg.html
3. LM35 Precision Centigrade Temperature Sensors, National Semiconductor Corp.,
December 1994
4. Mishap Data Sheets, PIC16F877a/40-Pin 16-BitCMOS Flash Micro controllers,
www.microchip.com
5. Patricio, G.; Gomes, L., "Smart house monitoring and actuating system development
using automatic code generation," Industrial Informatics, 2009. INDIN2009. 7th IEEE
International Conference on, vol., no., pp.256-261, 23-26 June 2009
6. NSelman, A.; Alafandi, M.; Moeller, “Integration of Wireless Fieldbus and Wired Field
bus for Health Monitoring”; R.;Consumer Electronics, 2009. ICCE '09 Digest of
Technical P après International Conference on 10-14 Jan. 2009 Page(s):1 - 2
7. Van Nguyen, T.; Jin Gook Kim; Deokjai Chou, "ISS: The Interactive Smart home
Simulator," Advanced Communication Technology, 2009. ICACT 2009.11th
International Conference on , vol.03, no., pp.1828- 1833, 15-18 Feb. 2009
APPENDICES
char txt[10];
char xt[10];
void main()
TRISD=1;
portC=0;
portD=0;
Lcd_Out(1,1,txt1);
sp_temp = 20;
do
if (portd.RD0 == 1)
sp_temp++;
delay_ms(200);
if (portd.RD1 == 1)
sp_temp--;
delay_ms(200);
pv_temp = ADC_Read(2);
IntToStr(pv_temp,txt);
Lcd_Out(2,2,txt);
Lcd_Out(2,1,"pv=");
IntToStr(sp_temp,xt);
Lcd_Out(2,11,xt);
Lcd_Out(2,10,"sp=");
if(pv_temp>sp_temp)
portC.RC0=1;
else
portC.RC0=0;
} while(1);
Lcd_Out(2,10,"sp=");
if(pv_temp>sp_temp)
portC.RC0=1;
else
portC.RC0=0;
while(1);