Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTRODUCTION
1.1 GENERAL
Electronic Voting Machine (EVM) is a device that is used to count ballot and
record votes instead of doing it manually using human resource to record and count
votes. This paper is proposed to develop a prototype design for solar power
electronic voting machine. Voting is a formal expression of preference for a
candidate to rule a country. Democratic nations elect the holders of high office by
voting. Electronic voting machine is a simple electronic device used to record votes
instead of doing it manually. In the proposed system, biometric based voting system
is implemented to avoid fake voting and acknowledgement is provided to notify the
person for which candidate the person has voted. Solar based system is
implemented in order to overcome the power crisis in rural areas. This paper
discusses in detail the design of a solar powered EVM prototype which is efficient
and allows the user a relief from the laborious act of vote collection and counting.
Furthermore, it also removes the errors from the system, since it is a digital device.
One of the biggest concerns of EVM is the security system which includes insider
1
threats, network vulnerability and challenges to auditing. To limit these issues the
prototype has been developed with a three stage security encryption.
The person at the polling booth has to show his Finger. This Finger print
reader reads the details from the tag. This data is passed to the controlling unit for
the verification. The controller reads the data from the reader and compares this
data with the already existing data. If the data matches with the already stored
information, the person is allowed to poll his vote. If not, a message is displayed
on LCD and the person is not allowed to poll his vote. The polling mechanism
carries out manually using the switches. LCD is used to display the related
messages.
The objective of the project is to develop a microcontroller based security
and alert system. It consists of a Finger print reader, thermal printer, solar power,
and microcontroller, the interfacing unit to allow the communication between the
microcontroller and Finger print module, and the LCD.
2
Due to foreign manufactured voting machines, the secret codes can be used
to influence the election results.
There is no identity verification for the voters which leads to a high chance
for fake voting.
3
CHAPTER 2
LITERATURE SURVEY
Integral Energy)
4
TITLE : Electronic Voting Machine – A Review
5
TITLE : Effect of grid-connected photovoltaic systems on static and
6
CHAPTER 3
OVERVIEW OF THE TECHNOLOGIES USED
7
Following are the advantages of Embedded Systems:
1. They are designed to do a specific task and have real time performance
constraints which must be met.
2. They allow the system hardware to be simplified so costs are reduced.
3. They are usually in the form of small computerized parts in larger devices
which serve a general purpose.
4. The program instructions for embedded systems run with limited computer
hardware resources, little memory and small or even non-existent keyboard
or screen.
8
CHAPTER 4
PROPOSED SYSTEM
9
The firmware part deals in programming the microcontroller so that it can
control the operation of the IC’s used in the implementation.
In the present work, we have used the Orcad design software for PCB circuit
design, the Keil µv3 software development tool to write and compile the source
code, which has been written in the C language. The Flash magic programmer has
been used to write this compile code into the microcontroller. The block diagram
discusses about the required components of the design and working condition is
explained using circuit diagram and system wiring diagram.
In this project biometric and image processing based voting system is implemented
for the secure voting. The Arduino microcontroller is used, it 8bit microcontroller.
10
When the person place the finger in the finger print sensor, it take the image and
compare to the database, if the biometric is not present automatically alert. And the
feedback is print via the thermal printer.
4.5 TRANSFORMER
Usually, DC voltages are required to operate various electronic equipment
and these voltages are 5V, 9V or 12V. But these voltages cannot be obtained
directly. Thus the a.c input available at the mains supply i.e., 230V is to be brought
down to the required voltage level. This is done by a transformer. Thus, a step
down transformer is employed to decrease the voltage to a required level.
11
4.6 RECTIFIER
The output from the transformer is fed to the rectifier. It converts A.C. into
pulsating D.C. The rectifier may be a half wave or a full wave rectifier.
In this project, a bridge rectifier is used because of its merits like good
stability and full wave rectification.
4.7 FILTER
Capacitive filter is used in this project. It removes the ripples from the
output of rectifier and smoothens the D.C. Output received from this filter is
constant until the mains voltage and load is maintained constant. However, if either
of the two is varied, D.C. voltage received at this point changes. Therefore a
regulator is applied at the output stage.
13
of the ATmega8U2 is connected to the reset line of the ATmega2560 via a
100nf capacitor. When this line is asserted (taken low), the reset line drops long
enough to reset the chip. The Arduino software uses this capability to allow you
to upload code by simply pressing the upload button in the Arduino
environment. This means that the boot loader can have a shorter timeout, as the
lowering of DTR can be well-coordinated with the start of the upload.
This setup has other implications. When the Mega2560 is connected to either a
computer running Mac OS X or Linux, it resets each time a connection is made
to it from software (via USB). For the following half-second or so, the boot
loader is running on the Mega2560. While it is programmed to ignore
malformed data (i.e. anything besides an upload of new code), it will intercept
the first few bytes of data sent to the board after a connection is opened. If a
sketch running on the board receives one-time configuration or other data when
it first starts, make sure that the software with which it communicates waits a
second after opening the connection and before sending this data.
The switches are used to activate the controller for registration during
enrollment, for comparisons to the database while identifying the user, for
selecting the party while casting the vote, finally for display of results.
LCD screen functions as interface between the user and microcontroller,
which displays messages that facilitates the user to know when to register and
when to vote, and also whether their vote is valid are not.
It displays “welcome” messages initially and “enrolling” message during
enrollment, “identifying” message when controller is comparing the data base
whether the user is valid are not, if valid displays “please vote” message, if not
displays “no access” message, and finally displays the result with party name with
their respective number of votes.
15
CHAPTER 5
SYSTEM WIRING DIAGRAM AND WORKING PROCEDURE
The user, who wants to poll his vote, has to submit the identity proof at the
counter at the polling booth. In this project, the necessary and, up to an extent, the
sufficient material, the user no need to carry with him is the Voter card.
Voter card is nothing but a Finger Print which stores the details of the person
like the name of the user, location of place, mobile number for contact etc. When
the user is asked to show his Finger print. The Finger print module reads the data
present.
17
5.5 FLOWCHART
18
CHAPTER 6
FINGERPRINT MODULE
6.1 R303A SERIES FINGERPRINT IDENTIFICATION MODULE
20
6.3 HARDWARE CONNECTION AND FEATURES
Via serial interface, the Module may communicate with MCU of 3.3V or 5V
power: TD (pin 2 of P1) connects with RXD (receiving pin of MCU), RD (pin 3 of
P1) connects with TXD (transferring pin of MCU). Should the upper computer
(PC) be in RS-232 mode, please add level converting circuit, like MAX232,
between the Module and PC. Serial communication protocol the mode is semi
duplex asynchronies serial communication. And the default baud rate is 57600bps.
User may set the baud rate in 9600~115200bps Transferring frame format is 10
bit: the low-level starting bit, 8-bit data with the LSB first, and an ending bit. There
is no check bit.
21
Table 3: logic levels and power supply specifications
22
6.3.4 NOTEPAD
The system sets aside a 512-bytes memory (16 pages* 32 bytes) for user’s
notepad, where data requiring power-off protection can be stored. The host can
access the page by instructions of PS Write Notepad and PS Read Notepad.
6.3.5 BUFFER
There are an image buffer and two 512-byte-character-file buffers within the
RAM space of the module. Users can read & write any of the buffers by
instructions.
Note: Contents of the above buffers will be lost at power-off.
6.3.6 IMAGE BUFFER
Image Buffer serves for image storage and the image format is 256*288
pixels. When transferring through UART, to quicken speed, only the upper 4 bits
of the pixel is transferred (that is 16 grey degrees). And two adjacent pixels of the
same row will form a byte before the transferring. When uploaded to PC, the 16-
grey-degree image will be extended to 256-grey-degree format. That’s 8-bit BMP
format. When transferring through USB, the image is 8-bit pixel, that’s 256 grey
degrees.
SECURITY LEVEL
The Parameter controls the matching threshold value of fingerprint searching
and matching. Security level is divided into 5 grades, and corresponding value is 1,
2, 3, 4, and 5. At level 1, FAR is the highest and FRR is the lowest; however at
level 5, FAR is the lowest and FRR is the highest.
24
SYSTEM STATUS REGISTER
System status register indicates the current operation status of the Module.
Its length is 1 word, and can be read via instruction ReadSysPara. Definition of the
register is as follows:
Module password
At power-on reset, system first checks whether the handshaking password
has been modified. If not, system deems upper computer has no requirement of
verifying password and will enter into normal operation mode. That’s, when
Module password remains the default, verifying process can be jumped. The
password length is 4 bytes, and its default factory value is 0FFH, 0FFH, 0FFH,
0FFH. Should the password have be modified, refer to instruction SetPwd, then
Module (or device) handshaking password must be verified before the system enter
into normal operation mode. Or else, system will refuse to execute and command.
The new modified password is stored in Flash and remains at power off.
25
Module address:
Each module has an identifying address. When communicating with upper
computer, each instruction/data is transferred in data package form, which contains
the address item. Module system only responds to data package whose address
item value is the same with its identifying address. The address length is 4 bytes,
and its default factory value is 0xFFFFFFFF. User may modify the address via
instruction SetAdder. The new modified address remains at power off.
Random number generator Module integrates a hardware 32-bit random
number generator (RNG) (without seed). Via instruction GetRandomCode, system
will generate a random number and upload it.
Communication Protocol
The protocol defines the data exchanging format when ZFM-20 series
communicates with upper computer. The protocol and instruction sets apples for
both UART and USB communication mode. For PC, USB interface is strongly
recommended to improve the exchanging speed, especially in fingerprint scanning
device.
26
Table 5 : Definition of data package
The new modified password is stored in Flash and remains at power off.
MODULE ADDRESS
Each module has an identifying address. When communicating with upper
computer, each instruction/data is transferred in data package form, which contains
the address item. Module system only responds to data package whose address
item value is the same with its identifying address. The address length is 4 bytes,
and its default factory value is 0xFFFFFFFF. User may modify the address via
instruction SetAdder. The new modified address remains at power off. Random
number generator Module integrates a hardware 32-bit random number generator
(RNG) (without seed). Via instruction GetRandomCode, system will generate a
random number and upload it.
27
CHAPTER 7
28
Fig 7.1.2 Switch interfacing with microcontroller
29
7.2 LIQUID CRYSTAL DISPLAY
LCD stands for Liquid Crystal Display. LCD is finding wide spread use
replacing LEDs (seven segment LEDs or other multi segment LEDs) because of
the following reasons:
1. The declining prices of LCDs.
2. The ability to display numbers, characters and graphics. This is in contrast to
LEDs, which are limited to numbers and a few characters.
3. Incorporation of a refreshing controller into the LCD, thereby relieving the
CPU of the task of refreshing the LCD. In contrast, the LED must be
refreshed by the CPU to keep displaying the data.
4. Ease of programming for characters and graphics.
These components are “specialized” for being used with the microcontrollers,
which means that they cannot be activated by standard IC circuits. They are used
for writing different messages on a miniature LCD.
30
shifting message on display (shift left and right), appearance of the pointer,
backlight etc. are considered as useful characteristics.
PINS FUNCTIONS
There are pins along one side of the small printed board used for connection
to the microcontroller. There are total of 14 pins marked with numbers (16 in case
the background light is built in). Their function is described in the table 6.1 below:
Pin Logic
Function Name Description
Number State
Ground 1 Vss - 0V
D0 – D7 are interpreted as
0 commands
4 RS
1 D0 – D7 are interpreted as
data
Write data (from controller
Control of 0 to LCD)
5 R/W
operating 1 Read data (from LCD to
controller)
31
7 D0 0/1 Bit 0 LSB
8 D1 0/1 Bit 1
9 D2 0/1 Bit 2
12 D5 0/1 Bit 5
13 D6 0/1 Bit 6
LCD SCREEN:
LCD screen consists of two lines with 16 characters each. Each character
consists of 5x7 dot matrix. Contrast on display depends on the power supply
voltage and whether messages are displayed in one or two lines. For that reason,
variable voltage 0-Vdd is applied on pin marked as Vee. Trimmer potentiometer is
usually used for that purpose the connections are as shown in figure 6.4. Some
versions of displays have built in backlight (blue or green diodes). When used
during operating, a resistor for current limitation should be used (like with any LE
diode).
Execution
Command RS RW D7 D6 D5 D4 D3 D2 D1 D0
Time
Clear display 0 0 0 0 0 0 0 0 0 1 1.64mS
33
Read from CGRAM or
1 1 D7 D6 D5 D4 D3 D2 D1 D0 40uS
DDRAM
34
0 Display in one
line
F 1 Character
format 5x10
dots
0 Character
format 5x7
dots
D/C 1 Display shift
0 Cursor shift
35
displaying will be normally performed, it will not be possible to read from busy
flag since it is not possible to read from display.
LCD INITIALIZATION
Once the power supply is turned on, LCD is automatically cleared. This
process lasts for approximately 15mS. After that, display is ready to operate. The
mode of operating is set by default. This means that:
1. Display is cleared
2. Mode
DL = 1 Communication through 8-bit interface
N = 0 Messages are displayed in one line
F = 0 Character font 5 x 8 dots
3. Display/Cursor on/off
D = 0 Display off
U = 0 Cursor off
B = 0 Cursor blink off
4. Character entry
ID = 1 Addresses on display are automatically incremented by 1
S = 0 Display shift off
Automatic reset is mainly performed without any problems. If for any reason
power supply voltage does not reach full value in the course of 10mS, display will
start to perform in an unpredictable manner. If voltage supply unit cannot meet this
condition or if it is needed to provide completely safe operating, the process of
initialization by which a new reset enabling display to operate normally must be
applied.
Algorithm according to the initialization is being performed depends on
whether connection to the microcontroller is through 4- or 8-bit interface. All left
36
over to be done after that is to give basic commands and of course- to display
messages. The algorithm is as shown in the figure 6.5
CONTRAST CONTROL
To have a clear view of the characters on the LCD, contrast should be
adjusted. To adjust the contrast, the voltage should be varied. For this, a preset is
used which can behave like a variable voltage device. As the voltage of this preset
is varied, the contrast of the LCD can be adjusted.
37
CHAPTER 8
THERMAL PRINTER
8.1 INTRODUCTION
The CSN-A2-T is a thermal printer that's very easy to interface from any
electronics project involving at least a simple microcontroller. Printing is straight
forward – to print, the voltage should be between 5 and 9V on the power pins and
send text to the serial RX pin at 19200 baud, 8 bits, no parity.
38
8.2 GENERAL SPECIFICATION
ITEM SPECIFICATION
Print method thermal direct line printing
Paper loading method easy paper loading
Paper width 58mm
Print width 48mm
Resolution ration 8dots/mm(384dots/line)
Life of printing head 50km
Printing speed 60mm/sec.; Max.:80MM/sec.(voltage
8.5V)
Character size ANK: 9x17,12×24; GBK: 24×24
Chinese character fonts GB18030: 12x24 or 24x24dots
Outline dimension(WxHxD mm) 111x65x57
Installation(WxH mm): 103x57
Embedded depth 50 mm
Paper roll specification (width:58mm, Max. diameter:39mm)
Interface RS232C/TTL/parallel/USB
Input power DC5-9V or 12V
Operating temperature 5°C~50°C
Storage temperature -20°C~60°C
Operating humidity 10°C~80°C
Storage humidity 10°C~90°C
Table 8: specification of thermal printer
8.3 Features
Low-noise direct thermal printing method
Fast printing speed, low noise
Can support Max.39mm (diameter) paper roll, which is biggest
paper roll of the same models.
Optional serial interface (RS232C/TTL)/parallel/USB port
Rich of graphics / curves / characters print function
Easy paper loading structure
Support 5V-9V/12V wide power voltage
39
8.4 WORKING
Thermal printing (or direct thermal printing) is a digital printing process which
produces a printed image by selectively heating coated thermo chromic paper,
or thermal paper as it is commonly known, when the paper passes over the
thermal print head. The coating turns black in the areas where it is heated,
producing an image. Two-color direct thermal printers can print both black and an
additional color (often red) by applying heat at two different temperatures.
In order to print, thermo-sensitive paper is inserted between the thermal head and
the platen. The printer sends an electric current to the heating elements of the
thermal head, which generate heat. The heat activates the thermo-sensitive coloring
layer of the thermo sensitive paper, which changes color where heated. Such a
printing mechanism is known as a thermal system or direct system. The heating
elements are usually arranged as a line of small closely spaced dots.
The paper is impregnated with a solid-state mixture of a dye and a suitable matrix.
When the matrix is heated above its melting point, the dye reacts with the acid,
shifts to its colored form, and the changed form is then conserved in meta stable
state when the matrix solidifies back quickly enough (a process known
as thermochromism).
40
CHAPTER 9
SOLAR PANEL
9.1 PHOTOVOLTAIC CELL
The solar photovoltaic technology is the most commonly used technology for
the conversion of solar energy to solar power. A solar cell, also called a
photovoltaic cell is an electrical device that converts the energy of light directly
into electricity by the photovoltaic effect. It is a form of photovoltaic cell
which, when exposed to light, can generate and support an electric current
without being attached to any external voltage source. The operation of a
photovoltaic (PV) cell requires 3 basic attributes:
The power output from a solar cell depends on the area of the cell and the
efficiency of the solar cell. The power output of a solar PV cell is a product of cell
efficiency in percentage, cell area in square meters and solar insolation.
41
9.2 HOW DO SOLAR CELLS WORK
Solar (or photovoltaic) cells convert the sun’s energy into electricity. Whether
they’re adorning your calculator or orbiting our planet on satellites, they rely on
the photoelectric effect: the ability of matter to emit electrons when a light is shone
on it.
Sunlight is composed of miniscule particles called photons, which radiate from the
sun. As these hit the silicon atoms of the solar cell, they transfer their energy to
lose electrons, knocking them clean off the atoms. The photons could be compared
to the white ball in a game of pool, which passes on its energy to the colored balls
it strikes.
Freeing up electrons is however only half the work of a solar cell: it then needs to
herd these stray electrons into an electric current. This involves creating an
electrical imbalance within the cell, which acts a bit like a slope down which the
electrons will flow in the same direction.
When these two materials are placed side by side inside a solar cell, the n-type
silicon’s spare electrons jump over to fill the gaps in the p-type silicon. This means
42
that the n-type silicon becomes positively charged, and the p-type silicon is
negatively charged, creating an electric field across the cell. Because silicon is a
semi-conductor, it can act like an insulator, maintaining this imbalance.
As the photons smash the electrons off the silicon atoms, this field drives them
along in an orderly manner, providing the electric current to power calculators,
satellites and everything in between.
43
CHAPTER 10
Language : Embedded C
OS : Windows XP/7.
10.2 ARDUINO
44
of features from the programming languages C and C++. In addition to using
traditional compiler tool chains, the Arduino project provides an integrated
development environment (IDE) based on the Processing language project.
10.3 APPLICATIONS
This project can be used as a voting machine that can prevent rigging during
the elections in the polling booths.
Fast track voting which could be used in small scale elections, like resident
welfare association, “panchayat” level election and other society level
elections.
It could also be used to conduct opinion polls during annual share holders
meeting.
It could also be used to conduct general assembly elections where number of
candidates are less than or equal to eight in the current situation
45
CHAPTER 11
CONCLUSION
The performance of the system is more efficient. Reading the Data and verifying
the information with the already stored data and perform the specified task is the
main job of the microcontroller. The mechanism is controlled by the
microcontroller.
46
REFERENCES
48