Sei sulla pagina 1di 23

A

MAJOR PROJECT
ON

WIRELESS TEMPRATURE CONROL FAN

SESSION:2013
HEAD OF DEPARTMENT (ECE)

Guided by Presented by
Mr. SAURABH MITRA AMIT KUMAR DUBEY
KAMESHWAR PRASAD DIVYA
RAJKUMAR VISHWAKARMA

4th year, 8th sem (ECE)

Department of Electronics & Communication Engineering


Dr. C.V. RAMAN INSTITUTE OF SCIENCE & TECHNOLOGY
KARGI ROAD- KOTA, BILASPUR(495113)

INDEX
1INTRODUCTION:-

 1.1PRINCIPLE OF OPERATION
 1.2BLOCK DIAGRAM
 1.3SYSTEM FEATURES
 1.4EQUIPMENTS

2DESCRIPTION OF THE PROJECT



2.1BLOCK DIAGRAM EXPLANATION

2.2SECHEMATIC DAIGRAM

3HARDWARE DISCRIPTION

3.1DIGITAL THERMOMETER AND THERMOSTAT(DS1621)

3.2POWER SUPPLY

3.3LIQUID CRYSTAL DISPLAY (LCD)

3.4MICROCONTROLLER

3.5RESISTORS

3.6CAPACITOR

3.7TRANSISTOR

3.8TRANSFORMER

4SOFTWARE

4.1SOURCE CODE

5CONCLUSION




1. Introduction

Our microcontroller based project is based on making a system that turns


the fan on or off, by sensing the temperature of the environment. The
alarming temperature of the environment can be set by the user. This
system is based on feedback control.
Feedback describes the situation when output from an event or
phenomenon in the past will influence the same event/phenomenon in
the present or future. When an event is part of a chain of cause and affects
that forms a circuit or loop, then the event is said to "feedback" into itself.

Similarly our system turns on the fan or turns it off, based on the past
information that in this case is the temperature measured. And
consequently as the temperature is changed due to the fan, the system
will compare it with the threshold set by the user, and influence the
output, i.e. the fan. Hence making it a feedback loop.
1.1 PRINCIPLE OF OPERATION

We want to do with the microcontroller is that, we will


input the threshold temperature using a keypad, and
the MICROCONTROLLER will compare it with the
temperature measure with the sensor. If the threshold
temperature is more, the fan would turn on, otherwise
it would remain off.
1.2 BLOCK DIAGRAM
1.3 System Features
Required Skills:

Understanding of Micro controller


Embedded C Programming
Understanding Interfacing Techniques
Knowledge on Sensors
Design and Fabrication of PCB

Project phase: -

Schematic design and drawing of PCB


Design and Interfacing Circuits for Micro controller
Preparation of PCB
Assembling and Testing of Interfacing Circuits
Code for the Application
Debugging and Testing
Project Report
1.4 EQUIPMENTS: -
Printed Circuit Board
Micro controller  AT89C52
5V, 12V Dc Power supply
Relay
Thermostat
LCD  Optrax, 2 line by 16 characters
Lamp
Fan
2. DESCRIPTION OF THE PROJECT: -

2.1 BLOCK DIAGRAM EXPLANATION: -

THERMOSTAT :-
In this project we are making use DS 1621
thermostat, it’s a non-contact digital type temperature
transducer suitable for measuring room temperature.
LCD DISPLAY :-
LCD requires an external or internal light source. We are
making use of LCD in our project to display the PIR mode
and room temperature
ENCODER:-
They are capable of encoding information which consists
of N address bits and 12_N
data bits. Each address/data input can be set to one of the
two logic states.
2.2 SCHEMATIC DIAGRAM: -
TRANSMITTER:-
C3
10u
C1
5v

33p
X1 R6
12mhz
C2
10k
R5
33p 10k
U2
19 39
XTAL1 P0.0/AD0
38
P0.1/AD1
37
P0.2/AD2
18 36
XTAL2 P0.3/AD3
35
P0.4/AD4
34
P0.5/AD5
33
P0.6/AD6
9 32
RST P0.7/AD7
2 3
SCL TOUT
21 1
P2.0/A8 SDA
22 7
P2.1/A9 A0
23 6
P2.2/A10 A1
29 AT89C52 24 5 0.000000
PSEN P2.3/A11 A2
R2 30
ALE P2.4/A12
25
10k 31 26
EA P2.5/A13
27
P2.6/A14
28
P2.7/A15
R7
1 10
P1.0/T2 P3.0/RXD
2 11 10k
P1.1/T2EX P3.1/TXD
3 12 R8
P1.2 P3.2/INT0
4 13
P1.3 P3.3/INT1
5 14 10k
P1.4 P3.4/T0
6 15 R9
P1.5 P3.5/T1
7 16

