You are on page 1of 37

Chapter I

Introduction
Many times we forget to switch off the motor pushing water into the overhead tank (OHT) in our
households. As a result, water keeps overflowing until we notice the overflow and switch the
pump off. As the OHT is usually kept on the topmost floor, it is cumbersome to go up frequently
to check the water level in the OHT.
This Project explains how to detect and control the water level in an OHT or any other
container. This system monitors the water level of the tank and automatically switches ON the
motor when ever tank is empty. The motor is switched OFF when the overhead tank or container
is FULL. Here the water level of the tank is indicated on LCD (Liquid crystal Display). Using
this system, we can avoid the overflow of the water. Here we are designing the circuit which is
used to detect and control the water level automatically in overhead tank using 8051 micro
controller. In this system water sensing can be done by using a set of 4 wires which are placed at
different levels in tank. DC supply probe is placed at the base of the tank.

Chapter II
Water Level Controller
Automatic water level controller came to existence because of human error and
inconsistence that is associated with manually operated water pumping machine. This is because
it takes time for individual who is manually operating the water pump to turn off the pumping
machine and this may cause water spillage and at times the individual might not know that the
water level has drop so low until the tank is completely empty. This was the problem that leads to
the development of the idea of an automatic water level controller.

List of Components

AT89C51 controller

AT89C51 programming board.

16*2 LCD

5V Relay

BC547 (NPN) transistors 5

Resistors (1K) 4

Resistor 330 ohm-2

AC Motor

Pot 10k

Programming cable

Connecting wires

Block Diagram
2

Micro Controller (AT89S52) is interfaced with 16x2 LCD. LCD indicates the water level through
its display. Level sensors are connected to the controller to indicate the water level by resistance
variation. Relay is connected to motor and is interfaced with the micro controller. When LCD
displays tank is full, motor stops automatically.

Circuit Diagram

Circuit Description
The main heart of this project is AT89C51 microcontroller. The water level probes (level sensors)
are connected to the P3.0, P3.1, P3.2, and P3.3 through the transistors. Port P2 connected to the
data pins of LCD and control pins RS, RW and EN of LCD are connected to the P1.0, P1.1, and
P1.2 respectively.
Initially when tank is empty, LCD will display the message EMPTY and motor runs
automatically. When water level reaches to quarter level, now LCD displays QUARTER and still
motor runs. For further levels, LCD displays the messages HALF and FULL.
When tank is full, LCD displays FULL and motor automatically stops. Again motor runs when
tank is empty.
4

Working Principle of Water Level Controller


This system mainly works on a principle that water conducts electricity. The four wires
which are dipped into the tank will indicate the different water levels. Based on the outputs of
these wires, microcontroller displays water level on LCD as well as controls the motor.

Algorithm for Water Level Controller

First configure the controller pins P3.0, P3.1, P3.2 and P3.3 as inputs and P3.4 as output.

Now initialize the LCD.

Continuously check the water level input pins P3.0, P3.1, P3.2, and P3.3

If all the pins are low then display tank is empty on LCD and make P3.4 pin high to run
the motor automatically.

High pulse on the pin P3.0 indicates quarter level, display the same thing on LCD.

If P3.1 is high then water level is half.

High pulse on P3.2 indicates 3/4th full of the tank.

If P3.3 is high then tank is full, now make P3.4 pin is low to turn off the motor
automatically.

Process to operate Water Level Controller Circuit using 8051 Microcontroller


1.

Initially burn the program to the controller.

2.

Now give the connections as per the circuit diagram.

3.

While giving the connections, make sure that there is no common connection between
AC and DC supplies.

4.

Place the 4 water level indicating wires into the small tank.

5.

Switch on the supply, now the motor will run automatically as there is no water in the
tank.

6.

Now pour the water, when it reaches to quarter level then LCD displays QUARTER on
LCD.

7.

For further levels it will displays HALF and FULL on LCD.

8.

Still if you pour the water then LCD displays FULL and motor turns off automatically
when the tank is full.

9.

Switch off the motor supply and board supply.

