.

Monday, January 28, 2019

Voting Machine

(Department of electronics engineering) RIZVI COLLEGE OF ENGINEERING BANDRA (WEST), MUMBAI-400050 UNIVERSITY OF MUMBAI ACADEMIC YEAR 2012-13 FOR THE FULFILLMENT OF THE PROJECT (TE) electronic WORKSHOP (EWS) LCD establish VOTING apparatus utilize 8051 AND peddling MACHINE A devise cover up Submitted by NIKITA MUDRAS TRUPTI LIMBAD SABERA YASMIN UNDER THE commission OF PROF. PRASAD DHURI PROF. SOHAIL SIDDIQUI RIZVI COLLEGE OF ENGINEERING, RIZVI COMPLEX, OFF CARTER ROAD BANDRA (W), MUMBAI 400050 YEAR 2012-13 UNIVERSITY OF MUMBAI (DEPARTMENT OF ELECTRONICS) CERTIFICATEThis is to certify that the following students NIKITA MUDRAS TRUPTI LIMBAD SABERA YASMIN Have successfully completed the synopsis work of project on LCD BASED VOTING MACHINE USING 8051 AND VENDING MACHINE ___________________ _________________ PROF. PRASAD S. DHURI EXTERNAL tester (PROJECT GUIDE) ___________________ _________________ PROF . SOHAIL SIDDIQUI PROF . NARGIS SHAIKH (PROJECT GUIDE) (HOD) PREFACEWe take an o p fashionunity to present the project re bearing on lcd based right to vote mold and vending machine and put before users some useful information about our project. We adjudge made backdid attempts and taken every c atomic number 18 to present this reckon in precise and compact form. We ar sure that the information contained in this volume would certainly prove useful for better insight in the scope and dimension of the subject. The task of completing the project though beingness difficult but was made quite simple,intresting and successful ascribable to late involvement and complete dedication of our group members.ACKNOWLEDGEMENT It is indeed of great pastime and proud privilege to be able to present the project on Lcd Based Voting Machine Using 8051 The completion of project work is a milestone in students aliveness and its execution is inevitable in the hands of sentry. we lastly indebt the project guide Mr. Prasad Dhuri for this invaluable guidance and appreciation for giving form and substance to this project. it is due to his enduring efforts, patience and enthusiasm, which has given a sense of direction and purposefulness to this project and ultimately made it a success.We would like to tender our sincere thanks to the staff members for their co- mathematical operation. We would also like to express our deep regards and gratitude to the nous Dr. Varsha Shah, our HOD Prof. Nargis Shaikh. We would also like to thank the non teaching staff and our friends who have helped us all the time in the way or the other. LIST OF subject LCD BASED VOTING MACHINE USING 8051 MICROCONTROLLER 1. Introduction 08 2. locomote diagram 09 . Components 11 4. Program for IC 15 5. Working 30 6. PCB layout 31 7. Advantages 32 8. Future Scope 33 VENDING MACHINE 1.Introduction 36 2. Flowchart 37 3. Working 38 4. VHDL code 40 5. Output Waveforms 44 6. Applications &038 uses 45 REFRENCES 47LCD BASED VOTING MACHINE USING 8051 MICROCONTROLLER pic INTRODUCTION Th is LCD based electronic voting machine is designed for four candidates. The input part incorporates of a set of cardinal tactual switches. The switches and 16&2152 LCD are interfaced to microcontroller AT89C51 for various operations and displays. The formulation of casting votes for the candidates has been tenderd through four of these switches. These switches are made active high and connected to pins 2-5 (P11 P14) of the controller. The remaining two switches (both active low) are to exit and stop the voting procedure.They are connected to pins 1 and 6 (P10 and P15) respectively. The Init (start) switch initializes the voting system when pressed, while the Stop switch ends the voting and displays the poll results on LCD try. For more details on running(a) with LCD, refer LCD interfacing with 8051. The entropy pins of the LCD (pins 7-14) are connected to the turnout port P2 of the microcontroller. The control pins (RS, R/W and EN) are connected to port P3 pins P30, P31 & 038 P36 respectively. CIRCUIT DIAGRAM pic LIST OFCOMPONENTS COMPONENT measuring 1) General PCB 1 2) 16&2152LCD Display 1 3) Micro controller base 1 4) 10uf/10v capacitor 1 5) 8T89C51 micro controller 1 6) 12MHz Crystal oscillator 1 7) 10k Preset 1 8) 2 pin Switches 6 9)7805 potential regulator 1 10) 10k Resistor 1 COMPONENTS KA 7805 (Voltage Regulator) Features ? Output Current up to 1A ? Output Voltage of 5 caloric Overload Protection ? Short Circuit Protection ? Output electronic transistor Safe Operating Area Protection Description 7805 is a voltage regulator integrated term of enlistment. It is a member of 78xx series of fixed additive voltage regulator ICs. The voltage source in a circuit may have fluctuations and would not give the fixed voltage output. The voltage regulator IC maintains the output voltage at a unceasing value. The xx in 78xx indicates the fixed output voltage it is designed to provide. 7805 provides +5V regulate power supply. Capa citors of suitable values can be connected at input and output pins depending upon the respective voltage levels. Pin Connections (Front View) Pin No Function detect 1 Input voltage (5V-18V) Input 2 Ground (0V) Ground 3 Regulated output 5V (4. 8V-5. 2V) Output AT89C51 AT89C51 is an 8-bit Microcontroller and belongs to Atmels 8051 family. ATMEL 89C51 has 4KB of pompousness computer programmemable and erasable depict only memory (PEROM) and 128 bytes of RAM. It can be erased and program to a maximum of 1000 times. In 40 pin AT89C51, on that point are four ports designated as P1, P2, P3 and P0. All these ports are 8-bit bi-directional ports, i. e. , hey can be use as both input and output ports. Except P0 which require external pull-ups, rest of the ports have internal pull-ups. When 1s are written to these port pins, they are pulled high by the internal pull-ups and can be used as inputs. These ports are also bit addressable and so their bits can also be accessed individual ly. Port P0 and P2 are also used to provide low byte and high byte addresses, respectively, when connected to an external memory. Port 3 has multiplexed pins for finicky functions like serial communication, hardware interrupts, timer inputs and read/write operation from external memory. AT89C51 has an inbuilt UART for serial communication.It can be programmed to operate at different baud rates. Including two timers &038 hardware interrupts, it has a total of six interrupts. Pin Diagram- pic FEATURES OF 8951 1) 8051 have 128 bytes of RAM 2) 8051 have 128 user delineate flags 3) it represent of 16 bit address bus 4) it also consist of 3 internal and two external interrupts 5) less power physical exercise in 8051 with respect to other micro-controller 6) it consist of 16-bit program counter and data pointer 7) 8051 can process 1 million one-cycle tuitions per sustain 8) it also consist of 32 general purpose historys each of 8 bits 9) ROM on 8051 is 4 Kbytes in size 10) it also c onsist of Two 16 bit Timer/ CounterLCD LCD (Liquid Crystal Display) screen is an electronic display module and find a wide start of applications. A 16&2152 LCD display is very grassroots module and is very commonly used in various devices and circuits. These modules are preferred over s yet segments and other multi segment LEDs. The reasons being LCDs are economical easily programmable have no limitation of displaying special &038 even custom geeks (unlike in seven segments), animations and so on. A 16&2152 LCD means it can display 16 characters per line and at that place are 2 such lines. In this LCD each character is displayed in 5&2157 pixel matrix. This LCD has two registers, namely, ascendance and data. The ommand register stores the command instructions given to the LCD. A command is an instruction given to LCD to do a predefined task like initializing it, unclutter its screen, setting the cursor position, controlling display etc. The data register stores the data to be displayed on the LCD. The data is the ASCII value of the character to be displayed on the LCD. Pin Diagram- pic Pin No Function Name 1 Ground (0V) Ground 2 Supply voltage 5V (4. 7V 5. V) Vcc 3 Contrast adjustment through a variable resistor VEE 4 Selects command register when low and data register when high express Select 5 Low to write to the register High to read from the register Read/write 6 Sends data to data pins when a high to low pulse is given Enable 7 8-bit data pins DB0 8 DB1 9 DB2 10 DB3 11 DB4 12 DB5 13 DB6 14 DB7 15 Backlight VCC (5V) Led+ 16 Backlight Ground (0V) Led- PROGRAM TO MAKE A VOTING MACHINE USING LCD include define millisecond 50 define lcd_data_str_pin P2 sbit rs = P30 //Register select (RS) pin sbit rw = P31 //Read write(RW) pin sbit en = P36 //Enable(EN) pin sbit ini_pin = P10 // step forward voting pin sbit stop_pin = P15 // Stop voting pin sbit candidate_1=P11 //Candidate1 sbit candidate_2=P12 //Candidate2 sbit candidat e_3=P13 //Candidate3 sbit candidate_4=P14 //Candidate4 int max = 0 int carry = 0 int arr4 int vote_amt3,j unsigned int vote_1,vote_2,vote_3,vote_4 void delay(int delay_time) // Time delay function int j,k for(j=0j

No comments:

Post a Comment