Bomb Detecting Robot
Bomb Detecting Robot
CONTENTS
7 PCB DESIGN
7.1 INTRODUCTION 54
7.2 SOFTWARE 54
1
7.3 MANUFACTURING 54
7.4 PANELISATION 55
7.5 PLATING 55
7.6 ETCHING 55
7.7 SOLDER MASK 55
7.8 HOT AIR LEVELING 56
SOFTWARE
8 SOFTWARE TOOLS
8.1 KEILC COMPILER 57
8.2 SIMULATOR 58
9 PROGRAM 60
10 PROGRAM DESCRIPTION 63
11 ADVANTAGES 64
12 APPLICATIONS 64
13 CONCLUSION 65
14 REFERENCES 66
2
1. ABSTRACT
With their computational and agile skills robots perform tasks that are
difficult or hazardous to humans. Advances in microchips, microprocessors,
sensors, control, systems, mechanical engineering, transducers, and
telecommunications have resulted in widespread growth of robotic processes
and applications.
3
2. INTRODUCTION
Microcontroller is the heart of the device which handles all the sub devices
connected across it. We have used as Atmel microcontroller. It has flash type
reprogrammable memory. It has some peripheral devices to play this project
perform. It also provides sufficient power to inbuilt peripheral devices. We need
not give individually to all devices. The peripheral devices also activates as low
power operation mode. These are the advantages are appear here.
4
3. BLOCK DIAGRAM
5
4. BLOCK DIAGRAM DESCRIPTION
4. 1 MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
revolutionizing various industries and influencing our day to day life more strongly
than one can imagine. Since its emergence in the early 1980's the
intelligent digital systems. It is finding using diverse area, starting from simple
children's toys to highly complex spacecraft. Because of its versatility and many
system design and development. It identifies the vital features responsible for
their tremendous impact, the acute educational need created by them and
MICROCONTROLLER
6
single chip substantially reduces the cost of building simple products, which use
idea of using a microprocessor for low cost products comes up often. But the
typical 8-bit microprocessor based system, such as one using a Z80 and 8085 is
expensive. Both 8085 and Z80 system need some additional circuits to make a
product design may requires only very simple system, the parts needed to make
chip microcontroller. This could be called microcomputer, as all the major parts
are in the IC. Most frequently they are called microcontroller because they are
computer. Micro suggests that the device is small, and controller tells you that
the device' might be used to control objects, processes, or events. Another term
and its support circuits are often built into, or embedded in, the devices they
control.
7
Today microcontrollers are very commonly used in wide variety of
Decoding, and Serial transmission circuits. Many low cost products, such as
Toys, Electric Drills, Microwave Ovens, VCR and a host of other consumer and
EVOLUTION OF MICROCONTROROLLER
Markets for microcontrollers can run into millions of units per application.
produced a mind-numbing array of designs that would seem to meet almost any
need. Some of the chips listed in this section are no longer regular production,
most are current, and a few are best termed as "smoke ware": the dreams of an
Sl.No
Manufacturer Chip Year No. No RAM ROM Other
Designation of of Features
Pins I/O
4 Bit MC
8
ROM
8 bit MC
16 Bit MC
9
WDT,
PWM
32 Bit MC
10
APPLICATION
microcontrollers are built-in. If it has buttons and a digital display, chances are it
Try to make a list and counting how many devices and the events with
microcontrollers you use in a typical day. Here are some examples: if your clock
radio goes off, and you hit the snooze button a few times in the morning, the first
thing you do in your day is interact with a microcontroller. Heating up some food
in the microwave oven and making a call on a cell phone also involve operating
microcontrollers. That's just the beginning. Here are a few more examples:
Turning on the Television with a handheld remote, playing a hand held game,
Using a calculator, and Checking your digital wrist watch. All those devices have
microcontrollers inside them, that interact with you. Consumer appliances aren't
designs and other high-tech devices are also built with microcontrollers.
11
BLOCK DIAGRAM OF MICROCONTROLLER
12
PIN DIAGRAM
PIN DESCRIPTION
VCC
Supply voltage.
GND
Ground.
Port 0
Port 0 is an 8-bit open drain bidirectional I/O port. As an output port each
pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be
data memory. In this mode P0 has internal pullups. Port 0 also receives the code
bytes during Flash programming, and outputs the code bytes during program
13
Port 1
Port 1 is an 8-bit bidirectional I/O port with internal pullups. The Port 1
output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins
they are pulled high by the internal pullups and can be used as inputs. As inputs,
Port 1 pins that are externally being pulled low will source current (IIL) because
of the internal pullups. Port 1 also receives the low-order address bytes during
Port 2
Port 2 is an 8-bit bidirectional I/O port with internal pullups. The Port 2
output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins
they are pulled high by the internal pullups and can be used as inputs. As inputs,
Port 2 pins that are externally being pulled low will source current (IIL) because
of the internal pullups. Port 2 emits the high-order address byte during fetches
from external program memory and during accesses to external data memory
that use 16-bit addresses (MOVX @ DPTR). In this application it uses strong
internal pull-ups when emitting 1s. During accesses to external data memory
that use 8-bit addresses (MOVX @ RI), Port 2 emits the contents of the P2
Special Function Register. Port 2 also receives the high-order address bits and
Port 3
Port 3 is an 8-bit bidirectional I/O port with internal pullups. The Port 3
output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins
they are pulled high by the internal pullups and can be used as inputs. As inputs,
14
Port 3 pins that are externally being pulled low will source current (IIL) because
of the pullups. Port 3 also serves the functions of various special features of the
Port 3 also receives some control signals for Flash programming and
verification.
RST
Reset input. A high on this pin for two machine cycles while the oscillator
ALE/PROG
Address Latch Enable output pulse for latching the low byte of the address
during accesses to external memory. This pin is also the program pulse input
constant rate of 1/6 the oscillator frequency, and may be used for external timing
or clocking purposes. Note, however, that one ALE pulse is skipped during each
8EH. With the bit set, ALE is active only during a MOVX or MOVC instruction.
15
Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has no effect
PSEN
When the AT89C51 is executing code from external program memory, PSEN is
activated twice each machine cycle, except that two PSEN activations are
EA/VPP
the device to fetch code from external program memory locations starting at
executions.
This pin also receives the 12-volt programming enable voltage (VPP)
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock
operating circuit.
XTAL2
Output from the inverting oscillator amplifier. It should be noted that when
idle is terminated by a hard ware reset, the device normally resumes program
execution, from where it left off, up to two machine cycles before the internal
reset algorithm takes control. On-chip hardware inhibits access to internal RAM
16
in this event, but access to the port pins is not inhibited. To eliminate the
the instruction following the one that invokes Idle should not be one that writes to
17
ARCHITECTURE OF 89C51
18
ADVANTAGES OF MICROCONTROLLERS:
go for external memory such as RAM, ROM or EPROM and peripherals and
hence the size of the PCB will be large enough to hold all the required
peripherals. But, the micro controller has got all these peripheral facilities on a
microprocessor is that a controller often deals with bits , not bytes as in the real
world application, for example switch contacts can only be open or close,
indicators should be lit or dark and motors can be either turned on or off and so
forth.
19
Multiple 16-Bit Timer/Counters
On - Chip EEPROM
IDLE MODE:
The CPU is turned off while the RAM and other on - chip peripherals
continue operating. Inn this mode current draw is reduced to about 15 percent of
All on-chip activities are suspended while the on – chip RAM continues to
hold its data. In this mode, the device typically draws less than 15 Micro Amps
20
POWER ON RESET:
When power is turned on, the circuit holds the RST pin high for an amount
of time that depends on the capacitor value and the rate at which it charges.
To ensure a valid reset, the RST pin must be held high long enough to
allow the oscillator to start up plus two machine cycles. On power up, Vcc should
rise within approximately 10ms. The oscillator start-up time depends on the
oscillator frequency. For a 10 Mhz crystal, the start-up time is typically 1ms.With
the given circuit, reducing Vcc quickly to 0 causes the RST pin voltage to
momentarily fall below 0V. How ever, this voltage is internally l limited and will
MEMORY ORGANIZATION:
All Atmel Flash micro controllers have separate address spaces for
porgram and data memory as shown in Fig 1.The logical separation of program
and data memory allows the data memory to be accessed by 8 bit addresses .
Nevertheless 16 Bit data memory addresses can also be generated through the
DPTR register.
directly addressable program memory. The read strobe for external program
memory is the Program Store Enable Signal (PSEN) Data memory occupies a
21
external memory can be directly addressed in the external data memory space.
The CPU generates read and write signals, RD and WR, during external data
memory accesses. External program memory and external data memory can be
combined by an applying the RD and PSEN signals to the inputs of AND gate
and using the output of the fate as the read strobe to the external program/data
memory.
PROGRAM MEMORY:
The map of the lower part of the program memory, after reset, the CPU
begins execution from location 0000h. Each interrupt is assigned a fixed location
in program memory. The interrupt causes the CPU to jump to that location,
assigned to location 0003h. If external Interrupt 0 is used, its service routine must
begin at location 0003h. If the I interrupt in not used its service location is
The interrupt service locations are spaced at 8 byte intervals 0003h for
External interrupt 0, 000Bh for Timer 0, 0013h for External interrupt 1,001Bh for
Timer1, and so on. If an Interrupt service routine is short enough (as is often the
case in control applications) it can reside entirely within that 8-byte interval.
Longer service routines can use a jump instruction to skip over subsequent
make this selection, strap the External Access (EA) pin to either Vcc or GND. For
22
strapped to Vcc, program fetches to addresses 0000h through 0FFFh are
DATA MEMORY:
The Internal Data memory is dived into three blocks namely, Refer Fig
Internal Data memory Addresses are always 1 byte wide, which implies an
address space of only 256 bytes. However, the addressing modes for internal
RAM can in fact accommodate 384 bytes. Direct addresses higher than 7Fh
access one memory space, and indirect addresses higher than 7Fh access a
instructions call out these registers as R0 through R7. Two bits in the Program
Status Word (PSW) Select, which register bank, is in use. This architecture
allows more efficient use of code space, since register instructions are shorter
The next 16-bytes above the register banks form a block of bit
addressable memory space. The micro controller instruction set includes a wide
selection of single - bit instructions and this instruction can directly address the
128 bytes in this area. These bit addresses are 00h through 7Fh. either direct or
indirect addressing can access all of the bytes in lower 128 bytes. Indirect
23
addressing can only access the upper 128. The upper 128 bytes of RAM are only
controls etc., direct addressing can only access these register. In general, all
Atmel micro controllers have the same SFRs at the same addresses in SFR
space are both byte and bit Addressable. The bit Addressable SFRs are those
whose address ends in 000B. The bit addresses in this area are 80h through
FFh.
ADDRESSING MODES:
DIRECT ADDRESSING:
instruction. Only internal data RAM and SFR’s can be directly addressed.
INDIRECT ADDRESSING:
address of the operand. Both internal and external RAM can indirectly address.
The address register for 8-bit addresses can be either the Stack Pointer or
R0 or R1 of the selected register Bank. The address register for 16-bit addresses
24
INDEXED ADDRESSING:
bit base register (Either DPTR or the Program Counter) points to the base of the
table, and the accumulator is set up with the table entry number. Adding the
Accumulator data to the base pointer forms the address of the table entry in
program memory.
computed as the sum of the base pointer and the Accumulator data.
REGISTER INSTRUCTION:
Instructions that access the registers this way make efficient use of code, since
this mode eliminates an address byte. When the instruction is executed, one of
four banks is selected at execution time by the row bank select bits in PSW.
point OT ir. In these cases, the opcode itself points to the correct register.
Opcodes.
25
IMMEDIATE CONSTANTS:
The value of a constant can follow the opcode in program memory For
example. MOV A, #100 loads the Accumulator with the decimal number 100.
PSW 7 PSW 0
PSW 6 PSW 1
PSW 5 PSW 2
PSW 4 PSW 3
PSW 0:
PSW1:
PSW2:
26
PSW3:
PSW4:
PSW5:
PSW6:
PSW7:
The Program Status Word contains Status bits that refklect the current
stae of the CPU. The PSW shown if Fig resides in SFR space. The PSW
conrains the Carry Bit, The auxillary Carry (For BCD Operations) the two -
register bank select bits, the Overflow flag, a Parity bit and two user Definable
status Flags.
also serves the as the “Accumulator” for a number of Boolean Operations .The
bits RS0 and RS1 select one of the four register banks. A number of instructions
register to these RAM locations as R0 through R7.The status of the RS0 and
RS1 bits at execution time determines which of the four banks is selected.
27
The Parity bit reflect the Number of 1s in the Accumulator .P=1 if the
contains an even number of 1s. Thus, the number of 1s in the Accumulator plus
P is always even. Two bits in the PSW are uncommitted and can be used as
INTERRUPTS
timer interrupts and a serial port interrupts. The External Interrupts INT0 and
INT1 can each either level activated or transistion - activated, depending on bits
IT0 and IT1 in Register TCON. The Flags that actually generate these interrupts
are the IE0 and IE1 bits in TCON. When the service routine is vectored to
hardware clears the flag that generated an external interrupt only if the interrupt
WA transition - activated. If the interrupt was level - activated, then the external
requesting source (rather than the on-chip hardware) controls the requested flag.
Tf0 and Tf1 generate the Timer 0 and Timer 1 Interrupts, which are set by a
3). When a timer interrupt is generated, the on-chip hardware clears the flag that
generated it when the service routine is vectored to. The logical OR of RI and TI
generate the Serial Port Interrupt. Neither of these flag is cleared by hardware
when the service routine is vectored to. In fact, the service routine normally must
software.
28
In the Serial Port Interrupt is generated by the logical OR of RI and TI.
Neither of these flag is cleared by hardware when the service routine is vectored
29
OSCILLATOR AND CLOCK CIRCUIT:
XTAL1 and XTAL2 are the input and output respectively of an inverting
configuration, in the frequency range of 1.2 Mhz to 12 Mhz. XTAL2 also the input
To drive the chip with an internal oscillator, one would ground XTAL1 and
XTAL2. Since the input to the clock generator is divide by two filip flop there are
tow phase clock signal to the chip. The phase 1 signal is active during the first
half to each clock period and the phase 2 signals are active during the second
CPU TIMING:
half, during which the phase 1 clock is active and phase 2 half. Arithmetic and
Logical operations take place during phase1 and internal register - to register
The manner in which the use of micro controllers is shaping our lives is
30
applications. CVTs, VCRs, CD players, microwave ovens, and automotive
The micro controller is the most essential IC for continuous process- based
steel, and electrical, employing programmable logic systems (DCS). PLC and
Micro controller devices have many similarities. When you look at the
differences, they are not so great either. Most common and popular MCUs
each family to satisfy most memory, I/O, data conversion, and timing needs of
enduser applications.
that is fed through its serial or operated on under the control of software and
31
stored in ROM. Appropriate signals are fed via output ports to control external
APPLICATIONS OF MICROCONTROLLERS
applications such as
1. Industrial Control
2. Instrumentation and
Motor
Robotics
In medical instrumentation
Oscilloscopes
Telecommunication
Automobiles
Driving an LCD
32
For Frequency measurements
Period Measurements
33
long life and a wide operating temperature range. Changing the display size or
the layout size is relatively simple which makes the LCD’s more customers
friendly.
The LCDs used exclusively in watches, calculators and measuring
instruments are the simple seven-segment displays, having a limited amount of
numeric data. The recent advances in technology have resulted in better
legibility, more information displaying capability and a wider temperature range.
These have resulted in the LCDs being extensively used in telecommunications
and entertainment electronics. The LCDs have even started replacing the
cathode ray tubes (CRTs) used for the display of text and graphics, and also in
small TV applications.
Crystalonics dot–matrix (alphanumeric) liquid crystal displays are
available in TN, STN types, with or without backlight. The use of C-MOS LCD
controller and driver ICs result in low power consumption. These modules can be
interfaced with a 4-bit or 8-bit microprocessor /Micro controller.
The built-in controller IC has the following features:
Correspond to high speed MPU interface (2MHz)
80 x 8 bit display RAM (80 Characters max)
9,920-bit character generator ROM for a total of 240 character fonts. 208
character fonts (5 x 8 dots) 32 character fonts (5 x 10 dots)
64 x 8 bit character generator RAM 8 character generator RAM 8 character
fonts (5 x 8 dots) 4 characters fonts (5 x 10 dots)
Programmable duty cycles
1/8 – for one line of 5 x 8 dots with cursor
1/11 – for one line of 5 x 10 dots with cursor
1/16 – for one line of 5 x 8 dots with cursor
Wide range of instruction functions display clear, cursor home, display on/off,
cursor on/off, display character blink, cursor shift, display shift.
Automatic reset circuit, which initializes the controller / driver ICs after power
on.
34
4.3 RF TRANSMITTER RECEIVER
35
4.4 Encoder and Decoder
Encoder
An encoder is a device used to change a signal (such as a bitstream) or data
into a code. The code may serve any of a number of purposes such as
compressing information for transmission or storage, encrypting or adding
redundancies to the input code, or translating from one code to another. This is
usually done by means of a programmed algorithm, especially if any part is
digital, while most analog encoding is done with analog circuitry.
Decoder:
A decoder is a device which does the reverse of an encoder, undoing the
encoding so that the original information can be retrieved. The same method
used to encode is usually just reversed in order to decode.
Enable inputs must be on for the decoder to function, otherwise its outputs
assume a single "disabled" output code word. Decoding is necessary in
applications such as data multiplexing, 7 segment display and memory address
decoding.
The simplest decoder circuit would be an AND gate because the output of an
AND gate is "High" (1) only when all its inputs are "High".
A slightly more complex decoder would be the n-to-2 n type binary decoders.
These type of decoders are combinational circuits that convert binary information
from 'n' coded inputs to a maximum of 2 n unique outputs. We say a maximum of
2n outputs because in case the 'n' bit coded information has unused bit
36
combinations, the decoder may have less than 2 n outputs. We can have 2-to-4
decoder, 3-to-8 decoder or 4-to-16 decoder. We can form a 3-to-8 decoder from
two 2-to-4 decoders (with enable signals).
37
4.5 RELAY
A relay is an electrical switch that opens and closes under the control of another
electrical circuit. In the original form, the switch is operated by an electromagnet
to open or close one or many sets of contacts. It was invented by Joseph Henry
in 1835. Because a relay is able to control an output circuit of higher power than
the input circuit, it can be considered to be, in a broad sense, a form of an
electrical amplifier
When a current flows through the coil, the resulting magnetic field attracts an
armature that is mechanically linked to a moving contact. The movement either
makes or breaks a connection with a fixed contact. When the current to the coil is
switched off, the armature is returned by a force approximately half as strong as
the magnetic force to its relaxed position. Usually this is a spring, but gravity is
also used commonly in industrial motor starters. Most relays are manufactured to
operate quickly. In a low voltage application, this is to reduce noise. In a high
voltage or high current application, this is to reduce arcing.
If the coil is energized with DC, a diode is frequently installed across the coil, to
dissipate the energy from the collapsing magnetic field at deactivation, which
would otherwise generate a spike of voltage and might cause damage to circuit
components. Some automotive relays already include that diode inside the relay
case. Alternatively a contact protection network, consisting of a capacitor and
resistor in series, may absorb the surge. If the coil is designed to be energized
with AC, a small copper ring can be crimped to the end of the solenoid. This
"shading ring" creates a small out-of-phase current, which increases the
minimum pull on the armature during the AC cycle.
38
A relay is an electrically operated switch. Current flowing through the coil of the
relay creates a magnetic field which attracts a lever and changes the switch
contacts. The coil current can be on or off so relays have two switch positions
and they are double throw (changeover) switches.
Relays allow one circuit to switch a second circuit which can be completely
separate from the first. For example a low voltage battery circuit can use a relay
to switch a 230V AC mains circuit. There is no electrical connection inside the
relay between the two circuits, the link is magnetic and mechanical.
The coil of a relay passes a relatively large current, typically 30mA for a 12V
relay, but it can be as much as 100mA for relays designed to operate from lower
voltages. Most ICs (chips) cannot provide this current and a transistor is usually
used to amplify the small IC current to the larger value required for the relay coil.
The maximum output current for the popular 555 timer IC is 200mA so these
devices can supply relay coils directly without amplification.
Relays are usuallly SPDT or DPDT but they can have many more sets of switch
contacts, for example relays with 4 sets of changeover contacts are readily
available. For further information about switch contacts and the terms used to
describe them please see the page on switches.
39
Most relays are designed for PCB mounting but you can solder wires directly to
the pins providing you take care to avoid melting the plastic case of the relay.
The supplier's catalogue should show you the relay's connections. The coil will
be obvious and it may be connected either way round. Relay coils produce brief
high voltage 'spikes' when they are switched off and this can destroy transistors
and ICs in the circuit. To prevent damage you must connect a protection diode
across the relay coil.
The animated picture shows a working relay with its coil and switch contacts. You
can see a lever on the left being attracted by magnetism when the coil is
switched on. This lever moves the switch contacts. There is one set of contacts
(SPDT) in the foreground and another behind them, making the relay DPDT.
Transistors and ICs (chips) must be protected from the brief high voltage 'spike'
produced when the relay coil is switched off. The diagram shows how a signal
diode is connected across the relay coil to provide this protection. Note that the
diode is connected 'backwards' so that it will normally not conduct. Conduction
only occurs when the relay coil is switched off, at this moment current tries to
continue flowing through the coil and it is harmlessly diverted through the diode.
Without the diode no current could flow and the coil would produce a damaging
high voltage 'spike' in its attempt to keep the current flowing.
40
41
4.6 DC MOTOR
42
43
4.7 BUZZER
In game shows it is also known as a "lockout system," because when one person
signals ("buzzes in"), all others are locked out from signalling. Several game
shows have large buzzer buttons which are identified as "plungers".
The word "buzzer" comes from the rasping noise that buzzers made when they
were electromechanical devices, operated from stepped-down AC line voltage at
50 or 60 cycles. Other sounds commonly used to indicate that a button has been
pressed are a ring or a beep.
44
Some systems, such as the one used on Jeopardy!, make no noise at all, instead
using light. Another example is the buzzer at the end of each stage in Sasuke,
Kunoichi, and Viking. These buzzers do not make a sound or turn on a light;
instead, they stop a nearby digital clock, briefly fire two smoke cannons on each
side of the stage exit, and open the exit. However, at the end of the Heartbreaker
in Viking, the buzzer is replaced with a sword that, when removed, causes two
contacts to touch, closing the circuit and causing the latter two actions above to
occur.
45
5. OVERALL CIRCUIT DIAGRAM
46
47
6. OVERALL CIRCUIT DIAGRAM DESCRIPTION
Block diagram
48
Working principle
Transformer
The transformer will step down the power supply voltage (0-230V) to (0-6V) level.
Then the secondary of the potential transformer will be connected to the
precision rectifier, which is constructed with the help of op–amp. The advantages
of using precision rectifier are it will give peak voltage output as DC; rest of the
circuits will give only RMS output.
Bridge rectifier
When four diodes are connected as shown in figure, the circuit is called as
bridge rectifier. The input to the circuit is applied to the diagonally opposite
corners of the network, and the output is taken from the remaining two corners.
The negative potential at point B will forward bias D1 and reverse D2. At
this time D3 and D1 are forward biased and will allow current flow to pass
through them; D4 and D2 are reverse biased and will block current flow.
The path for current flow is from point B through D1, up through RL,
through D3, through the secondary of the transformer back to point B. this path is
indicated by the solid arrows. Waveforms (1) and (2) can be observed across D1
and D3.
49
One-half cycle later the polarity across the secondary of the transformer
reverse, forward biasing D2 and D4 and reverse biasing D1 and D3. Current flow
will now be from point A through D4, up through RL, through D2, through the
secondary of T1, and back to point A. This path is indicated by the broken
arrows. Waveforms (3) and (4) can be observed across D2 and D4. The current
flow through RL is always in the same direction. In flowing through RL this
current develops a voltage corresponding to that shown waveform (5). Since
current flows through the load (RL) during both half cycles of the applied voltage,
this bridge rectifier is a full-wave rectifier.
The maximum voltage that appears across the load resistor is nearly-but
never exceeds-500 v0lts, as result of the small voltage drop across the diode. In
the bridge rectifier shown in view B, the maximum voltage that can be rectified is
the full secondary voltage, which is 1000 volts. Therefore, the peak output
voltage across the load resistor is nearly 1000 volts. With both circuits using the
same transformer, the bridge rectifier circuit produces a higher output voltage
than the conventional full-wave rectifier circuit.
50
IC voltage regulators
51
A fixed three-terminal voltage regulator has an unregulated dc input
voltage, Vi, applied to one input terminal, a regulated dc output voltage, Vo, from
a second terminal, with the third terminal connected to ground.
The series 78 regulators provide fixed positive regulated voltages from 5
to 24 volts. Similarly, the series 79 regulators provide fixed negative regulated
voltages from 5 to 24 volts.
For ICs, microcontroller, LCD --------- 5 volts
For alarm circuit, op-amp, relay circuits ---------- 12 volts
52
6.2 MICROCONTROLLER CIRCUIT
The microcontroller circuit is connected with reset circuit, crystal oscillator circuit,
lcd circuit the reset circuit is the one which is an external interrupt which is
designed to reset the program. And the crystal oscillator circuit is the one used to
generate the pulses to microcontroller and it also called as the heart of the
microcontroller here we have used 12mhz crystal which generates pulses upto
12000000 frequency which is converted it machine cycle frequency when divided
by 12 which is equal to 1000000hz to find the time we have to invert the
frequency so that we get one micro second for each execution of the instruction.
The lcd that is liquid crystal display which is used to display the what we need the
lcd has fourteen pins in which three pins for the command and eight pins for the
53
data. If the data is given to lcd it is write command which is configured by the
programmer otherwise it is read command in which data read to microcontroller
the data pins are given to the to port0 and command pins are given to the port2.
Other than these pin a one pin configured for the contrast of the lcd. Thus the
microcontroller circuit works
54
6.3 ENCODER WITH RF TRANSMITTER
Encoder:
In this circuit HT 640 is used as encoder. The 3 18 encoders are a series of CMOS
LSIs for remote control system application. They are capable of encoding 18 bits of
information which consists of N address bit and 18-N data bits. Each address/data input is
externally trinary programmable if bonded out. It is otherwise set floating internally.
Various packages of the 318 encoders offer flexible combination of programmable
address/data is transmitted together with the header bits via an RF or an infrared
transmission medium upon receipt of a trigger signal. The capability to select a TE
trigger type further enhances the application flexibility of the 318 series of encoders.
55
In this circuit the input signal to be encoded is given to AD7-AD0 input pins of
encoder. Here the input signal may be from key board, parallel port, microcontroller or
any interfacing device. The encoder output address pins are shorted so the output encoded
signal is the combination of (A0-A9) address signal and (D0-D7) data signal. The output
encoded signal is taken from 8th which is connected to RF transmitter section.
RF Transmitter:
When ever the high output pulse is given to base of the transistor BF 494,
the transistor is conducting so tank circuit is oscillated. The tank circuit is consists of L2
and C4 generating 433 MHz carrier signal. Then the modulated signal is given LC filter
section. After the filtration the RF modulated signal is transmitted through antenna.
56
6.4 DECODER WITH RF RECEIVER
RF Receiver:
The RF receiver is used to receive the encoded data which is transmitted
by the RF transmitter. Then the received data is given to transistor which acts as
amplifier. Then the amplified signal is given to carrier demodulator section in which
transistor Q1 is turn on and turn off conducting depends on the signal. Due to this the
capacitor C14 is charged and discharged so carrier signal is removed and saw tooth signal
is appears across the capacitor. Then this saw tooth signal is given to comparator. The
comparator circuit is constructed by LM558. The comparator is used to convert the saw
tooth signal to exact square pulse. Then the encoded signal is given to decoder in order to
get the decoded original signal.
Decoder:
In this circuit HT648 is used as decoder. The 3 18 decoder are a series of
CMOS LSIs for remote control system application. They are paired with 3 18 series of
encoders. For proper operation a pair of encoder/decoder pair with the same number of
57
address and data format should be selected. The 318 series of decoder receives serial
address and data from that series of encoders that are transmitted by a carrier using an RF
or an IR transmission medium. It then compares the serial input data twice continuously
with its local address. If no errors or unmatched codes are encountered, the input data
codes are decoded and then transferred to the output pins. The VT pin also goes high to
indicate a valid transmission.
The 318 decoders are capable of decoding 18 bits of information that consists of N bits
of address and 18-N bits of data. To meet various applications they are arranged to
provide a number of data pins whose range is from 0 t08 and an address pin whose range
is from 8 to 18. In addition, the 318 decoders provide various combinations of address/
data numbering different package.
In this circuit the received encoded signal is 9th pin of the decoder. Now the decoder
separate the address (A0-A9) and data signal (D0-D7). Then the output data signal is
given to microcontroller or any other interfacing device.
58
6.5 DC MOTOR FORWARD AND REVERSE
DC MOTOR FORWARD REVERSE CONTROL
59
is conducting and relay is turn ON. The NO and NC pins of two relays are interconnected
so only one relay can be operated at a time.
The series combination of resistor and capacitor is called as snubber circuit. When
the relay is turn ON and turn OFF continuously, the back emf may fault the relays. So the
back emf is grounded through the snubber circuit.
When relay 1 is in the ON state and relay 2 is in the OFF state, the motor is
running in the forward direction.
When relay 2 is in the ON state and relay 1 is in the OFF state, the motor is
running in the reverse direction.
60
6.6 BUZZER
ALARM
Buzzer:
A buzzer or beeper is a signalling device, usually electronic, typically used in
automobiles, household appliances such as a microwave oven, or game shows. It most
commonly consists of a number of switches or sensors connected to a control unit that
determines if and which button was pushed or a preset time has lapsed, and usually
illuminates a light on the appropriate button or control panel, and sounds a warning in the
form of a continuous or intermittent buzzing or beeping sound. Initially this device was
based on an electromechanical system which was identical to an electric bell without the
metal gong (which makes the ringing noise).
Often these units were anchored to a wall or ceiling and used the ceiling or wall as
a sounding board. Another implementation with some AC-connected devices was to
implement a circuit to make the AC current into a noise loud enough to drive a
61
loudspeaker and hook this circuit up to a cheap 8-ohm speaker. Nowadays, it is more
popular to use a ceramic-based piezoelectric sounder like a Sonalert which makes a high-
pitched tone. Usually these were hooked up to "driver" circuits which varied the pitch of
the sound or pulsed the sound on and off.
Circuit description:
The circuit is designed to control the buzzer. The buzzer ON and OFF is
controlled by the pair of switching transistors (BC 547). The buzzer is connected in the
Q2 transistor collector terminal.
When high pulse signal is given to base of the Q1 transistors, the transistor is
conducting and close the collector and emitter terminal so zero signals is given to base of
the Q2 transistor. Hence Q2 transistor and buzzer is turned OFF state.
When low pulse is given to base of transistor Q1 transistor, the transistor is
turned OFF. Now 12v is given to base of Q2 transistor so the transistor is conducting and
buzzer is energized and produces the sound signal.
1 on off off
0 off on on
62
63
7. PCB DESIGN
7.1 INTRODUCTION:
7.2 MANUFATCURING:
The manufacturing process consists of two methods; print and etch, and
print, plate and etch. The single sided PCBs are usually made using the print and
etch method. The double sided plate through – hole (PTH) boards are made by
the print plate and etch method.
The production of multi layer boards uses both the methods. The inner
layers are printed and etch while the outer layers are produced by print, plate and
etch after pressing the inner layers.
7.3 SOFTWARE:
64
7.4 PANELISATION:
7.5 DRILLING:
PCB drilling is a state of the art operation. Very small holes are drilled with
high speed CNC drilling machines, giving a wall finish with less or no smear or
epoxy, required for void free through hole plating.
7.6 PLATING:
The heart of the PCB manufacturing process. The holes drilled in the
board are treated both mechanically and chemically before depositing the copper
by the electro less copper platting process.
7.7 ETCHING:
Once a multiplayer board is drilled and electro less copper deposited, the
image available in the form of a film is transferred on to the out side by photo
printing using a dry film printing process. The boards are then electrolytic plated
on to the circuit pattern with copper and tin. The tin-plated deposit serves an etch
resist when copper in the unwanted area is removed by the conveyor’s spray
etching machines with chemical etch ants. The etching machines are attached to
an automatic dosing equipment, which analyses and controls etch ants
concentrations
65
7.8 SOLDERMASK:
Since a PCB design may call for very close spacing between conductors,
a solder mask has to be applied on the both sides of the circuitry to avoid the
bridging of conductors. The solder mask ink is applied by screening. The ink is
dried, exposed to UV, developed in a mild alkaline solution and finally cured by
both UV and thermal energy.
After applying the solder mask, the circuit pads are soldered using the hot
air leveling process. The bare bodies fluxed and dipped in to a molten solder
bath. While removing the board from the solder bath, hot air is blown on both
sides of the board through air knives in the machines, leaving the board soldered
and leveled. This is one of the common finishes given to the boards. Thus the
double sided plated through whole printed circuit board is manufactured and is
now ready for the components to be soldered.
66
8 SOFTWARE TOOLS
Keil development tools for the 8051 Microcontroller Architecture support every
level of software developer from the professional applications engineer to the
student just learning about embedded software development.
The Keil 8051 Development Tools are designed to solve the complex problems
facing embedded software developers.
When starting a new project, simply select the microcontroller you use
from the Device Database and the µVision IDE sets all compiler, assembler,
linker, and memory options for you.
Numerous example programs are included to help you get started with the
most popular embedded 8051 devices.
67
When you are ready to begin testing your software application with target
hardware, use the MON51, MON390, MONADI, or FlashMON51 Target
Monitors, the ISD51 In-System Debugger, or the ULINK USB-JTAG Adapter
to download and test program code on your target system.
It's been suggested that there are now as many embedded systems in everyday
use as there are people on planet Earth. Domestic appliances from washing
machines to TVs, video recorders and mobile phones, now include at least one
embedded processor. They are also vital components in a huge variety of
automotive, medical, aerospace and military systems. As a result, there is strong
demand for programmers with 'embedded' skills, and many desktop developers
are moving into this area.
8.2 Simulator:
The Keil hardware simulator for the popular 8051 microcontroller is on the CD-
ROM so that readers can try out examples from the book - and create new ones -
without requiring additional hardware.
68
Key techniques required in all embedded systems are covered in detail, including
the control of port pins and the reading of switches.
A complete embedded operating system is presented, with full source code on
the CD-ROM.
69
9. PROGRAM:
#include <AT89X52.H>
sbit l_for=P1^0;
sbit l_rev=P1^1;
sbit r_for=P1^2;
sbit r_rev=P1^3;
sbit fwd=P2^2;
sbit rev=P2^3;
sbit lft=P2^4; //keys
sbit rgt=P2^5;
sbit stp=P2^6;
sbit plc=P3^2;
70
sbit pcl_lim=P3^7; //pick close limit
sbit alm=P2^0;
sbit prox=P2^1;
void forward();
void reverse();
void left();
void right();
void stop();
void delay(unsigned int);
void delay1(unsigned int);
void dly();
void long_del();
void func();
void del();
void place();
void main()
{
alm=0;
fwd=rev=lft=rgt=stp=plc=1;
stop();
del();
a2up_mot=0;
while(a2up_lim); //Initialization
a2up_mot=1;
a1up_mot=0;
while(a1up_lim);
71
a1up_mot=1;
delay(65000);
while(1)
{
if(!fwd)forward();
else if(!rev){stop();delay(5000);reverse();}
else if(!lft){stop();delay(5000);left();}
else if(!rgt){stop();delay(5000);right();}
else if(!stp)stop();
else if(!plc)place();
if(prox==0) func();
}
}
void func()
{
stop();
delay(40000);
a1dn_mot=0;
while(a1dn_lim); //arm down
a1dn_mot=1;
a2dn_mot=0;
del();del();
a2dn_mot=1;
pcl_mot=0;
while(pcl_lim); //pick
pcl_mot=1;
delay(40000);
72
a2up_mot=0;
while(a2up_lim);
a2up_mot=1;
a1up_mot=0; //arm up
while(a1up_lim);
a1up_mot=1;
delay(40000);
}
void place()
{
stop();
delay(40000);
a1dn_mot=0;
while(a1dn_lim); //arm down
a1dn_mot=1;
a2dn_mot=0;
del();del();
a2dn_mot=1;
pop_mot=0;
delay(65000); //place
pop_mot=1;
delay(40000);
a2up_mot=0;
while(a2up_lim);
a2up_mot=1; //arm up
a1up_mot=0;
while(a1up_lim);
a1up_mot=1;
73
}
void reverse()
{
l_for=0;
l_rev=1;
r_for=0;
r_rev=1;
}
void forward()
{
l_for=1;
l_rev=0;
r_for=1;
r_rev=0;
}
void right()
{
l_for=1;
l_rev=0;
r_for=0; //right
r_rev=1;
}
void left()
{
l_for=0;
l_rev=1;
r_for=1; //left
74
r_rev=0;
}
void stop()
{
l_for=1;
l_rev=1; // STOP
r_for=1;
r_rev=1;
}
void del()
{
delay(65000);
delay(40000);
75
10. PROGRAM DESCRIPTION:
First we are initializing the header files for chip using #include
Then function declaration, I/O port declaration, and variable declarations.
Void main() is the main function of program.
Then the display will show the tittle of the project as “BOMB DETECTION
ROBOT ”
Then the program will enter in to while (1) loop and scanning the bomb detecting sensor
inputs if that sensor is detects any metal and bomb means the robot will stop . then the
robot having PIC and PLACE mechanism.
76
11. ADVANTAGES
Low cost
Reduce manpower
Industry application
Easy to implement
Accuracy
12. APPLICATIONS
77
13. CONCLUSION
The progress in science & technology is a non-stop process. New things and new
technology are being invented. As the technology grows day by day, we can imagine about
the future in which thing we may occupy every place.
78
14. REFERENCES
WEBSITES:
http://www.atmel.com/
http://www.microchip.com/
www.8052.com
http://www.beyondlogic.org
http://www.ctv.es/pckits/home.html
http://www.aimglobal.org/
79
80