• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Arduino Based Electronic Voting Machine Circuit

Arduino Based Electronic Voting Machine Circuit

Last updated on 24 June 2026 by Admin-Lavi Leave a Comment

This project makes simple Arduino Based Electronic Voting Machine Circuit and it takes votes from push buttons; also, it shows result on LCD display.

This circuit is suitable for school and college mini projects and it is easy to build and has a low cost.

Arduino Code:

#include <LiquidCrystal.h>
LiquidCrystal lcd(13,12,11,10,9,8);

int partyA=0, partyB=0, partyC=0, partyD=0;

void setup(){
  lcd.begin(16,2);
  lcd.print("Voting Machine");
  delay(2000);
  lcd.clear();
}

void loop(){
  if(analogRead(A0) > 500){ partyA++; delay(500); }
  if(analogRead(A1) > 500){ partyB++; delay(500); }
  if(analogRead(A2) > 500){ partyC++; delay(500); }
  if(analogRead(A3) > 500){ partyD++; delay(500); }

  if(analogRead(A5) > 500){
    lcd.clear();
    lcd.print("PARTY A:"); lcd.print(partyA);
    lcd.setCursor(0,1); lcd.print("PARTY B:"); lcd.print(partyB);
    delay(2000);
    
    lcd.clear();
    lcd.print("PARTY C:"); lcd.print(partyC);
    lcd.setCursor(0,1); lcd.print("PARTY D:"); lcd.print(partyD);
    delay(3000);
    
    lcd.clear();
  }
}

Coding Explanation:

  • We used LiquidCrystal library for LCD.
  • We make LCD object with pins.
  • We make 4 variables for vote.
  • Arduino reads A0 to A3 in loop.
  • If button pressed then vote increase.
  • If the result button is ON, press A5 to display all votes on the LCD.
  • Then LCD clear after showing the result.
  • Delay used to stop double count.

Circuit Working:

Arduino Based Electronic Voting Machine Circuit Diagram

Parts List:

ComponentsQuantity
Potentiometer 10k1
Arduino Uno1
16×2 LCD Display1
Tactile switch5

Circuit is simple with Arduino, push buttons and LCD and then Arduino reads buttons, adds votes and shows result on LCD.

After that, five buttons used for party A, B, C, D and one for result, then press any party button to give vote.

Each press adds one vote and then press result button to see total votes and LCD shows result few seconds then clears.

Then voting starts again.

How to Build:

To build a Arduino Based Electronic Voting Machine Circuit follow the below steps:

  • First, gather all the parts as shown in circuit diagram.
  • Next, party A button connects to A0 and GND, Party B button connects to A1 and GND, Party C button connects to A2 and GND and Party D button goes to A3 and GND.
  • Then result button goes to A5 and GND.
  • LCD RS pin connects to D13 of Arduino.
  • LCD E pin connects to to D12 of Arduino.
  • LCD D4 pin connects to D11 of Arduino.
  • LCD D5 pin connects to D10 of Arduino.
  • LCD D6 pin goes to D9 of Arduino.
  • LCD D7 pin goes to D8 of Arduino.
  • LCD GND pin goes to GND of Arduino.
  • LCD VCC pin connects to 5V of Arduino.
  • LCD RW pin connects to GND of Arduino.
  • LCD Contrast pin connect to potentiometer middle pin.
  • Finally, potentiometer one end go to 5V and other end to GND.

Conclusion:

To conclude, this project for Arduino Based Electronic Voting Machine Circuit makes simple voting machine; it uses Arduino, LCD and few buttons.

Also, it is cheap and easy for beginners and if required then more parties and security can add later.

Filed Under: Arduino Projects, Automation Circuits, Indicator Circuits

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « PIR Motion Detector Circuit using Arduino
Next Post: Hall Effect Sensor Circuit with IC LM393 »

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar




Categories

  • 555 Timer Projects (129)
  • Alarm Circuits (80)
  • Amplifier Circuits (92)
  • Arduino Projects (103)
  • Audio Circuits (189)
  • Automation Circuits (139)
  • Automobile Circuits (39)
  • Battery Charger Circuits (85)
  • DIY Projects (381)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (23)
  • Hobby Circuits (220)
  • Indicator Circuits (63)
  • Inverter Circuits (17)
  • IoT projects (11)
  • LDR Circuits (46)
  • LED and Lamps (199)
  • Meters and Testers (43)
  • Mini Projects (349)
  • Motor Controllers (25)
  • Oscillator Circuits (64)
  • Power Supply Circuits (234)
  • Radio Frequency (8)
  • Remote Control Circuits (12)
  • Renewable energy (19)
  • Security and Protection (120)
  • Sensors and Detectors (233)
  • Solar Circuits (31)
  • Timer Circuits (62)
  • Transistor Circuits (175)
  • Transmitter Circuit (19)
  • Tutorials (29)
  • Voltage Regulator (40)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Admin-Lavi on High Voltage Fence Charger Circuit
  2. egidio grzinic on High Voltage Fence Charger Circuit
  3. Logic OR Gate Circuit using Transistors - Circuit Ideas for You on Automatic Street Light Circuit using LDR
  4. Tony Gallegos on NTC Thermistor Based Temperature to Voltage Converter Circuit
  5. colin on Simple Single Transistor Audio Amplifier Circuit

Copyright © 2026 | New Circuit Ideas