Water Level Controller Circuit Advantages:

Human effort is reduced as the system controls the motor automatically based on the
water level.

This system consumes less power.

Simple and more reliable.

Applications of Water Level Controller Circuit using 8051:

Used in big buildings where the manual monitoring is difficult.

Used in industries to control the liquid level automatically.

Chapter III
Components Description
Micro Controller (AT89S52)
Features:

Compatible with MCS-51 Products.


8K Bytes of In- System Reprogrammable Flash Memory.
Endurance: 1000 Write/Erase Cycles.
Fully Static Operation: 0Hz to 24MHz.
Three-Level Program Memory Lock.
256 x 8-Bit Internal RAM.
32 Programmable I/O Lines.
Three 16-bit Timer/Counter.
Eight Interrupt Sources.
Programmable Serial Channel.
Low Power Idle and Power Down Modes.

1. Description
The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller with 8K bytes
of in-system programmable Flash Memory. The device is manufactured using Atmels highdensity nonvolatile memory technology and is compatible with the industry-standard 80C51
9

instruction set and pin out. The on-chip Flash allows the program memory to be
reprogrammed in-system or by a conventional nonvolatile memory programmer. By
combining a versatile 8-bit CPU with in-system programmable Flash on a monolithic chip,
the Atmel AT89S52 is a powerful microcontroller which provides a highly-flexible and costeffective solution to many embedded control applications.

Pin Diagram and its Description

10

11

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 used as
high-impedance inputs.

12

Port 0 can also be configured to be the multiplexed low-order address/data bus


during accesses to external program and data memory. In this mode, P0 has
internal pull-ups
Port 0 also receives the code bytes during Flash programming and outputs the
code bytes during program verification. External pull-ups are required during
program verification.
Port 1
Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. 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 pull-ups and can be used as inputs. As inputs, Port
1 pins that are externally being pulled low will source current(I IL) because of the
internal pull-ups.
In addition, P1.0 and P1.1 can be configured to be the timer/counter 2 external
count input (P1.0/T2) and the timer/counter 2 trigger input (P1.1/T2EX),
respectively, as shown in the following table.
Port 1 also receives the low-order address bytes during Flash programming and
verification.
Port Pin

Alternate Functions

P1.0

T2 (external count input to Timer/Counter 2), clock-out

P1.1

T2EX(Timer/Counter 2 capture/reload trigger and direction control)

P1.5

MOSI (used for In-System Programming)

P1.6

MISO (used for In-System Programming)

P1.7

SCK (used for In-System Programming)

Port 2
13

Port 2 is an 8-bit directional I/O port with internal pull-ups. 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 pull-ups 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 pull-ups.
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, Port 2 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 some control signals during
Flash programming and verification.
Port 3
Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. 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 pull-ups and can be used as inputs. As inputs, Port
3 pins that are externally being pulled low will source current (I IL) because of the
pull-ups.
Port 3 receives some control signals for Flash programming and verification.
Port 3 also serves the functions of various special features of the AT89S52, as
shown in the following table.

Port Pin

Alternate Functions

P3.0

RXD(serial input port)

P3.1

TXD(serial output port)

P3.2

14

(external interrupt 0)

P3.3

P3.4

T0 (timer 0 external input)

P3.5

T1 (timer 1 external input)

P3.6
P3.7

(external interrupt 0)

WR
(external data memory write strobe)

RD
(external data memory read strobe)

RST
Reset input. A high on this pin for two machines cycles while the oscillator is
running resets the device. This pin drives high for 98 oscillator periods after the
watchdog times out. The DISTO bit in SFR AUXR (address 8EH) can be used to
disable this feature. In the default state of bit DISTRO, the RESET HIGH out
feature is enabled.

ALE/ PROG
Address Latch Enable (ALE) is an output pulse for latching the low byte of the
address during accesses to external memory. This pin is also the program pulse

input ( PROG ) during Flash programming.


