Electronic Voting Machine(EVM) with Arduino and LCD Display

Electronic Voting Machine(EVM) with Arduino and LCD Display Tutorial to make EVM at your home with the help of some electronic component. if you are searching for how to make EVM with Arduino then this article is good for you. In this article, you will learn a lot of things such as how to interface button with Arduino and how to interface 16×2 LCD Display with Arduino. So keep reading this article. you can easily make this best electronic projects of EVM. we have the best Electronic Projects on Arduino, Embedded, IOT and also some School projects you can check here Dc motor making project. 
                Electronic Voting Machine using in many countries nowadays this is the embedded product which counts the vote. Some Buttons connected to the Controller in each press of button controller save each button data. and each button sync to the different vote party.

Electronic Voting Machine(EVM) with Arduino and LCD Display

EVM  Component Required :-

  1. Arduino
  2. 4 Button
  3. 16×2 LCD Display
  4. Jumper Wires
  5. Variable Resistor 1k
  6. Breadbaord
  7. USB ASP Cable
  8. Arduino IDE Software
1.Arduino Uno 
 
Arduino Uno
Arduino Uno is an Open Source Microcontroller. having 14 GPIO pins and 6 PWM pins, for more information about the Arduino Uno click here
 
2. 16×2 LCD Display
S no:-                     Pin No:-                 Pin Type:-
   1                             Pin1                   Ground Pin
   2                             Pin2                   VCC
   3                             Pin3                   VO
   4                             Pin4                   Resistor Select
   5                             Pin5                   Read /Write
   6                             Pin6                   Enable
   7                             Pin7-14               Data Pins
   8                             Pin15                  LED Pins
   8                             Pin16                LED Pins

How to Connect 16×2 LCD Display/EVM connection with lcd

How to Connect 16x2 LCD Display/EVM connection with lcd

 

  • Connect Arduino pin VCC to lcd pin 2 and pin 15
  • Connect Arduino pin GND to LCD pin 1  and pin 16
  • Connect Arduino GND with 1k resistor to the Pin 3 of Lcd.
  • Connect Arduino pin 12 to lcd pin 4
  • Connect Arduino GND to lcd pin 5
  • Connect Arduino pin 11 to lcd pin 5
  • Connect Arduino pin 5 to lcd pin D4 (data pins)
  • Connect Arduino pin 4 to lcd pin D5 (data pins)
  • Connect Arduino pin 3 to lcd pin D6 (data pins)
  • Connect Arduino pin 2 to lcd pin D7 (data pins)
How to Connect Button with Arduino in EVM 

 

  • Connect 1st button with Arduino pin 6

 

  • Connect 1st button with Arduino pin 7
  • Connect 1st button with Arduino pin 8
  • Connect 1st button with Arduino pin 9
  • Connect 1st button with Arduino pin 10

Connect 1st button with Arduino pin 13


Electronic Voting Machine Arduino Code /Code for Electronic Voting Machine/ EVM C code

#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);
int M,M1,M2,M3;
 
