1128-TJSEC Project Report (1) .Docx 71)
1128-TJSEC Project Report (1) .Docx 71)
A PROJECT REPORT
Submitted by
Suriya.L 112820104310
Saranraj.S 112820104017
Rahul Sanjay.A 112820104307
BACHELOR OF ENGINEERING
Suriya.L 112820104310
Saranraj.S 112820104017
Rahul Sanjay.A 112820104307
SIGNATURE SIGNATURE
Mrs.J.AGNES,M.E.,(CSE) Ms.V.PAVITHRA.,M.E.,(CSE)
"Project is the product out of experience that goes a long way in shaping up a person's calibre.
The experience and success one attains is not by oneself but with a group of kind hearts
behind.”First and foremost, we express our sincere thanks to honourable Founder and
Chairman"KALVI NERI KAVALAR" Shri. T.J.GOVINDARAJAN B.A., Managing
Director &Secretary Shri. T.J.ARUMUGAM., Vice Chairman Shri. T.J.DESAMUTHU.
We extend our deepest gratitude to our dynamic principal Dr.J.PRAKASH,ME.,PhD., for
his kind support during the course of the project.
This is the reference value or minimum value above or below which the control
unit is supposed to switch the fan or heater ON or OFF.
Temperature
Figure 3.3 Circuit diagram of the automated room temperature controller system.
List of tables
Table 2.1 Electrical characteristics of DHT
11 sensor Table 2.2 LCD pins ant their
connections
List of graphs
Graph 4.1 A graph of voltage (V) against Temperature (degree Celsius)
Table of Contents
DECLARATION i
DEDICATION ii
ACKNOWLEDGEMENT iii
ABSTRACT iv
DEFINITION OF TERMS v
List of figures v
Figure 2.1 DHT11 Temperature and Humidity sensor v
Figure 2.2 16 ×2 Liquid Crystal Display. v
Figure 2.3 Arduino uno rev 3 pins v
Figure 2.4 Arduino Uno rev 3 and pins description. v
Figure 2.5 A sketch of Arduino IDE window. v
Figure 3.1 A figure showing DHT11 sensor connection to Arduino v
Figure 3.2 A figure showing LCD connection to the control unit v
Figure 3.3 Circuit diagram of the automated room temperature controller system. v
List of tables vi
Table 2.1 Electrical characteristics of DHT 11 sensor vi
Table 2.2 LCD pins ant their connections vi
Table 3.1 A table showing all components connections to the control unit vi
Table 3.2 A table showing pins of the DHT 11 sensor and their connection vi
Table 4.1 A table showing output voltages vi
List of graphs vi
Graph 4.1 A graph of voltage (V) against Temperature (degree Celsius) vi
CHAPTER 1 1
2.0 BACKGROUND OF STUDY 1
2.1 PROBLEM STATEMENT 2
2.2 OBJECTIVES 2
2.2.1 MAIN OBJECTIVE 2
2.2.2 SPECIFIC OBJECTIVE 2
2.3 JUSTIFICATION AND SIGNIFICANCE 2
CHAPTER 2 3
2.0 LITERATURE REVIEW 3
2.1 Related work 3
2.2 Sensors 4
2.2.1 Contact Sensors 5
2.2.2 Non-contact sensors 5
2.3 DHT11 Temperature and Humidity sensor. 5
2.4 LCD (Liquid Crystal Display) 7
2.5 Microcontroller 8
2.5.1 Alf and Vegard’s RISC Processor (AVR) 8
2.5.2 8051 Microcontroller 8
2.5.3 Programmable Interface Controller (PIC) 8
2.5.1 Arduino 8
CHAPTER 3 13
3.0 Design and implementation 13
3.1 Hardware Design 13
3.1.1 Control unit 13
3.1.2 Sensing unit 14
3.1.3 Display unit 15
CHAPTER 4 17
4.0 Results and discussions 17
4.1 Results 17
GRAPH 18
4.2 DISCUSSION 18
CHAPTER 5 19
5.0 CONCLUSION 19
5.1RECCOMENDATIONS 19
APPENDICES 20
CODE 20
REFERENCES 23
INTRODUCTION
In modern days, many intelligent technologies are introduced in our environment.
In the smart electronic world microcontroller plays an important role in the
development of smart system. New technologies are developed day by day, in this
many technologies microcontrollers act as the heart of the system. These
microcontroller consist of single chip processor it is suitable for the automation and
control process and also it gives the accurate results. Now a days maintaining a
room temperature in home and offices has been an increasing problem. In order to
solve the problem the controlling of temperature becomes a solution for this arising
problem. Controlling of temperature is a process, in which the temperature of the
space or object is changed. This paper describes the maintaining of constant room
temperature and also enables the automatic cooling and heating system according to
the room temperature. The design and implementation of system was done by
arduino hardware and the program is written in arduino IDE and it displays the
temperature in LCD. According to the temperature change it enables the cooling and
heating system by AC and heater.
I. LITERATURE REVIEW
Joseph chuma and Bokamoso Basulti has proposed the system of design and
simulate the controlling of room temperature using pic microcontroller. This system
was mainly useful for the people who are disabled. In this system the temperature
was measured by the LM35 temperature sensor and the temperature displayed in a
LCD display. The temperature value senses the PIC16F877A controller.According
to the temperature changes the fan gets on or off. The temperature value is higher
than the reference value the fan gets on and the temperature value is lower than the
reference value the fan gets off. The reference value is entered by using keypad.
Relay is used for the switching purpose. Software proteus 8 is used for simulating
the result[1]. M.Kumaran,and
.Vikramhas proposed the system of automatic fan speed control using arduino
uno. The process of the system is controlled by the arduino uno controller. The
temperature is measured by the LM35 temperature sensor. Potentiometer is act as the
regulator is connected to the microcontroller. The fan speed is controlled by
thepotentiometer. Depending on the variation in the temperature the speed of the fan
is on or off. The fan speed is measured manually and the speed of the fan and
Minute(RPM).Temperature changes, and the RPM fan speed changes occurs[2]. Suraj
kausik and yuvraj singh chouhan has proposed a system on fan speed controlling system
using temperature and humidity sensor. The controller used in this system is arduino
microcontroller. According to the environmental temperature the fan speed is manually
controlled. The temperature and humidity is measured by DHT22 Sensor and displayed
in the LCD. The duty cycle of the temperature is already set as the reference
temperature. The values of the duty cycle changes the fan speed also varies on the
temperature change. The fan speed is controlled by the Pulse Width Modulation
(PWM). PWM controls the fan speed with respect to the sensed temperature [3]
E.Harshavardhan Goud and A.Harshika has proposed a temperature controlled system
using arduino. It is a real time implementation project. LM35 temperature sensor is used
to measure the temperature as the appropriate voltage. This voltage is given to the
arduino. The temperature value is displayed in the 16x2 LCD display in both Fahrenheit
and centigrade unit. The controller sends the data to the relay. Relay is act as the
switching device. The temperature become beyond the level of data set by the user the
relay gets triggered and activate. Than the relay switches the cooling device. In this way
it controls and monitors the temperature control [4]. Kunal singh and Moloy Dhar has
proposed
CHAPTER 1
BACKGROUND OF STUDY
The idea of an automated room temperature controller system goes back to the
eighteenth century. The idea was first secured in Norman School, Oklahoma by an
educator named Warren
S. Johnson. It was called Automatic temperature adjusting system for air
conditioner room.(Johnson et al., 2006).
Earlier Janitors were compelled to move in every classroom to check the
temperature of the classes, and after that, control the dampers in the S-basement in
like manner. Johnson introduced an approach that would end, or possibly limit the
classroom intrusions of the janitors. ( Johnson et al., 2006). The Automatic
Temperature Control System was to meet this very need which prompted Warren
S. Johnson stop teaching and began his electric administration organization that
specialized in programmed control systems. Warren S. Johnson initially built
temperature control framework which was used in temperature control in a room
by room in structures and homes.
By the mid twentieth century the Automatic Temperature Control System was
noticeable in enterprises and homes. A great number of automatic room heater
systems are now accessible in the market and this includes devices such as
AIRCONS ( Johnson et al., 2006).Weather changes at short intervals, and as a
result, the external conditions always have an influence on the indoor conditions.
The temperature control systems that are currently in use have limitations. One
of these limitations is that the user has to manually adjust the system every time
the external conditions change. This is cumbersome and not to be an effective
way of controlling the temperature of a room. Also, physically challenged people
face a lot of difficulties when operating temperature control system in their
houses because these systems require them to use physical contact or some hand
remote devices to operate them.
To reduce the need for human intervention, a system that works automatically is
handy. This research project presents an automated room temperature controller
system. This is an air conditioning system which monitors the room temperature
and controls the circulation of fresh air in the room without human intervention.
This design uses a microcontroller and a DHT11 temperature sensor to monitor
and control the temperature of a room. The user sets the system temperature to a
reference value (threshold value) that he or she wants to maintain in that room.
The temperature sensor detects the temperature and communicates with the
microcontroller. The microcontroller reads the temperature and compares it with
the set value. If the measured value is less than the set value, the heater is
automatically turned ON to warm up the temperature of the room until it returns
back to the set value and turns OFF. If the measured value is greater than the set
value, the fan is automatically turned ON to cool up the temperature of the room
until it returns back to the desired value and turns OFF. This work saw the design
of a simple, efficien
and cost-effective temperature control system. The system considered the
10 principles of sustainable and cost effective design( S. Ludwig and J.
Pritchard,2010).
2.0 PROBLEM STATEMENT
All living organisms want comfort and do away with all aspects that try to bring
discomfort to them. One of the common causes of discomfort is temperature
fluctuations. Human beings are the most peculiar species known for its problem-
solving skills and they have not been left behind in trying to solve these
temperature fluctuations. Most of the systems present however are manual hence
tedious to turn on and off. These expensive systems are also disadvantageous to
the physically challenged people who find it difficult to access switching
mechanisms. This makes it necessary to have an automated room temperature
controller system within the home that can be operated by both able-bodied and
physically challenged. The air conditioner minimizes discomforts due to varying
weather conditions. This system is efficient, cheaper, easier to use and cost
effective.
2.1 OBJECTIVES
In the past few years, the need for automation has increased and has been
widely applied to cooling and heating systems. There are plenty of commercial
temperature control systems which can be bought from manufacturers or inventors,
and also, quite a lot of work has been published in this area.
These designs are not easy to use in terms of programming and temperature
adjustment. The systems work on the benefits of using temperature adjustable
and fan temperature control
systems. These systems are either one time programmable or need analog
adjustment which is not accurate and more difficult to use.
More recent, real time based temperature control using Arduino was
published(Amoo et al,2014). The system uses Arduino based on ATMEL 89C51,
which is just one of the applications of Arduino. The system is not simple in terms
of operation as it is tedious to change the reference temperature. The system is
similar to the ones presented by the authors in the following systems;
o A precision temperature controller using embedded system.( Pimpalgaonkar et
al, 2011).
o Design and experiment about temperature control system of sealing
machine based on Fuzzy PID. (Cao et al, 2011).
Other works based on temperature control do exist in different areas and different
applications. Such work such as electric cable interference temperature monitoring
in power transmissions( Li et al, 2011), server room temperature measurement
using Bluetooth embedded system(Loup et al, 2011), control system for
communication room using wireless temperature monitoring system (Bing and
Wenyao, 2011) and temperature sensor and Zigbee based temperature
measurement(Pengfei et al, 2011)do exist. These systems have the same problem
of cost as well as the need for experts in re-programming.
This leaves a gap for the design of a system that is not only simple, cost effective,
efficient, easy to program and one that minimizes components so as to reduce the
size of the design. The automated room temperature controller system thus comes
in handy to provide solutions to the gaps that can be noted in the previous
systems. It is simple, cost effective and can be used to provide real-time air
conditioning for both home and commercial institutions.
Sensors
2) Non-Contact sensors.
Maximum 2.5mA
current supply
9
10 8-bit data pins D3
11 8-bit data pins D4
12 8-bit data pins D5
13 8-bit data pins D6
14 8-bit data pins D7
15 Backlight VCC (5V) A
2.3 Microcontroller
It can be defined as a self-contained system that incorporates a microprocessor for
sensing input from the real world and controlling devices based on the input. They
consist of a processor, memory and some peripherals. Microcontrollers are used in
digital applications for automation and as control units. They work according to a
program that is written in their processors. This programs are often written using
assembly languages but also high level languages such as C,C++ PASCAL and
Java(Mengistie, 2018).
Categories of microcontrollers
2.3.1 Alf and Vegard’s RISC Processor (AVR)
A Reduced Instruction Set Computer (RISC) is one whose Instruction Set
Architecture (ISA) allows it to have fewer cycles per instruction was developed in
1996 by Atmel corporation. They are loaded with an Integrated Development
Environment (IDE) and a C compiler. They contain output and input parts, timers,
interrupts, USART.12C interface channels and on chip analog comparators. They
are fabricated with Modified Harvard Architecture which allows what is contained
in the instruction memory to be assessed as if it were data. However, they are
difficult for beginners to work with (Barrett and Pack, 2006).
2.3.2 8051 Microcontroller
It was developed by Intel Corporation in 1980. It processes 8-bit data at a time and
their name results from the fact that they can all be programmed using 8051
assembly language(Mazidi, n.d.). Their main drawback is their language of
programming. The assembly language used is complex and difficult to use.
2.3.3 Programmable Interface Controller (PIC)
It was originally developed by General Instruments Microelectronics Division.
They are affordable and perform better than 8051 microcontrollers. They are better
off than 8051 microcontrollers because they have small low pic count devices,
however like 8051 microcontrollers they are difficult and cumbersome to program
hence cannot be recommended for a beginner.
Features:
Technical specifications
o Microcontroller- ATmega328
o Operating Voltage- 5V
o Supply Voltage (recommended)- 7-12V
o Maximum supply voltage (not recommended)- 20V
o Digital I/O Pins 14- (of which 6 provide PWM output)
o Analog Input Pins- 6
o DC Current per I/O Pin- 40 mA
o DC Current for 3.3V Pin- 50 mA
o Flash Memory- 32 KB (ATmega328) of which 0.5 KB used by bootloader
o SRAM 2 KB- (ATmega328)
o EEPROM- 1 KB (ATmega328)
o Clock Speed- 16 MHz
o LED_builtin- 13
o Length-68.6mm
o Width-53.4mm
o Weight-25g
Arduino pin functions
Figure 2.4.Diagrammatic view of Arduino Uno rev 3 and pins description
Table 3.1.A table showing all components connections to the control unit
Pin Connections
Digital pin 2 LCD D7 pin
Digital pin 3 LCD D6 pin
Digital pin 4 LCD D5 pin
Digital pin 5 LCD D4 pin
Digital pin 11 LCD Enable
Digital pin 12 LCD RS pin
Digital pin 1 Fan
Digital pin 6 Heater
Analog Pin A0 Connection to Temperature Sensor
VCC 5VDC
GND Ground
Sensing unit
This was achieved by DHT 11 which was mounted on the board. The pins of the
DHT11 were connected as follows.
Table 3.2.A table showing pins of the DHT 11 sensor and their connection
PIN CONNECTION
VCC 5V
DATA PIN A0
GROUND GROUND
The figure below shows the schematic diagram of DHT11 sensor connection to
control unit.
5.0 Recommendations
For future improvement the following recommendations are made;
o A GSM module can be integrated with the system so that one can be able to
operate their temperature control system using a digital signal such as an
SMS.
o A dial pad can also be integrated and used to key in the reference
temperature for easy changes in the threshold value without necessarily
interfacing with a computer.
o A relay circuit can be incorporated for switching purposes when an
external power supply needs to be used.
.
APPENDICES
CODE
/*
#############################################################
########### SCHOOL OF SCIENCE AND INFORMATION SCIENCES
*/
#include
<LiquidCrystal.h> int
DHT11=A0;
int
Heater=6;
int Fan=1;
int Threshold=27;
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 =
3, d7 = 2; LiquidCrystal lcd(rs, en, d4, d5, d6,
d7);
void setup() {
pinMode(Heater,OUTP
UT);
pinMode(DHT11,INPU
T);
pinMode(Fan,OUTP
UT); lcd.begin(16, 2);
Serial.begin(9600);
void loop() {
sensorReading=analogRead(DH
T11); if
(sensorReading<Threshold){
pinMode(Heater,HIGH);
pinMode(Fan,LOW);
Serial.println("COLD");
Serial.println(analogRead(
A0)); lcd.clear();
lcd.setCursor(0,0);
lcd.print(sensorReadin
g); lcd.setCursor(5,0);
lcd.print("HEATER
ON");
lcd.setCursor(0,2);
lcd.print("FAN OFF");
}
else
{
pinMode(Heater,LO
W);
pinMode(Fan,HIGH
);
Serial.println("HOT
");
Serial.println(analogRead(
A0)); lcd.clear();
lcd.setCursor(0,0);
lcd.print(sensorReading
); lcd.setCursor(0,1);
lcd.print("HEATER
OFF");
lcd.setCursor(0,2);
lcd.print("FAN ON");
delay(A0);
}
}
Sample screenshots
REFERENCES
Amoo, A.L., Guda, A.H., Sambo, H.A. & Soh, T.L.G, (2014). Design and
implementation Of a room temperature control system: microcontroller-
based, in: 2014 IEEE
Student Conference on Research and Development, Batu Ferringhi,
ccccccccccpp. 1-6.
Loup, T.O., Torres, M., Milian, F.M. & Ambrosio, P.E. (2011) Bluetooth
embedded system For room-safe temperature monitoring, Latin Am. Trans.
IEEE (Rev. IEEE
Am. Lat.) 9 (6) 911-915.