ANTINA
P1.6 P3.6/WR
8 17 10k
P1.7 P3.7/RD
5V

R10
GND 10k

1 18
AD0 VCC
2 17
AD1 DOUT
3 R3 1 4
AD3 GND ANT
4 16 2
AD4 X1 DATA IN
5 15 3
6
AD5 HT12E X2
13
10k VCC
AD6 D3
7 12
AD7 D2
8 11
AD8 D1
9 10
GND D0
RECEIVER:-
RL1
R1 OMIH-SH-105D
Q1
C3 10k BC547
10u
C1 R4
5v 12v

10k
33p
X1 R6 RL2
12mhz OMIH-SH-105D
C2
10k
R5
33p 10k
U2 Q2
BC547
19 39
XTAL1 P0.0/AD0
38
P0.1/AD1
37
P0.2/AD2
18 36
XTAL2 P0.3/AD3
P0.4/AD4
35 RL3
34 R3 OMIH-SH-105D
P0.5/AD5
LCD1 P0.6/AD6
33 Q3
16x2 9 32
RST P0.7/AD7 10k BC547
21 R7
P2.0/A8 12v
22
P2.1/A9
23
P2.2/A10 10k
29 AT89C52 24
PSEN P2.3/A11
R2 30
ALE P2.4/A12
25 RL4
VDD
VSS

VEE

31 26
RW
RS

D0
D1
D2
D3
D4
D5
D6
D7

10k EA P2.5/A13 OMIH-SH-105D


E

27
P2.6/A14
28
P2.7/A15
1
2
3

4
5
6

7
8
9
10
11
12
13
14

1 10
P1.0/T2 P3.0/RXD
2
P1.1/T2EX P3.1/TXD
11 Q4
3 12 BC547
P1.2 P3.2/INT0
4 13
P1.3 P3.3/INT1
5 14
P1.4 P3.4/T0
6 15
P1.5 P3.5/T1
7 16
P1.6 P3.6/WR
8 17
P1.7 P3.7/RD

R8 12v

GND 10k

RL5
OMIH-SH-105D
2 3
SCL TOUT
1
SDA
7
A0
6
A1
5
A2
0.000000 Q5
BC547
HARDWARE DESCRIPTION
3.1 Digital Thermometer and Thermostat (DS1621): -
FEATURES: -
 
.Temperature measurements require no external components
.Measures temperatures from -55°C to +125°C in 0.5°C increments. Fahrenheit equivalent is -67°F
to 257°F in 0.9°F increments
.Temperature is read as a 9-bit value (2-byte transfer)
.Wide power supply range (2.7V to 5.5V)
.Converts temperature to digital word in less than 1 second
.Thermostatic settings are user definable and nonvolatile
.Data is read from/written via a 2-wire serial interface (open drain I/O lines)
.Applications include thermostatic controls, industrial systems, consumer
.products, Thermometers, or any thermal sensitive system
.8-pin DIP or SO package (150mil and 208mil)

DESCRIPTION:
 

The DS1621 Digital Thermometer and Thermostat provides 9-bit temperature readings,
which indicate the temperature of the device. The thermal alarm output, TOUT, is active
when the temperature of the device exceeds a user-defined temperature TH:- The output
remains active until the temperature drops
drops below user defined temperature TL, allowing for any hysteresis necessary.
3.2 POWER SUPPLY
Power supply block consists of following units:
* Step down transformer.
* Bridge rectifier circuit.
* Input filter.
* Voltage regulators.
* Output filter.
* Indicator
3.3 LIQUID CRYSTAL DISPLAY(LCD):-
The liquid crystals can be
manipulated through an applied
electric voltage so that light is
allowed to pass or is blocked. By
carefully controlling where and
what wavelength (color) of light is
allowed to pass, the LCD monitor is
able to display images. A backlight
provides LCD monitor’s brightness.
3.4 MICRO CONTROLLER: -
Microcontrollers these days are silent workers in many
apparatus, ranging from the washing machine to the
video recorder. Nearly all of these controllers are mask
programmed and therefore are of very little use for
applications that require the programs to be changed
during the course of execution.
 
