Documente Academic
Documente Profesional
Documente Cultură
CHAPTER 1
INTRODUCTION
Protecting a countrys borders is vital to its Homeland Security. The most vulnerable targets for any nation having sea or ocean as one of its boundaries from its enemy nations is coastal areas. This is because of the movements of ships like fishery vessels are very common. Maritime nations around the world would need to be ever vigilant and prepared for both natural and man-made disasters. So there is an increased demand for security along this border. Also apart from this there will be a lot of movement mining ships, oil ships etc which are regarded as huge cash earners for the country, which may become threat to both nation as well as nature as there may be a chance of spilling of oil into the sea. So for all these reasons surveillance of the coastal region becomes utmost important especially in the case of defense. The need for this type of security can be seen in the attacks on Mumbai where terrorists entered the financial capital of India through sea and caused an unseen havoc in the history of India. So to safeguard a nation from all these trespassers including identification and monitoring the movement of known and unknown vessels becomes a topmost duty of navy wing. But the security cannot concentrate on one particular area since the entire region is divided into many sub regions. This helps the armed forces of the country to keep a vigilant eye on the entire region. Thus safeguarding the nation against attacks as well as helping the vessels which are in danger due to calamities or other reasons. Hence this aspect becomes the main idea behind the development of this project. Our project focuses on that aspect and provides a continuous automatic monitoring of the region in the water body and if found any trespass, it reports to the base station which is nothing but the control center. The project implements the GSM technology for surveillance of the area in coastal regions.
Dept of ECE
CHAPTER 2
LITERATURE SURVEY
Homeland security is very vital for every country. Costal area is the most
vulnerable targets for any nation having sea or ocean as one its boundries from its enemy nations. So every maritime nations around the world would need to be ever vigilant and prepared for natural and manmade disasters. So there is increased the demand for security along boarder. The need for this type of security can be seean it the attacks on Mumbai where terrorists entered the financial capital of India through sea and caused and unseen havoc in the history of India. So to safe guard a nation from all these trespassers including identification and monitoring the movement of known and unknown the vessels becomes a topmost duty of navy wing. Hence this aspect becomes the main idea behind the development of this project. Our project focuses on that aspect and provides a continuous automatic monitoring of the region in the water body and if found any trespass, it reports to the base station which is nothing but the control center. The project implements the GSM technology for surveillance of the area in coastal regions. The project can be converted into total wireless system. The Wire-less feature can be explored to its maximum limit. The small-scale and medium size industries can be converted from manual to wireless controlled operations. This reduces the over all man power & maintains charge and increases the efficiency & production of the Industry. The conversion to wireless is simple and worth investing. This project is open for developments from all sides. It is the users imagination which limits the working of this project. One can go on adding the extra, rich features to this project
Dept of ECE
CHAPTER 3
Mobile
Mobil e
KIT Mangalore
DTMF Decoder
Buffer
Drive r
Relay
Schmitt Trigger
RF Transmi tter
Buzzer
Drive r Rela y
microcontr oller
GSM MODE M
Mobil e
Dept of ECE
CHAPTER 4
HARDWARE DESCRIPTION
3.1. BUFFER, DRIVER & SWITCHING MODULE
When the user programs the schedule for the automation using GUI [Graphical User Interface] software, it actually sends 5-bit control signals to the circuit. The present circuit provides interfacing with the printer port of the Personal Computer and the controlling circuitry. This circuit takes the 5-bit control signal, isolates the PC from this circuitry, boosts control signals for required level and finally fed to the driver section to actuate relay. These five relays in turn sends RC5 coded commands with respect to their relay position.
Vcc
IC 4050
16
15
14
13
12
11
10
Vss
Fig.3.1.1. IC 4050
KIT Mangalore Page Dept of ECE 5
Dept of ECE
3.1.2 1N4148 signal diode: Signal diodes are used to process information (electrical
signals) in circuits, so they are only required to pass small currents of up to 100mA. General purpose signal diodes such as the 1N4148 are made from silicon and have a forward voltage drop of 0.7V.
I
+ 5 V IC 1
1 3 2 5 7 9 1 1 4 6 1 0 1 2 1 5 8
C 21
2 3 4 5 6
6 1 5 1 4 1 3
R6 D R1 60 D 1 10 R L 1
CO M-2
N/ C
N/ C
N/ C
N/ C
N/ C
R L 2
R L 3
R L 4
R L 5
1 2 1 1 1 0
1 4
D1 TO D5 G n d
7 8
R1 TO R5
Dept of ECE
The Hex Buffer/Inverter IC1s working voltage of +5V is applied at pin-1 and five control signals are applied at input pins 3, 5, 7, 9 & 11. Thus the signal supplying circuit [i.e. PC] is isolated from this Buffer & Driver circuit. Further the grounding resistors R1 to R5 prevents the abnormal voltage levels passing inside the IC1. The buffered outputs are acquired at pins 2, 4, 6, 10, & 12. Thus the varying input is further stabilized and fed to signal diodes [D1 to D5]. As the load is inductive, there is a chance of producing back e.m.f. So to cope with this back e.m.f, signal diodes are used. But this signal level is not strong enough to drive the low impedance relay. So, IC2 Darlington driver is used. Its working voltage is +12 V and only five input/output pins are used. The output signal from the Darlington driver IC is strong enough to actuate five relays. These relays with +12V working voltage can be used to produce five command signals with RC5 format. The N/O [Normally Open] contact of each relay produces one command signal with the help of RC5 Transmitter Circuit. The five relays activation with their corresponding command signal production is tabulated as below:
KIT Mangalore
Dept of ECE
Page - 8 -
KIT Mangalore
Dept of ECE
Page - 9 -
3.2.5 Circuit Diagram of +5v and +12v Fullwave Regulated Power Supply
IC1 D 1 1 781 2
IC 1 78 059 V
+12 V
+5 V
230 AC
C 1
C 2
C 3
C 4
D 2 1
X 1
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 full-wave 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.
KIT Mangalore
Dept of ECE
Page - 10 -
transmit and one for receive. The other six time slots in the frame are used by the mobile for signal strength measurements [5]. The problem facing this scheme is that it suffers from multipath. Doppler effects with a high speed mobile user. A mobile user could conceivably traverse an entire wavelength in a time slot. Solutions to this problem involve switching the channel frequency of a given user. This is a form of Frequency Hopping (FH) (a version of spread spectrum that will be analyzed in detail later) is quite adept at resolving the problem of multipath. Basically, frequency hopping takes advantage of the fact that interference may be reduced if the interfering signal is contained in only a narrow portion of the spectrum over which the desired signal is hopping.The present version of GSM supports 22.8 kbps full rate and 11.4 kbps half rate operation. In addition, this system naturally extends to use of data communications. GSM allows interfacing to audio modems and Integrated Services Digital Networks (ISDN) which support up to 9.6 kb/s.
KIT Mangalore
Dept of ECE
Page - 12 -
KIT Mangalore
Dept of ECE
Page - 13 -
engine, the temperature can go as high as 150 or 180 degrees F (65-80 C) in the engine compartment.
KIT Mangalore
Dept of ECE
Page - 14 -
microcontrollers to maintain a level of competence and to gain the advantages microcontrollers provide in his or her own circuit designs.
30 pF
19 XTAL 1
4 0
P0. 7 32
a d 7 a d 6 a
+ Vc 230 c AC
D1 & X1 D2 R 1 D 3
IC 1
+V CC
v c c
C1 C2
C 3
P0. 6 33
d por 8x t P1. 50 2.2 5 P0. 7 34 8 P1. P0. 89c 51 6 4 7 35 K a d 4 a d 3 P1. P0. 5 3 P2. 36 76 28 P1. P0. P2. 4 2 6 5 37 27 v s s
10 ALE MFD/63V 31 17 EA 20K w P3. RESET r 9 7 t1 RST 16 SWITCH t0 in t1 por t3 in t0 tx KIT Mangalore d rx P3. 6 15
rd
por
at 1 da 21 5 a da 11 4 a da 01 3
port 2
Dept of ECE
Page - 15 -
P1. P2. 1 3
a 1 0 a
The mother board of 89C51 has following sections: Power Supply, 89C51 IC, Oscillator, P3. 9 Reset Switch & I/O ports. Let us see these sections in detail. 3 1
a
Power Supply
12
P2.
This section provides P3. the clean and harmonic 1 free power to IC to function properly. The 22 is built using two rectifier diodes, is given output of the full wave rectifier section, which
2
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 P2. three terminal IC regulates the rectified
0 provides ground path to harmonic signals pulsating dc to constant +5 volts. C2 & C3 P3. 21 present in the inputted voltage. The Vout pin-3 gives constant, regulated and spikes free 1 +5 volts to the mother board. The allocation of the pins of the 89C51 follows a U-shape 1 11
distribution. The top left 10 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. P3.
0
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.
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
KIT Mangalore Dept of ECE Page - 16 -
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
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 upto FFFFH.
RST
Reset 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 20KOhm resistor with a reset switch.
KIT Mangalore Dept of ECE Page - 17 -
KIT Mangalore
Dept of ECE
Page - 18 -
+V cc
L 2
L 1
C 5
C7
C X 6 1 C 7
C3 C4 R3 33 0K
R 6
T 1
C 2 0 . 0 0 1
T2
ASI C
R4 C1 R5
R 2 R 1 2 K 7
Gn d
Fig 3.5.1. Circuit Diagram Of RF Transmitter The ASIC Transmitter IC has four inputs and only one output pin. Thefour 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.
KIT Mangalore
Dept of ECE
Page - 19 -
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.
KIT Mangalore
Dept of ECE
Page - 20 -
R 2
C 1 C 2 C 3
L 1
R7
R 3 R 1
C 7 T 1
T 4
C 6
C 5 R4
C 4
R L 2
R5
T 2 R 8
T 4
Fig 3.5.2. Circuit Diagram of RF Receiver 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., 17KHz, 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
KIT Mangalore
driver stage to activate the respective relay ON. The Darlington pair T3 and T4 are arranged in driver stage to drive the low impedance relay
KIT Mangalore
+Vcc R1 4 7 P 8
IC1
3 Output of 1 C1 5 C2 Clock Pulses Gnd
Fig 3.6.1. Schmitt Trigger Using 555 Timer IC An electronic circuit that generates square waves using positive feedback is known as a Multivibrator. This switching circuit is basically a two stage amplifier and operates in two states (ON and OFF) controlled by external circuit conditions. There are three types of Multivibrator: Astable or Free Running Multivibrator, Monostable or One Shot Multivibrator and Bistable or Flip-flop Multivibrator. An oscillator circuit which generates square wave of its own (i.e. without external triggering) is known as Astable or Free Running Multivibrator. The outputted square pulse is not stable in nature. It switches back and forth from one state to the other. And the switching time is determined by the external components (i.e. RC constant). These pulse trains are used to ON/OFF or trigger the connected external circuits. The normal 555 IC Astable Multivibrator can be used readily to drive a relay (operating current must be less than 150mA).The circuit diagram shows how the timer IC 555 can be used as an Astable pulse generator. In this mode the circuit provides very constant output frequency. This circuit gets its working voltage at +Vcc pin- 4 through RL1s N/C [Normally
KIT Mangalore
Connected] pin of Timer Circuit. And after one minute the supply will be switched OFF automatically. The triggering pulse is fed from Receiver Section output is fed to trigger input pin-2 which is grounded through capacitor C1. When the circuit is first put ON, the capacitor C1 is uncharged and the trigger input is low and that switching transistor TR1 (at pin-7) is in the non-conducting state. Thus the output (at pin-3) is high. The capacitor C1 will begin to charge toward +Vcc with current supplied by means of the series resistors R1, P1 and R2.When the voltage at the threshold input (at pin-6) exceeds of Vcc, the output of the upper comparator will change state and the Bistable will be reset, making the output go HIGH and turning TR1 ON in the process. Due to the inverting action of the buffer, the final output (at pin-3) will then go LOW.The capacitor C1 will now discharge, with current flowing through R2 & P1 into the collector of switching transistor TR1 (at pin-7). At a certain point, the voltage appearing at the trigger input (pin-2) will have fallen back to one third of the supply voltage at which point the lower comparator will change state and return the Bistable to its original set condition. The Q output of the Bistable then goes low, TR1 switches off, and the final output (pin-3) goes high. Thereafter the entire cycle is repeated indefinitely. The essential characteristics of this waveform are: Time for which output is high: Time for which output is low: Period of output Pulse Repetitive Frequency of output: Pulse Period: Ton=0.693(R1+R2+P1) C .3.6.1 Toff=0.693(R2+P1) C.3.6.2 T=Ton+Toff=0.693(R1+P1+2R2) C3.6.3 p.r.f. = 1.44 / (R1+P1+2R2) C..3.6.4 T = 1/ p.r.f.3.6.5
Where T is in seconds, C is in farads, and R1 & R2 are in Ohms. Note: It should be noted that the mark to space ratio produced by a 555 timer can never be less than unity (i.e. 1:1). However, by making R2 very much large than R1 the timer can be made to produce a reasonably symmetrical square wave.
KIT Mangalore
R 1
C 1 R 2
R 4 R 3
From FM Receiver
C 2
To Parallel Port of PC
X 1
1 5
R 6
KIT Mangalore
9 A
9 A 9 9 A
9 A
9 A 9
The Power Line Carrier Communication is the most extraordinary element of the 9 telecommunication systems. A Power Line Carrier Communication works on the principle of varying the line current in proportional to sound. The transducer which converts sound waves to an electrical signal is called a microphone, and the one which 9 does the reverse function is called a speaker/earphone. Signaling is the most critical function of any telecommunication system. Normally alternating voltages of low value are used for signaling or ringing, as commonly referred. In modern Power Line Carrier Communications, the rotary dial has been replaced by pushbutton matrix dial. These Power Line Carrier Communications use ICs to generate the DC pulses. The pulse dialing is slower and susceptible to noise. It takes over 10 seconds to dial a 6-digit number. The is very slow as compared to the processing speed of modern electronic exchanges. Besides it has the following limitations: The subscriber can signal only up to the exchange, and end to end or subscriber to subscriber signaling is not possible. Only ten codes, i.e. from 0 to 9, are possible. Time required to dial each digit is different. To overcome these limitations, modern telecommunication uses two distinct tones, which correspond to a particular number. This is called the Dual Tone Multi Frequency [DTMF] dialing. If one dials, say, number 5, then two tones of 770 Hz and 1336 Hz is transmitted. These tones are sensed and decoded by the exchange and converted to the dialed digit, which is digit 5 in this case. The column pertaining to tone 1633 Hz is used for special facilities like flash, pause etc. The Power Line Carrier Communication is the most extraordinary element of the telecommunication systems. A Power Line Carrier Communication works on the principle of varying the line current in proportional to sound. The transducer which converts sound waves to an electrical signal is called a microphone, and the one which does the reverse function is called a speaker/earphone. Signaling is the most critical function of any telecommunication system. Normally alternating voltages of low value are used for signaling or ringing, as commonly referred. In modern Power Line Carrier Communications, the rotary dial has been replaced by pushbutton matrix dial. These Power Line Carrier Communications use ICs to generate the DC pulses. The pulse dialing is slower and susceptible to noise. It takes over 10 seconds to dial a 6-digit number. The is very slow as compared to the processing speed of modern electronic exchanges. Besides it has the following limitations: The subscriber can signal only up to the exchange, and end
A A
KIT Mangalore
to end or subscriber to subscriber signaling is not possible. Only ten codes, i.e. from 0 to 9, are possible. Time required to dial each digit is different. To overcome these limitations, modern telecommunication uses two distinct tones, which correspond to a particular number. This is called the Dual Tone Multi Frequency [DTMF] dialing. If one dials, say, number 5, then two tones of 770 Hz and 1336 Hz is transmitted. These tones are sensed and decoded by the exchange and converted to the dialed digit, which is digit 5 in this case. The column pertaining to tone 1633 Hz is used for special facilities like flash, pause etc.
KIT Mangalore
Fig.3.8.1.Ultrasonic Transmitter The NAND Gate CMOS IC1 is used to construct the Astable Multivibrator circuit. The IC1s pin-14 is connected to +Vcc and pin-7 is to ground of the power supply. The RC Time constant is generated by the components P1,R1 and C1.The Preset P1 is used to fine tune the Ultrasonic waves frequency to the desired value, that is 48 Kilo Hertz in this case. The Crystal X1 provides the initial and reference clock pulses to the circuit. Both the NAND gates two inputs are shorted and hence used as buffers.
KIT MANGALORE
Circuit Description:
The receiver uses a similar transducer to receive the signals that are reflected back to it. The electrical signals produced by it are then amplified by transistor T3. They are further amplified by the op-amp IC1 that also references the negative peaks of the signal to a predetermined DC level. The output of IC1 is converted to DC in a peak detector and then taken to the non-inverting input of IC2, the feedback circuit on this op-amp can be adjusted by the sensitivity preset to control there is no change incoming signal level IC2 quickly adjusts to a steady high output. Sound waves reflected by different objects arrive at the receiver in different phases, if thy are in phase they add to create a larger signal. If they are out of phase they cancel to give a smaller signal. As an object moves towards or away from the Rx unit by a small distance (about 1cm) it causes the receiver signal to cycle through a high/low cycle. It is this change from in-phase to out-of-phase which triggers the unit. The steady high output of IC2 is pulled down causing the NAND gate output to go high. The high turns on the Darlington arrangement to transistors, which
KIT MANGALORE
turns on the LED. This 6V signal is available at Pads 1 and 2 where it can be taken to manage other devices such as relay, buzzers opto-couplers etc.
3.10.2.CAPACITORS:
Devices which can store electronic charge are called capacitors. Capacitance can be understood as the ability of a dielectric to store electric charges. Its unit is Farad, named after the Michael Faraday. The capacitors are named according to the dielectric used. Most common ones are air, paper, and mica, ceramic and electrolytic capacitors. Physically a capacitor has conducting plates separated by an insulator or the dielectric. The plates of the capacitor have opposite charge, this gives rise to an electric field .In capacitor the electric field is concentrated in the dielectric between the plates.
KIT MANGALORE Dept of ECE Page 30
Like resistors, capacitors are also crucial to the correct working of nearly every electronic circuit and provide us with a means of storing electrical energy in the form of an electric field. Capacitors have numerous applications including storage capacitors in power supplies, coupling of A.C. signals between the stages of an amplifier, and decoupling power supply rails so that, As far as A.C. signal components are concerned, the supply rails are indistinguishable from zero volts.
Electrolytic capacitors are used in circuits that have combination of D.C. voltage and A.C. The D.C. voltage maintains the polarity . They are used as ripple filter where large capacitance are required at low cost in small space . They are also used as biased capacitors and decoupling capacitors and even as coupling capacitors in R- C amplifier.
3.10.3. DIODES:
To ensure unidirectional flow of liquid we use mechanical valves in its path. By properly arranging these valves in a system we get useful devices such as pumps and locomotives. In the field of electronics too we have a valve called semiconductor diode (a counterpart of thermionic valve) for controlling the flow of electric current in one direction. But we use these diodes in circuits for limited purposes like converting AC to DC, by passing EMF etc. a diode allows current to pass through it provided it is forward biased and the biasing voltage is more than potential barrier (forward voltage drop) of the diode. To ensure unidirectional flow of the liquids we use mechanical valves in its path. By properly arranging these valves in a system we get useful devices such as pumps and locomotives. In the field of electronics too we have valve called semiconductor diode ( a counterpart of thermionic valve ) for controlling the flow of electric current in one direction . But we use these diodes in circuits for limited purposes like converting A.C to D.C by passing back E.M.F etc. A diode allows current to pass through it provided it is forward biased and the biasing voltage is more than potential barrier (forward voltage drop) of the diode. All diodes are general-purpose silicon or germanium diodes. 3.10.4. Automatic Switch Over to Battery An uninterrupted power supply (UPS) is necessary for a main operated clock. This facility is very useful in transistors and two in ones for recording or listening to news programs. A relay can do this job with a battery backup. But the relay takes several milliseconds before it makes contact. Moreover, it is costly and occupies space. The same task can be achieved with a single diode. Just connect a germanium diode DR50 (D1) as shown in fig 1.when the power is available form the eliminator or the external power source, the gadget will use the power from it. As points A and B are at
KIT MANGALORE Dept of ECE Page 32
same potential, the external power is remove, point B will be at higher potential that point A i.e. D1 is forward biased and current flows from the battery. In no case the voltage of the eliminator or the external power source should be less than the voltage of the battery. Otherwise, the current will flow from the battery during mains operation also and the battery will be drained quickly.
3.10.5. Transistor
The transistor an entirely new type of electronic device is capable of achieving amplification of weak signals in a fashion comparable and often superior to that realized by vacuum tubes. Transistors are far smaller than vacuum tube, have no filaments and hence need no heating power and may be operates in any position. They are mechanically strong, hence practically unlimited life and can do some jobs better than vacuum tubes. Invented in 1948 by J. Bardeen and W.H.Brattain of Bell Telephone Laboratories, a transistor has now become the heart of most electronic appliance. Though transistor is only slightly more the 45 years old, yet it is fast replacing vacuum tubes in almost all applications. A transistor consists of two pn junction formed by sand witching either p-type or n-type semiconductor between a pair of opposite type. Accordingly, there are two types of transistors namely: 1) 2) n-p-n transistor p-n-p transistor
An n-p-n is composed of two n-type semiconductors separated a by thin section of p-type. However, a p-n-p is formed by two p-section separated by a thin section of n-type. These are two pn junctions. Therefore, a transistor may be regarded as a combination of two diodes connected back to back. There are 3 terminals, taken from each type of semiconductor. The middle section is very thin layer. This is the most important factor in the functioning of a transistor. Origin of the name transistor : When new devices are invented, scientists often try to device a name that will appropriately describe the device. A transistor has two pn junctions. As the discussed later one junction is forward biased and the other is reversed biased. The forward biased junction has low resistance path whereas the reverse biased
KIT MANGALORE Dept of ECE Page 33
junction has low resistance path whereas the reverse biased junction has a high resistance path. The weak signal is introduced in the low resistance circuit and output is taken from the high resistance circuit. Therefore, a transistor transfers a signal from a low resistance to high resistance. The prefix tans means the signal transfer property of the device while istor classifies it as a solid element in the same general family with resistors. 3.10.6. Naming the Transistor Terminals: A transistor (pnp or npn) has three sections of doped semiconductors. The section on one side is the emitter and the section on the opposite side is the collector. The middle section is called the base and forms two junctions between the emitter and collector. Emitter: The section on one side that supplies charge carriers (electrons or holes) is called the emitter. The emitter is always forward biased w.r.t base so that it can supply a large number of majority carriers. Collector: The section on the other side that collects the charge is called the collector. The collector is always reversing biased. Its function is to remove charges from its junction with the base. Base: The middle section, which forms to pn junctions between the emitter and collector, is called bas. The base emitter junction is forward biased, allowing low resistance for the emitter circuit. The base-collector junction is reversed biased and provides high resistance in the collector circuit.
question and, in particular, the need to provide external connections to the device. Conventional logic gates, for example, are often supplied in 14-pin or 16-pin DIL packages, whilst microprocessors (and their more complex support devices) often require 40-pins or more. Identification When delving into an unfamiliar piece of equipment, one of the most common problems is that of identifying the integrated circuit devices. To aid us in this task, manufacturers provide some coding on the upper surface of each chip. Such a coding generally includes the type number of the chip (including some of the generic coding), the manufacturers name (usually in the form of prefix letters), and the classification of the device (in the form of a prefix, infix or suffix). In many cases the coding is further extended to indicate such things as encapsulation, date of manufacture, and any special characteristics of the device. Unfortunately, all of this potentially useful information often leads to some considerable confusion due to inconsistencies in marking from one manufacturer to the next! Logic Families The integrated circuit device on which modern digital circuitry depends belongs to one or other of several logic families. The term simply describes the type of semiconductor technology employed in the fabrication of the integrated circuit. This technology is instrumental in determining the characteristics of a particular device. This, however, is quite different from its characteristics, and encompasses such important criteria as supply voltage, power dissipation, switching speed and immunity to noise. The most popular logic families, at least as far as the more basic general purpose devices are concerned, are complementary metal oxide semiconductor (CMOS) and transistor transistor logic (TTL). TTL also has a number of sub-families including the popular low power Schottky (LS-TTL) variants. The most common range of conventional TTL logic devices is known as the 74 series. These devices are, not surprisingly, distinguished by the prefix number 74 in their coding. Thus devices coded with the numbers 7400, 7408, 7432 and 74121 are all members of this family which is often referred to as Standard TTL. Low power Schottky variants of these devices are distinguished by an LS infix. The coding would then be 74LS00, 74LS08, 74LS32 and 74LS121.
KIT MANGALORE Dept of ECE Page 35
Popular CMOS devices from part of the 4000 series and are coded with an initial prefix of 4. Thus 4001, 4174, 4501 and 4574 are all CMOS devices. CMOS devices are sometimes also given a suffix letter; A to denote the original (now obsolete) unbuffered series, and B to denote the improved (buffered) series. A UB suffix denotes an unbuffered B-series device.
KIT MANGALORE
If the power supply is designed for low voltage/current drawing loads/circuits (say +5V), it is sufficient to employ full-wave rectifier with centre-tap transformer as a power source. The transformer rating is 230V AC at Primary and 12-0-12V, 1Ampers across secondary winding. This transformer has a capability to deliver a current of 1Ampere, which is more than enough to drive any electronic circuit or varying load. The 12VAC appearing across the secondary is the RMS value of the waveform and the peak value would be 12 x 1.414 = 16.8 volts.
KIT MANGALORE
KIT MANGALORE
CHAPTER 5
SOFTWARE DESCRIPTION
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.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.
KIT MANGALORE Dept of ECE Page 39
sbit s1 = port1 ^ 0; sbit s2 = port1 ^ 1; sbit s3 = port1 ^ 2; sbit s4= bit a; void displayset(); void display(char); unsigned char ch; port1 ^ 3;
void command() // CONTROL BIT FOR LCD { rs = 0; rw = 0; e = 1; e = 0; } void datawrt()// CONTROL BITS FOR LCD {
KIT MANGALORE
rs = 1; rw = 0; e = 1; e = 0; } void delay() { unsigned int i; for ( i = 0; i < 50; i++ ) ; } void main() { long int x; int b=0, c=0, d=0; unsigned char z; unsigned char command1[] = "AT" ; unsigned char command2[] = "AT+CMGF=1" ; unsigned char command3[] = "AT+CMGS=" ; unsigned char mobno[] unsigned char message1[] //unsigned char message3[] //unsigned char message2[] //unsigned char message4[]= = "9916052851" ; = "RESERVED" ; = "LOW PRESSURE" ; = "TEMPERATURE" ; "HIGH PRESSURE";
a=1; s1=1; s2=1; s3=1; s4=1; displayset(); TMOD = 0x20; TH1 = 0xfd; SCON = 0x50; TR1 = 1; while (1) { displayset(); b=0; c=0; d=0; e=0;
KIT MANGALORE
if ((s1==1) || (s2==1) || (s3==1) || (s4==1)) a=1; else a=0; if (((s1 == 0) || (s2==0) || (s3==0) || (s4==0)) && (a == 1)) { if (s1==0) if (s2==0) if (s3==0) if (s4==0) a=0; for (z=0; z<2; z++) { SBUF = command1[z]; while(TI==0); TI=0; } SBUF = 13; while(TI==0); TI=0; b=1; c=1; d=1; e=1;
x=0; while(1) { while(RI==0) { x=x+1; if (x>=20000) break; } if ((x>=20000) && (RI==0)) break; else x=0; ch RI=0; } = SBUF; display(ch);
KIT MANGALORE
displayset(); for (z=0; z<9; z++) { SBUF = command2[z]; while(TI==0); TI=0; } SBUF = 13; while(TI==0); TI=0;
x=0; while(1) { while(RI==0) { x=x+1; if (x>=20000) break; } if ((x>=20000) && (RI==0)) break; else x=0; ch RI=0; } displayset(); for (z=0; z<8; z++) { SBUF = command3[z]; while(TI==0); TI=0; = SBUF; display(ch);
KIT MANGALORE
} SBUF = 34; while(TI==0); TI=0; for (z=0; z<10; z++) { SBUF = mobno[z]; while(TI==0); TI=0; } SBUF = 34; while(TI==0); TI=0; SBUF = 13; while(TI==0); TI=0; x=0; while(1) { while(RI==0) { x=x+1; if (x>=20000) break; } if ((x>=20000) && (RI==0)) break; else x=0; ch RI=0; } displayset(); if (b==1) = SBUF; display(ch);
KIT MANGALORE
{ for (z=0; z<8; z++) { SBUF = message1[z]; while(TI==0); TI=0; } /* { for (z=0; z<11; z++) { SBUF = message2[z]; while(TI==0); TI=0; } /* { for (z=0; z<8; z++) { SBUF = message3[z]; while(TI==0); TI=0; } /* { for (z=0; z<8; z++) { SBUF = message4[z]; while(TI==0); TI=0; }*/ if (e==1) }*/ if (d==1) } if (c==1)
KIT MANGALORE
} */
SBUF = 26; while(TI==0); TI=0; x=0; while(1) { while(RI==0) { x=x+1; if (x>=20000) break; } if ((x>=20000) && (RI==0)) break; else x=0; ch RI=0; } while ((s1==0) || (s2==0) || (s3==0) || (s4==0)); } } } void displayset() { port2 = 0x00; port0 = 0x00; port0 = 0x38; command(); delay(); = SBUF; display(ch);
KIT MANGALORE
port0 = 0x0e; command(); delay(); port0 = 0x01; command(); delay(); port0 = 0x80; command(); delay(); port0 = 0x06; command(); delay(); } void display(char ch) { port0 = ch; datawrt(); delay(); port0 = 0x06; command(); delay(); }
KIT MANGALORE
KIT MANGALORE
CHAPTER 7
APPLICATIONS
The main appliations of this project is to enhance the efficiency of the security system of the costal area of a country. Other than security purpose it can be used to monitor the movement of ships in the sea or ocean. Thus if any mishap occurs the coastal patrol can always be in the possession to rescue. Also this project can help the blind to move more safely without hitting any obstacles by making some small changes in the circuit. The project helps in the training of security officers and military personal to move in complete darkness for the detection of object and navigation purpose. By using this technology the presents of thieves can be detected in any industries or any other offices as part of its security system. The project can also used to airports, flights, shopping complexes and other offices for automation of door control. With some simple modifications, the project can also be used for industrial access control.
KIT MANGALORE
CHAPTER 8
FUTURE DEVELOPMENTS
The following modifications can be made to the present circuit, which leads to still smarter project. The project can be easily upgraded to Computer Based Security System and
control many doors for illegal entry. Since this system is now associated with a PC, it is very easy to store the data, keep track of the employees and their presence during the watch-hour.Alarm Circuit can be added to get the audible alert sound, if any person wants to
break the door and try to enter the room. The project can be converted into total wireless system. The Wire-less feature can be explored to its maximum limit. The small-scale and medium size industries can be converted from manual to wireless controlled operations. This reduces the over all man power & maintains charge and increases the efficiency & production of the Industry. The conversion to wireless is simple and worth investing. This project is open for developments from all sides. It is the users imagination which limits the working of this project. One can go on adding the extra, rich features to this project
KIT MANGALORE
CHAPTER 9
CONCLUSION
There are many improvements that we can make to our system in order to create better results. First of all, we need to increase the range of the detection, not having to limit our input signals as much to get accurate results. We need to adjust with the sampling rate that we use in order to be able to detect smaller velocities as well as more accurate ranges. We could optimize the algorithm for the peak locator in the velocity analysis to give more accurate results. In the end, we managed to create a system that created signals to send out with a RADAR, as well as simulate a returned signal for objects a specific distance away or moving at a certain velocity. We were able to detect the range for objects that were fairly close, and calculate the velocity for objects moving extremely fast.
KIT MANGALORE
REFERENCES
1) [Davies, 1990] Davies, H.C, Kayaalp, A.E, and Moezzi, S. Marine Coastal Area Security Systems, Proceedings Of AUVS-90, Dayton OH, 30 july-1 August 1990, pp 318-335 2) [Chun, 1994] Chun, W.H, and Jochem, T.M. Ultrasonic Radar: Demonstration A, Proceedings of Ultrasonic Radar, Bostan MA, 2-4 November 1994, SPIE volume 2352, pp 180-191. 3) [Burke, 1995] Burke,J.D. et al, Field Test of a Russian Coastal Area, Proceedings of the ANS 6th Topical Meeting on Security Systems, Monterey CA, 5-10 February 1995, pp 425-432. 4) Receiver Tags, Bostan MA, 8-9 November 1990,SPIE VOLUME 1388, PP 587-597. 5) J.E Flood. Et al. Telecommunication Switching, Traffiv and Networks. 6) Mazidi The 8051 Microcontroller & Embeded Systems, Spiring 1992, volume 10, number 2, pp 42-47.
KIT MANGALORE