In normal operation, ALE is emitted at a 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 access to external data memory.
If desired, ALE operation can be disabled by setting bit 0 of SFR location 8EH. With the
bit set, ALE is active only during a MOVX or MOVC instruction. Otherwise, the pin is
weekly pulled high. Setting the ALE-disable bit has no effect if the microcontroller is in
external execution mode.

EA

/VPP

15

External Access Enable.

EA

must be strapped to GND in order to enable the

device to fetch code from external program memory locations starting at 0000H
up to FFFFH. Note, however, that if lock bit 1 is programmed,

EA

will be

internally latched on reset.


This pin should be strapped to Vcc for internal program executions.
This pin also receives the 12-volt programming enable voltage (Vpp) during Flash
programming.

XTAL1
Input to the inverting oscillator amplifier and input to the internal clock operating
circuit.

XTAL2
Output from the inverting oscillator amplifier.

Data Memory
The AT89S52 implements 256bytes of on-chip RAM. The upper 128bytes occupy
Parallel address space to the Special Function Registers. This means that the
upper 128bytes have the same addresses as the SFR space but are physically
separate from SFR space.

Watchdog Timer (one-time Enabled with Reset-out)


The WDT is intended as a recovery method in situations where the CPU may be
subjected to software upsets. The WDT consists of a 14-bit counter and the
Watchdog Timer Reset (WDTRST) SFR. The WDT is defaulted to disable from
existing reset. To enable the WDT, a user must write 01EH and 0E1H in sequence
to the WDTRST register (SFR location 0A6H). When the WDT timeout period is
dependent on the external clock frequency. There is no way to disable the WDT
16

except through reset (either hardware reset or WDT overflow reset). When WDT
overflows, it will drive an output RESET HIGH pulse at the RST pin.

Liquid Crystal Display


In 1968, RCA Laboratories developed the first liquid crystal display (LCD). Since then,
LCDs have been implemented on almost all types of digital devices, from watches to computer
to projection TVs. LCDs operate as a light valve, blocking light or allowing it to pass
through. An image in an LCD is formed by applying an electric field to alter the chemical
properties of each LCC (Liquid Crystal Cell) in the display in order to change a pixels light
absorption properties. These LCCs modify the image produced by the backlight into the screen
output as requested by the controller. Through the end output may be in color, The LCCs are
monochrome, and the color is added later through a filtering process. Modern laptop computer
displays can produce 65,536 simultaneous colors at resolution of 800x600.

LCD (Liquid Crystal display) screen is an electronic display module. A 16x2 LCD
display is very basic module and is very commonly used in various devices and circuits.
These modules are preferred over seven segments and other multi segment LEDs. The
reasons are being:

Economical
Easily Programmable

17

Have no limitation of displaying special & even custom characters (unlike in seven
segments)

A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In this
LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers, namely,
Command and Data.
The Command register stores the command instructions given to the LCD. A command is an
instruction given to LCD to do a predefined task like initializing it, clearing its screen, setting the
cursor position, controlling display etc. The data register strores the data to be displayed on the
LCD. The data is the ASCII value of the character to be displayed on the LCD.
Pin Diagram

18

Pin Description

LCD Command Codes


Code (Hex)

Command to LCD Instruction Register

Clear Display Screen

Return Home

Decrement Cursor (shift cursor to left)

Increment Cursor (shift cursor to right)

Shift Display Right

Shift Display Left

Display off, Cursor off

Display off, Cursor on

Display on, Cursor off

Display on, cursor blinking

Display on, cursor on


19

10

Shift cursor position to left

14

Shift cursor position to right

18

Shift the entire display to the left

1C

Shift the entire display to the right

80

Force cursor to beginning of 1st line

C0

Force cursor to beginning of 2nd line

38

2 lines and 5x7 matrix

