Académique Documents
Professionnel Documents
Culture Documents
A REPORT
Of
Master of Science
In
Applied Physics
BY
Neha Chaudhary
Supervised By:
Mrs. Meenakshi
1
ACKNOWLEDGEMENT
2
Our overriding debt is to Dr. Harsh Mohan (HOD, App. Phy. Deptt.) and
Mrs. Meenakshi (Asstt. Prof.) for their valuable guidance all through the
providing us all the guidance and support. Their constant encouragement and
Neha Chaudhary
Roll no.-144163
Msc. App.Phy.Final
ABSTRACT
3
This report at giving an insight to the project entitled Microcontroller Base
Voting Machine. This project report is prepared for the partial fulfillment of
M.Sc. App. Physics.
To expose to the reader this practical circuit which has been build and laboratory
tested. A glance at the contents reveals that the report is logically subdivided into
number of topics. The first topic gives a brief introduction to the project. The
second topic covers the complete list of components and third one explains the
approximate cost of the project and also the problems faced during fabrication.
CONTENTS
Introduction
4
Hardware and software requirement
Schematic diagram
Microcontroller
PIC microcontroller
Soldering
Applications
5
INTRODUCTION
An Embedded system is combination of computer hardware and software, and
perhaps additional mechanical or others parts, designed to perform a specific task.
An embedded system is a computer system designed to do one or a few dedicated
and/or specific functions often with real-time computing constraints.Example:
microwave oven, AC etc..Embedded systems are designed to do some specific task,
rather than be a general-purpose computer for multiple tasks. Embedded systems
are not always standalone devices. The program instructions written for embedded
systems are referred to as firmware, and are stored in read-only memory or Flash
memory chips. They run with limited computer hardware resources. Embedded C is
nothing but a subset of C language which is compatible with certain
microcontrollers. Some features are added using header files like <pic16f887.h>,
<util/delay.h>. Scanf() and printf() are removed as the inputs are scanned from the
sensors and outputs are given to the ports. Control structures remain the same like
if-statement, for loop, do-while etc.
OBJECTIVE:
The objective of this project is to reduce manual work and time and give result
without any delay. A very low cost and effective voting machine has been
implemented using pic16f887 based microcontroller. This voting system avoids
multiple polling by a single user and also provides instantaneous results which are
displayed on the PC.
PROJECT DESCRIPTION:
India is the largest democracy of the world. Peoples active participation in the
formation of the government is an important aspect of a democratic government. This is
ensured by elections. Conducting free and fair elections in a populous country like India
is an uphill task. Its a challenge to conduct elections for selection of candidates to
represent the people of the country at different levels. Even more important is the timely
declaration of results. This is necessary to bring stability in the governance and steady
economic growth of the nation.Till now we have been using the paper and ballot system
for conducting. The loop holes in this traditional system are gradually widening .Its more
susceptible to booth capturing and result manipulation. Even more tedious is the task of
counting the votes and declaring the results.An ELECTRONIC VOTING MACHINE is
an answer to all these problems. Its a technological masterpiece. Many countries world
over have shown their interest in learning the mechanism behind this simple yet powerful
machine. Its got a very simple interface, its tamperproof, prevents bogus voting and it
has helped in getting rid of the time consuming task of counting.
LITERATURE REVIEW:
6
In the modern industrial world, new technologies and innovations provide the ability to
get more intelligence out of a process. Process and condition monitoring are essential
tools for every efficiency improvement attempt because of their capability to provide key
information that is necessary to plan production in a strategic and efficient way. Cost and
time reduction, leaner and more competitive processes as well as improvement of Overall
Equipment Effectiveness are results of effective and intelligent monitoring .As the
control system and automation has become an important part of the life these
days.Taking into consideration the following project is designed as Micro Controller
Electronics Voting Machine System which is used to monitor the entry/exit of persons
and switch the load according to requirement. In industries it is very essential to maintain
these parameters.
PROJECT WORK:
This project uses seven switches in which six switches assigned to six individual
marks and seventh switch is used to reset. When a person presses a switch the
counter is incremented by one for that particular switch which is pressed. So the
record is stored in controller memory. A 16x2 LCD is also interfaced with
microcontroller to display the message that the process is successful.
HARDWARE REQUIREMENT:
Micro controller(16f887)
Lm 7805(Regulator)
Switches
LEDs
LCD
Transistor
SOFTWARE REQUIREMENT:
ORCAD for PCB designing
7
Functionality of all above components
Embedded C programming
Pic C compiler
S
16X2
W
P
LCD
S
1
W
S2
I
W
S
3 C
W
S
4SW5
1 Regulated
W
Power
S5
W
6
Supply
6S
W F
7
8
SCHEMATIC DIAGRAM:
8
8
COMPONENTS USED IN THE PROJECT:
RESISTANCE: Resistance refers to the property of a substance that impedes
the flow of electric current. Some substances resist current flow more than other. If
9
a substance offers very high resistance to current flow it is called an insulator. If its
resistance to current flow is very low, it is called a conductor. Resistivity refers to
the ability of substance to resist current flow. Good conductors have low resistivity
and insulators have high resistivity.
1. Fixed Resistors: The most common fixed resistor is the composition type. The
resistance element is made of graphite, or some other form of carbon, and alloy
materials. These resistor generally have resistance values that range from 0.1 to
22 M.Another kind of fixed resistor is the wire wound type. The resistance
element is usually made of nickel-chromium wire wound on aceramic rod. These
resistor generally have resistance values that range from 1 to 100 k.
2. Variable Resistance: Variable Resistors are used to adjust the amount of resistance
in a circuit. A variable resistor consists of a sliding contact arm that makes contact
with a stationary resistance element. As the sliding arm moves across the element,
its point of contact on the element changes, effectively changing the length of the
element. The rating of a variable resistor is its resistance at its highest
setting.Variable resistors are also called rheostats and potentiometers. The
resistance elements of rheostats are usually wire wound. They are most often used
to control very high currents, such as in motors and lamps. Potentiometers
10
generally have composition elements. They are used as control devices in radios,
amplifiers, televisions, and electrical instruments.
Modern transistors are divided into two main categories: Bipolar Junction
Transistors (BJTs) and Field Effect Transistors (FFTs). Application of current in
BJTs and voltage in FETs between the input and common terminals increases the
conductivity between the common and output terminals, there by controlling
current flow between them.
11
Figure : Blue, green and red LEDs.
An LED is usually a small area source, often with extra optics added to the chip
that shapes its radiation pattern. [1] The color of the emitted light depends on the
composition and condition of the semiconducting material used, and can be
infrared, visible, or near-ultraviolet. An LED can be used as a regular household
light source.
LEDs produce more light per watt than do incandescent bulbs, this is useful in
battery powered or energy-saving devices.
LEDs can emit light of an intended color without the use of color filters that
traditional lighting methods require. This is more efficient and can lower initial
costs.
The solid package of an LED can be designed to focus its light. Incandescent
and fluorescent sources often require an external reflector to collect light and direct
it in a usable manner.
When used in applications where dimming is required, LEDs do not change their
color tint as the current passing through them is lowered, unlike incandescent
lamps, which turn yellow.
12
LEDs are ideal for use in applications that are subject to frequent on-off cycling,
unlike fluorescent lamps that burn out more quickly when cycled frequently, or
HID lamps that require a long time before restarting.
LEDs, being solid state components, are difficult to damage with external shock.
Fluorescent and incandescent bulbs are easily broken if dropped on the ground.
LEDs mostly fail by dimming over time, rather than the abrupt burn-out of
incandescent bulbs.
Figure : Regulator
MICROCONTROLLER:
A microcontroller (or MCU) is a computer-on-a-chip used to control electronic devices.
It is a type of microprocessor emphasizing self-sufficiency and cost-effectiveness, in
contrast to a general-purpose microprocessor (the kind used in a PC). A typical
microcontroller contains all the memory and interfaces needed for a simple application,
whereas a general purpose microprocessor requires additional chips to provide these
functions.
13
and the first computers were made by adding external peripherals such as memory,
input-output lines, timers and other. Further increasing of the volume of the package
resulted in creation of integrated circuits. These integrated circuits contained both
processor and peripherals. That is how the first chip containing a microcomputer , or
what would later be known as a microcontroller came about.
PIC MICROCONTROLLER:
PIC is a family of Harvard architecture microcontrollers made by Microchip
Technology, derived from the PIC1640 originally developed by General
Instrument's Microelectronics Division. The name PIC initially referred to
"Programmable Interface Controller .PICs are popular with both industrial
developers and hobbyists alike due to their low cost, wide availability, large user
base, extensive collection of application notes, availability of low cost or free
development tools, and serial programming (and re-programming with flash
memory) capability. The original PIC was built to be used with GI's new 16-bit
CPU, the CP1600. While generally a good CPU, the CP1600 had poor I/O
performance, and the 8-bit PIC was developed in 1975 to improve performance of
the overall system by offloading I/O tasks from the CPU. The PIC used simple
microcode stored in ROM to perform its tasks, and although the term wasn't used at
the time, it is a RISC design that runs one instruction per cycle (4 oscillator
cycles).The PIC microcontroller family is manufactured by Microchip Technology
Inc. Currently. They are one of the most popular microcontrollers, used in many
commercial and industrial applications. Over 120 million devices are sold each
year. The PIC microcontroller architecture is based on a modified Harvard RISC
(Reduced Instruction Set Computer) instruction set with dual-bus architecture,
providing fast and flexible design with an easy migration path from only 6 pins to
80 pins, and from 384 bytes to 128 Kbytes of program memory.PIC
microcontrollers are available with many different specifications depending on:
14
Memory Size
Although there are many models of PIC microcontrollers, the nice thing is that they
are upward compatible with each other and a program developed for one model can
very easily, in many cases with no modifications, be run on other models of the
family. The basic assembler instruction set of PIC microcontrollers consists of only
33 instructions and most of the family members (except the newly developed
devices) use the same instruction set. This is why a program developed for one
model can run on another model with similar architecture without any changes.
SPECIAL FEATURES:
Power-on reset
Watchdog timer
15
Figure:PIC16F887 PIN DIAGRAM
SOLDERING
16
SOLDERING: It is process of joining two or more metals to give physical bonding and
good electrical conductivity. It is used primarily in electrical and electronic circuitry.
Solder is a combination of metals, which are solid at normal room temperatures and
become liquid at between 180 and 200 degrees Celsius. Solder bonds well to various
metals, and extremely well to copper. Soldering is a necessary skill you need to learn to
successfully build electronics circuits. It is the primary way how electronics components
are connected to circuit boards, wires and sometimes directly to other components.
To solder you need a soldering iron. A modern basic electrical soldering iron consists of a
heating element, a soldering bit (often called the tip), a handle and a power cord. The
heating element can be either a resistance wire wound around a ceramic tube, or a thick
film resistance element printed onto a ceramic base. The element is then insulated and
placed into a metal tube for strength and protection. This is then thermally insulated from
the handle. The heating element of soldering iron usually reaches temperatures of around
370 to 400 Celsius degrees (higher than needed to melt the solder). The soldering bit is a
specially shaped piece of copper plated with iron and then usually plated with chrome or
iron. The tip planting makes it very resistant to aggressive solders and fluxes. The
strength or power of a soldering iron is usually expressed in Watts. Irons generally used
in electronics are typically in the range 12 to 25 Watts. Higher powered iron will not run
hotter, but it will have more power available to quickly replace heat drained from the iron
during soldering. Most irons are available in a variety of voltages, 12V, 24V, 115V, and
230V are the most popular. Today most laboratories and repair shops use soldering irons
which operate at 24V (powered by isolation transformer supplied with the soldering iron
or by a separate low voltage outlet). You should always use this low voltage where
possible, as it is much safer. For advanced soldering work (like very tiny very sensitive
electronics components), you will need a soldering iron with a temperature control. In
this type of soldering irons the temperature may be usually set between 200 deg C and
450 degrees C. Many temperature controlled soldering irons designed for electronics
have a power rating of around 40-50W. They will heat fast and give enough power for
operation, but are mechanically small (because the temperature controller stops them
from overheating when they are not used).
The solders designed for electronics work are usually a mixture of tin and lead. Tin melts
at 450 degree F and lead at 621 degree F. Solder Made from 63% tin and 37% lead melts
at 361?F, the lowest melting point for a tin and lead mixture. Solder construction is
designated by two numbers representing the percentages of each metal in that specific
mix. The first number always refers to the percentage of tin, the second is the percentage
of lead. Currently, the best commonly available, workable, and safe solder alloy is 63/37.
That is, 63% tin, 37% lead. It is also known as eutectic solder. Its most desirable
characteristic is that its solidest ("pasty") state, and its liquid state occur at the same
temperature -- 361 degrees F (around 183 degree C). This is the lowest possible
temperature for lead and tin combination to melt. You will often find "63/37" solder
referred to as a quick set solder or eutectic solder. Other commonly used mixture ration is
60/40, (60% tin/40% lead). Look for solders that are sold as "free of impurities" in the
component metals. Impurities cause a "scum" on your solder bead, degrade soldering
iron tips, and interfere with the proper soldering. For all electrical work you need to use
rosin core solder. In electronics a 60/40 fluxed core solder commonly is used. This
17
consists of 60% Lead and 40% Tin, with flux cores added through the length of the
solder.
There are two main classifications for the methods of soldering in use today:
18
19
ADVANTAGES:
1.It is economical.
DISADVANTAGES:
APPLICATION:
1. This could be used for voting purpose at any
required place.
REFERENCES:
Ignizio, J.P. and cavilier, T.M., 1994,embedded C Programming, Englewood
cliffs, new jerky.
20
Hand Book for Digital ICs from Analogic Device
21