Even if the programs could be altered, the
information necessary to do so an instruction set, an
assembler language and description for the basic
hardware is either very difficult to obtain or are in
adequate when it came to the issue of accessibility.
A marked exception to the above category is the
AT89C52 micro controller belonging to the ATMEL
family. This microcontroller has features that seem to
make it more accessible than any other single chip
microcontroller with a reasonable price tag.
PIN DIAGRAM:-
3.6 RESISTORS: -
A Resistor is a heat-dissipating element and
in the electronic circuits it is mostly used
for either controlling the current in the
circuit or developing a voltage drop across
it, which could be utilized for many
applications. There are various types of
resistors, which can be classified according
to a number of factors depending upon:
1. Material used for fabrication
2.Wattage and physical size
3.Intended application
4.Ambient temperature rating
5.Cost
3.7 CAPACITORS:-
Design of capacitor depends on the proper dielectric
material with particular type of application. The
dielectric material used for capacitors may be grouped in
various classes like Mica, Glass, air, ceramic, paper,
Aluminum, electrolyte etc. The value of capacitance
never remains constant. It changes with temperature,
frequency and aging
3.8 TRANSISTOR: -
A transistor consists of two junctions formed by sandwiching either p-
type or n-type semiconductor between a pair of opposite types.
Accordingly, there are two types of transistors namely: -
(1) n-p-n transistor (2) p-n-p transistor

(NPN) (PNP)
An n-p-n transistor is composed of two n-type semiconductors
separated by a thin section of p type. However a p-n-p transistor is
formed by two p sections separated by a thin section of n-type.
3.9 TRANSFORMER:-
The transformer is a static electro-
magnetic device that transforms one
alternating voltage (current) into another
voltage (current). However, power
remains the some during the
transformation. Transformers play a
major role in the transmission and
distribution of ac power
RB0
4.SOFTWARE
INCLUDE REG_51.PDF
 
EQU 000H ; Select Register Bank 0
RB1
  4.1 SOURCE CODE
EQU 008H ; Select Register Bank 1 ...poke to PSW to use

;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; PORT DECLERATION
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
DS1621W EQU 90H ; SLAVE ADDRESS 1001 000 + 0 TO WRITE
DS1621R EQU 91H ; SLAVE ADDRESS 1001 000 + 1 TO READ
 
DB0 EQU P1.1
DB1 EQU P1.0
DB2 EQU P3.7
DB3 EQU P3.1
 
 
SDA EQU P3.4
SCL EQU P3.3
 
BUZZER EQU P3.0
 
HEART EQU P3.5
 
 
; ***LCD CONTROL***
LCD_RS EQU P1.7 ;LCD REGISTER SELECT LINE
LCD_E EQU P1.6 ;LCD ENABLE LINE
LCD_DB4 EQU P1.5 ;PORT 1 IS USED FOR DATA
LCD_DB5 EQU P1.4 ;USED FOR DATA
LCD_DB6 EQU P1.3 ;FOR DATA
LCD_DB7 EQU P1.2 ;FOR DATA
 
Intelligent Energy Saving System is not limited for any
particular application, it can be used anywhere in a process
5.CONCLUSION :-

industries with little modifications in software coding


according to the requirements. This concept not only
ensures that our work will be usable in the future but also
provides the flexibility to adapt and extend, as needs change.
In this project work we have studied and
implemented a complete working model using a PIC
microcontroller. The programming and interfering of PIC
microcontroller has been mastered during the
implementation. This work includes the study of energy
saving system in many applications
FUTURE DIRECTIONS:-
In our project we connected all the sensors to micro
controller with the wireless. This can be developed with
GSM operates in wireless such that we can place different
sensors in different places. This sensor will activate the
micro controller with the signals instead of using wires.
This system can also be applicable to various
loads like pressure, force and etc. by increasing the
number of ports of the micro controller.
THANK
YOU

Potrebbero piacerti anche