Capacitors
Capacitor is a basic storage device to store electrical charges and release it as it is
required by the circuit. Capacitors are widely used in electronic circuits to perform variety of
tasks, such as smoothing, filtering, bypassing etc. One type of capacitor may not be suitable
for all applications. Ceramic capacitors are generally superior than other types and therefore can
be used in a vast ranges of application. The following superior than other types and therefore can
be used in a vast ranges of application. The following is the typical capacitor application in
electronics industries.
DC blocking capacitor:
In this application the capacitor blocks the passage of DC current (after completely
charged) and yet allows the AC to pass at certain portion of a circuit.
Capacitor as a filter:
Capacitors are the main elements of filters. There are several types of filters that are used
in electronic circuits, such as LPF (Low Pass Filter), HPF (high Pass Filter), BPF (Band Pass
Filter), etc. Since the reactance of the capacitor is inversely related to the frequency, therefore
it can be used to increase or decrease the impedance of the circuit at certain frequencies and
therefore does the filtration job.
Capacitor as a discharge unit:

20

Capacitors used as a charging unit and the release of the charge (discharge energy) is used
for triggering, ignition, and in high scale as a power source.
By Pass capacitor:
The reactance of capacitor decreases as the frequency increases. Therefore in certain
application it is used in parallel with other components to bypass it at a specified frequency.
Coupling capacitor:
The ability of capacitor to pass AC signal, allows it to couple a section of an electronic
circuit to another circuit.
Decoupling capacitor:
In high speed electronic logic switching causes draw of significant amount of current
which in turn would cause disturbance in the logic voltage level. Decoupling capacitor is
typically located very close to the IC output and serves as a local energy source to provide the
needed extra current and therefore minimizes the noise and disturbances to the logic signal.

21

Snubber capacitor:
In some application, relays or SCR (Silicon controlled rectifier) are to drive a high
inductance loads. In these circumstances, when the relay or the SCR opens, a major transient
voltage could be induced in the contact of the relay or across the junction of SCR, which in turn
either shows as an arc on the relay contacts or may damage the internal SCR junction. Therefore
snubber capacitor is used to limit the high voltage transient across the circuit. There are also
other applications such as Tuned circuits, signal processing, etc...
Formula for Capacitance
The capacitance (C) is a measure of the amount of charge (Q) stored on each plate for a
given potential difference or voltage (V) which appears between the plates
C = Q/V

Resistors
22

A resistor is a passive two terminal electrical component that opposes current flow by
lowering the voltage levels within the circuits. In electronic circuits, resistors are used to limit
current flow, to adjust signal level, bias active elements and terminate transmission lines among
other uses. High-power resistors, that can dissipate many watts of electrical power as heat, may
be used as part of motor controls, in power distribution systems, or as test loads for generators.
The electrical resistance is equal to the voltage across the resistor divided by the current
through resistor.
R = V/I
Fixed resistors have resistances that only change slightly with temperature, time or
operating voltage. Variable resistors can be used to adjust circuit elements (such as a volume
control or a lamp dimmer), or as sensing devices for heat, light, humidity, force, or chemical
activity.

Identifying Resistors
Most axial resistors use a pattern of colored stripes to indicate resistance. Surface-mount
ones are marked numerically. Resistance can also be calculated using multimeter.
Electronic Color code
Four-band identification is the most commonly used color coding scheme on all resistors. It
consists of four colored bands that are painted around the body of the resistor. The first two
numbers are the first two significant digits of the resistance value, the third is a multiplier, and
the fourth is the tolerance of the value. Each color corresponds to certain number as shown
below.

23

Transistors
A transistor is a semiconductor device, commonly used as an amplifier or an electrically
controlled switch. The transistor is the fundamental building block of the circuitry in computers,
cellular phones, and all other modern electronic devices.
Because of its fast response and accuracy, the transistor is used in a wide variety of digital and
analog functions, including amplification, switching, voltage regulation, signal modulation, and
oscillators. Transistors may be packaged individually or as part of an integrated circuit.

24

Diode
A diode is a two-terminal electronic component that conducts primarily in one direction
(asymmetric conductance) it has low (ideally zero) resistance to the flow of current in one
direction, and high (ideally infinite) resistance in the other. A semiconductor diode is a crystalline
piece of semiconductor with a p-n junction connected to two electrical terminals. A vacuum tube
has two electrodes, a plate (anode) and a heated (cathode).
The most common function of a diode is to allow an electric current to pass in one
direction (called the diodes forward direction), while blocking current in the opposite direction
(the reverse direction). Thus, the diode can be viewed as an electronic version of a check valve.
This unidirectional behavior is called rectification, and is used to convert alternating current to

