Senior Ii - Final - Happyness Tolle
Senior Ii - Final - Happyness Tolle
Senior Ii - Final - Happyness Tolle
June, 2022
DECLARATION
I, Tolle, Happyness, declare to the best of my knowledge that, the project presented here, as the
partial fulfillment for the award of Bachelor of Engineering in Electronics and
Telecommunication is my original work and has not been copied from anywhere or presented
elsewhere except where explicitly indicated otherwise. As all sources of knowledge have been duly
acknowledged.
i
CERTIFICATION
As the candidate’s supervisor, I have approved this project report for submission.
Supervisor’s Name: Dr. Pesha E.
Signature: …………………………
Date: ………………………
ii
ABSTRACT
Voting is the most basic right of every citizen and is one of the most important responsibilities of
every citizen.
The election process adopted in Tanzania is mostly paper-based or manual. This manually handled
process can be time-consuming and is prone to security breaches and electoral fraud.
This project aims to develop a smart voting system based on fingerprint and face recognition to ensure
enhanced security and to avoid fake, repeated voting.
In terms of sensing units, the system will comprise a fingerprint sensor and an image capturing unit
as the basic sensing units for initiating the functioning of the system. The fingerprint will be used for
the authentication of a voter’s identity and eligibility before he/she is allowed to vote in the system.
In the image capturing unit, a camera will be used to feed or stream images in real time to or through
a computer to a computer network. When "captured" by the camera, the image is saved, viewed, or
sent on to other networks via systems such as the internet.
With the implementation of this project, it is expected that more people will be invigorated to vote.
This report has covered all the preliminary information used in the designing of the proposed system,
such as a series of methods such as literature review and data collection. Hence, the report contains
all the required information for the project.
Specific objectives including design power supply unit and interface, design sensing unit
fingerprint,control unit , communication display unit, build the prototype of the overall functional
circuit were achieved successful . Hence the system has been developed by considering the
mentioned objectives and finaly smart voting machine based on finger prints and face recognition
has been developed , simulated , tested and work successfully.
iii
TABLE OF CONTENTS
DECLARATION ................................................................................................................................ 2
CERTIFICATION .............................................................................................................................. 3
ABSTRACT ....................................................................................................................................... iii
TABLE OF CONTENTS ................................................................................................................... iv
ACKNOWLEDGEMENT ................................................................................................................ vii
LIST OF FIGURES.......................................................................................................................... viii
LIST OF TABLES ............................................................................................................................. ix
LIST OF ABBREVIATION ............................................................................................................... x
1.1 Introduction ............................................................................................................................. 1
CHAPTER ONE ............................................................................................................................... 1
1 INTRODUCTION .................................................................................................................. 1
1.2 Background information ......................................................................................................... 2
1.3 Problem Statement .................................................................................................................. 3
1.4 Objectives................................................................................................................................ 3
1.4.1 Main objective.................................................................................................................. 3
1.4.2 Specific objectives............................................................................................................ 3
1.5 Significance of the project ....................................................................................................... 4
1.6 Project methodology................................................................................................................ 4
1.6.1 Literature review .............................................................................................................. 4
1.6.2 Data collection.................................................................................................................. 5
CHAPTER TWO .............................................................................................................................. 6
2 LITERATURE REVIEW........................................................................................................ 6
2.1 Introduction ............................................................................................................................. 6
2.2 Direct-recording Electronic (DRE) voting machines ............................................................... 6
2.3 Optical Scan Voting Systems .................................................................................................. 8
CHAPTER THREE .......................................................................................................................... 10
3 PROPOSED SYSTEM ......................................................................................................... 10
3.1 Introduction ........................................................................................................................... 10
3.2 Proposed system ........................................................................................................................ 10
3.3 Block diagram of the proposed system .................................................................................. 10
3.4 Parts of the proposed system ................................................................................................. 11
iv
3.4.1 Power supply .................................................................................................................. 11
3.4.2 Sensing unit .................................................................................................................... 11
3.4.3 Display unit .................................................................................................................... 11
3.4.4 Communication unit ....................................................................................................... 11
1.5 Principle of operation............................................................................................................ 12
3.6 Significances of the proposed system. ................................................................................... 12
3.7 Scope/ limitation of the proposed system. ............................................................................. 12
3.8 Chapter summary. ................................................................................................................. 13
CHAPTER FOUR ............................................................................................................................. 14
4 DATA COLLECTION ......................................................................................................... 14
4.1 Introduction ........................................................................................................................... 14
4.2 Primary data .......................................................................................................................... 14
4.3.4 Display unit .................................................................................................................... 19
4.3.5 Control unit .................................................................................................................... 20
5 DATA ANALYSIS AND SYSTEM DESIGN ..................................................................... 21
5.1 Introduction ........................................................................................................................... 21
5.2 Selection of unit block components ...................................................................................... 21
5.2.2 Control unit .................................................................................................................... 23
5.3 Software Design .................................................................................................................... 32
5.4 Overall Circuit Diagram of Proposed System ....................................................................... 32
5.5 The flow chart of the Designed system ................................................................................. 32
5.6 Chapter summary .................................................................................................................. 33
6 SIMULATION ...................................................................................................................... 34
6.1 Introduction ........................................................................................................................... 34
6.2 Simulation software .............................................................................................................. 34
6.3 Simulation constraints........................................................................................................... 34
6.4 Performance parameters and simulations ............................................................................. 34
6.5 Overall Simulation and Result Discussion ........................................................................... 36
6.6 Chapter Summary ................................................................................................................. 37
7 PROTOTYPE TESTING AND IMPLEMENTATION ....................................................... 38
7.1 Introduction .............................................................................................................................. 38
7.2 Module interfacing .................................................................................................................... 38
7.2.1 Fingerprint interfacing ........................................................................................................... 38
v
7.2.2 Image capturing interfacing .................................................................................................. 38
7.2.3 TFT display interfang............................................................................................................. 38
CHAPTER EIGHT ........................................................................................................................... 43
8 CONCLUSION AND RECOMMENDATION .................................................................... 43
8.1 Conclusion ............................................................................................................................ 43
8.2 Recommendation .................................................................................................................. 45
REFERENCES ................................................................................................................................. 46
APPENDIX A ................................................................................................................................... 47
Senior Project I ................................................................................................................................. 47
APPENDIX B ................................................................................................................................... 48
APPENDIX C ................................................................................................................................... 48
APPENDIX D ................................................................................................................................... 50
vi
ACKNOWLEDGEMENT
Firstly, I would like to thank God for the good health that has enabled me to implement this project.
His graces and mercies are indeed overwhelming. I give all praise, glory, and honor to God.
Secondly, I would like to take this opportunity to thank my project supervisor, Dr. Pesha P., for his
assistance from the time I started this project until it ended. His insights towards this stage of my
project implementation are indeed a necessity.
My regards go to the lecturers who have contributed several insights during presentations and some
outside of presentations. Their insights have had a significant impact on the implementation of this
project.
Much gratitude to my family for their support and care. The provision through prayer, material, and
other forms of support is always a gift I would endlessly be grateful for.
vii
LIST OF FIGURES
viii
LIST OF TABLES
Table 5-1: Selection criteria against available options .................................................................... 21
Table 5-2: Selection criteria against available options .................................................................... 22
Table 5-3: Selection criteria against available options .................................................................... 24
Table 5-4:Specifications of Raspberry PI 4 board: .......................................................................... 25
Table 5-5: Selection criteria against available options .................................................................... 26
Table 5-6: Selection criteria ............................................................................................................. 29
Table 5-7:Different buzzer available and their characteristics ......................................................... 31
Table 6-2: The result of simulated power supply unit ...................................................................... 35
ix
LIST OF ABBREVIATION
AC Alternating current
DC Direct current
DRE Direct recording Electronic
ID Identity
ICR Investor confidence rating
NEC National Electoral Commission
OCR Optical character recognition
OMR Optical mark recognition
PBE Personal electronic ballot
x
CHAPTER ONE
1 INTRODUCTION
1.1 Introduction
Voting is a process that involves citizen or a group of people in an institution to collectively make
a choice on a particular contestant among listed contestants based on rules and regulations. Voting
began in very ancient times, with the need to involve every eligible member to participate in
sound decision making for the benefit of their own communities.
Back then, open ballot methods of voting were employed, where the public would just raise their
hands to vote for a particular opinion or candidate. Since then, several methods have been
developing among the voting systems, such as paper-based methods, machine voting, postal
voting, open ballot, online voting and many more.
In the United Republic of Tanzania, paper-based methods have been used since the first election
held in 1965, with the late Hon. Mwl. Julius K. Nyerere emerging as the victor of the elections.
Paper-based methods have been used in both local and central government elections in the United
Republic of Tanzania. After the adoption of multi-party politics, the Republic has had six general
elections.
Although more trustful among many, paper-based methods do have several shortcomings that link
it to the aim of this project. Paper-based voting is tedious, slow, exhaustive and not time efficient
at all. Long queues are generated with so much of human intervention in between to enable smooth
flow of the voting process. Paper-based voting also incurs null votes if voters didn’t mark
appropriately their votes. In paper-based methods, voters are limited to little flexibility in voting
at polling centers which they have been registered to.
In the current voting system, there would be a queue of processes during voting such as first, the
voter’s ID would have to be processed to verify eligibility, then he/she would get a paper/form that
he/she will fill the choices he/she prefers in a private spot, then he/she would cast the votes into
ballot boxes respectively.
This project introduces a smart voting system which digitize the paper-based method forming an
electronic one that would mitigate the challenges associated with a paper-based voting system.
1
The project aims at central government elections: Members of Parliament and Presidential
elections. This mart voting system would enable fast processing during verification, and enable
voters to vote even though not within their registered constituency. The foreseen possibilities of
this project are brought about by the available technology in the project’s locality and the need to
foster development.
1.2 Background information
Voting is a process that involves citizen or a group of people in an institution to collectively make a
choice on a particular contestant among listed contestants based on rules and regulations. Voting
began in very ancient times, with the need to involve every eligible member to participate in sound
decision making for the benefit of their own communities.
Back then, open ballot methods of voting were employed, where the public would just raise their
hands to vote for a particular opinion or candidate. Since then, several methods have been developing
among the voting systems, such as paper-based methods, machine voting, postal voting, open ballot,
online voting and many more.
In the United Republic of Tanzania, paper-based methods have been used since the first election held
in 1965, with the late Hon. Mwl. Julius K. Nyerere emerging as the victor of the elections. Paper-
based methods have been used in both local and central government elections in the United Republic
of Tanzania. After the adoption of multi-party politics, the Republic has had six general elections.
Although more trustful among many, paper-based methods do have several shortcomings that link it
to the aim of this project. Paper-based voting is tedious, slow, exhaustive and not time efficient at all.
Long queues are generated with so much of human intervention in between to enable smooth flow
of the voting process. Paper-based voting also incurs null votes if voters didn’t mark appropriately
their votes. In paper-based methods, voters are limited to little flexibility in voting at polling centers
which they have been registered to.
2
1.3 Problem Statement
Manual system of voting is tedious, exhaustive and time consuming. There fore Smart Voting system
is intending to solve problems of manual voting system.
1.4 Objectives
The objectives of this project are categorized into main, and specific objectives.
3
1.5 Significance of the project
Below are some of the significances that are inevitable after its implementation:
i. Counting accuracy and precision is high and consistent, unlike manual counting.
iii. It increases the level of participation among the youth and working class.
v. This system allows only authenticated voting than the existing equipment as the person is
identified based on his Fingerprint and Face Recognition which is unique to each
individual.
vi. Time conscious, less time required for voting & counting.
i. Literature review.
4
1.6.2 Data collection
This step involves collection of data that will first justify the existence of the problem, and then
provide design criteria for the proposed solution. Primary data will be collected from associated
stakeholders through questionnaires, and interviews. The stakeholders for this project are voters,
the National Electoral Commission of Tanzania and candidates (both selected and not selected on
different runs). Secondary data will be obtained from journals and related articles.
1.6.3 Data analysis
Data collected in the previous step will be analyzed to establish design criteria for the project’s
implementation. Component choices for the project will be analyzed with reference to the data
collected and prototyping shall begin.
1.6.4 System design
Following the design criteria established in the data analysis stage, several systems shall be designed
accordingly to emulate the working behind the proposed system.
1.6.5 Prototype testing, iteration and implementation
The designed system shall be versioned from first prototype to final. Each version shall be tested
with regards to the objectives established to be met. Iterations shall be considered if any data is
collected during the versioning.
1.6.6 Report writing
A report shall be compiled following the procedures towards the implementation of this project.
1.6.7 Chapter summary
This chapter introduces the project, the inspiration behind its call for implementation and
methodology comprising the steps that will be done towards the accomplishment of this project.
5
CHAPTER TWO
2 LITERATURE REVIEW
2.1 Introduction
There are different types of voting methods that have been designed since the rise of technology in
the voting systems, but the most used systems are Self- contained Direct-Recording Electronic
(DRE) machines. These have been developed in different aspects, to even incorporate
accessibility features for disabled people.
The literature review in this project is taken from DRE voting systems and Optical scan
systems. The internal working principle of these machines has not been public for introspection
since they are kept abstract to limit concept inception of tampering. Therefore, just the external
introspection of the machines is discussed here: How they vote and count. [1]
On the right is the tab containing a list of candidates against a button which is pressed upon
selection of the preferred candidate. DRE voting machines are not connected to the internet due to
security issues.
6
2.2.2 Ivotronic direct recording system
Ivotronic is the direct recording system with a touch screen interfaces that record votes in internal
flash memory. A poll worker uses a device called a personal electronic ballot (PBE) to turn the
machine on and enable voting. Voters choose their ballot language and then make their
selections using a touch screen, When the polls close, polls workers move summary data from
each machine onto the Personal electronic ballot. The PEBs are then transported to election
headquarters or their contents transmitted via a computer network. [2]
7
2.3 Optical Scan Voting Systems
Optical scan voting systems use optical recognition features to recognize marked symbols labeled
as votes on ballot papers. So, a ballot paper of a format such as one shown in Fig. 2.3 below on the
counting machine is given to a voter. The voter marks his/her preferred candidate with the standard
symbol. During counting, the ballot papers are fed into the counting machine which then reads the
symbols and counts them into votes. [2]
8
Figure 2-4: Ballot paper
The voter marks his preferred candidate and folds the paper and puts it into a ballot box. After
closing the voting process, residing officers and polling agents at the polling station start the
counting. The counting is done loud and clear, categorizing each ballot paper into the registered
campaigned parties. A count is established and records are sealed and recorded into the national
register for summing up the state elections.[3]
The single limitation observed among these systems that inspires the implementation of this project
is that most do not incorporate voter verification procedures, so a queue of physical steps exists.
Other limitations are such as the presence of null votes among ballot papers especially in paper-
based voting method. [5]
2.6 Chapter summary
Electronic voting systems have been developed highly to sophisticated levels. This chapter has
highlighted two major e-voting systems, and the existing system in our country. The limitations
associated with them are the key inspiration to the build-up of this project.
9
CHAPTER THREE
3 PROPOSED SYSTEM
3.1 Introduction
This chapter describes the functions of functional block and structure of the proposed system. The
information provided in this chapter will be used as a guideline for the design of the working
prototype.
10
3.4 Parts of the proposed system
3.4.1 Power supply
The power supply unit supplies power to all subsystem of proposed system in order for the devices
to operate.
3.4.2 Sensing unit
Fingerprint module used for recognizing and authenticating the fingerprint of the voters. Also
sensing unit comprise of image capturing unit which used to authenticate voter identity by
matching the voter face against a data base of faces. [6]
3.4.3 Display unit
The function of this unit is to display the warning message for the voter who is barred from polling
his vote when the data from the reader is not matching with the pre-stored information
of the registered fingerprint and Face. Also used to display the candidates when the
voter is allowed to cast his/her vote.
3.4.4 Communication unit
Communication unit used to connect control unit to a remote system/database so as to allow the
comparison of the data from reader and the pre stored data.
3.4.5 Control unit
The control unit is used as the main circuit of the proposed system. It is programmed to give
command when the data from leader is required to be compared with the pre stored information in
the data base.
3.4.6 Driver circuit
This is used to boost the current to the level that needed by Alarm module.
3.4.7 Alarm module
Alarm module is used to produce audible signal when the data from the reader is not matches with
the already existing data stored during the registration of the voters.
3.4.8 Interfacing circuit
This is used for interconnection between control unit and sensing unit.
3.4.9 Data base server (NEC Service)
This is used to store information of the registered voters fingerprint and Face identity.
11
1.5 Principle of operation
The flow of operation of the proposed system highly depends on the predefined location of the
device. The paragraph below sequences a series of steps followed towards the operation of the
system.
First the person at the polling booth needs only to place his Finger in finger print scanner and capture
the face identity in camera at the counter of the polling booth, thus allowing the acquisition of an
on-spot Fingerprint and Face from the voter which serves as an identification. This data is passed
on to the data base server for the verification. Then the data from the reader is compares with the
already existing data stored during the registration of the voters. If the data matches with the pre-
stored information of the registered fingerprint and Face, the person is allowed to cast his vote. If
not, a warning message is displayed on LCD and warns through the voice by this way, the person
is barred from polling his vote. The vote casting mechanism is carried out manually using LCD,
since LCD is used as the input device also is used to display the related messages, warnings and
ensuing results.[2]
i. Counting accuracy and precision is high and consistent, unlike manual counting.
iv. It increases the level of participation among the youth and working class.
12
3.8 Chapter summary.
This chapter provide details about what and how the system is constituted. It is also explaining how
the system works by analyzing the function of each block in the system.
13
CHAPTER FOUR
4 DATA COLLECTION
4.1 Introduction
Data collection is the systematic approach to gathering information from a variety of sources to get
a complete and accurate picture of an area of interest. Data collection enables a person or organization
to answer relevant questions, evaluate outcomes and make predictions about future probabilities and
trends. Also, it contains information to facilitate the design of proposed system, that is the design
requirement.
Data collected in this project was mainly aimed at measuring the following concepts:
a) Technology literacy
Most of this data has been acquired through questionnaires and secondary tools such as articles.
The primary data was collected using questionnaires. The questionnaires for this research can be
found in the Appendix B.
4.2 Primary data
This primary data has been acquired from voters. Below are some visual representations of the data
collected from voters on some key aspects explained in the introduction above:
a) The response shown in Fig. 4.1 was obtained from the questions whose intent was
to understand the awareness of smart voting systems in our country for which 75% of the
voter are aware about the smart voting system and 25% are not aware of it.
NO, 25%
YES, 75%
14
b) The response shown in Fig. 4.2 was obtained from the questions whose intent was to check
about the security awareness in smart voting systems, in which 80% of the voters are aware
and 20% are not aware about the security on smart voting system.
NO, 20%
YES, 80%
NO, 30%
YES, 70%
15
The following are the data collected from (NEC) National Electoral Commission
Table 4-1: Collected data from (NEC)
QNs QUESTIONS RESPONSES
NO
1. What Electronic voting system are you Online (internet) voting system
aware about? Direct-Recording Electronic
(DRE)
Optical Scanning System
Punch Cards Electronic voting
system
2. Are you aware of the security risks that are Electronic voting and especially Internet
associated with Electronic voting? voting systems are vulnerable to denial of
service attacks, spoofing attacks,
malicious code attacks, spyware attacks,
remote management attacks, and
automated vote selling schemes. These
attacks are powerful enough to
compromise Trust and Privacy. They can
be launched by anyone in the world, from
a disturbed teenager to a foreign
government. These vulnerabilities are
quite fundamental
3. Do you think it is feasible to implement a Voting is a unique task with many
smart electr onic voting system in distinctive challenges. One of the most
Tanzania? difficult aspects of elections is the
extraordinary trust and privacy
requirements.
Digital technology in a form of smart
electronic voting system has a potential
for multitude of benefits compared to
traditional voting systems however
providing guaranteed trust and privacy to
all stakeholders’ laypersons and
professionals alike in a form of complex
technology soup may is challenging.
Currently, even the highly developed
societies with broad spectrum of
technology resources available at their
disposal are reluctant to use electronic
voting.
Therefore, until a proper solution to smart
electronic voting guarantees Trust and
Privacy that can be accepted by electoral
stakeholders, only then will it be feasible
16
to implement smart electronic voting
systems in Tanzania.
4. What are the challenges that you think Security risks outlined above
would hinder the implementation of this Communication Network coverage
project? concerns in some parts of the
country.
Cost of implementation.
Trust and privacy concerns from
electoral stakeholders including,
Political parties, Candidates,
Observers and Voters and the
General public.
Based on the primary data collected from voters and from National Electoral Commission (NEC), it
is feasible to implement a smart electronic voting system in Tanzania. This is because voting is a
unique task with many distinctive challenges. One of the most difficult aspects of elections is the
extraordinary trust and privacy requirements so, through digital technology like smart electronic
voting system there is a potential for multitude of benefits compared to manual voting systems
however providing guaranteed trust and privacy to all stakeholders’ laypersons and professionals
alike in a form of complex technology soup may became a challenging situation.
4.3 Secondary data
This part describes the data that has been collected by considering the advantages, characteristics
performances as well as availability of the component and devices. Besides data of the real situation
in the relation to the proposed system, data about different parts of the proposed system were
collected and presented as the table below.
4.3.1 Finger print sensor
A finger print sensor is used to input and read the fingerprint data.The finger print sensor for this
system can be chosen from a range of available sensors. The choice of a finger print sensor depends
much upon the requirements of the system design like what kind of people will be using the
system,amount of people,the budget and the control unit to which the finger print sensor will be used
on. The followings are some parameters used to decide the type of used finger print sensor.
17
Table 4-2: Oversighted design requirement for fingerprint sensor
Operating voltage 5V
Resolution 2500×2000
Weight >100g
18
Cost Affordable
Size 7”
20
CHAPTER FIVE
5 DATA ANALYSIS AND SYSTEM DESIGN
5.1 Introduction
This chapter details analysis of data collected in Chapter four and the design of the system following
the components chosen. Based on design criteria established in Chapter four, unit blocks of the
proposed system shall be designed. Blocks shall be analyzed both qualitatively and quantitatively
until a selection is made out of some proposed common components. A set of observations were
obtained from the data collected.
5.2 Selection of unit block components
5.2.1 Fingerprint sensor
The sensing unit consists primary of the fingerprint sensor which reads unique patterns termed as
‘minutiae’. Minutiae are unique patterns formed by ridge and valley features found at the fingertips
of human finger.
5.2.1.1 Selecting suitable fingerprint sensor
Based on the design criteria established in chapter four for a required fingerprint sensor, the table
below show two available fingerprint sensors which shall be compared and one selected.
Table 5-1: Selection criteria against available options
Operating voltage 3.6 – 6.0 VDC 3.6 – 6.0 VDC(agree) 3.6 – 6.0 VDC(agree)
21
Working temperature -20℃ to +50℃ -20℃to -20℃to +
rating +50℃(agree) 45℃(disagree)
From the options in table 5.1 above, the DY 50 is suitable for the proposed system.
22
Signal to noise ratio 40dB 46dB 36dB 39dB
Weight >100g 100g G.W 17g 100g
Cost Affordable Tsh. 30,000/= Tsh. 35,000/= Tsh. 75,000
From the table 5.2 USB webcam camera is more preferred for this project since its affordable and
meet some project requirements.
23
Table 5-3: Selection criteria against available options
Operating voltage 5V 5V 5V
GPIO pins 24 40 40
According to the data provided in chapter four and data provided from the table above, Raspberry
pi 4 is suited to be a control unit of this project, there fore Rasspberry pi 4 is selected.The physical
appearance and pin configuration of the selected Rasspberry pi 4 is illustrated bellow.
24
Figure 5-5: Raspberry pi 4 pin configuration
Table 5-4:Specifications of Raspberry PI 4 board:
POWER SOURCE +5V, +3.3V, GND and Vin +5V -power output
+3.3V -power output
GND – GROUND pin
25
INPUT/OUTPUT PINS 26 I/O Although these some pins have
multiple functionsthey can be
considered as I/O pins.
EXTERNAL All I/O In the board all I/O pins can be used
INTERRUPTS as Interrupts
27
Figure 5-7: Regulator pinout
28
5.2.5 Driver circuit
A relay driver circuit is a circuit which can drive or operate a relay so that it can function
appropriately in a circuit. In this project a driven relay operate as a switch which can be open or close
according to the need so as to manage the alarm module.
5.2.5.1 Qualitative analysis of driver circuit
Table 5-6: Selection criteria
29
The software model of driver circuit is shown below
𝐼𝑏 = 𝐼𝑒 − 𝐼𝑐
From the table above for BC547
Gain (hFe)= 𝛽 = 100
From choosen relay, trigger current
𝐼𝐶 = 70 𝑚𝐴
This current will be required to trigger the transistor for producing the audible signal of the buzzer.
𝐵𝑎𝑠𝑒 𝑣𝑜𝑙𝑡𝑎𝑔𝑒 𝑎𝑣𝑎𝑖𝑙𝑎𝑏𝑙𝑒 𝑉𝑏 = 5𝑉𝑑𝑐,
30
i. It should have high sound pressure
ii. It should have built in oscillator
iii. It should have loud low frequency.
There are variety types of alarm systems in the market so that the qualitative analysis must be done
for good choice of the alarm system based on basic requirements.
5.2.6.1 Qualitative Analysis of Alarm unit
There are varies buzzers or beepers have been designed for different applications. A buzzer or beeper
is an audible signaling device , which may be mechanical, electromechanical and piezoelectric. The
human audible range is between20Hz and 20000Hz. The buzzer suitable for this project is in
frequency of 20000Hz for it is the range of alarm system. The following are the basic requirements
of buzzer, in orger to choose the suitable buzzer for this project the qualitative analysis has to be
done. table below represents buzzer and their characteristics.
Table 5-7:Different buzzer available and their characteristics
From table above piezoelectric buzzer is chosen for this project as it meets all necessary
requirements.
31
5.3 Software Design
In order to interface each sub system of the proposed system with Raspberry pie 3B+ ,then the
algorithm of software program must be designed to achieve the main objective of the designed
system.
5.3.1 Qualitative Analysis of Software Design Tool
After the design process of the system then it requires some software design tool to realize the
designed system. The software design tool employed in this project is proteus software.
5.4 Overall Circuit Diagram of Proposed System
It consists the schematic diagram of power supply, control unit,Finger print sensor ,Image capturing
unit ,Display unit, Driver ciruit,Alarm module, Communication unit and Data base. Figure shows
overall circuit diagram of whole proposed system which is to be simulated.
32
between different stages. Figure describe the units of the flow chart of the designed system.
33
CHAPTER SIX
6 SIMULATION
6.1 Introduction
This chapter discusses the simulation of parts of the system to be implemented. Simulation tools,
software, constraints, and testing procedures are discussed.Not only that but also it presents the
simulation results and their discussions. Electronic circuit simulation uses mathematical models to
replicate the behavior of an actual electronic device or circuit.
6.2 Simulation software
The software designated to be used in simulating the system is Proteus ISIS 8.10. The software
supports a wide variety of electronic system.
6.3 Simulation constraints
The simulation setup in proteus is limited to the following from the context of this project:
The programming language used in this design is Python. Though the software supports
python interpreters, it is limited to importing only predefined libraries.
6.4 Performance parameters and simulations
The performance parameters in each simulation are detailed under this subsection
6.4.1 Output from the power supply
The system requires a DC power supply of 5V. The power supply is tested at input and after
regulation to obtain the required voltage . A battery is used in this case . A regulator is set after the
battery to obtain a fixed voltage . See fig 6.1 for a simulation snapshot of the power supply output
voltage.
34
Table 6-1: The result of simulated power supply unit
6.4.2 Simulation when the voter finger print and face identity is registered.
Finger print sensor work by capturing the pattern of ridges and valleys on finger. The information
is then processed by the device’s pattern analysis/matching software, which compares it to the list
of registered finger prints on file.For simulation purpose, a push button has been used instead of
finger print sensor. Also green LED proved an alert for registered finger print .
Facial recognition camera uses computer generated filters to transform face image into numerical
expression that can be compared to determine their similarity.For simulation purpose push button
used to represent the face identity of the voter and green LED alerting for registered face identity.
35
6.4.3 Simulation when the voter finger print and face identity is not registered.
On simulation red LED alert for unregisterd voter also buzzer produce an audible signal.
36
Figure 6-4: Overall simulation
37
CHAPTER SEVEN
7 PROTOTYPE TESTING AND IMPLEMENTATION
7.1 Introduction
This chapter discusses the implementation process, from low-level prototype to high-level
prototype. It includes the iterations in software processes that successfully led to the proper
interfacing and full operation of the system.
7.2 Module interfacing
The central processing unit designated for this project is the ARM-based Raspberry Pi 4. The SBC
runs on Raspbian: a Debian-based operating system for Raspberry Pi’s. The SBC is mainly
programmed or interfaced using C, C++ or Python programming languages. Interfacing done in this
project is programmed using Python language.
7.2.1 Fingerprint interfacing
Fingerprint sensors communicate with Raspberry Pi 4 using Transistor-Transistor Logic (TTL) serial
communication: HIGH (3.3V) or LOW (0V). The Raspberry pi 4 does not allow direct TTL
communication between its microprocessor and TTL-based peripherals. In this case, a TTL converter
has to be used so as a TTL-based device can be interfaced to the microcontroller. For better
performance, the sensor is place on direct UART physical pins (GPIO14 & GPIO15) on the SBC.
7.2.2 Image capturing interfacing
Camera interface with Raspberry pie through by USB and Ethernet port.
7.2.3 TFT display interfang
TFT display communicate with Raspberry Pi 4 using spi interface and operate with 5V dc supply.
7.3 Results
The prototype is successfully integrated as seen in the figure 7.1 below.
38
Figure 7-1: The prototype interfaced (with casing)
39
Figure 7-2: Registration page
40
Figure 7-3 : Voting page
41
7.4 Chapter summary
This chapter details the implementation for the prototype. Interfacing requirements have been
highlighted and been interfaced as required for proper functioning of the prototype. Generally, the
prototype works as the system flowchart proposed in chapter three.
42
CHAPTER EIGHT
8 CONCLUSION AND RECOMMENDATION
8.1 Conclusion
The project aimed to design and implement smart voting machine based on finger prints and face
recognition, which will mitigate the effect of manual voting system.
Senior project II compiles a report continuing from the first four chapters of senior project I. This
report compiles the system design, simulation and prototyping phase of the voting device.
An introduction of the project has been given containing the background information of the problem
to be solved which is the tedious and exhaustive tasks involved in paper-based voting methods. A
detailed explanation of the paper-based voting method our country uses has been given following the
laws enacted for voting in the National Elections Act (2016 revision) that show how the voting
process is tedious and exhaustive. A methodology is then established that is to be followed towards
the implementation of this project.
A literature review was done around devices already made. The literature review about these devices
is so limited to outer feature functionalities due to the security required by their systems. Electronic
voting machines are partially novel to our country, so the study was done on abroad devices. There
have been several designed electronic voting machines, but two major classes were discussed: Direct-
Recording Electronic voting machines and Optical Scan Systems. A single key limitation has been
pointed out that inspired the development of this project.
The proposed system is detailed in chapter three. It details the proposed system using a block
diagram, and some descriptive explanations.
To work out the solution’s features, data had to be collected from stakeholders of the problem in
status. The data collected focused on understanding concepts of technology literacy and the
operational feasibility around the implementation of the project. A sample space of 37 people was
obtained within the one-week window that was available for data collection. This data was the
primary data. Secondary data was extracted from the country’s National Electoral Commission site,
nec.go.tz.
The data analysis chapter goes hand in hand with the system design chapter, where technical
specifications and design of parts of the proposed system where set.
Specific objectives including design power supply unit and interface, design sensing unit
fingerprint,control unit , communication display unit, build the prototype of the overall functional
circuit were achieved successful . Hence the system has been developed by considering the
43
mentioned objectives and finaly smart voting machine based on finger prints and face recognition
has been developed , simulated , tested and work successfully
44
8.2 Recommendation
The aim of this project was to design and implement smart voting machine based on finger prints
and face recognition, which will mitigate the effect of manual voting .
Also as the prototype had been completed and in working condition. Moreover, it is recommended
that, it should be tested in real environment and employed for use in the elections so as to reduce the
existing problem.
45
REFERENCES
[1] H. Mohammed, "Fingerprint Base Electronic Voting System," 2008.
[2] ECI, " Electronic Voting machine.," 02 02 2022. [Online]. Available:
https://eci.gov.in/faqs/evm/generalqa/electronic voting-machine-r2/. .
[3] L. Ada, " Adafruit Optical Fingerprint sensor.," 16 02 2021. [Online]. Available:
https://cdnlearn.adafruit.com/downloads/pdf/adafruit-optical-fingerprint-sensor.pdf. .
[4] Homepage, "National Electoral Commission.," 12 02 2020. [Online]. Available:
https://www.nec.go.tz/..
[5] Nilspeace, " A memo on the Tanzania 2020 Elections.," 25 01 2022. [Online]. Available:
https://minbane.wordpress.com/2020/10/25/https-wp-me-p1xtjg-fiv/. .
[6] ECI, " Electronic Voting machine.," 15 01 2022. [Online]. Available:
https://eci.gov.in/faqs/evm/generalqa/electronic voting-machine-r2/. .
[7] M. Othman, " Compendium of electoral laws.," 22 01 2022. [Online]. Available:
https://www.politicalpartydb.org/wpcontent/uploads/Statutes/Tanzania/Tanzania_Compendium-
of-Electoral-Laws-andRegulations_2016.pdf.
[8] ECI, "Electronic Voting machine.," 2018. [Online]. Available:
https://eci.gov.in/faqs/evm/generalqa/electronic- voting-machine-r2/. Accessed 12/02/2021..
46
APPENDIX A
Senior Project I
Activity Duration of the project in weeks
1 2 3 4 5 6 7 8 9 10 11 12 13
Title defending
Re writing proposal
Literature review
Data collection
Report writing
Report submission
Senior Project II
Activity Duration of the project in weeks
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Data analysis
Circuit design
Simulation
Prototype building
Report writing
Report Submision
47
APPENDIX B
APPROXIMATED BUDGET
APP Item Unit price Required Subtotal
ROXI
1 Raspberry Pi 4 400,000 1 400,000
MAT
2 Fingerprint sensor 75,000 1 75,000
ED
3 Display & accessories 200,000 1 200,000
BUD
4 Image capturing unit 56,000 1 56,000
GETS
5
/no. Alarm module 12,000 1 12,000
6 Stationery 70,000 1 70,000
7 Casing 80,000 1 80,000
Total 893,000
APPENDIX C
There have been different voting systems since the beginnings of democracy, from hand raising to
the novel electronic systems available to-date. In our country, the United republic of Tanzania, we
have been using paper-based systems since our independence.
As a final year student, I am intending to implement a smart electronic voting system for the
general elections. The data collected in this form will be used to establish design criteria for this
project.
Yes,
No
2. How efficient are they compared to the current methods being used in our country? *
Mark only one oval.
1 2 3 4 5
48
3. Would you trust machines to do the counting in electronic voting systems? *
Mark only one oval.
1 2 3 4 5
Yes
No
5. Would you trust a few able-bodied technicians to service and maintain the electronic voting
systems? * Mark only one oval.
1 2 3 4 5
Yes
No
7. What are the challenges you faced as you voted outside your polling station?
49
APPENDIX D
Paper based voting system has been used as a method to vote during elections. In our country, the
United republic of Tanzania, we have been using paper-based systems since our independence.
As a final year student, I am intending to implement a smart electronic voting system for the general
elections. The data collected in this form (NEC) will be used to establish design criteria for this
project.
1. What electronic voting systems are you aware about? *
2. Are you aware of the security risks that are associated with electronic voting? *
4. What are the challenges that you think would hinder the implementation of this project? *
50
APPENDIX D
Interfacing code for fingerprint sensor
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import time
import board
#import busio
from digitalio import DigitalInOut, Direction
import adafruit_fingerprint
led = DigitalInOut(board.D13)
led.direction = Direction.OUTPUT
#uart = busio.UART(board.TX, board.RX, baudrate=57600)
# If using with a computer such as Linux/RaspberryPi, Mac, Windows with USB/serial converter:
# import serial
# uart = serial.Serial("/dev/ttyUSB0", baudrate=57600, timeout=1)
# If using with Linux/Raspberry Pi and hardware UART:
import serial
uart = serial.Serial("/dev/ttyS0", baudrate=57600, timeout=1)
finger = adafruit_fingerprint.Adafruit_Fingerprint(uart)
##################################################
def get_fingerprint():
"""Get a finger print image, template it, and see if it matches!"""
print("Waiting for image...")
while finger.get_image() != adafruit_fingerprint.OK:
pass
print("Templating...")
if finger.image_2_tz(1) != adafruit_fingerprint.OK:
return False
print("Searching...")
if finger.finger_search() != adafruit_fingerprint.OK:
return False
return True
51
# pylint: disable=too-many-branches
def get_fingerprint_detail():
"""Get a finger print image, template it, and see if it matches!
This time, print out each error instead of just returning on failure"""
print("Getting image...", end="", flush=True)
i = finger.get_image()
if i == adafruit_fingerprint.OK:
print("Image taken")
else:
if i == adafruit_fingerprint.NOFINGER:
print("No finger detected")
elif i == adafruit_fingerprint.IMAGEFAIL:
print("Imaging error")
else:
print("Other error")
return False
while True:
i = finger.get_image()
if i == adafruit_fingerprint.OK:
print("Image taken")
break
if i == adafruit_fingerprint.NOFINGER:
print(".", end="", flush=True)
elif i == adafruit_fingerprint.IMAGEFAIL:
print("Imaging error")
return False
else:
53
print("Other error")
return False
if fingerimg == 1:
print("Remove finger")
time.sleep(1)
while i != adafruit_fingerprint.NOFINGER:
i = finger.get_image()
return True
##################################################
def get_num():
"""Use input() to get a valid number from 1 to 127. Retry till success!"""
i=0
while (i > 127) or (i < 1):
try:
i = int(input("Enter ID # from 1-127: "))
except ValueError:
pass
return i
while True:
print("----------------")
if finger.read_templates() != adafruit_fingerprint.OK:
raise RuntimeError("Failed to read templates")
print("Fingerprint templates:", finger.templates)
55
print("e) enroll print")
print("f) find print")
print("d) delete print")
print("----------------")
c = input("> ")
if c == "e":
enroll_finger(get_num())
if c == "f":
if get_fingerprint():
print("Detected #", finger.finger_id, "with confidence", finger.confidence)
else:
print("Finger not found")
if c == "d":
if finger.delete_model(get_num()) == adafruit_fingerprint.OK:
print("Deleted!")
else:
print("Failed to delete")
if __name__ == "__main__":
# FaceRecognition().faces_encoding()
face_recognizer = FaceRecognition(
encodings="encodings/encodings.pickle",
)
face_recognizer.faces_detection()
56
codes for data base creation
<?php
$db_user = "root";
$db_pass = "";
$db_server = "localhost";
$conn = mysqli_connect($db_server,$db_user,$db_pass);
if(!$conn){
//echo "connection error";
}
else{
//echo "connection succesful ";
}
$sql = "CREATE DATABASE voting_system";
$result = mysqli_query($conn,$sql);
if($result){
// echo "Database created successfully";
} else {
// echo "Error creating database: " . $conn->error;
}
mysqli_close($conn);
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "voting_system";
$link = new mysqli($servername, $username, $password, $dbname);
if (!$link) {
die("Connection failed: " . mysqli_connect_error());
}
57