Professional Documents
Culture Documents
ESTD 1990
PRIYADARSHINI
COLLEGE OF COMPUTER SCIENCES
APPROVED BY
ALL INDIA COUNCIL FOR TECHNICAL EDUCATION
UNDER THE
GUIDANCE
MR NASEEM
RAO
(H.O.D,EC
DEPARTMENT)
DECLARATION
SIGN-..
.
SIGN-
Name:Dhananjay Varshney
Name:Gaurav Upadhyay
Rollno:0909231035
Rollno:0909231039
SIGN-.
Name:Swati Verma
Name:Neelam
Rollno:0909231105
Rollno:0909231063
SIGN-
ACKNOWLEDGMENT
In order to achieve something concrete, there is a need
of guidance, inspiration and help. We express our dense
sense of gratitude to all those who contributed to this
endeavour in any form.
We take the privilege to express our thankfulness and
regards to
Mr naseem rao, (h.o.d,ece), PRIYADARSHINI COLLEGE
OF COMPUTER SCIENCES, for permitting and guiding us
at every step of our project and giving us the
opportunityto freely interact and discuss the minor
details of the project so that we can accomplish it in the
form of a compiled report.
DHANANJAY VARHSNEY
GAURAV UPADHYAY
SWATI
VERMA
NEELAM
(ELECTRONICS AND
COMM. ENG.)
INDEX
ABSTRACT.PG-7
INTRODUCTION...PG-8
BLOCK DIAGRAMPG-9
AT89C528-bit Microcontroller with 8K Bytes
Flash
.PG-11
OPERATIONAL AMPLIFIER
AND
INTRODUCTION.............................................P
G-26
ELECTRONIC
THERMOSTAT..PG-31
TRANSISTOR
PG-36
TRANSFORMER.
.PG-41
CAPACITORS
.PG-44
DIODE
PG-45
POWER
SUPPLY..PG-48
RELAY
.....PG-57
RESISTANCE
....PG-61
UNDER/OVER VOLTAGE PROTECTION FOR
DEVICES
.PG-64
MAKING PRINTED CIRCUIT BOARD (P.C.B.)
PG-66
SOFTWARE
PROGRAM,,,,,.PG-70
CERTIFICATE
ABSTRACT
The project proposes an innovative design to develop a system
based on
AT89c52 microcontroller which is used to monitor voltage,
current and
10
INTRODUCTION
The proposed project consist of four options to choose from i.e.
to detect (1) Over voltage, (2) Over temperature, (3) Over
current and (4) Power Failure warning system. Whenever any of
the function create indication,
The controller gets input and provide output to drive relay for
buzzer or any other alarming device.
11
the present design but also exploit these principles for evolving
your own design with added functions/features.
BLOCK DIAGRAM
12
13
14
AT89C52
8-bit Microcontroller with 8K Bytes Flash
Features
of
In-System
Reprogrammable
Flash
Description
15
16
17
18
modes. The Idle Mode stops the CPU while allowing the
RAM, timer/counters, serial port, and interrupt system
to continue functioning. The Power-down mode saves
the RAM contents but freezes the oscillator, disabling all
other chip functions until the next hardware reset.
Pin Description
VCC
Supply voltage.
GND
Ground.
Port 0
19
Port 1
Port 2
20
Port 3
21
RST
ALE/PROG
Address Latch Enable is an output pulse for latching the
low byte of the address during accesses to external
memory.
22
PSEN
Program Store Enable is the read strobe to external
program memory. When the AT89C52 is executing code
from external program memory, PSEN is activated twice
each machine cycle, except that two PSEN activations
are skipped during each access to external data
memory.
EA/VPP
External Access Enable. EA must be strapped to GND in
order to enable the device to fetch code from external
program memory locations starting at 0000H up to
FFFFH.
23
XTAL1
Input to the inverting oscillator amplifier and input to
the internal clock operating circuit.
XTAL2
Output from the inverting oscillator amplifier.
Oscillator Characteristics
XTAL1 and XTAL2 are the input and output,
respectively, of an inverting amplifier that can be
configured for use as an on-chip oscillator, as shown in
Figure 7. Either a quartz crystal or ceramic resonator
may be used. To drive the device from an external clock
source, XTAL2 should be left unconnected while XTAL1
is driven, as shown in Figure 8. There are no
24
Idle Mode
In idle mode, the CPU puts itself to sleep while all
the onchip peripherals remain active. The mode is
invoked by software. The content of the on-chip RAM
and all the special functions registers remain
unchanged during this mode. The idle mode can be
terminated by any enabled interrupt or by a hardware
reset.
25
Power-down Mode
In the power-down mode, the oscillator is stopped,
and the instruction that invokes power-down is the
last instruction executed. The on-chip RAM and
Special Function Registers retain their values until the
power-down mode is terminated. The only exit from
power-down is a hardware reset. Reset redefines the
SFRs but does not change the on-chip RAM. The reset
should not be activated before VCC is restored to its
normal operating level and must be held active long
enough to allow the oscillator to restart and stabilize.
26
27
The AT89C52 is shipped with either the highvoltage or low-voltage programming mode enabled.
The respective top-side marking and device signature
codes are listed in the following table.
The AT89C52 code memory array is programmed bytebybyte in either programming mode. To program any
nonblank byte in the on-chip Flash Memory, the entire
memory must be erased using the Chip Erase Mode.
4. Raise EA/VPP to
programming mode.
12V
for
the
28
high-voltage
29
Program Verify If lock bits LB1 and LB2 have not been
programmed, the programmed code data can be read
back via the address and data lines for verification. The
lock bits cannot be verified directly. Verification of the
lock bits is achieved by observing that their features
are enabled.
30
Programming Interface
OPERATIONAL AMPLIFIER
AN INTRODUCTION
An op amp is a high-gain, direct-coupled differential
linear amplifier whose response characteristics are
31
32
33
OP-AMP SPECIFICATIONS
Supply voltage
Internal power dissipation
18 V
500 mW
34
30 V
Operating temperature
0 to 70 C
800nA
Input resistance
0.3 to 2 M
13 V, typical
75
25 mA
Supply current
Power consumption
85 mW, typical
15,000
13 V, typical
35
36
ELECTRONIC THERMOSTAT
37
COMPONENTS USED
1. IC1..................LM741
2. Q1...................BC108 Transistor
3. R1...................4.7k
4. R2...................1.2k
5. R3...................10k
7. C1...................1000
8. C2...................2.2
9. C3...................4.7
11. D3...................IN4148
38
CIRCUIT DIAGRAM
39
40
41
TRANSISTOR
NPN Transistors:
42
PNP Transistor:
It also does exactly same thing as above except that it
has a negative voltage on its collector and a positive
voltage on its emitter.
43
44
45
46
TRANSFORMER
PRINCIPLE OF THE TRANSFORMER:Two coils are wound over a Core such that they are
47
MINIATURE TRANSFORMER
48
49
50
CAPACITORS
It is an electronic component
whose function is to accumulate charges and then
release it.
To understand the
concept of capacitance, consider a pair of metal plates
which all are placed near to each other without
touching. If a battery is connected to these plates the
positive pole to one and the negative pole to the other,
electrons from the battery will be attracted from the
plate connected to the positive terminal of the battery.
If the battery is then disconnected, one plate will be left
with an excess of electrons, the other with a shortage,
and a potential or voltage difference will exists between
them. These plates will be acting as capacitors.
Capacitors are of two types: - (1) fixed type like
ceramic, polyester, electrolytic capacitors-these names
refer to the material they are made of aluminium foil.
51
DIODE
The simplest semiconductor device is made up of a
sandwich of P-type semiconducting material, with
contacts provided to connect the p-and n-type layers to
an external circuit. This is a junction Diode. If the
positive terminal of the battery is connected to the ptype material (cathode) and the negative terminal to
the N-type material (Anode), a large current will flow.
This is called forward current or forward biased.
52
53
1. Zener diode.
2. Photo diode.
3. Light Emitting diode.
1.
ZENER DIODE:-
2.
PHOTO DIODE:-
A photo diode is a junction diode made from photosensitive semiconductor or material. In such a diode,
there is a provision to allow the light of suitable
frequency to fall on the p-n junction. It is reverse
biased, but the voltage applied is less than the break
down voltage. As the intensity of incident light is
54
3.
POWER SUPPLY
In alternating current the electron flow is alternate, i.e.
the electron flow increases to maximum in one
direction, decreases back to zero. It then increases in
the other direction and then decreases to zero again.
Direct current flows in one direction only. Rectifier
converts alternating current to flow in one direction
only. When the anode of the diode is positive with
respect to its cathode, it is forward biased, allowing
current to flow. But when its anode is negative with
respect to the cathode, it is reverse biased and does
55
56
57
RECTIFICATION
Rectification is a process of rendering an alternating
current or voltage into a unidirectional one. The
component used for rectification is called Rectifier. A
rectifier permits current to flow only during the positive
half cycles of the applied AC voltage by eliminating the
negative half cycles or alternations of the applied AC
voltage. Thus pulsating DC is obtained. To obtain
smooth DC power, additional filter circuits are required.
58
59
BRIDGE RECTIFIER
A more widely used full-wave rectifier circuit is the
bridge rectifier. It requires four diodes instead of two,
but avoids the need for a centre-tapped transformer.
60
61
62
CIRCUIT DIAGRAM
63
64
RELAY
Relay
is
a
common,
simple
application
of
electromagnetism. It uses an electromagnet made from
an iron rod wound with hundreds of fine copper wire.
When electricity is applied to the wire, the rod becomes
magnetic. A movable contact arm above the rod is then
pulled toward the rod until it closes a switch contact.
When the electricity is removed, a small spring pulls
the contract arm away from the rod until it closes a
second switch contact. By means of relay, a current
circuit can be broken or closed in one circuit as a result
of a current in another circuit.
65
66
67
RESISTANCE
68
CODE
69
Black----------------------------------0
Brown---------------------------------1
Red------------------------------------2
Orange-------------------------------3
Yellow---------------------------------4
Green---------------------------------5
Blue-----------------------------------6
Violet----------------------------------7
Grey-----------------------------------8
White---------------------------------9
The first rings give the first digit. The second ring
gives the second digit. The third ring indicates the
70
71
UNDER/OVER VOLTAGE
PROTECTION FOR DEVICES
72
73
74
MATERIAL REQUIRED
The apparatus needs for making a P.C.B. is :*
Plastic Tray
PROCEDURE
The first and foremost in the process is to clean all dirt
from copper sheet with say spirit or trichloro ethylene
to remove traces grease or oil etc. and then wash the
board under running tap water. Dry the surface with
forced warm air or just leave the board to dry naturally
for some time.
such
as
thickness
of
lines/
holes
75
PRECAUTION
1.
76
2.
3.
4.
the
unshaded
parts
on
the
back.
Thus
leads
of
electronic
77
has
the
following
steps
(opted
professionally):
copper.
*
78
SOFTWARE PROGRAM
Written
in
language,
the
software
program
79
PROGRAM COMPILATION
After installing keil C51 in your system, you can compile
C program and generate hex file in either DOS or
Windows mode. Every time you create a new program
in keil C51 version 7.10, you must create a project file
80
you
have
C:\Window\Desktop\
kept
Embed.c
Embedded
folder.
under
Open
81
82
83
84
85
86
87
88
89