25

direct current, including extraction of modulation from radio signals in radio receivers these
diodes are forms of rectifiers.
Diodes can have more complicated behavior than this simple on-off action, due to their nonlinear
current-voltage characteristics. Semiconductor diodes begin conducting electricity only if a
certain threshold voltage or cut-in voltage is present in the forward direction (a state in which the
diode is said to be forward-biased). The voltage drop across a forward-biased diode varies only a
little with the current, and is a function of temperature, this effect can be used as a temperature
sensor or as a voltage reference.

Relay

26

Relay is an electromagnetic device which is used to isolate two circuits electrically and
connect them magnetically. They are very useful devices and allow one circuit to switch another
one while they are completely separate. They are often used to interface an electronic circuit
(working at a low voltage) to an electrical circuit which works at very high voltage. For example,
a relay can make a 5V DC battery circuit to switch a 230V AC mains circuit. Thus a small sensor
circuit can drive, say, a fan or an electric bulb.
A relay switch can be divided into two parts: input and output. The input section has a
coil which generates magnetic field when a small voltage from an electronic circuit is applied to
it. This voltage is called the operating voltage. Commonly used relays are available in different
configuration of operating voltages like 6V, 9V, 12V, 24V etc. The output section consists of
contactors which connect or disconnect mechanically. In a basic relay there are three contactors:
normally open (NO), normally closed (NC) and common (COM). At no input state, the COM is
connected to NC. When the operating voltage is applied the relay coil gets energized and the
COM changes contact to NO. Different relay configurations are available like SPST, SPDT and
DPDT etc., which have different number of changeover contacts. By using proper combination
of contactors, the electrical circuit can be switched on and off. Get inner details about structure
of a relay switch.

27

POWER SUPPLY:
The power supplies are designed to convert high voltage AC mains electricity to
a suitable low voltage supply for electronic circuits and other devices. A RPS (Regulated
Power Supply) is the Power Supply with Rectification, Filtering and Regulation being done
on the AC mains to get a Regulated power supply for Microcontroller and for the other
devices being interfaced to it.
A power supply can be broken down into a series of blocks, each of which
performs a particular function. 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.

Transformer:
The transformer is a device that transfers electrical energy from one electrical circuit to
another electrical circuit through the medium of magnetic field and without a change in the
frequency. The electric circuit which receives energy from the supply mains is called primary
winding and the other circuit which delivers electric energy to the load is called the secondary
winding.
28

With it, the voltage and current can be multiplied and divided in AC circuits.
Transformer is of two types step up and step down. In this project a step down transformer is
used. A step down transformer: is one whose secondary voltage is less than its primary voltage.
It is designed to reduce the voltage from the primary winding to the secondary winding. This
kind of transformer steps down the voltage applied to it.
As a step-down unit, the transformer converts high-voltage, low-current power into low-voltage,
high-current power. The larger-gauge wire used in the secondary winding is necessary due to the
increase in current. The primary winding, which doesnt have to conduct as much current, may
be made of smaller-gauge wire.

Bridge Rectifier
A bridge rectifier is an arrangement of four or more diodes in a bridge circuit
configuration which provides the same output polarity for either input polarity. It is used for
converting an alternating current (AC) input into a direct current (DC) output.

29

A bridge rectifier is an arrangement of four or more diodes in a bridge circuit configuration


which provides the same output polarity for either input polarity. It is used for converting an
alternating current (AC) input into a direct current (DC) output. A bridge rectifier provides fullwave rectification from a two-wire AC input, therefore resulting in lower weight and cost when
compared to a rectifier with a 3-wire input from a transformer with a center-tapped secondary
winding. The load resistance is connected between the other two ends of the bridge. For the
positive half cycle of the input ac voltage, diodes D1 and D3 conduct, whereas diodes D2 and D4
remain in the OFF state. The maximum efficiency of a Bridge Rectifier is 81.2%

