Automatic Room Temperature Control System
VerifiedAdded on 2023/01/19
|26
|4149
|92
AI Summary
This article discusses the implementation and performance of an automatic room temperature control system. It covers the background information, control objectives, identification of the control objective, performance of the controller, system implementation, and more.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Running head: CONTROL SYSTEM
CONTROL SYSTEM
Name of Student
Institution Affiliation
CONTROL SYSTEM
Name of Student
Institution Affiliation
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
CONTROL SYSTEM 2
Table of contents
Contents
Table of contents.........................................................................................................................................2
Table of figures...........................................................................................................................................2
List of tables................................................................................................................................................3
Description of the Control Objectives.........................................................................................................3
Background information..............................................................................................................................4
Objective Selection......................................................................................................................................6
Identification of the Control Objective........................................................................................................7
Performance of Controller...........................................................................................................................8
System Implementation.............................................................................................................................11
Abstracting the Problem............................................................................................................................14
Problems Faced.........................................................................................................................................15
Software Configuration.............................................................................................................................15
Conclusion.................................................................................................................................................17
References.................................................................................................................................................18
Appendix...................................................................................................................................................20
Table of figures
Figure 1: Showing the block diagram with the major parts of the system......................................6
Figure 2: Showing System flow chart.............................................................................................7
Figure 3: Showing Circuit diagram of the Automatic Room temperature Control system showing
all components of the system.........................................................................................................10
Figure 4: Showing the settling time and stability of the system with PID controller....................12
Figure 5: Showing the settling time and stability of the system without PID controller...............13
Table of contents
Contents
Table of contents.........................................................................................................................................2
Table of figures...........................................................................................................................................2
List of tables................................................................................................................................................3
Description of the Control Objectives.........................................................................................................3
Background information..............................................................................................................................4
Objective Selection......................................................................................................................................6
Identification of the Control Objective........................................................................................................7
Performance of Controller...........................................................................................................................8
System Implementation.............................................................................................................................11
Abstracting the Problem............................................................................................................................14
Problems Faced.........................................................................................................................................15
Software Configuration.............................................................................................................................15
Conclusion.................................................................................................................................................17
References.................................................................................................................................................18
Appendix...................................................................................................................................................20
Table of figures
Figure 1: Showing the block diagram with the major parts of the system......................................6
Figure 2: Showing System flow chart.............................................................................................7
Figure 3: Showing Circuit diagram of the Automatic Room temperature Control system showing
all components of the system.........................................................................................................10
Figure 4: Showing the settling time and stability of the system with PID controller....................12
Figure 5: Showing the settling time and stability of the system without PID controller...............13
CONTROL SYSTEM 3
Figure 1: Showing the block diagram with the major parts of the system....................................16
Figure 2: Showing System flow chart...........................................................................................17
Figure 3: Showing Circuit diagram of the Automatic Room temperature Control system showing
all components of the system.........................................................................................................18
Figure 4: Showing the settling time and stability of the system with PID controller....................19
Figure 5: Showing the settling time and stability of the system without PID controller...............20
List of tables
Table 1: showing List of materials required during implementation..............................................8
Figure 1: Showing the block diagram with the major parts of the system....................................16
Figure 2: Showing System flow chart...........................................................................................17
Figure 3: Showing Circuit diagram of the Automatic Room temperature Control system showing
all components of the system.........................................................................................................18
Figure 4: Showing the settling time and stability of the system with PID controller....................19
Figure 5: Showing the settling time and stability of the system without PID controller...............20
List of tables
Table 1: showing List of materials required during implementation..............................................8
CONTROL SYSTEM 4
Description of the Control Objectives
This project will address the control system of a room temperature which is
automatically controlled. This hence means that there will be a set temperature known as the
desired temperature. This control system of the room will be realized by some actuators like a
motor which will switch on the fan if the room temperature is below the reference (set)
temperature. It will also employ the use of a magnetic relay (contactor) which will turn on the
electrical heater when the temperature of the room is below the desired temperature (Kurniawan,
2016).
The whole process is done automatically hence there should be individual physically
turning on the fan when the temperature is very hot or switching on the electrical heater when the
temperature is very cold. Therefore this will require the use of a microcontroller which will be
programmed to help realize all these required parameters (Jusoh, 2010).The actuator will be
communicated by the sensor which will detect the temperature of the room and transmit the
value to the microcontroller to do the comparison between the actual readings and the desired
value before any action is carried by the microcontroller.
Background information
With the new advancement we have nowadays, the machine, computing and automation
have become our part of living. A house is actually the most inhabited in any culture in the world
and humans have tried their best to make the rooms in the houses to be even more comfortable
by providing any environmental condition they would like (Lipovski, 2014).In our houses, the
living room and the bedroom requires to be kept within inhabitable temperature ranges. This
issue is becoming more important for homes /houses with very young children (infant). It is
normal for a grown up (adult) to find his /her way out of the discomfort zones but it won’t be
Description of the Control Objectives
This project will address the control system of a room temperature which is
automatically controlled. This hence means that there will be a set temperature known as the
desired temperature. This control system of the room will be realized by some actuators like a
motor which will switch on the fan if the room temperature is below the reference (set)
temperature. It will also employ the use of a magnetic relay (contactor) which will turn on the
electrical heater when the temperature of the room is below the desired temperature (Kurniawan,
2016).
The whole process is done automatically hence there should be individual physically
turning on the fan when the temperature is very hot or switching on the electrical heater when the
temperature is very cold. Therefore this will require the use of a microcontroller which will be
programmed to help realize all these required parameters (Jusoh, 2010).The actuator will be
communicated by the sensor which will detect the temperature of the room and transmit the
value to the microcontroller to do the comparison between the actual readings and the desired
value before any action is carried by the microcontroller.
Background information
With the new advancement we have nowadays, the machine, computing and automation
have become our part of living. A house is actually the most inhabited in any culture in the world
and humans have tried their best to make the rooms in the houses to be even more comfortable
by providing any environmental condition they would like (Lipovski, 2014).In our houses, the
living room and the bedroom requires to be kept within inhabitable temperature ranges. This
issue is becoming more important for homes /houses with very young children (infant). It is
normal for a grown up (adult) to find his /her way out of the discomfort zones but it won’t be
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
CONTROL SYSTEM 5
possible for the infant or sometimes it won´t be possible during some times like night
(Bhattacharya, 2011).
Again we may need some particular temperature in some places in our houses for
example where perishable goods are kept a very cold temperature is required. This will hence
require the use of the control system in room temperature (Arora, 2010). The idea of the
programmed room temperature control system started back during 18th C and the first person
people believed had this idea was from Norman School in Oklahoma and his name was Warren
Jonson. Before this time Janitors could be sent to go out and find the temperature in every
classroom thereafter Janitors will control the dampers in S basement.
Johnson watched this and then he thought of a good approach to stop all these suffering
Janitors were going through or even limit the problem. Johnson then thought of the automatic
room temperature control system (Leigh, 2012).During the mid-21st C, this control system
resulted in noticeably famous in many homes. Currently, a good measure of work is done and
completed by societies in this sector. A good deal of automatic room temperature control system
products is promptly attainable in the market for example AIRCONS. Weather is something
which keeps o fluctuating and their fluctuations can occur in a very short span of time and this
can lead to external conditions which influence indoor weather condition like temperature.
This paper hence addresses the room temperature control system. Basically, this is like an
air conditioning system that observes the temperature of the room and manages the fresh air
movements in the room without having any person´s involvement. The system will make good
use of the temperature sensors, microcontroller and actuators (fan and heater). The temperature
sensor will take the temperature readings and communicate it with the microcontroller
(UnbehauenHeinz, 2011).
possible for the infant or sometimes it won´t be possible during some times like night
(Bhattacharya, 2011).
Again we may need some particular temperature in some places in our houses for
example where perishable goods are kept a very cold temperature is required. This will hence
require the use of the control system in room temperature (Arora, 2010). The idea of the
programmed room temperature control system started back during 18th C and the first person
people believed had this idea was from Norman School in Oklahoma and his name was Warren
Jonson. Before this time Janitors could be sent to go out and find the temperature in every
classroom thereafter Janitors will control the dampers in S basement.
Johnson watched this and then he thought of a good approach to stop all these suffering
Janitors were going through or even limit the problem. Johnson then thought of the automatic
room temperature control system (Leigh, 2012).During the mid-21st C, this control system
resulted in noticeably famous in many homes. Currently, a good measure of work is done and
completed by societies in this sector. A good deal of automatic room temperature control system
products is promptly attainable in the market for example AIRCONS. Weather is something
which keeps o fluctuating and their fluctuations can occur in a very short span of time and this
can lead to external conditions which influence indoor weather condition like temperature.
This paper hence addresses the room temperature control system. Basically, this is like an
air conditioning system that observes the temperature of the room and manages the fresh air
movements in the room without having any person´s involvement. The system will make good
use of the temperature sensors, microcontroller and actuators (fan and heater). The temperature
sensor will take the temperature readings and communicate it with the microcontroller
(UnbehauenHeinz, 2011).
CONTROL SYSTEM 6
Objective Selection
An automatic room temperature control system basically is a self-controlling
temperature where the utilization of the set point is key and it helps in maintaining the room
temperature whether it is hot or cold outside (Passino, 2014).This system will enable the operator
to put the desired temperature, the desired set temperature will be compared against the actual
temperature of the room with the help of sensors for taking the measurement and microcontroller
for comparing the two temperatures. The system will respond by turning ON either the cooler or
the heater depending on the difference after the comparison. This difference done by the
microcontroller is illustrated by the equation below;
Temp diff = Set temp – Actual temp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
When the temperature difference is positive it implies that the set temperature is higher
than the actual temperature hence it is colder outside and for this situation, the microcontroller
will turn on the heater to heat up the room. But in cases where the temperature difference is
negative, it means that the actual temperature is higher hence the environmental temperature is
higher, therefore, the microcontroller will turn on the cooler (fan) to help bring back the
temperature to the desired set value (Bequette, 2012).This will make the system to automatically
control the temperature of the room and tries to make it constant at the required value but it will
be very difficult for this to happen.
This is difficult because of the heating will go higher when the heater tries to reset the
temperature to the desired value. When the sensor detects the same temperature between the
desired temperature and room temperature, it will communicate this to the microcontroller which
will stop the heater (Berenguel, 2014).The heater will be switched off yes but it will still be
giving some higher temperature before it cools and during that time the heater releases some
Objective Selection
An automatic room temperature control system basically is a self-controlling
temperature where the utilization of the set point is key and it helps in maintaining the room
temperature whether it is hot or cold outside (Passino, 2014).This system will enable the operator
to put the desired temperature, the desired set temperature will be compared against the actual
temperature of the room with the help of sensors for taking the measurement and microcontroller
for comparing the two temperatures. The system will respond by turning ON either the cooler or
the heater depending on the difference after the comparison. This difference done by the
microcontroller is illustrated by the equation below;
Temp diff = Set temp – Actual temp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
When the temperature difference is positive it implies that the set temperature is higher
than the actual temperature hence it is colder outside and for this situation, the microcontroller
will turn on the heater to heat up the room. But in cases where the temperature difference is
negative, it means that the actual temperature is higher hence the environmental temperature is
higher, therefore, the microcontroller will turn on the cooler (fan) to help bring back the
temperature to the desired set value (Bequette, 2012).This will make the system to automatically
control the temperature of the room and tries to make it constant at the required value but it will
be very difficult for this to happen.
This is difficult because of the heating will go higher when the heater tries to reset the
temperature to the desired value. When the sensor detects the same temperature between the
desired temperature and room temperature, it will communicate this to the microcontroller which
will stop the heater (Berenguel, 2014).The heater will be switched off yes but it will still be
giving some higher temperature before it cools and during that time the heater releases some
CONTROL SYSTEM 7
unnecessary temperature into the room. And the same will be true during the cooling system, the
cooler (fan) will cool the room temperature until it passes the desired temperature just like in the
cases of the heater.
Identification of the Control Objective
The control objective for the automatic room temperature control is not that complicated.
Basically, the system will be programmed where codes written in any of the many languages like
Arduino, Macro basics, C programming among others are fed into the PIC microcontroller (PIC
16F877A). But for this project, the coding was done using C programming language and a
Micro C compiler was used (CHOUDHURY, 2014)This microcontroller and the C programming
codes fed in it will allow feeding of new desired temperature, therefore, the desired temperature
can be fed into the system anytime one may opt to do so. The sensor which is used in the
automation can be Thermocouples or any other type (Short, 2012).There should be user interface
input, and these can be illustrated using the block diagram block;
unnecessary temperature into the room. And the same will be true during the cooling system, the
cooler (fan) will cool the room temperature until it passes the desired temperature just like in the
cases of the heater.
Identification of the Control Objective
The control objective for the automatic room temperature control is not that complicated.
Basically, the system will be programmed where codes written in any of the many languages like
Arduino, Macro basics, C programming among others are fed into the PIC microcontroller (PIC
16F877A). But for this project, the coding was done using C programming language and a
Micro C compiler was used (CHOUDHURY, 2014)This microcontroller and the C programming
codes fed in it will allow feeding of new desired temperature, therefore, the desired temperature
can be fed into the system anytime one may opt to do so. The sensor which is used in the
automation can be Thermocouples or any other type (Short, 2012).There should be user interface
input, and these can be illustrated using the block diagram block;
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
CONTROL SYSTEM 8
Figure 1: Showing the block diagram with the major parts of the system (Bequette, 2012).
Performance of Controller
The control unit in a room will be PIC 16F877A microcontroller, this microcontroller is
employed because it has a very much reduced instruction set in computer design (Letherman,
2014).For this reason, this PIC makes the codes highly efficient making PIC to operate with a
basically slight memory of the program as compared to other types of microcontrollers like 8081
based microcontroller. This microcontroller has a relatively low cost of installation but has
addition high clocking speed of the microcontroller. Other devices in this microcontroller are two
relays to help in switching ON and OFF of the heater and fan depending on the temperature
variation
Primarily the operator is prompted to set the temperature at the input which he or she
desires to be maintained in the room. The thermocouple which is the temperature sensor will
measure the room temperature (actual temperature) and communicate with the PIC to help
compare the actual temperature and the desired temperature of the room. The microcontroller
will read the temperature send to it after every 10 s and compare it with the set value (desired
temperature value) for every 10 seconds. In case the actual temperature is fewer than the set
value, then the heater will be turned ON automatically to help heat up the room and this will be
done up to that point the temperature returns back to the desired temperature and turn the heater
OFF.
When the actual temperature is higher than the set temperature value then the
microcontroller will turn ON a fan/cooler to help cool the room until the room temperature
Figure 1: Showing the block diagram with the major parts of the system (Bequette, 2012).
Performance of Controller
The control unit in a room will be PIC 16F877A microcontroller, this microcontroller is
employed because it has a very much reduced instruction set in computer design (Letherman,
2014).For this reason, this PIC makes the codes highly efficient making PIC to operate with a
basically slight memory of the program as compared to other types of microcontrollers like 8081
based microcontroller. This microcontroller has a relatively low cost of installation but has
addition high clocking speed of the microcontroller. Other devices in this microcontroller are two
relays to help in switching ON and OFF of the heater and fan depending on the temperature
variation
Primarily the operator is prompted to set the temperature at the input which he or she
desires to be maintained in the room. The thermocouple which is the temperature sensor will
measure the room temperature (actual temperature) and communicate with the PIC to help
compare the actual temperature and the desired temperature of the room. The microcontroller
will read the temperature send to it after every 10 s and compare it with the set value (desired
temperature value) for every 10 seconds. In case the actual temperature is fewer than the set
value, then the heater will be turned ON automatically to help heat up the room and this will be
done up to that point the temperature returns back to the desired temperature and turn the heater
OFF.
When the actual temperature is higher than the set temperature value then the
microcontroller will turn ON a fan/cooler to help cool the room until the room temperature
CONTROL SYSTEM 9
returns to reference point. When the temperature reaches that value (reference point) it will turn
OFF the fan/cooler. The temperature measured from the room is in analogue form, therefore, the
microcontroller will have to contain an inbuilt analogue to digital converter that will be
employed to convert the analogue signal to digital signal. This conversion is very important
because this microcontroller is a digital gadget and can only understand the analogue signals that
are to say it will only use the binary numbers. Figure 2 below illustrates the flow chart of the
process of the automatic room temperature control system. And the Pseudocodes for the
operation of this microcontroller is given below.
returns to reference point. When the temperature reaches that value (reference point) it will turn
OFF the fan/cooler. The temperature measured from the room is in analogue form, therefore, the
microcontroller will have to contain an inbuilt analogue to digital converter that will be
employed to convert the analogue signal to digital signal. This conversion is very important
because this microcontroller is a digital gadget and can only understand the analogue signals that
are to say it will only use the binary numbers. Figure 2 below illustrates the flow chart of the
process of the automatic room temperature control system. And the Pseudocodes for the
operation of this microcontroller is given below.
CONTROL SYSTEM
10
Figure 2: Showing System flow chart (Bhattacharya, 2011).
10
Figure 2: Showing System flow chart (Bhattacharya, 2011).
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
CONTROL SYSTEM
11
PIC 16F877A PSEUDOCODE
Initialize ports and variables
Read Temp from the analogue sensor
Input Reference Temp
Display both the ACTUAL TEMP AND REFERENCE TEMP
COMPARE REF WITH ACTUAL
If Temp Ref is less than actual Temp, Switch ON Heater
If Temp Ref is greater than actual Temp, Switch ON Fan
System Implementation
In the implementation of this type of automatic control system, the following are some of the
requirements.
Table 1: showing List of materials required during implementation
Name of Component Description
Step down transformer 20:1 (240/12 V, 1000 mA)
Rectifier Diode 1N4001*4
Resistors 220 Ω, 1 kΩ *2
Voltage regulators 7805, 7812
LEDs Red *2 and Green *2
Electrolyte capacitor 3300 μF and 4700 μF
11
PIC 16F877A PSEUDOCODE
Initialize ports and variables
Read Temp from the analogue sensor
Input Reference Temp
Display both the ACTUAL TEMP AND REFERENCE TEMP
COMPARE REF WITH ACTUAL
If Temp Ref is less than actual Temp, Switch ON Heater
If Temp Ref is greater than actual Temp, Switch ON Fan
System Implementation
In the implementation of this type of automatic control system, the following are some of the
requirements.
Table 1: showing List of materials required during implementation
Name of Component Description
Step down transformer 20:1 (240/12 V, 1000 mA)
Rectifier Diode 1N4001*4
Resistors 220 Ω, 1 kΩ *2
Voltage regulators 7805, 7812
LEDs Red *2 and Green *2
Electrolyte capacitor 3300 μF and 4700 μF
CONTROL SYSTEM
12
Switch On and off push button
PIC16F877A
microcontroller
PIC16F877A microcontroller
Crystal Oscillator 8 MHz Crystal Oscillator
Temperature sensor LM 35 Temperature sensor
Relay (12 V, 3 pin relay)*2
Transistor BC108*2
Light Bulb 60 Watts, 240 V
DC Fan 12 V DC Fan
Resistor (10 K)*6
LCD Display LM016L (16*2) LCD Display
Keypad 4*3 Keypad
Variable Resistor 10 kΩ
Reset push button Microswitch
Capacitor 22 pF
The automatic room temperature control system has a microcontroller, temperature
sensor, human interface and a display module. The whole system will demand a very stable 5 V
DC electrical power to operate effectively. The five Volts is obtained from 240 AC voltage
which means that there will be some transformer as well as the voltage rectifier to change the
supplied AC voltage to DC. When the power is supplied to the system the temperature sensor
12
Switch On and off push button
PIC16F877A
microcontroller
PIC16F877A microcontroller
Crystal Oscillator 8 MHz Crystal Oscillator
Temperature sensor LM 35 Temperature sensor
Relay (12 V, 3 pin relay)*2
Transistor BC108*2
Light Bulb 60 Watts, 240 V
DC Fan 12 V DC Fan
Resistor (10 K)*6
LCD Display LM016L (16*2) LCD Display
Keypad 4*3 Keypad
Variable Resistor 10 kΩ
Reset push button Microswitch
Capacitor 22 pF
The automatic room temperature control system has a microcontroller, temperature
sensor, human interface and a display module. The whole system will demand a very stable 5 V
DC electrical power to operate effectively. The five Volts is obtained from 240 AC voltage
which means that there will be some transformer as well as the voltage rectifier to change the
supplied AC voltage to DC. When the power is supplied to the system the temperature sensor
CONTROL SYSTEM
13
will detect the room temperature thereby sending whatever signal is detected to the PIC
microcontroller to enable processing of the actual data obtained.
The sensor is connected to the input ports of the microcontroller but at the same time, it
is visible to the atmosphere in order directly contact with the atmosphere to enable temperature
monitoring. This thus implies that PIC microcontroller or any other microcontroller will not
work on its own since it operates likes a storage gadget which has nothing at the time of
purchase. Thus some codes must be written into the PIC microcontroller to enable it operates as
demanded. After processing the signal, the microcontroller will transmit the signal through the
temperature sensor to the final process so that it can be displayed on the display module enable
every person to understand the display (Horner, 2011). The desired temperature is programmed
such that if the environment temperature increases to the present value there will be alert. And a
full circuit diagram of the project is illustrated by the diagram below;
13
will detect the room temperature thereby sending whatever signal is detected to the PIC
microcontroller to enable processing of the actual data obtained.
The sensor is connected to the input ports of the microcontroller but at the same time, it
is visible to the atmosphere in order directly contact with the atmosphere to enable temperature
monitoring. This thus implies that PIC microcontroller or any other microcontroller will not
work on its own since it operates likes a storage gadget which has nothing at the time of
purchase. Thus some codes must be written into the PIC microcontroller to enable it operates as
demanded. After processing the signal, the microcontroller will transmit the signal through the
temperature sensor to the final process so that it can be displayed on the display module enable
every person to understand the display (Horner, 2011). The desired temperature is programmed
such that if the environment temperature increases to the present value there will be alert. And a
full circuit diagram of the project is illustrated by the diagram below;
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
CONTROL SYSTEM
14
Figure 3: Showing Circuit diagram of the Automatic Room temperature Control system showing
all components of the system (Jusoh, 2010) .
Abstracting the Problem
The solution of this is based on some theoretical concepts which enable us to realize and
come up with the solution to this problem (Malek, 2011). Therefore there is a need to have a
good abstract/ theory which helps support the solution of this problem. The use of a temperature
sensor to detect the temperature of the room and transmit it to the microcontroller is key to this
solution to this problem. Again the ability of the temperature sensor to perfectly communicate
with the microcontroller help us to realize our objectives (Matthews, 2012) .The relationship
between the voltage drops in the microcontroller obtained from the temperature sensor and the
14
Figure 3: Showing Circuit diagram of the Automatic Room temperature Control system showing
all components of the system (Jusoh, 2010) .
Abstracting the Problem
The solution of this is based on some theoretical concepts which enable us to realize and
come up with the solution to this problem (Malek, 2011). Therefore there is a need to have a
good abstract/ theory which helps support the solution of this problem. The use of a temperature
sensor to detect the temperature of the room and transmit it to the microcontroller is key to this
solution to this problem. Again the ability of the temperature sensor to perfectly communicate
with the microcontroller help us to realize our objectives (Matthews, 2012) .The relationship
between the voltage drops in the microcontroller obtained from the temperature sensor and the
CONTROL SYSTEM
15
detect temperature through the use of the LM 35 temperature sensor which is shown in the
following equation makes it so possible to have the whole system operates as required.
Vout= Temp × VT
10 00 C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
The concept of AC being able to be stepped and using transformer and having the usage of
diodes which can be used to make a rectifier circuit makes this system to operate continuously on
AC as the input to the system.
Problems Faced
There are some issues faced during the design of this system, these issues include
designing a perfect and working circuit diagram of the whole project. The design was done in a
software know as Proteus. Another greatest problem faced which was left unsolved was the
ability to enable the sensor to detect the temperature in the room and communicate to the PIC
microcontroller (Dey, 2010). Then the microcontroller needs to turn ON or OFF before is the
desired temperature reached so that the exact desired temperature. If this is achieved, it will help
to avoid the oscillation of the temperature across the desired temperature value. This problem is
real and it affects the controllability of the system. But this issue can be reduced through the use
of PID controllers. PID controller will only reduce it but not eliminate it completely.
Software Configuration
There are several computer software used in the realization of this project. And each
program is used in different situations (Kotur, 2013). Some of these include Proteus software
which was employed in drawing the circuit diagram of the whole system as seen in figure 3
above. CodeBlocks software was employed in writing C programming codes from the perfect
15
detect temperature through the use of the LM 35 temperature sensor which is shown in the
following equation makes it so possible to have the whole system operates as required.
Vout= Temp × VT
10 00 C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
The concept of AC being able to be stepped and using transformer and having the usage of
diodes which can be used to make a rectifier circuit makes this system to operate continuously on
AC as the input to the system.
Problems Faced
There are some issues faced during the design of this system, these issues include
designing a perfect and working circuit diagram of the whole project. The design was done in a
software know as Proteus. Another greatest problem faced which was left unsolved was the
ability to enable the sensor to detect the temperature in the room and communicate to the PIC
microcontroller (Dey, 2010). Then the microcontroller needs to turn ON or OFF before is the
desired temperature reached so that the exact desired temperature. If this is achieved, it will help
to avoid the oscillation of the temperature across the desired temperature value. This problem is
real and it affects the controllability of the system. But this issue can be reduced through the use
of PID controllers. PID controller will only reduce it but not eliminate it completely.
Software Configuration
There are several computer software used in the realization of this project. And each
program is used in different situations (Kotur, 2013). Some of these include Proteus software
which was employed in drawing the circuit diagram of the whole system as seen in figure 3
above. CodeBlocks software was employed in writing C programming codes from the perfect
CONTROL SYSTEM
16
operation of the PIC microcontroller (Huang, 2013). But these two programs are not connected
to the system but are used to enable perfect output of the desired specification of the project .The
use of a PID controller enables the system to help attain the stability of the system (Kulkarni,
2014). The PID controllers are perfectly configured to the system and it is connected to the
system. This controller is connected to the system every time the system is working and this
helps a lot in promoting the system stability (Smith, 2014). The diagram below illustrates the
system operating with PID;
Figure 4: Showing the settling time and stability of the system with a PID controller (Bequette,
2012).
16
operation of the PIC microcontroller (Huang, 2013). But these two programs are not connected
to the system but are used to enable perfect output of the desired specification of the project .The
use of a PID controller enables the system to help attain the stability of the system (Kulkarni,
2014). The PID controllers are perfectly configured to the system and it is connected to the
system. This controller is connected to the system every time the system is working and this
helps a lot in promoting the system stability (Smith, 2014). The diagram below illustrates the
system operating with PID;
Figure 4: Showing the settling time and stability of the system with a PID controller (Bequette,
2012).
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
CONTROL SYSTEM
17
Figure 5: Showing the settling time and stability of the system without a PID controller
(Bequette, 2012).
Conclusion
After a perfect design of the control system for the controlling temperature of the room in
a Proteus the design was tested and it operated perfectly. The system was then implemented
where temperature sensor was employed to detect the room temperature then communicate the
actual temperature to the PIC microcontroller which then compared this value against the set
temperature value. The microcontroller then adjusted the room temperature accordingly the use
of either cool/fan or electrical heater. It was not easy to attain the stability of the system just
17
Figure 5: Showing the settling time and stability of the system without a PID controller
(Bequette, 2012).
Conclusion
After a perfect design of the control system for the controlling temperature of the room in
a Proteus the design was tested and it operated perfectly. The system was then implemented
where temperature sensor was employed to detect the room temperature then communicate the
actual temperature to the PIC microcontroller which then compared this value against the set
temperature value. The microcontroller then adjusted the room temperature accordingly the use
of either cool/fan or electrical heater. It was not easy to attain the stability of the system just
CONTROL SYSTEM
18
through the use of a microcontroller, therefore, a PID controller may be employed for perfect
stability.
18
through the use of a microcontroller, therefore, a PID controller may be employed for perfect
stability.
CONTROL SYSTEM
19
References
Arora, G. (2010). Industrial Automation and Robotics (2nd ed.). Liverpool: Laxmi Publications. Retrieved
from https://books.google.co.ke/books?
id=Y7rgCP7iC18C&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Bequette, W. (2012). Process Control: Modeling, Design, and Simulation (3rd ed.). Stoke: Prentice Hall
Professional. Retrieved from https://books.google.co.ke/books?
id=PdjHYm5e9d4C&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Berenguel, M. (2014). Comfort Control in Buildings (2nd ed.). Liverpool: Springer. Retrieved from
https://books.google.co.ke/books?
id=2AnvAwAAQBAJ&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_
s
Bhattacharya, B. (2011). Electrical Measurement and Control (WBSCTE) (3rd ed.). Stoke: Vikas Publishing
House.
CHOUDHURY, R. (2014). MODERN CONTROL ENGINEERING (2nd ed.). Chicago: PHI Learning Pvt. Ltd.
Retrieved from https://books.google.co.ke/books?
id=_l3JtXcL98IC&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Horner, J. (2011). Automotive Electrical Handbook (3rd ed.). Hull: Penguin. Retrieved from
https://books.google.co.ke/books?
id=osiJcknGcJAC&dq=heater+and+fan+working+principle&source=gbs_navlinks_s
Huang, H.-W. (2013). PIC Microcontroller: An Introduction to Software and Hardware Interfacing (3rd
ed.). Chicago: Cengage Learning. Retrieved from https://books.google.co.ke/books?
id=CB9GaAU1dwsC&dq=PIC+microcontroller&source=gbs_navlinks_s
Jusoh, A. S. (2010). Room Temperature Control System (3rd ed.). Stoke: Universiti Tun Hussein Onn
Malaysia. Retrieved from https://books.google.co.ke/books?
id=EOz1jwEACAAJ&dq=Automatic+room+temperature+control+system&hl=en&sa=X&ved=0ah
UKEwjDkOuilNrhAhXix4UKHbW4CUMQ6AEILjAB
Kotur, B. (2013). Computer Concepts and C Programming (3rd ed.). Liverpool: Sapna Book House (P) Ltd.
Retrieved from https://books.google.co.ke/books?id=-
SCIAwAAQBAJ&dq=C+program&source=gbs_navlinks_s
Kulkarni, U. (2014). Notes on C Language 1st Edition: Theory And Programs Collection. Revisit C as on
2014 (3rd ed.). Chicago: Udayakumar.G.Kulkarni. Retrieved from
https://books.google.co.ke/books?id=4QYcBgAAQBAJ&dq=C+program&source=gbs_navlinks_s
Kurniawan, A. (2016). Smart Internet of Things Projects (2nd ed.). Hull: Packt Publishing Ltd. Retrieved
from https://books.google.co.ke/books?
id=foJcDgAAQBAJ&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
19
References
Arora, G. (2010). Industrial Automation and Robotics (2nd ed.). Liverpool: Laxmi Publications. Retrieved
from https://books.google.co.ke/books?
id=Y7rgCP7iC18C&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Bequette, W. (2012). Process Control: Modeling, Design, and Simulation (3rd ed.). Stoke: Prentice Hall
Professional. Retrieved from https://books.google.co.ke/books?
id=PdjHYm5e9d4C&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Berenguel, M. (2014). Comfort Control in Buildings (2nd ed.). Liverpool: Springer. Retrieved from
https://books.google.co.ke/books?
id=2AnvAwAAQBAJ&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_
s
Bhattacharya, B. (2011). Electrical Measurement and Control (WBSCTE) (3rd ed.). Stoke: Vikas Publishing
House.
CHOUDHURY, R. (2014). MODERN CONTROL ENGINEERING (2nd ed.). Chicago: PHI Learning Pvt. Ltd.
Retrieved from https://books.google.co.ke/books?
id=_l3JtXcL98IC&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Horner, J. (2011). Automotive Electrical Handbook (3rd ed.). Hull: Penguin. Retrieved from
https://books.google.co.ke/books?
id=osiJcknGcJAC&dq=heater+and+fan+working+principle&source=gbs_navlinks_s
Huang, H.-W. (2013). PIC Microcontroller: An Introduction to Software and Hardware Interfacing (3rd
ed.). Chicago: Cengage Learning. Retrieved from https://books.google.co.ke/books?
id=CB9GaAU1dwsC&dq=PIC+microcontroller&source=gbs_navlinks_s
Jusoh, A. S. (2010). Room Temperature Control System (3rd ed.). Stoke: Universiti Tun Hussein Onn
Malaysia. Retrieved from https://books.google.co.ke/books?
id=EOz1jwEACAAJ&dq=Automatic+room+temperature+control+system&hl=en&sa=X&ved=0ah
UKEwjDkOuilNrhAhXix4UKHbW4CUMQ6AEILjAB
Kotur, B. (2013). Computer Concepts and C Programming (3rd ed.). Liverpool: Sapna Book House (P) Ltd.
Retrieved from https://books.google.co.ke/books?id=-
SCIAwAAQBAJ&dq=C+program&source=gbs_navlinks_s
Kulkarni, U. (2014). Notes on C Language 1st Edition: Theory And Programs Collection. Revisit C as on
2014 (3rd ed.). Chicago: Udayakumar.G.Kulkarni. Retrieved from
https://books.google.co.ke/books?id=4QYcBgAAQBAJ&dq=C+program&source=gbs_navlinks_s
Kurniawan, A. (2016). Smart Internet of Things Projects (2nd ed.). Hull: Packt Publishing Ltd. Retrieved
from https://books.google.co.ke/books?
id=foJcDgAAQBAJ&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
CONTROL SYSTEM
20
Leigh, R. (2012). Temperature Measurement and Control (3rd ed.). Stoke: IET. Retrieved from
https://books.google.co.ke/books?
id=SWsa_PpJzbcC&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Letherman, M. (2014). Automatic Controls for Heating and Air Conditioning: Principles and Applications
(3rd ed.). Liverpool: Elsevier. Retrieved from https://books.google.co.ke/books?
id=mJWjBQAAQBAJ&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_
s
Lipovski, J. (2014). Introduction to Microcontrollers: Architecture, Programming, and Interfacing (3rd
ed.). Hull: Elsevier. Retrieved from https://books.google.co.ke/books?id=Gew2E-
svUcgC&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Malek, M. (2011). Heating Boiler Operator’s Manual: Maintenance, Operation, and Repair (3rd ed.).
Florida: McGraw Hill Professional. Retrieved from https://books.google.co.ke/books?
id=3jQHwzY-
gvwC&q=heater+and+fan+working+principle&dq=heater+and+fan+working+principle&hl=en&sa
=X&ved=0ahUKEwju4dbJodrhAhUHLBoKHaxuCSYQ6AEIMjAC
Matthews, S. (2012). Thermal Insulation: Materials and Systems (3rd ed.). Liverpool: ASTM International.
Retrieved from https://books.google.co.ke/books?
id=OQKgJEsq5YwC&dq=heater+and+fan+working+principle&source=gbs_navlinks_s
Nath, D. K. (2010). C Programming Essentials (3rd ed.). Stoke: Pearson Education India. Retrieved from
https://books.google.co.ke/books?id=Nj_48RXjnx8C&dq=C+program&source=gbs_navlinks_s
Passino, K. (2014). Biomimicry for Optimization, Control, and Automation (3rd ed.). Liverpool: Springer
Science & Business Media. Retrieved from https://books.google.co.ke/books?
id=3JBrUfVJhl4C&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Short, K. (2012). Microprocessors and Programmed Logic (3rd ed.). Chicago: Prentice-Hal. Retrieved from
https://books.google.co.ke/books?
id=OYdQAAAAMAAJ&q=Automatic+room+temperature+control+system&dq=Automatic+room+
temperature+control+system&hl=en&sa=X&ved=0ahUKEwjAl434lNrhAhUKExoKHXqwAyY4FBDo
AQhGMAY
Smith, J. (2014). Programming the PIC Microcontroller with MBASIC (4th ed.). Florida: Newnes. Retrieved
from https://books.google.co.ke/books?
id=G5jGKbsCNYcC&dq=PIC+microcontroller&source=gbs_navlinks_s
UnbehauenHeinz. (2011). Control Systems, Robotics and AutomatioN – Volume XVII: Fuzzy and
Intelligent Control Systems (4th ed.). Stoke: EOLSS Publications. Retrieved from
https://books.google.co.ke/books?
id=16B3DAAAQBAJ&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_
s
20
Leigh, R. (2012). Temperature Measurement and Control (3rd ed.). Stoke: IET. Retrieved from
https://books.google.co.ke/books?
id=SWsa_PpJzbcC&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Letherman, M. (2014). Automatic Controls for Heating and Air Conditioning: Principles and Applications
(3rd ed.). Liverpool: Elsevier. Retrieved from https://books.google.co.ke/books?
id=mJWjBQAAQBAJ&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_
s
Lipovski, J. (2014). Introduction to Microcontrollers: Architecture, Programming, and Interfacing (3rd
ed.). Hull: Elsevier. Retrieved from https://books.google.co.ke/books?id=Gew2E-
svUcgC&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Malek, M. (2011). Heating Boiler Operator’s Manual: Maintenance, Operation, and Repair (3rd ed.).
Florida: McGraw Hill Professional. Retrieved from https://books.google.co.ke/books?
id=3jQHwzY-
gvwC&q=heater+and+fan+working+principle&dq=heater+and+fan+working+principle&hl=en&sa
=X&ved=0ahUKEwju4dbJodrhAhUHLBoKHaxuCSYQ6AEIMjAC
Matthews, S. (2012). Thermal Insulation: Materials and Systems (3rd ed.). Liverpool: ASTM International.
Retrieved from https://books.google.co.ke/books?
id=OQKgJEsq5YwC&dq=heater+and+fan+working+principle&source=gbs_navlinks_s
Nath, D. K. (2010). C Programming Essentials (3rd ed.). Stoke: Pearson Education India. Retrieved from
https://books.google.co.ke/books?id=Nj_48RXjnx8C&dq=C+program&source=gbs_navlinks_s
Passino, K. (2014). Biomimicry for Optimization, Control, and Automation (3rd ed.). Liverpool: Springer
Science & Business Media. Retrieved from https://books.google.co.ke/books?
id=3JBrUfVJhl4C&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_s
Short, K. (2012). Microprocessors and Programmed Logic (3rd ed.). Chicago: Prentice-Hal. Retrieved from
https://books.google.co.ke/books?
id=OYdQAAAAMAAJ&q=Automatic+room+temperature+control+system&dq=Automatic+room+
temperature+control+system&hl=en&sa=X&ved=0ahUKEwjAl434lNrhAhUKExoKHXqwAyY4FBDo
AQhGMAY
Smith, J. (2014). Programming the PIC Microcontroller with MBASIC (4th ed.). Florida: Newnes. Retrieved
from https://books.google.co.ke/books?
id=G5jGKbsCNYcC&dq=PIC+microcontroller&source=gbs_navlinks_s
UnbehauenHeinz. (2011). Control Systems, Robotics and AutomatioN – Volume XVII: Fuzzy and
Intelligent Control Systems (4th ed.). Stoke: EOLSS Publications. Retrieved from
https://books.google.co.ke/books?
id=16B3DAAAQBAJ&dq=Automatic+room+temperature+control+system&source=gbs_navlinks_
s
CONTROL SYSTEM
21
Appendix
The formula which microcontroller will employ to help it take any action on actuators
21
Appendix
The formula which microcontroller will employ to help it take any action on actuators
CONTROL SYSTEM
22
Temp diff = Set temp – Actual temp
Figure 6: Showing the block diagram with the major parts of the system.
22
Temp diff = Set temp – Actual temp
Figure 6: Showing the block diagram with the major parts of the system.
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
CONTROL SYSTEM
23
Figure 7: Showing System flow chart.
PIC 16F877A PSEUDOCODE
Initialize ports and variables
23
Figure 7: Showing System flow chart.
PIC 16F877A PSEUDOCODE
Initialize ports and variables
CONTROL SYSTEM
24
Read Temp from the analogue sensor
Input Reference Temp
Display both the ACTUAL TEMP AND REFERENCE TEMP
COMPARE REF WITH ACTUAL
If Temp Ref is less than actual Temp, Switch ON Heater
If Temp Ref is greater than actual Temp, Switch ON Fan
Figure 8: Showing Circuit diagram of the Automatic Room temperature Control system showing
all components of the system.
24
Read Temp from the analogue sensor
Input Reference Temp
Display both the ACTUAL TEMP AND REFERENCE TEMP
COMPARE REF WITH ACTUAL
If Temp Ref is less than actual Temp, Switch ON Heater
If Temp Ref is greater than actual Temp, Switch ON Fan
Figure 8: Showing Circuit diagram of the Automatic Room temperature Control system showing
all components of the system.
CONTROL SYSTEM
25
Figure 9: Showing the settling time and stability of the system with a PID controller
25
Figure 9: Showing the settling time and stability of the system with a PID controller
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
CONTROL SYSTEM
26
Figure 10: Showing the settling time and stability of the system without a PID controller
26
Figure 10: Showing the settling time and stability of the system without a PID controller
1 out of 26
Related Documents
Your All-in-One AI-Powered Toolkit for Academic Success.
+13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
© 2024 | Zucol Services PVT LTD | All rights reserved.