Build An Arduino Based Voting System

Voting systems are one of the finest examples of Embedded devices and applications. The complexity and robustness of a voting system depends on the number of voters involved. Here you could see a simple Arduino based voting system that would be a great fit for small-scale elections such as in schools or colleges. This system was designed to ensure security and the coolest thing is the whole voting process can be done with assembled hardware and Arduino IDE.

Arduino based voting system

DESIGN:

This voting system takes vote inputs from pins A2 to A5 of Arduino. A LCD used to show candidates name which was connected in 4 bit mode to the Arduino. Then connect the Arduino to the computer using the serial connection through the USB.

FEATURES:

SECURITY:

Security will be the biggest concern in any kind of embedded system. So the security of this system is reinforced by a password input method after initializing the system. The system will permit the poll organizer to operate only after entering the correct password.

POLL CONTROL:

The code was constructed in such a way the Arduino requires single character commands to allow voter to cast the vote. I have programmed Arduino to let the voter cast the vote on input of character “V” in the serial monitor screen. And this command allows only a single vote to be casted in a single instant. This prevents voter to cast multiple fake votes.

DISPLAYING RESULTS:

Poll results can be displayed by entering character command “D” in the serial monitor. Entering “D” will make Arduino to send the poll tally to the serial monitor in sequential order which we have programmed. This will help us to get the results instantaneously.

ALGORITHM TO CODE:

  1. Initialize the serial connection in your Arduino.
  2. Wait for password input and check the input password match with default one once it is entered.
  3. If input password is correct grant access for the user to give the command input.
  4. If “V” is pressed start scanning the keypad to detect the vote input.
  5. Allow only one single input by the voter and again wait for further command.
  6. If “D” is pressed send the poll tally to the serial monitor from Arduino.

STEPS TO CONDUCT POLL:

  1. Open the Arduino IDE and then the serial monitor.
  2. Enter the correct password.
  3. Press “V” to allow voter to cast their vote.
  4. Press “D” to display poll results.
  5. After every single vote you need to press “V” to allow the next voter to cast their vote.

 

Read More: Build An Arduino Based Voting System

 


About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation and engineering. My writing style is clear and simple, and I am skilled in using infographics and diagrams. I am a great researcher and am able to present information in a well-organized and logical manner.

Follow Us:
LinkedinTwitter
Scroll to Top