Voltage Regulators:
Voltage regulator ICs is available with fixed (typically 5, 12 and 15V) or
variable output voltages. The maximum current they can pass also rates them. Negative
voltage regulators are available, mainly for use in dual supplies. Most regulators include
some automatic protection from excessive current ('overload protection') and overheating
30

('thermal protection'). Many of the fixed voltage regulators ICs have 3 leads and look like
power transistors, such as the 7805 +5V 1A regulator shown on the right. The LM7805 is
simple to use. You simply connect the positive lead of your unregulated DC power supply
(anything from 9VDC to 24VDC) to the Input pin, connect the negative lead to the
Common pin and then when you turn on the power, you get a 5 volt supply from the output
pin.

Chapter IV
31

Hardware Designing and Software Implementation

Hardware Designing
Proteus7.7 Tool
Proteus7.7 best simulation software for various designs with microcontroller. It is mainly
popular because of availability of almost all microcontrollers in it. So it is a handy tool to test
programs and embedded designs for electronics. You can simulate your programming of
microcontroller in Proteus7.7 Simulation Software.
After simulating your circuit in Proteus 7.7 Software you can directly make PCB design with it
so it could be a all in one package.

Steps to create a Project

Double click on ISIS shortcut.


Go to File menu click on save design.
Save the design by creating a new folder with specified project name.
Go to Library menu Pick the Device symbol.
Pick the component to be placed from the library list.
Place the selected Component on the Schematic sheet with grids.
Select all the required components and place them on the schematic sheet.
Connect the components.
For connecting power and ground go to Terminal Mode.
After the Design completion.
Load the .hex file which is generated from Keil software.
Start the simulation button.
If the design and code are appropriate simulation gives the valid output.
For further modification stop the simulation, modify the circuit.
To modify the .hex file modify the code in Keil build the code then hex while will be
manipulated.

Software Implementation
Keil IDE
32

The Keil 8051 Development Tools are designed to solve the complex problems facing
embedded software developers.
Keil IDE is basically an assembler and a compiler. Assembly or C language code can be
written and compiled in Keil. Furthermore, it supports many of the 8051 variants.
The Keil Vision Debugger accurately simulates on-chip peripherals (IC, CAN, UART,
SPI, Interrupts, I/O Ports, A/D Converter, D/A Converter, and PWM Modules) of your 8051
device. Simulation helps you understand hardware configurations and avoids time wasted on
setup problems. Additionally, with simulation, you can write and test applications before target
hardware is available.

Steps to create a project

Double click on Keil shortcut.


Click on run option.
Go to Project menu select new Vision project.
Save the project in above ISIS folder with the same project name.
Right click on Target1 select options for target target1.
Change Xtal (MHz) value as 11.0592MHz.
Go to output menu in the same window Tick the create hex file option.
Click on OK.
Create a new empty document by click on tool below file menu.
Save that document with .c extension as it a c code.
Save the code in the same folder.
Right click on Source Group Select Add Files to Group Source Group1.
Add the .c file to that source group.
Click on Close option.
Edit the code in .c file.
Build the code.
If the code is appropriate code is compiled without any errors.
After compilation hex file is generated.
This generated .hex file is embedded on microcontroller in ISIS tool for software

testing
If simulation results are perfect the .hex file is loaded into real-time micro controller chip.

Soldering iron

33

A soldering iron is a hand tool most commonly used in soldering. It supplies


heat to melt the solder so that it can flow into the joint between two
workpieces.
A soldering iron is composed of a heated metal tip and
an insulated handle. Heating is often achieved electrically, by passing an electric
current (supplied through an electrical cord or battery cables) through the resistive
material of a heating element. Another heating method includes combustion of a suitable
gas, which can either be delivered through a tank mounted on the iron (flameless), or
through an external flame.
Less common uses include pyrography (burning designs into wood) and
welding. Soldering irons are most often used for installation, repairs, and limited
production work. High-volume production lines use other soldering methods.

