fbpx

The electronic voting system is an interesting project that the Arduino uses as its mind. The basic idea of ​​this project is to create an electronic voting machine that will help eliminate fraud in manual voting systems and previous versions of electronic voting. The project is designed for Four contestants. Voters can cast their vote for any of the competitors.

The system is equipped with Four key numbers, where 4 is the political party number. Here the voter is allowed to proceed with selecting their preferred candidate from the button panel. The final vote is then displayed to LCD to satisfy the voters. In the end, the score can be calculated automatically by pressing the score button.

The “Electronic Voting Machine” project is designed using the Arduino board, LCD display, potentiometer, push buttons, connection wires and connection board

About Electronic voting machine

1.  Assemble the circuit as shown in the figure .

2.  Connect the 5 push buttons to digital pin 7,6,5,4,3 of Arduino.

3.  connect pin 4, 6, 11, 12, 13, 14 of LCD to digital pin 13, 12, 11, 10, 9, 8 of Arduino

Here Arduino is the heart and brain of this system. Arduino controls the complete voting processes like reading button, incrementing vote value, generating a result, and sending vote and result in LCD Display.

Here we have added five buttons that are assigned for team A, team B, team C, team D, and the last button is used for calculating or displaying results.

Below are some of the pictures for this project that tells a clear story about working on this project.

I am sorry to say this but i don’t have a YouTube channel I will provide you my Instagram page link of the https://www.instagram.com/p/CPgcO83lLg0/ please copy this link and paste in your browser. I hope you will check my project and I am sorry for the inconvenience. Please check it.

#include<LiquidCrystal.h>

LiquidCrystal lcd(13, 12, 11, 10, 9, 8);

#define S1 7

#define S2 6

#define S3 5

#define S4 4

#define S5 3

int vote1=0;

int vote2=0;

int vote3=0;

int vote4=0;

void setup()

{

pinMode(S1, INPUT);

pinMode(S2,INPUT);

pinMode(S3,INPUT);

pinMode(S4,INPUT);

pinMode(S5,INPUT);

lcd.begin(16, 2);

lcd.print(” Electronic “);

lcd.setCursor(0,1);

lcd.print(” Voting Machine “);

delay(4000);

digitalWrite(S1, HIGH);

digitalWrite(S2, HIGH);

digitalWrite(S3, HIGH);

digitalWrite(S4, HIGH);

digitalWrite(S5, HIGH);

lcd.clear();

lcd.setCursor(1,0);

lcd.print(“A”);

lcd.setCursor(5,0);

lcd.print(“B”);

lcd.setCursor(9,0);

lcd.print(“C”);

lcd.setCursor(13,0);

lcd.print(“D”);

}

void loop()

{

lcd.setCursor(1,0);

lcd.print(“A”);

lcd.setCursor(1,1);

lcd.print(vote1);

lcd.setCursor(5,0);

lcd.print(“B”);

lcd.setCursor(5,1);

lcd.print(vote2);

lcd.setCursor(9,0);

lcd.print(“C”);

lcd.setCursor(9,1);

lcd.print(vote3);

lcd.setCursor(13,0);

lcd.print(“D”);

lcd.setCursor(13,1);

lcd.print(vote4);

if(digitalRead(S1)==0)

vote1++;

while(digitalRead(S1)==0);

if(digitalRead(S2)==0)

vote2++;

while(digitalRead(S2)==0);

if(digitalRead(S3)==0)

vote3++;

while(digitalRead(S3)==0);

if(digitalRead(S4)==0)

vote4++;

while(digitalRead(S4)==0);

if(digitalRead(S5)==0)

{

int vote=vote1+vote2+vote3+vote4;

if(vote)

{

if((vote1 > vote2 && vote1 > vote3 && vote1 > vote4))

{

lcd.clear();

lcd.print(“A is Winner”);

delay(3000);

lcd.clear();

}

else if((vote2 > vote1 && vote2 > vote3 && vote2 > vote4))

{

lcd.clear();

lcd.print(“B is Winner”);

delay(3000);

lcd.clear();

}

else if((vote3 > vote1 && vote3 > vote2 && vote3 > vote4))

{

lcd.clear();

lcd.print(“C is Winner”);

delay(3000);

lcd.clear();

}

else if(vote4 > vote1 && vote4 > vote2 && vote4 > vote3)

{

lcd.setCursor(0,0);

lcd.clear();

lcd.print(“D is Winner”);

delay(3000);

lcd.clear();

}

else if(vote4 > vote1 && vote4 > vote2 && vote4 > vote3)

{

lcd.setCursor(0,0);

lcd.clear();

lcd.print(“D is Winner”);

delay(3000);

lcd.clear();

}

else

{

lcd.clear();

lcd.print(” Tie Up Or “);

lcd.setCursor(0,1);

lcd.print(” No Result “);

delay(3000);

lcd.clear();

}

}

else

{

lcd.clear();

lcd.print(“No Voting….”);

delay(3000);

lcd.clear();

}

vote1=0;vote2=0;vote3=0;vote4=0,vote=0;

lcd.clear();

}

}

0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*

or

Log in with your credentials

or    

Forgot your details?

or

Create Account