void setup()
{
  lcd.begin(16,2);
  for(int i=6;i<=10;i++)
  {
  pinMode(i,INPUT_PULLUP);
}
pinMode(13,INPUT_PULLUP);
 
}
void loop()
{  
  int S=digitalRead(6);
  int S1=digitalRead(7);
  int S2=digitalRead(8);
  int S3=digitalRead(9);
  int S4=digitalRead(10);
  int S5=digitalRead(13);
  
 
  if(S==LOW)
  {
  M=M+1;
  delay(200);
  }
  
else if(S1==LOW)
  {
  M1=M1+1;
  delay(200);
}
else if(S2==LOW)
  {
  M2=M2+1;
  delay(200);
  }
else if(S3==LOW)
  {
  M3=M3+1;
  delay(200);
  }
 
else if(S4==LOW)
  { lcd.clear();
    lcd.setCursor(0,0);
lcd.print(“BJP”);
  lcd.setCursor(0,12);
lcd.print(M);
delay(150);
lcd.setCursor(4,0);
lcd.print(“CON”);
lcd.setCursor(4,12);
lcd.print(M1);
delay(150);
lcd.setCursor(8,0);
lcd.print(“BSP”);
lcd.setCursor(8,12);
lcd.print(M2);
delay(150);
lcd.setCursor(12,0);
lcd.print(“AAP”);
lcd.setCursor(12,12);
lcd.print(M3);
delay(150);
}
else if(S5==LOW)
  lcd.clear();
  
  if(M>M1 && M>M2 && M>M3 && M1!=M2 && M2!=M3 && M1!=M3)
  
    
      {
        lcd.setCursor(0,0);
        lcd.print(“BJP WINS”);
        delay(100);
      }
 
    
 else if(M1>M && M1>M2 && M1>M3 && M!=M2 && M!=M3 && M2!=M3)
  
      {
        lcd.setCursor(0,0);
        lcd.print(“CONGRESS WINS”);
        delay(100);
      }
    
  
else if(M2>M1 && M2>M && M2>M3 && M1!=M && M1!=M3 && M!=M3)
  
      {
        lcd.setCursor(0,0);
        lcd.print(“BSP WINS”);
        delay(100);
      }
    
else if(M3>M1 && M3>M2 && M3>M && M1!=M2 && M1!=M && M!=M2)
  
      {
        lcd.setCursor(0,0);
        lcd.print(“AAP WINS”);
        delay(100);
   
  }
 
else if(M==M1 && M1==M2 && M2==M3)
  
      {
        lcd.setCursor(0,0);
        lcd.print(“TIE BW ALL”);
        delay(100);
   
  }
else if(M==M1 && M1==M2 && M3>M && M3>M1 && M3>M2)
  
      {
        lcd.setCursor(0,0);
        lcd.print(“AP-W,BJ,BS,CON-T”);
        delay(100);
   
  }
 
  else if(M==M1 && M1==M3 && M2>M && M2>M1 && M2>M3)
  
      {
        lcd.setCursor(0,0);
        lcd.print(“BS-W,BJ,AP,CON-T”);
        delay(100);
   
  }
 
else if(M==M2 && M2==M3 && M1>M && M1>M3 && M1>M2)
  
      {
        lcd.setCursor(0,0);
        lcd.print(“CON-W,BJ,BS,AAP-T”);
        delay(100);
   
  }
 
 
  else if(M3==M1 && M1==M2 && M>M3 && M>M1 && M>M2)
  
      {
        lcd.setCursor(0,0);
        lcd.print(“BJ-W,AAP,BS,CON-T”);
        delay(100);
   
  }
 
else if(M==M1 && M2==M3 )
  
      {
        lcd.setCursor(0,0);
        lcd.print(“BJ,CON-T,BS,AP-T”);
        delay(100);
   
  }
 
else if(M==M2 && M1==M3 )
  
      {
        lcd.setCursor(0,0);
        lcd.print(“BJ,BS-T,CON,AP-T”);
        delay(100);
   
  }
 
else if(M==M3 && M1==M2 )
  
      {
        lcd.setCursor(0,0);
        lcd.print(“BJ,AP-T,CO,BS-T”);
        delay(100);
   
  }
 
  else if(M1==M2 && M2==M3 )
  
      {
        lcd.setCursor(0,0);
        lcd.print(“AP,CO,BS-T”);
        delay(100);
   
  }
 
else if(M==M1 && M1!=M3 )
  
      {
        
        lcd.setCursor(0,0);
        lcd.print(“AAP & BJP TIE”);
        delay(100);
     }
}  
}
 
Upload Code In Arduino with the help of USB ASP Cable by Arduino IDE Software. connect all the component as per the instruction and now give the power supply to the Arduino. Now you can See Electronic Voting Machine(EVM) with Arduino and LCD Display 

2 thoughts on “Electronic Voting Machine(EVM) with Arduino and LCD Display

  • June 5, 2019 at 8:32 pm
    Permalink

    Valuable information. Lucky me I found your web site by accident, and I am shocked why this accident did not happened earlier! I bookmarked it.

    Reply

Leave a Reply

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