Wire Stripper:
Wire stripper is used to strip off wire insulator from its conductor before it is
used to connect to another wire or soldered into the printed circuit board. Some wire
stripper or wire cutter has a measurement engraved on it to indicate the length that will be
stripped.
Side-Cutting Plier:
A 4-inch side cutting plier will come in handy as one
of the electronic tools when one need to trim off excess
component leads on the printed circuit board. It can also be used
to cut wires into shorter length before being used. Tweezer
Small tweezer is used to hold small components especially when doing
soldering and de-soldering of surface mount components.

34

PCB Designing and Working


PCB Layout
The entire circuit can be easily assembled on a general purpose PCB board respectively.
Layout of desired diagram and preparation is first and most important operation in any printed
circuit board manufacturing process. First of all layout of component side is to made in
accordance with available components dimensions. The following points are to be observed
while forming the layout of PCB.
o Between two components, sufficient space should be maintained.
o High voltage/max dissipated components should be mounted at sufficient distance
from semiconductor and electrolytic capacitors.
o The most important points are the components layout is making proper
compromise with copper side circuit layout. Printed circuit board is used to avoid
most of all the disadvantages of conventional breadboard. These are small in size
and efficient in performance.
Preparing Circuit Layout
First of all the actual size circuit layout is to be drawn on the copper side of the copper clad
board. Then enamel paint is applied on the tracks of connection with the help of a shade brush.
We have to apply the paints surrounding the point at which the connection is to be made. It
avoids the disconnection between the leg of the component and circuit track. After completion of
painting work, it is allowed to dry.
Drilling
After completion of painting work, holes 1/23inch (1mm) diameter are drilled at desired points
where we have to fix the components.
Etching
The removal of excess of copper on the plate apart from the printed circuit is known as etching.
From this process the copper clad board with printed circuit is placed in the solution of FeCl with
3-4 drops of HCL in it and is kept so for about 10 to 15 minutes and is taken out when all the
35

excess copper is removed from the PCB. After etching, the PCB is kept in clean water for about
half an hour in order to get PCB away from acidic field, which may cause poor performance of
the circuit. After the PCB has been thoroughly washed, paint is removed by soft piece of cloth
dipped I thinner or turbine. Then PCB is checked as per the layout, now the PCB is ready for use.
Soldering
Soldering is the process of joining two metallic conductor the joint where two metal
conductors are to be join or fused is heated with a device called soldering iron and then as allow
of tin and lead called solder is applied which melts and converse the joint. The solder cools and
solidifies quickly to ensure is good and durable connection between the joined metal converting
the joint solder also present oxidation.
Soldering And Desoldering Techniques.
There are basically two soldering techniques.

Manual soldering with iron.


Mass Soldering.

Soldering with Iron


The surface to be soldered must be cleaned and fluxed. The soldering iron switched on and
bellowed to attain soldering temperature. The solder in form of wire is allied hear the component
to be soldered and heated with iron. The surface to be soldered is filled, iron is removed and joint
is cold without disturbing.
Solder Joint are Supposed to:
1.
2.
3.
4.

Provide permanent low resistance path.


Make a robust mechanical link between PCB and leads of components.
Allow heat flow between component, joining elements and PCB.
Retain adequate strength with temperature variation. The following precaution should be
taken while soldering:
Use always an iron plated copper core tip for soldering iron.
Slightly for the tip with a cut file when it is cold.
Use a wet sponge to wipe out dirt from the tip before soldering.
Tighten the tip screw if necessary before iron is connected to poor supply.
36

Clean component lead and copper pad before soldering.


Apply solder between component leads, PCB pattern and tip of soldering iron.
Iron should be kept in contact with the joint for 2-3 seconds only instead of

keeping for very long or very small time.


Use optimum quantity of solder.

References

1. Muhammad Ali Mazidi , The 8051 Microcontroller & Embedded Systems .


2. http://www.electronicshub.org/interfacing-16x2-lcd-8051/
3. http://www.buildcircuit.com/how-to-use-a-relay/
4. http://www.electronics-tutorials.ws/

37

You might also like