Voting machine. How to make DIY?

Programming, Tutorial, Coding, New Design, and/or any project for your Arduino and Raspberry Pi can post your topic /suggestion here.
User avatar
DK Pramis
Posts: 4
Joined: Tue Oct 24, 2017 5:35 pm

Voting machine. How to make DIY?

Sat Oct 28, 2017 8:37 pm

prototype.jpg
To the use of AVR microcontroller.

Polling by electronic voting machines (EVMs) has become a norm during elections. Unlike paper ballot systems, EVMs are safe and reliable as these rule out the possibility of invalid voting. These are more economical and efficient too. Their compact size saves transportation costs.

Here we describe the design of an electronic voting machine based on ATmega16A microcontroller. To cast a vote, users need to press the key against the name of the candidate of their choice. The vote is automatically saved in the microcontroller, and simultaneously the LCD shows the message “Thank You.”
Circuit diagram of the electronic voting machine using ATmega16A microcontroller.jpg
Circuit diagram of the electronic voting machine using ATmega16A microcontroller
Circuit diagram of the electronic voting machine using ATmega16A microcontroller.jpg (103.01 KiB) Viewed 643 times
Download PCB and component layout PDFs:
Votingmachineavr.zip
(274.38 KiB) Downloaded 30 times
Connect LCD1 to the PCB as shown in the figure. Now, mount all the switches (S1 through S5) and LED1 through LED5 on the front panel of this cabinet.

Software
The software is written in ‘C’ language and compiled using Keil software. You can use any suitable software for programming the ATmega16A microcontroller. ProgISP programmer was used for programming at EFY Lab.

Source code:
Voting Machine Using AVR.rar
(75.22 KiB) Downloaded 32 times
Assembly and testing
After assembling the circuit on the PCB, check it for proper connections. Now, burn the program (voting code.hex) into the microcontroller using the programmer. Insert the microcontroller into the IC base and connect 9V battery. LCD1 will show “press any key” message.

This circuit has provision to cast votes for three candidates as it uses switches corresponding to three candidates only (S1 for AAP, S2 for KKK and S3 for BJP). Switch S4 is pressed to calculate the results.

When you press any of switches S1 through S3, the corresponding pin of the microcontroller gets pulled up to Vcc and it operates as per the programmed logic. The LCD1 will show a “Thank you” message. The respective LED (LED1-LED3) must glow to indicate that voting is successful.

Press switch S4 to get results like the winner and its share of the votes. In case two or more parties get equal votes, press switch S4 again to get further details.

The Parts List
parts-list.jpg
parts-list.jpg (37.64 KiB) Viewed 643 times


Return to “ARDUINO AND RASPBERRY PI”

Links

In total there are 6 users online :: 1 registered, 0 hidden and 5 guests
Registered users: Google [Bot]
Most users ever online was 156 on Sun Jun 17, 2018 7:42 am
Total posts 448
Total topics 327
Total members 62
Our newest member anonymous-kali
No birthdays today