Professional Documents
Culture Documents
CHAPTER 1
INTRODUCTION
So if there is a human intervention in the rig area, indication is given to the control room
through pc display and the alert to human as well as in control room using buzzer.
The rig area consists of 4 pumps, 2 main pumps and 2 sub pumps which are located in the
hydraulic section. These pumps provide constant pressure and temperature to the test rig area for
testing aircrafts.
If the pressure and the temperature value crosses the critical values it will damage the test
rig equipment and as well as aircraft also. We can also update the pressure and the temperature
values when required.
Page 1
So in case of any variations in the temperature and the pressure indication is given by pc
display and alert is given by buzzer in the control room.
Page 2
CHAPTER 3
BLOCK DIAGRAM
Page 3
RF
RECIEVER
MICROCONTROLLER
AT89C51
LCD
DISPLAY
BUFFER DRIVER:The buffer is used to match the impedance and the driver consists of the amplifier stage
with the Darlington pair configuration.
RELAY:The relay we use here is the electromechanical relay which is used to connect to the
parallel port. The relay drives the parallel port.
Page 4
TEMPERATURE SENSOR:The temperature sensor we use here is DR-25. This sensor acts as a negative temperature coefficient, as the temperature increases the resistance decreases. The output of this sensor is fed to the
comparator stage.
COMPARATOR:This stage is used for comparison purpose. In this stage we set one reference value and then
compare other to inputs with this value. Then the output of the comparator is given to the
optocoupler stage. When there is a variation in the temp/illumination in the thermistor, it measures
impedance of the sensor smartly and decides which gate to open. The circuit diagram shows that
three operational amplifiers compare the drop across the test leads to a fixed voltage and indicate
which of the two is highest by switching their output to the positive supply level or ground.
OPTO-COUPLER:The Opto-coupler IC has a photo diode which illuminates whenever input signal
appears. Then it couples the signal to the driver stage. Then in the driver stage the impedance is
matched and sent to the relay and further to the computer for displaying purpose.
POTENTIOMETER:The potentiometer is the physical device where we have a provision to vary the
resistance. First we set one threshold value for this upon varying the potentiometer below and above
the threshold value the pressure can be detected. Then the varying signal is given to the comparator
section to compare and then it is given to the opto-coupler stage and then to relay and finally to
driver and relay.
PARALLEL PORT AND MONITOR:The low signals from the relay are given to the parallel port. The parallel port is used to
connect between our hardware circuit and the computer. In monitor using any of the software we
display the temperature values, pressure values and can view the persons entering in the zone. The
monitor is kept in the control room for the display purpose.
Page 5
CHAPTER 3
HARDWARE DESCRIPTION
IC1
780
5
D
1
1
230A
C
+12V
9
V
C
1
C
2
C
3
+5V
C
4
D
2
1
Page 6
little higher rating transformer than the required one. The reason for this is, for proper working of the
regulator IC (say KIA 7805) it needs at least 2.5V more than the expected output voltage
2. Rectifier stage: Then the step-downed Alternating Current is converted into Direct Current. This
rectification is achieved by using passive components such as diodes. If the power supply is
designed for low voltage/current drawing loads/circuits (say +5V), it is sufficient to employ fullwave rectifier with centre-tap transformer as a power source. While choosing the diodes the PIV
rating is taken into consideration.
3. Filter stage: But this rectified output contains some percentage of superimposed a.c. ripples. So
to filter these a.c. components filter stage is built around the rectifier stage. The cheap, reliable,
simple and effective filtering for low current drawing loads (say upto 50 mA) is done by using shunt
capacitors. This electrolytic capacitor has polarities, take care while connecting the circuit.
4. Voltage Regulation: The filtered d.c. output is not stable. It varies in accordance with the
fluctuations in mains supply or varying load current. This variation of load current is observed due to
voltage drop in transformer windings, rectifier and filter circuit. These variations in d.c. output
voltage may cause inaccurate or erratic operation or even malfunctioning of many electronic circuits.
For example, the circuit boards which are implanted by CMOS or TTL ICs.
KIA
78xx
Series
1 2
Page 7
The stabilization of d.c. output is achieved by using the three terminal voltage regulator IC.
This regulator IC comes in two flavors: 78xx for positive voltage output and 79xx for negative
voltage output. For example 7805 gives +5V output and 7905 gives -5V stabilized output. These
regulator ICs have in-built short-circuit protection and auto-thermal cutout provisions. If the load
current is very high the IC needs heat sink to dissipate the internally generated power.
Circuit Description:
A d.c. power supply which maintains the output voltage constant irrespective of a.c. mains
fluctuations or load variations is known as regulated d.c. power supply. It is also referred as fullwave regulated power supply as it uses four diodes in bridge fashion with the transformer. This
laboratory power supply offers excellent line and load regulation and output voltages of +5V & +12
V at output currents up to one amp.
2. Rectifier Stage: The two diodes D1 & D2 are connected across the secondary winding of the
transformer as a full-wave rectifier. During the positive half-cycle of secondary voltage, the end A of
the secondary winding becomes positive and end B negative. This makes the diode D1 forward
biased and diode D2 reverse biased. Therefore diode D1 conducts while diode D2 does not. During
the negative half-cycle, end A of the secondary winding becomes negative and end B positive.
Therefore diode D2 conducts while diode D1 does not. Note that current across the centre tap
terminal is in the same direction for both half-cycles of input a.c. voltage. Therefore, pulsating d.c. is
obtained at point C with respect to Ground.
3. Filter Stage: Here Capacitor C1 is used for filtering purpose and connected across the rectifier
output. It filters the a.c. components present in the rectified d.c. and gives steady d.c. voltage. As the
rectifier voltage increases, it charges the capacitor and also supplies current to the load. When
capacitor is charged to the peak value of the rectifier voltage, rectifier voltage starts to decrease. As
DEPT OF E&C, APSCE
Page 8
the next voltage peak immediately recharges the capacitor, the discharge period is of very small
duration. Due to this continuous charge-discharge-recharge cycle very little ripple is observed in the
filtered output. Moreover, output voltage is higher as it remains substantially near the peak value of
rectifier output voltage. This phenomenon is also explained in other form as: the shunt capacitor
offers a low reactance path to the a.c. components of current and open circuit to d.c. component.
During positive half cycle the capacitor stores energy in the form of electrostatic field. During
negative half cycle, the filter capacitor releases stored energy to the load.
4. Voltage Regulation Stage: Across the point D and Ground there is rectified and filtered d.c. In
the present circuit KIA 7812 three terminal voltage regulator IC is used to get +12V and KIA 7805
voltage regulator IC is used to get +5V regulated d.c. output. In the three terminals, pin 1 is input
i.e., rectified & filtered d.c. is connected to this pin. Pin 2 is common pin and is grounded. The pin 3
gives the stabilized d.c. output to the load. The circuit shows two more decoupling capacitors C2 &
C3, which provides ground path to the high frequency noise signals. Across the point E and F
with respect to ground +5V & +12V stabilized or regulated d.c output is measured, which can be
connected to the required circuit.
Note: While connecting the diodes and electrolytic capacitors the polarities must be taken into
consideration. The transformers primary winding deals with 230V mains, care should be taken with
it.
3.2.1 IR TRANSMITTER
The circuit components are explained as:
IR LED: The IR LED or Infra Red Light Emitting Diode is an electronic device which gives off or
emits light when current is passed through it. Like general diode, this IR LED passes current only in
one direction and requires forward operation voltage of about 2V and forward operation current in
10 to 20 mA range. Maximum reverse voltage that the IR LED can withstand is typically 3 to 5V,
DEPT OF E&C, APSCE
Page 9
more than this could damage the component. It does not have any current control function, so, when
the IR LED is used in a circuit, a resistor must be used in series to limit the current flow through it. If
greater range is required, this resistor may be reduced to a minimum value with a consequent
adverse effect on current consumption. Do not reduce the value of resistor unless you do require the
greater range, otherwise the relay may not trip reliably close in due to reflections caused by the high
light output. For a good range, the current through the LEDs must be large. Since, however, currents,
the pulses must be short, and this is why PDM is used (In this type of modulation, the time of
occurrence of the first and last transition edge, is varied from its unmodulated position).
When the IR LED is used in an application such as the remote controlling transmitter, where the
battery is the main source of current, providing continuous high current to keep the IR LED ON will
consume too much of power. So when the power is applied to the IR LED, the supply is provided as
pulses. If the pulse repetition frequency is rapid enough (more than 50 Hz) then to the receiver eye
the IR LED will appear as continuously ON. For example, instead of supplying 25 mA current
continuously, one can provided 50 mA current as pulse to get brighter light output with the same
power consumption.
The Infrared diode used is of plastic pack and is similar in appearance to the familiar Red
LED, except that the plastic encapsulation is deep violet colour.
As stated earlier, the IR Remote Controlling system consists of a set of an IR transmitter and an IR
receiver. Whenever the IR transmitter is activated, it generates a invisible Infra-red light beam signal
and transmits an it towards the IR receiver. The transmitters and receivers are positioned facing each
other.
The source of light in the transmitter is an Infrared LED and rather than merely providing a
continuous source of light, it is flashed on and off at about 10Khz.This is done so that the receiver
can selectively amplify the signal from the transmitter and completely reject ambient light.
The information is passed from the IR Transmitter and Receiver in the form of combinational
digital pulse signals. These pulses are transmitted to the receiver by modulating a carrier frequency
using Pulse Code Modulation [PCM] method. That means it uses pulse-duration (pulse-width)
modulation. The modulated signal is produced in the traditional manner of having the audio signal
set against a pure high-frequency triangular signal generator can be found on 55. If another generator
DEPT OF E&C, APSCE
Page 10
is used, make sure that its off-set is equal to half the supply voltage of 5 V and its peak value is 2.5
Vpp.
Page 11
R1
20
S1
+Vcc
Infra-Red
LEDs
1
R2
T1
19
IC1
C1
T2
15
18
Signal
Diodes
R3
C2
2
X1
3
C3
Circuit Description
The Infra Red Transmitter is made very simple by employing the dedicated & commercially
available IC1. Here the IC1 is used in flash mode by connecting Transmission Mode Pin 1 to +Vcc,
and thus reduces average current consumption to 6.5 mA. In this mode minimum and maximum
transmission times are 2.1 milliseconds and 3.6 milliseconds respectively and the duty cycle is 0.7%.
Since the Circuit is intended to send only one signal code, IC1 is configured for address one
[refer the table in IC description] by making all the Address Input pins, Code pins to zero or ground.
As soon the switch S1 is switched ON, the circuit gets its working voltage of 9 Volts through pin-20.
Inside the IC, it creates the address 1 as a command code and sent to the output pin-19.
Page 12
This command signal output from the IC1 is given through a resistor R1 to the base of the
Transistor T1. The output from this transistor T1 is fed to the base of another Transistor T2. These
two transistors amplify the command signal to the sufficient level and then drive the IR LEDs. The
Collector of both the transistors is connected to the pair of Infra Red LEDs. When the transistor T2
goes to saturation region, that means starts conducting, the current will flow through the two series
IR LEDs. Thus they illuminate for that period and gets off. This process continues as per the switch
S1 is pushed ON and the pulses will be sent through IR LEDs continues. Thus the command signal
is transmitted to IR receiver successfully.
3.2.3 IR Receiver
The packets of infra-red light transmitted from the IR Transmitter of the user remote
control are received on a sensor module which is sensitive to infra-red light. Next, the signal is
converted back into electrical pulses by a 36 KHz receiver and an associated detector. And that
electrical pulse is fed to driver circuit, which in result supply trigger pulse to Schmitt Trigger circuit.
The circuit components are explained as:
IR Receiver eye
An IR Receiver Eye is a module, which is encapsulated with Photo Transistor whose semiconductor
junction is mounted beneath an optical lens. It is normally used in its open base configuration and act
as a light-to-voltage converter. The base is open; the value of the reverse current across collector and
emitter will depend on the amount of illumination on the base face. In dark conditions it is near zero
and under bright light it is tens or hundreds of mA.
Page 13
Circuit Description
Power Supply
Section
D
1
23
0
V
A
C
IR Receiver
Section
I IC1 O
3 U
N 1
2
T
C
4
R
1
D
2
X
1
Driver
Section
R
L
1 N/
C
D
3
V
c
1
c
3
1
C
1
C
5
Infra
Red
SENS
OR
MOD3
ULE
C
2
C
3
R
2
To Trains
N/
Engine
OMotor
2
R
5
IC2
8
T
1
G
N
D
R
3
C
6
T
2
R
4
R
6
D
1
G
n
d
This circuit activates the relay whenever there is a presence of Infra Red Rays. The working
principle of this module is very simple:
Power Supply
The mains voltage is step-down to 6V using a transformer. This secondary 6V is rectified
using full-wave rectifier, which is composed by D1 & D2 diodes. This is further filtered using
electrolytic capacitor C2 and fed to regulator IC1. This three-terminal IC stabilizes the input and
gives out the constant +5V as working voltage for the circuit.
Page 14
IR Receiver
The IR Sensor Module has 3 terminals: signal input, supply pin and the ground pin. This
module works on regulated +5Votls, and exceeding this limit may cause the damage of it. So, this
Sensor is given Vcc through a biasing resistor R1 and grounded pin is given to negative terminal of
the supply. Whenever the Infra Red rays falls on this Sensors eye [that black mole on Sensor] it
produces varying signal voltages at output pin. This is given to amplifier stage built by an PNP
transistor TR1 through an current limiting resistor R2. The output of this amplifier is fed to a buffer
situated in IC2. This buffer or converter enhances the current capacity of the signal and send to
driver stage. The signal output is monitored by observing the glowing indicator LED D4.
Driver & Circuit Breaker:
The driver is built around TR1 and a low-impedance relay. The signal diode D3 is there to
prevent the back e.m.f produced by the switching action of the relay. When user does not press any
key, the receiver does not receive any IR rays from the opposite end, and hence No signals to TR2
base.
As this E-Power Supply units Receiver senses interrupt of IR Rays from the opposite IR
Transmitter, it alerts driver section. The IR signal from the buffer enters the base of TR2, it
undergoes saturation and activates the relay RL1. Since, relay RL1s N/O [Normally Open] pins are
connected to Schmitt Trigger Circuit.
Note: The circuit is fully stabilized from the false triggering and other interferences. This is
achieved by using capacitors at proper places. As this is an Unlatch Circuit the relay actuates only
when the IR beams are present at the eye of the sensor module. And releases the switching assoon-as there are no IR radiations.
Page 15
DR-25 tubing is suitable as a jacketing material for military vehicle cables and harnesses.
When used in conjunction with System-25 heat-shrinkable moulded shapes and S1125 high
performance adhesive, these products provide a complete cable harness system capability.
developed from DR-25, is a thin wall version ideal for use where space and weight saving are
important. It also offers excellent resistance to fluids at high temperature and to long-term heat
exposure. It has a shrink ratio of 2:1 and can withstand high temperature.
The figure above shows the neat picture of DR-25 temperature sensor. This has a minimum
full recovery temperature of +175C. Its weight is 7 gram per meter. It has a spool quantity of 50
meter. After heating it recovers up to 1.6m in diameter.
Page 16
3.4 Potentiometer
A potentiometer is a three-terminal resistor with a sliding contact that forms an adjustable
voltage divider. If only two terminals are used (one side and the wiper), it acts as a variable resistor
or rheostat. Potentiometers are commonly used to control electrical devices such as volume controls
on audio equipment. Potentiometers operated by a mechanism can be used as position transducers,
for example, in a joystick.
Potentiometers are rarely used to directly control significant power, since the power
dissipated in the potentiometer would be comparable to the power in the controlled load. Instead
they are used to adjust the level of analog signals (e.g. volume controls on audio equipment), and as
control inputs for electronic circuits. For example, a light dimmer uses a potentiometer to control the
switching of a TRIAC and so indirectly control the brightness of lamps.
Fig. Potentiometer
Page 17
The
voltage across RL can be calculated by:
If RL is large compared to the other resistances (like the input to an operational amplifier),
the output voltage can be approximated by the simpler equation:
Potentiometer applications
Potentiometers are widely used as user controls, and may control a very wide variety of
equipment functions. The widespread use of potentiometers in consumer electronics has declined in
the 1990s, with digital controls now more common. However they remain in many applications,
such as volume controls and as position sensors
One of the most common uses for modern low-power potentiometers is as audio control
devices. Both linear potentiometers and rotary potentiometers are regularly used to adjust loudness,
frequency attenuation and other characteristics of audio signals.
The 'log pot' is used as the volume control in audio amplifiers, where it is also called an
"audio taper pot", because the amplitude response of the human ear is also logarithmic. It ensures
that, on a volume control marked 0 to 10, for example, a setting of 5 sounds half as loud as a setting
of 10. There is also an anti-log pot or reverse audio taper which is simply the reverse of a
logarithmic potentiometer. It is almost always used in a ganged configuration with a logarithmic
potentiometer, for instance, in an audio balance control. Potentiometers used in combination with
filter networks act as tone controls or equalizers.
Page 18
COMPARATO
R STAGE
R
1
R
5
R
2
OPTOCOU
PLER
R
3
4
6
D
1
R
7
A
1
27
R
8
TEMP
/LDR
SENS
OR
P
1
P
2
1
2
R
4
R
6
R
1
1
1
3
R
1
2
I
C
2
A
2
A
1
A
3
A
A
22
1
1
5
R
9
I
C
4
DRIVER
STAGE
D
2
L
E
D
R14
R100
1
5
D
3
D
6
D
5
R
1
0
T
2
R
1
6
1
4
A1 TO A3
= IC1
R17
R100
1
8
I
C
3
D
4
L
E
D
R
R2
21
0
R
1
3
R
L
A
L
TO
1W
RL
B
ME
DIU
T M
3
T
4
R
1
9
R
L
C
HI
T G
5 H
T
6
Page 19
Operational Amplifier
Designed originally for analogue computer and control applications, the operational amplifier
has found its way into almost every field of electronics. Todays Integrated Circuit Op-Amps offer
many advantages over their discrete component predecessors. Circuit design is greatly simplified
with the added bonus that the characteristics of the latest generation of Op-Amps, far exceed those of
their predecessors.
An Op-amp is a direct coupled high gain amplifier, usually consisting of one or more
differential amplifiers and usually followed by a level translator and an output stage. Output stage is
generally a push-pull or push-pull complementary symmetry pair. An Op-amp is available as single
IC package. The maximum common mode voltage that can be applied to an Op-amp without
disturbing its proper function is of the order +13 V or 13 V.
Page 20
Page 21
11 Slew Rate :
It is defined as max. rate of change of output voltage / unit of time and is expressed in volts / sec.
| V / sec
SR = dvo / dt |
| max.
POWER DRIVING CIRCUITS:
In many applications, a relay will require some form of interface to the circuit to which it is
connected. Often such an interface need consist of nothing more than a single transistor. Almost any
n-p-n transistor with a current gain of 50 or more can be used in the circuit. However, it is important
to ensure that it is operated within its maximum collector current (IC(max)) rating. The coil resistance
of relay and preferred transistors are as follows: 50 ohm to 200 ohm - T1P31 (or equivalent), 200
Ohm to 400 Ohm - BC142 (or equivalent), 400 Ohm to 1.2 K Ohm - BC108 (or equivalent). The
circuit requires an input current of about 0.5 mA when operated from a 5V source. In some
applications it may be desirable to increase the sensitivity of the circuit, in which case a Darlington
driver stage can be used. A Darlington driver based on two (discrete) n-p-n devices requires a
current of only a mere 40A at 5V in order to operate the relay. This circuit can be used with relays
having coil resistance as low as about 200 ohm and will also operate reliable with an input current of
as little as 40A.
Page 22
The Opto-coupler IC has a photo diode which illuminates whenever input signal appears at
pin-1. A photo transistor, whose Base-lead open, receives the signal from the blinking photo diode
and passes it intact to the output pin-4. As this switching action is very fast, in term of micro
seconds, the signal transfer is successfully done without any delay and signal loss. As there is any
physical contact between photo diode and photo transistor is observed, it is used for isolating two
sections of the circuit. Especially the delicate digital circuits or signal sensitive stages whose output
is supposed to drive a fluctuating stage or mains operated load.
Since the digital outputs of the some circuits cannot sink much current, they are not capable
of driving relays directly. So, high-voltage high-current Darlington arrays are added to this optocoupler IC for interfacing low-level logic circuitry and peripheral power loads. Typical loads include
relays, solenoids, stepping motors, magnetic print hammers, multiplexed LED and incandescent
displays, and heaters.
MCT2E OPTOCOUPLER
INPUT 1
N/C
GND 2
Vcc
N/C
4 OUTPUT
Circuit Description:
COMPARATOR STAGE:
When there is a variation in the temp/illumination in the thermistor or ldr, it measures
impedance of the sensor smartly and decides which gate to open. The circuit diagram shows that
three operational amplifiers compare the drop across the test leads to a fixed voltage and indicate
which of the two is highest by switching their output to the positive supply level or ground [see the
accompanying table].
Page 23
Frequency
3 GHz
30 MHz
Very high frequency, VHF
30 MHz
High frequency, HF
3
M
Hz
Medium frequency, MF
300 KHz
Low frequency, LF
30 KHz
Wavelength
10 cm
TV bands 1V/V
1m
FM broadcasting
10 m
SW broadcasting
100 m
MW broadcasting
1 Km
LW broadcasting
10 Km
Page 24
At other frequencies, signals may propagate by various means, including reflection from
ionized layers in the ionosphere. At frequencies between 3MHz and 30MHz, for example,
ionospheric propagation regularly permits intercontinental broadcasting and communications using
simple equipment within the scope of the enthusiastic radio amateur and short-wave listener.
For convenience, the radio frequency spectrum is divided into a number of bands, each
spanning a decade of frequency. The use to which each frequency range is put depends upon a
number of factors, paramount amongst which is the propagation characteristic within the band
concerned. Other factors, which need to be taken into account, include the efficiency of practical
aerial system in the range concerned and the bandwidth available. It is also worth noting that,
although it may appear from Figure A that a great deal of the radio frequency spectrum is not used, it
should be stressed that competition for frequency space is fierce. Frequency allocations are,
therefore, ratified by international agreement and the various user services carefully safeguard their
own areas of the spectrum.
Frequency and wavelength
Radio waves propagate in air (or space) at the speed of light (300 million meters per second).
The velocity of propagation[v], wavelength[] and frequency [f] of a radio wave are related by the
equation:
Page 25
V = f = 3 X 108 m/s
This equation can be arranged to make f or the subject, as follows:
F = 3 X 108/ Hz and = 3 X 108 / fm
As an example, a signal at a frequency of 1 MHz will have a wavelength of 300 m whereas a signal
at a frequency of 10 MHz will have a wavelength of 30m.
Modulation
In order to convey information using a radio frequency carrier, the signal information must
be superimposed or modulated onto the carrier. Modulation is the name given to the process of
changing a particular property of the carrier wave in sympathy with the instantaneous voltage (or
current) signal.
The most commonly used methods of modulation are amplitude modulation (AM) and
frequency modulation (FM). In the former case, the carrier amplitude (its peak voltage) varies
according to the voltage, at any instant, of the modulating signal. In the latter case, the carrier
frequency is varied in accordance with the voltage, at any instant, of the modulating signal.
Figure B shows the effect of amplitude and frequency modulating a sinusoidal carrier (note
that the modulating signal is, in the case, also sinusoidal). In practice, many more cycles of the radio
frequency carrier would occur in the time span of the cycle of the modulating signal.
The term angle modulation is the generic term encompassing both frequency modulation
and phase modulation. Frequency modulation involves operating directly upon the frequency
determining elements of an oscillator stage (e.g. by means of a variable capacitance diode placed
across the oscillator-tuned circuit or connected in series with a quartz crystal).
Phase modulation, on the other hand, acts indirectly by changing the phase of the signal in a
subsequent stage (e.g. by means of a variable capacitance diode acting in a phase shifting circuit).
Page 26
In a phase-
deviation
is
proportional
to
both
Demodulation
Demodulation is the reverse of modulation and is the means by which the signal information
is recovered from the modulated carrier. Demodulation is achieved by means of a demodulator
consists of a reconstructed version of the original signal information present at the input of the
modulator stage within the transmitter.
Figure C shows the simplified block schematic of a simple radio communication system
comprising on AM transmitter and a tuned radio frequency (TRF) receiver. Within the transmitter,
the carrier wave (of constant frequency) is generated by means of a radio frequency oscillator stage.
In order to ensure that the carrier is both accurate and within in frequency, this stage would normally
employ a quartz crystal within its frequency generating circuitry.
Page 27
The output of the modulator (a modulated carrier) is amplified before outputting to the aerial
system. The output is usually carefully filtered to remove any spurious signals (harmonics) which
may be present and which may otherwise cause interference to other services.
At the receiver, the signal produced by the receiving aerial is a weak copy of the transmitted
signal (its level is usually measured in a V). Also present will be countless other signals at different
frequencies (and some with appreciably larger amplitude than the desired signal). These unwanted
signals must be rejected by the receivers radio frequency tuned circuits if they are no to cause
problems in later stages.
The RF transmitter is built around the ASIC and common passive and active components,
which are very easy to obtain from the material shelf. The circuit works on Very High Frequency
band with wide covering range. The Carrier frequency is 147 MHz and Data frequencies are 17
MHz, 19 MHz,22 MHz & 25 MHz. It should be noted that ASIC or Application Specific Integrated
Circuit is proprietary product and data sheet or pin details or working principles are not readily
available to the user.
Page 28
ASIC:
Application Specific Integrated Circuit [ASIC] is another option for embedded hardware
developers. The ASIC needs to be custom-built for a specific application, so it is costly. If the
embedded system being designed is a consumer item and is likely to be sold in large quantities, then
going the ASIC route is the best option, as it considerably reduces the cost of each unit. In addition,
size and power consumption will also be reduced. As the chip count (the number of chips on the
system) decreases, reliability increases.
If the embedded system is for the mass market, such as those used in CD players, toys, and
mobile devices, cost is a major consideration. Choosing the right processor, memory devices, and
peripherals to meet the functionality and performance requirements while keeping the cost
reasonable is of critical importance. In such cases, the designers will develop an Application Specific
Integrated Circuit or an Application Specific Microprocessor to reduce the hardware components
and hence the cost. Typically, a developer first creates a prototype by writing the software for a
general-purpose processor, and subsequently develops an ASIC to reduce the cost.
Oscillator:
An electronic device that generates sinusoidal oscillations of desired frequency is known as a
sinusoidal oscillator. Although we speak of an oscillator as generating a frequency, it should be
noted that it does not create energy, but merely acts as an energy converter. It receives d.c. energy
and changes it into a.c energy of desired frequency. The frequency of oscillations depends upon the
constants of the device.
A circuit which produces electrical oscillations of any desired frequency is known as an oscillatory
circuit or tank circuit. A simple oscillatory circuit consists of a capacitor (C) and inductance coil (L)
in parallel. This electrical system can produce electrical oscillations of frequency determined by the
values of L and C. The sequence of charge and discharge results in alternating motion of electrons or
an oscillating current. The energy is alternately stored in the electric field of the capacitor and the
magnetic field of the inductance coil. This intercharge of energy between L and C is repeated over
and again resulting in the production of oscillations.
Page 29
In order to obtain continuous undamped a.c. output from the tank circuit, it is necessary to supply the
correct amount of power to the circuit. The most practical way to do this is to supply d.c. power to
some device which should convert it to necessary a.c. power for supply to the tank circuit. This can
be achieved by employing a transistor circuit. Because of its ability to amplify, a transistor is very
efficient energy converter i.e. it converts d.c. power to a.c. power. If the damped oscillations in the
tank circuit are applied to the base of transistor, it will result in an amplified reproduction of
oscillations in the collector circuit. Because of this amplification more energy is available in the
collector circuit than in the base circuit. If a part of this collector-circuit energy is feedback by some
means to the base circuit in proper phase to aid the oscillations in the tank circuit, then its losses will
be overcome and continuous undamped oscillations will occur.
Hartley Oscillator is very popular and is commonly used as a local oscillator in radio
receivers. It has two main advantages viz., adaptability to a wide range of frequencies and is easy to
tune.
The RF transmitter is built around the common passive and active components, which are
very is to obtain from the material shelf. The circuit works on Very High Frequency band with wide
covering range.
Page 30
L2
+Vc
c
L1
C5
C7
X
1
17 KHz
S1
C
6
C3
C4
C
7
19KHz
ASIC
S2
R
6
22 KHz
S3
R4
C1 R5
R3
330
K
T
1
25 KHz
R
1
S4
R
2
2
K
7
C
2
0
.
0
0
1
T2
Gnd
CIRCUIT DESCRIPTION:
The ASIC Transmitter IC has four inputs and only one output pin. The four inputs are for the
frequency range of 17 KHz, 19 KHz, 22 KHz and 25 KHz and four switches are provided for each
range. When any one switch is selected, that frequency is added to the Transmitter circuit as data
frequency and transmitted in the air. The Crystal X1 with two coupling capacitor provides the
working oscillator frequency to the circuit. The Capacitors C6 and C7 are to stabilize the crystal
oscillator frequency.
Page 31
The ASIC output is added to the transmitter circuits oscillator transistor T1s base. The data
frequency is added with carrier frequency 147 MHz and aired for transmitting purpose. The
transistor T1 is heart of the Hartely Oscillator and oscillates at carrier frequency of 147 MHz along
with tuned circuit formed by coil L1 and capacitor C4. The Data frequency is fed to T1 on
base through resistors R4 and R5. Capacitors C1 and C3 and for stabilizing the tuned circuit along
with resistor R3.
To increase the range of the circuit, transmitting signals must be strong enough to travel the
long distance [i.e., upto 100 meters in this prototype]. So the generated signals are made strong by
amplifying to certain level with the help of Transistor T2 and associated circuit.
The Radio frequency thus generated is fed to pre-amplifier transistor T2 on base terminal.
The resistor R6 provides the bias voltage to T2 and capacitors C5 & C7 removes the noise and
harmonics present in the circuit. The antenna coil L2 transmits the radio frequency in the
Page 32
R
2
R
3
R
1
R7
C
1
C2
L
1
C
3
R8
T
3
T
4
ASIC
8
1
0
1
1
1
2
1
3
1
4
+Vc
c
T1
C
6
C
5
R4
T
2
C
7
R
L
1
R9
C
4
R5
R
L
2
R9
T
2
T
3
R8
T
4
RF RECEIVER
This circuit is built around the ASIC i.e., Application Specific Integrated Circuit, hence less
circuitry is observed. The Radio Frequency tuned circuit has 147 M Hz carrier frequency with four
options viz., 17Khz, 19Khz, 22KHz and 25KHz.
The transmitted signals are received on coil L1 which acts as receiver antenna. The oscillator
transistor removes the received signals from 147MHz carrier frequency and fed to ASIC. The tank
circuit formed by C1 and L1 gives the carrier frequency range. The current limiting resistor R1 and
bypass capacitor C5 stabilizes the oscillator. The resistor R2, R3 and R4 provide the biasing voltage
to the oscillator transistor T1. Capacitors C2 and C3 are there to bypass the noise and harmonics
present in the received signals. Through coupling capacitor C7 output of the RF Receiver is fed to
ASIC.
The ASIC manipulates the received signal and gives out four channels as output viz., 17
KHz, 19KHz, 22KHz and 25KHz. Each channel is amplified by pre-amplifier transistor T2 along
with bias resistor R9. The output of the pre-amplifier transistor is fed to relay driver stage to activate
DEPT OF E&C, APSCE
Page 33
the respective relay ON. The Darlington pair T3 and T4 are arranged in driver stage to drive the low
impedance relay.
3.6.4 TELESCOPIC ANTENNA:A telescopic antenna is collapsible. It is a series of small diameter tubes of 6 to 8 inches in
length nested one inside the other. The antenna ca be extended to its full length or retracted to a
small length for storage of portability.
Radio antennas are optimally sized based upon wavelength of the frequency they are expected to
"see" . Even multiples of wave length are also used for antennas to minimize there length. i.e. ( 1/2
or 1/4 wavelength)
Antenna wave length (lambda) is base on the speed (c) that a radio signal travels which is about
3x10^8 m/s (300000000 m/s) divided by the frequency(f)
lambda=c/f
Frequencies in the hertz range would have wavelengths in the 1000's of kilometers range. So
any practical length antenna (2 or 3 feet in Length) would work just as well as a larger 5 to 10 foot
antenna as the wavelength is so large.
Page 34
Page 35
What is a microcontroller?
The general definition of a microcontroller is a single chip computer, which refers to the fact
that they contain all of the functional sections (CPU, RAM, ROM, I/O, ports and timers) of a
traditionally defined computer on a single integrated circuit. Some experts even describe them as
special purpose computers with several qualifying distinctions that separate them from other
computers.
Microcontrollers are "embedded" inside some other device (often a consumer product) so
that they can control the features or actions of the product. Another name for a microcontroller,
therefore, is "embedded controller."
Microcontrollers are dedicated to one task and run one specific program. The program is
stored in ROM (read-only memory) and generally does not change.
Microcontrollers are often low-power devices. A desktop computer is almost always plugged
into a wall socket and might consume 50 watts of electricity. A battery-operated microcontroller
might consume 50 mill watts.
A microcontroller has a dedicated input device and often (but not always) has a small LED or
LCD display for output. A microcontroller also takes input from the device it is controlling and
controls the device by sending signals to different components in the device.
A microcontroller is often small and low cost. The components are chosen to minimize size
and to be as inexpensive as possible.
DEPT OF E&C, APSCE
Page 36
A microcontroller is often, but not always, ruggedized in some way. The microcontroller
controlling a car's engine, for example, has to work in temperature extremes that a normal computer
generally cannot handle. A car's microcontroller in Kashmir regions has to work fine in -30 degree F
(-34 C) weather, while the same microcontroller in Gujarat region might be operating at 120
degrees F (49 C). When you add the heat naturally generated by the engine, the temperature can go
as high as 150 or 180 degrees F (65-80 C) in the engine compartment. On the other hand, a
microcontroller embedded inside a VCR hasn't been ruggedized at all.
Clearly, the distinction between a computer and a microcontroller is sometimes blurred.
Applying these guidelines will, in most cases, clarify the role of a particular device.
Why are they so popular?
The programmability of modern desktop PCs makes them extraordinarily versatile. The
functionality of the entire machine can be altered by merely changing its programming.
Microcontrollers share this attribute with their desktop relatives. The chips are manufactured with
powerful capabilities and the end user determines exactly how the device will function. Often, this
makes a dramatic difference in the cost and complexity of a particular design. The true impact of this
statement is best illustrated by example.
For every clock pulse, the circuit produces one of the three bit numbers in the sequence 000,
100, 111, 010, 011. This design has been implemented with three flip-flops and seven discrete gates
as well as a significant amount of wiring.
The design of this system can be quite laborious. One must begin with a state graph followed
by a state table. Then, the flip-flop T input equations must be derived from a set of Karnaugh maps.
Next, the t input equations must be transformed into the actual T input network. All of this circuitry
must then be wired together; a task that's time consuming and sometimes error prone. On the other
hand, this can be accomplished with a simpler, less costly microcontroller design. Notice the
dramatic difference in the amount of hardware and wiring. This simple circuit, along with about a
dozen lines of code, will perform the same task as the first circuit. There are other benefits as well.
The microcontroller implementation does not have to contend with the undetermined states that
sometimes occur with discrete designs. Also consider for a moment what would be required to
DEPT OF E&C, APSCE
Page 37
change the sequence of numbers in the first circuit. What if the output needs to be changed
to eight bits instead of three? These are trivial modifications for the microcontroller while the
discrete circuit would require a complete redesign.
The example above is not an obscure case. The effects of this device are being felt in almost
every facet of digital design. A sure method of determining the popularity of an electronic device is
to note when they attain widespread use by hobbyists. It therefore becomes essential that the
electronics engineer or hobbyist learn to program these microcontrollers to maintain a level of
competence and to gain the advantages microcontrollers provide in his or her own circuit designs.
Page 38
Page 39
CIRCUIT DESCRIPTION
The mother board of 89C51 has following sections: Power Supply, 89C51 IC, Oscillator,
Reset Switch & I/O ports. Let us see these sections in detail.
POWER SUPPLY:
This section provides the clean and harmonic free power to IC to function properly. The
output of the full wave rectifier section, which is built using two rectifier diodes, is given to filter
capacitor. The electrolytic capacitor C1 filters the pulsating dc into pure dc and given to Vin pin-1 of
regulator IC 7805.This three terminal IC regulates the rectified pulsating dc to constant +5 volts. C2
& C3 provides ground path to harmonic signals present in the inputted voltage. The Vout pin-3 gives
constant, regulated and spikes free +5 volts to the mother board.
The allocation of the pins of the 89C51 follows a U-shape distribution. The top left hand
corner is Pin 1 and down to bottom left hand corner is Pin 20. And the bottom right hand corner is
Pin 21 and up to the top right hand corner is Pin 40. The Supply Voltage pin Vcc is 40 and ground
pin Vss is 20.
OSCILLATOR:
If the CPU is the brain of the system then the oscillator, or clock, is the heartbeat. It provides
the critical timing functions for the rest of the chip. The greatest timing accuracy is achieved with a
crystal or ceramic resonator. For crystals of 2.0 to 12.0 MHz, the recommended capacitor values
should be in the range of 15 to 33pf2.
Across the oscillator input pins 18 & 19 a crystal x1 of 4.7 MHz to 20 MHz value can be connected.
The two ceramic disc type capacitors of value 30pF are connected across crystal and ground,
stabilizes the oscillation frequency generated by crystal.
Page 40
I/O PORTS:
There are a total of 32 i/o pins available on this chip. The amazing part about these ports is
that they can be programmed to be either input or output ports, even "on the fly" during operation!
Each pin can source 20 mA (max) so it can directly drive an LED. They can also sink a maximum
of 25 Ma current.
Some pins for these I/O ports are multiplexed with an alternate function for the peripheral features
on the device. In general, when a peripheral is enabled, that pin may not be used as a general purpose
I/O pin. The alternate function of each pin is not discussed here, as port accessing circuit takes care
of that.
This 89C51 IC has four I/O ports and is discussed in detail:
P0.0 TO P0.7
PORT0 is an 8-bit [pins 32 to 39] open drain bi-directional I/O port. As an output port, each pin can
sink eight TTL inputs and configured to be multiplexed low order address/data bus then has internal
pull ups. External pull ups are required during program verification.
P1.0 TO P1.7
PORT1 is an 8-bit wide [pins 1 to 8], bi-directional port with internal pull ups. P1.0 and P1.1 can be
configured to be the timer/counter 2 external count input and the timer/counter 2 trigger input
respectively.
P2.0 TO P2.7
PORT2 is an 8-bit wide [pins 21 to 28], bi-directional port with internal pull ups. The PORT2 output
buffers can sink/source four TTL inputs. It receives the high-order address bits and some control
signals during Flash programming and verification.
P3.0 TO P3.7
PORT3 is an 8-bit wide [pins 10 to 17], bi-directional port with internal pull ups. The Port3 output
buffers can sink/source four TTL inputs. It also receives some control signals for Flash programming
and verification.
Page 41
PSEN Program Store Enable [Pin 29] is the read strobe to external program memory. ALE Address
Latch Enable [Pin 30] is an output pulse for latching the low byte of the address during accesses to
external memory.
EA External Access Enable [Pin 31] 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.
RSTReset input [Pin 9] must be made high for two machine cycles to resets the devices oscillator.
The potential difference is created using 10MFD/63V electrolytic capacitor and 20K Ohm resistor
with a reset switch.
R/_W
E
450 nSec
Page 42
Pins Description
1
Ground
Vcc
Contrast Voltage
"E" Clock
The interface is a parallel bus, allowing simple and fast reading/writing of data to and from
the LCD.
The LCD Data Write Waveform will write an ASCII Byte out to the LCD's screen. The
ASCII code to be displayed is eight bits long and is sent to the LCD either four or eight bits at a
time. If four bit mode is used, two "nibbles" of data (Sent high four bits and then low four bits with
an "E" Clock pulse with each nibble) are sent to make up a full eight bit transfer. The "E" Clock is
used to initiate the data transfer within the LCD.
Sending parallel data as either four or eight bits are the two primary modes of operation.
While there are secondary considerations and modes, deciding how to send the data to the LCD is
most critical decision to be made for an LCD interface application.
Page 43
The different instructions available for use with the 44780 are shown in the table below:
R/S R/W D7 D6 D5 D4
D3 D2 D1 D0 Instruction/Description
14
13
12
11
10
Pins
Clear Display
ID
Enable Display/Cursor
SC RL *
DL N
BF *
The bit descriptions for the different commands are: "*" - Not Used/Ignored. This bit can be either
"1" or "0"
Most LCD displays have a 44780 and support chip to control the operation of the LCD. The
44780 is responsible for the external interface and provides sufficient control lines for sixteen
characters on the LCD. The support chip enhances the I/O of the 44780 to support up to 128
characters on an LCD. From the table above, it should be noted that the first two entries ("8x1",
"16x1") only have the 44780 and not the support chip. This is why the ninth character in the 16x1
does not "appear" at address 8 and shows up at the address that is common for a two line LCD.
The Character Set available in the 44780 is basically ASCII. It is "basically" because some
characters do not follow the ASCII convention fully (probably the most significant difference is
0x05B or "\" is not available). The ASCII Control Characters (0x008 to 0x01F) do not respond as
control characters and may display funny (Japanese) characters.
<<,,
The last aspect of the LCD to discuss is how to specify a contrast voltage to the Display.
DEPT OF E&C, APSCE
Page 44
Processor
Data
Clock
S/R
0
0
E Clock
R6
D0
D1
Dn
E
LCD
+Vcc
Pin-3 Contrast
10K pot
LCD
Experts typically use a potentiometer wired as a voltage divider. This will provide an easily
variable voltage between Ground and Vcc, which will be used to specify the contrast (or "darkness")
of the characters on the LCD screen. You may find that different LCDs work differently with lower
voltages providing darker characters in some and higher voltages do the same thing in others.
Page 45
Safety
the liquid crystal
touches your skin or clothes, wash it off immediately using soap and plenty of water.
Handling
Storage
o
65% RH.
Page 46
Page 47
Read/Write (R/W)
This line determines the direction of data between the LCD and microcontroller. When it is
low, data is written to the LCD. When it is high, data is read from the LCD.
Register select (RS) With the help of this line, the LCD interprets the type of data on data lines.
When it is low, an instruction is being written to the LCD. When it is high, a character is being
written to the LCD.
Logic status on control lines
E
- 0 Instruction
- 1 Character
Page 48
Pin description
Most LCDs with 1 controller has 14 Pins and LCDs with 2 controller has 16 Pins (two pins
are extra in both for back-light LED connections)
Pin Details
Table: 4.1
Page 49
Fig:.1 HDX
Button interface:
The Button Interface module provides you with a set of programmable buttons that can be
made to create and reset variables when clicked.
There is a Push button used in our project which basically used to reset the Microcontroller.
A push-button is a simple switch mechanism for controlling some aspect of a machine or a process.
The surface is usually flat or shaped to accommodate the human finger or hand, so as to be easily
depressed or pushed.
Fig:.2 Button
Page 50
CHAPTER 4
SOFTWARE REQUIREMENTS
The software we have used in our project is C and C-Graphics. This software is user
friendly and can be programmed in easy way. In our project we had used this software because it can
easily read the signals from the parallel port and display the consequences.
The KEIL is a software package, which is a part of an Embedded C. This is used to
program the microcontroller. The KEIL program which executed will generate .hex file that is used
to program the microcontroller. The starting address from which the code has to be transferred can
be changed and selected by the user.
The KEIL software helps to make the programming easy. The hex-codes can be transferred
into the microcontroller by using a serial bus RS-232. The microcontroller has a program in its
internal ROM and when executed will receive the data from the RS-232 that is connected to the
serial port or mouse port of a computer.
The MicroVision4 IDE from KEIL software, combines project management, make facilities,
source code editing, program debugging and complete simulation in one power environment.
MicroVision2 helps you get program work faster than while providing an easy use development
platform. The editor and debugger are integrated into a single application and provide a flawless
embedded project development environment.
The microcontroller has been programmed using KEIL software. The program is written in
the KEIL software and then executed. The software will provide .hex file. The .hex file will consist
of hexadecimal codes, which are the op-codes that have to be coded into the microcontroller. By
interfacing the computer and the microcontroller with RS-232 bus, we can download, the hex codes
into the microcontroller from away address. This codes when executed provides the output, which is
required by the programmer.
Hence the difficulty of the assembly language programming has been replaced with KEIL
high-level-language, which is easy to program.
Page 51
CHAPTER 5
APPLICATION
For test rig security areas especially in fighter aircraft.
It can be used in industries for security purposes
It can be used in homes
Page 52
CHAPTER 6
6.2 Limitation
There are some chances of false alarming
Distance is reduced
Page 53
CHAPTER 7
CONCLUSION
In todays world security is needed in almost all the field. Large number of accidents occurs
in the industries due to negligence and lack of security in this project, we have included the alarm
system to intimate both trespasser and the operator at the control room, This concept is quite
efficient because we can monitor it any where
Page 54
CHAPTER 8
FUTURE ENHANCEMENTS
This project can be used in many others scenarios to measure other different parameters such
as temperature, humidity, smoke etc..also by using visual basic(VB),we can enhance the graphical
representation of various system parameters
Instead of using RF transceiver, we can use GSM modem for communication purpose
Page 55