You are on page 1of 6

Electronic voting machine using

seven segment multiplexing with


8051 microcontroller (AT89C51)

This topic presents a basic approach to develop an electronic machine. The idea is

to display the count of votes on a set of seven segment displays. A set of switches

are provided through which a user can cast vote. After every cast of vote, the

subsequent count can be seen on the seven segments. The segments and switches

are controlled through AT89C51. For every candidate, a segment has been provided.

This voting machine is designed for four candidates. The provision of

casting vote has been provided by means of four tactile switches. These

switches take manual inputs from the user and transfer them to the pins

of controller. Based on these inputs, the vote count for different

candidates is increased by AT89C51.

To display the vote count, four seven segment displays are also connected

to the microcontroller (refer seven segment interfacing with AT89C51).

The count value for each candidate is sent to the corresponding segment.

The four counts appear continuously by multiplexing these segments

through AT89C51.
Pins 2-5 of the port P3 are configured to take inputs through switches

connected to them. The data pins of the seven segments are connected to

port P2. Pins 0-3, of port P1, are configured as output to act as

control/enable pins of the seven segments.

298,187-Reads

244,671-Reads
223,209-Reads

Description:
Now-a-days Electronic voting machine has become an effective
voting tool. Flawless voting is ensured by Electronic voting
machine. This is the reason it became more widespread. People are
made sure that their is vote secured. One more feature is that it
avoids any kind of malpractice or invalid votes. Talking about
economical benifits, this system is more economical as consequent
expenditure incurred on manpower is saved. Also it is use friendly,
it means voter feels convenient, because he/she has to press only
one key of the respective candidates to vote.

Block Diagram:

Description in detail:
The Electronic Voting Machine basically consists of four main
blocks. These blocks are Keypad, Microcontroller, LCD Display
and Control switches.

1) Keypad: We have 8 keys on the keypad. Thus it has one key


specified for one candidate. This block is used in both voting and
counting mode, in voting mode key of respective candidate is
pressed, the corresponding signal is sensed by micro controller. In
counting mode this keypad is used to check the votes of respective
candidate. The key given for candidate is pressed and micro
controller senses the corresponding signal.

2) Micro controller: Micro controller senses the signal given


from switches and decides the mode of operation in voting mode it
increments the data for corresponding key i.e. respective candidate
as well as it sends signal to display block to indicate one key is
pressed. In counting mode micro controllers fetches data from
memory location and send it to display devices.

3) LCD display: Liquid Crystal Display which is commonly


known as LCD is an Alphanumeric Display it means that it can
display Alphabets, Numbers as well as special symbols thus LCD is
a user friendly Display device which can be used for displaying
various messages unlike seven segment display which can display
only numbers and some of the alphabets. The only disadvantage of
LCD over seven segment is that seven segment is robust display
and be visualized from a longer distance as compared to LCD. Here
we have used 16 x 2 Alphanumeric Display which means it can
display two lines with maximum of 16 characters in one line.

4) Control switches: There are three control switches:


I. Clear Votes. II. Controller switch. III. Mode selection switch.

5) EEPROM Memory: EEPROM or E2PROM memory is


used to store the voting count. Advantage of electrical erasable
programmable random access memory is that it stores data in
memory even after power is cut off. I2C bus protocol interfacing is
used for communication with EEPROM.

Operation or Working of Project:


1] Power on: When supply is turned on RED LED glows.
2] Mode selection:
i. Voting mode: toggle switch on VCC
ii. Counting mode: toggle switch on GND.
Voting Mode: When toggle switch is in voting mode Voting mode
is displayed followed by Please vote. After a vote being given,
Please wait for authority switch is displayed and again enable for
voting after Control switch being pressed by the voting Authority.
Counting Mode: When toggle switch is in counting mode
Counting mode in displayed on the screen, and total number of
votes to respective candidate can be displayed on the screen by
pressing the respective key assigned to them.
3] Clear mode: Press clear switch when all entries are required to be
erased. Clear switch should be pressed before voting procedure.
4] Buzzer indication: Pressing of key in voting mode is indicated by
a buzzer sound.
5] Controller switch: This switch is provided for enabling the
keypad in voting mode. This switch is under the control of voting
authority.

Applications and Advantages:


1. It is economical
2. Less manpower required
3. Time conscious, as less time required for voting & counting
4. Avoids invalid voting
5. Saves transportation cost due to its compact size
6. Convenient on the part of voter.

This could be used for voting purpose at any required place

You might also like