Report For A Project
Report For A Project
Total 25
ELECTRONIC VOTING MACHINE
BEC405A
ABSTRACT
Voting Machine Using 8051 Microcontroller
In democratic systems, fair and efficient voting mechanisms are essential for ensuring
transparent elections. This project presents the design and development of a simple
electronic voting machine (EVM) based on the 8051 microcontroller, aiming to
enhance the reliability and speed of the voting process while minimizing human
errors.
The proposed system uses the 8051 microcontroller as the core processing unit to
manage vote input, counting, and result display. The machine features push-button
switches for each candidate, and an LCD display to show real-time information and
final results. Each button press is registered as a vote for the corresponding candidate
and is stored securely in the microcontroller’s memory. After the voting session ends,
an authorized person can trigger the result mode to display the number of votes each
candidate has received.
To ensure data integrity, the system includes basic debouncing techniques and
password protection for result access. The voting machine operates on embedded C
code programmed into the 8051 microcontroller using Keil software and can be
powered by a regulated power supply.
1. INTRODUCTION
1.1 Background
Electronic voting systems are widely recognized for improving the speed and
accuracy of elections. The 8051 microcontroller is a popular choice in embedded
system projects due to its simplicity, reliability, and wide availability. In this
project, the microcontroller plays a central role in managing inputs (vote casting),
storing vote data, and outputting results. The integration of LCD display and
button-based input allows for a user-friendly interface.
1.3 Objectives
Simple LCD interface for live instructions and final result display.
2. LITERATURE SURVEY
The evolution of electronic voting systems has shown significant progress in recent
years, moving from manual voting techniques to fully automated systems.
Microcontroller-based systems, particularly using the 8051 microcontroller, have
gained popularity in academic and experimental setups due to their simplicity, cost-
effectiveness, and ease of programming. This literature survey highlights various
research efforts and projects related to electronic voting systems and the role of the
8051 microcontroller in their development.
3.4Flowchart / Algorithm
1.Start the system and initialize all ports and the LCD.
5.Return to the "Vote Now" screen and wait for the next voter.
6.Repeat steps 3–5 until voting ends (manually or via a trigger switch).
4. IMPLEMENTATION
Connect Vcc (Pin 40) to +5V and GND (Pin 20) to ground.
Connect a 10kΩ resistor and 10μF capacitor to the reset pin (Pin 9) for reset
functionality.
Add two 33pF capacitors between each crystal pin and ground for stable
oscillation.
Connect the LCD's data pins (D4–D7) to any four I/O pins of Port 1 (e.g., P1.4
to P1.7).
Use a 10kΩ variable resistor to adjust LCD contrast (connected between Vcc,
GND, and VEE pin of the LCD).
Connect one push-button for each candidate to available I/O pins (e.g., P2.0,
P2.1, P2.2).
One side of each push-button is connected to +5V, and the other to the I/O pin
with a 10kΩ pull-down resistor to ground.
Connect a buzzer to an I/O pin (e.g., P3.7) through a transistor switch (e.g.,
BC547) and a current-limiting resistor.
Connect a 4x3 or 4x4 matrix keypad to Port 0 or any free port pins for
password input.
Confirm all ground (GND) and Vcc lines are properly connected.
Ensure I/O pins are not left floating (use pull-up or pull-down resistors as
needed).
Step 9: Testing
5. Main Loop:
2. Interface I/O Devices: Connect voting buttons to input pins and LCD to output
pins of the microcontroller.
3. Program the Microcontroller: Write the voting logic in Embedded C and burn it
into the 8051 using a programmer (e.g., USBASP).
5. Test Functionality: Verify button presses register votes and LCD displays correct
messages and results.
The project was tested under varying temperature conditions by manually heating and
cooling the LM35 sensor. The results are as follows:
These tests confirm that the LCD , 8051 Microcontroller , Push button switches and
all respond as expected.
5.3Analysis of Working
1. Input Mechanism
2. Vote Processing
The logic ensures only one vote is registered per press using a delay/debounce
method.
3. User Feedback
After a successful vote, the LCD displays “Vote Casted” to inform the user.
Once voting ends, a password may be required to access the result display
(optional for security).
If the correct password is entered, the system displays the final vote count for
each candidate on the LCD.
5. Output Display
6. System Reliability
It reduces human error and makes vote casting quick and secure.
1. EXPENDITURE DETAILS
2 Led 5 5 25
3 LCD Display(16x2) 1 95 95
4 4 pin Switch 1 40 40
5 40 pin Base 1 5 5
6 4007 diode 1 5 5
7 1000/25V 1 5 5
9 Breadboard 1 80 80
10 Pot 1 10 10
Total : 430
8. CONTRIBUTION
a. Individual Contributions
Member Role/Contribution
b. Team Contributions
Joint Decision-Making
From the very beginning of the project, all major decisions—such as the selection of
components (89C51, LM35,LCD, MP1584), design of the circuit, and the
programming approach—were made collectively. Each team member contributed
ideas and insights, and decisions were finalized through consensus, ensuring everyone
was aligned and understood the overall project direction.
To keep the project on track, the team held regular meetings throughout the
development cycle. These meetings allowed us to review progress, assign tasks, share
9. CONCLUSION
The project successfully implemented a basic electronic voting machine using the
8051 microcontroller. It accurately registers votes through push buttons and provides
real-time feedback via an LCD display. The system includes optional password
protection for secure result access. All components were integrated effectively and
operated without errors during testing. The design is simple, low-cost, and user-
friendly. It demonstrates core concepts of embedded systems and can be scaled for
more advanced features.
9.2 Limitations
10.REFERENCES