Question

In: Electrical Engineering

Design a Digital Voting Machine using microcontroller based device which can be performed in election electronic...

Design a Digital Voting Machine using microcontroller based device which can be performed in election electronic voting system. (You can allow five candidates and 50 users. The overall result of the election should be displayed after all.)

Create an algorithm to design a solution

Write a programme to implement the given specification selecting an appropriate microcontroller. (Use Assembly or C languages)

Please attach schematic diagrams (Circuit diagram).

Solutions

Expert Solution

Design of Digital voting machine using microcontroller (8051) AT89C51 kit.

A voting machine is device which counts the number of votes for a particluar party. By considering election electronic voting machine we design voting machine by using assembly language instructions in 8051 micro controller kit.

Algorithm is a step by step process of the design of the machine that is shown clearly in below flow chart.

Program in assembly language:

#include<reg51.h>
#definemsec 50
#define lcd_data P2
sbit rs = P3.0;
sbit en = P3.1;
sbit rw = P3.6;
sbit ini_pin= P1.0;
sbit fin_pin = P1.5 // all values are taken as per circuit diagram//
sbit candidate_1 = P1.1;
sbit candidate_2 = P1.2;
sbit candidate_3 = P1.3;
sbit candidate_4 = P1.4;
sbit candidate_5 = P1.5; // given 5 candidates to be selected in question

ASSUME CS:CODE

MOV AX,[P1.1] // the number of votes of candidate 1 is stored in AX register
INC AX
JZ SKIP
ADD [AX],[AX+1] //previous vote stored in AX register and present vote will be added and result will be stored in AX register
MOV BX,[P1.2]// the number of votes of candidate 2 is stored in BX register
INC BX
JZ SKIP
ADD [BX],[BX+1] // previous vote stored in BX register and present vote will be added and result will be stored in BX register

MOV CX,[P1.3]// the number of votes of candidate 3 is stored in CX register
INC CX
JZ SKIP
ADD {CX],[CX+1] //previous vote stored in CXregister and present vote will be added and result will be stored in CX register
MOV DX,[P1.4]// the number of votes of candidate 4 is stored in DX register
INC DX
JZ SKIP
ADD [DX],[DX+1] // previous vote stored in DX register and present vote will be added and result will be stored in DX register
MOV SI,[P1.5]// the number of votes of candidate 5 is stored in SI register
INC SI
JZ SKIP
ADD [SI+1],[SI] // previous vote stored in SI register and present vote will be added and result will be stored in SI register
SKIP: INT 03H
CODE ENDS


Related Solutions

) Design a simple embedded system with PIC16F84A microcontroller (using 20MHz resonator). The system can drive...
) Design a simple embedded system with PIC16F84A microcontroller (using 20MHz resonator). The system can drive a LED light on for 52.6ms on and 26ms off repeatedly. A watchdog timer should be enabled and have a time out period of 72 ms. Sketch the circuit and write the complete assembly program.
Write a code of digital alarm clock 8051 microcontroller using pin AT89S52
Write a code of digital alarm clock 8051 microcontroller using pin AT89S52
Boyer Digital Components Company assembles circuit boards by using a manually operated machine to insert electronic...
Boyer Digital Components Company assembles circuit boards by using a manually operated machine to insert electronic components. The original cost of the machine is $82,900, the accumulated depreciation is $33,200, its remaining useful life is five years, and its residual value is negligible. On May 4 of the current year, a proposal was made to replace the present manufacturing procedure with a fully automatic machine that has a purchase price of $172,400. The automatic machine has an estimated useful life...
what are the ingredients to design a security system using Microcontroller MSP 430? and what is...
what are the ingredients to design a security system using Microcontroller MSP 430? and what is the proper flowchart for this system?
Design an IIR digital filter based on the bilinear transformation method using the following transfer function...
Design an IIR digital filter based on the bilinear transformation method using the following transfer function as a reference (use three decimal places of precision for your response): H (s) = 5 / (s ^ 2 + 1.1s +5) The digital filter must have a resonant frequency at wr = pi / 3 a) Calculate H (z) b) Find the correctly simplified difference equation of the designed system. c) Implement the discrete system obtained using block diagram.. Show every step
Design and program an Arduino-based circuit that contains the following items - 1 Arduino Uno microcontroller....
Design and program an Arduino-based circuit that contains the following items - 1 Arduino Uno microcontroller. - 1 IR remote control, - 1 IR sensor - 1 LCD 16x2 Display - Any other components you find necessary. The circuit will do the following: - The circuit represents a 2-digit calculator. - At start of operation, the LCD display should display “0” in line 2 of the LCD display. - Pressing the On/Off button on the IR remote represents the “Clear”...
It is believed that an electronic device has an average lifetime which is less than or...
It is believed that an electronic device has an average lifetime which is less than or equal to 4 years. A sample of 14 such devices was run until failure, and the average lifetime was found to be 3.56 years with a variance of 1.12. The p-value for the hypothesis test is approximate:
design a stepper motor in 8051 microcontroller in which stepper motor moves clockwise for some time...
design a stepper motor in 8051 microcontroller in which stepper motor moves clockwise for some time and stops , then anticlockwise for some times and motor stops. (Code in assembly language needed)
Design a line following robot by using AT89C51 microcontroller, DC motors and line sensors. Use Photo...
Design a line following robot by using AT89C51 microcontroller, DC motors and line sensors. Use Photo transistors and LEDS to design a line sensor. Use DC motos and attach DC motors to Microcontroller by using H-Bridge IC or circuit. Use assembly language for programming. Draw the model and simulate it. Show all the schematics and connections. After Designing Line Follower, convert it into maze solver by using your own algorithm. The robot should start and reach the end point in...
The following partial ANOVA table was based on an experiment performed as a two-factor design with...
The following partial ANOVA table was based on an experiment performed as a two-factor design with 2 levels of factor A, 3 levels of factor B, and 5 observations on each treatment. It was determined that treatment groups were independently selected from a normal distribution with the same variance for each treatment. Source of variation df Sum of Squares Mean Square F Factor A 27 Factor B 2 32 Interaction Error 108 Total 29 227 a) Fill in the missing...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT