.

Tuesday, March 12, 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 ground VOTING form utilise 8051 AND huckster MACHINE A forecast give out Submitted by NIKITA MUDRAS TRUPTI LIMBAD SABERA YASMIN UNDER THE focusing 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 op expr essionholeunity to present the project report on lcd based vote apparatus and vending machine and put before users some useful information about our project. We obligate made heart-whole attempts and taken every c atomic number 18 to present this national in precise and compact form. We argon 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 macrocosm difficult but was made quite simple,intresting and successful delinquent to loggerheaded involvement and complete dedication of our group members.ACKNOWLEDGEMENT It is indeed of great enjoyment 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 spirit and its execution is inevitable in the hands of consort. we in high spiritsly indebt the project guide Mr. Prasad Dhuri for this invaluable guida nce 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- transaction. 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 area LCD BASED VOTING MACHINE USING 8051 MICROCONTROLLER 1. Introduction 08 2. lap 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 & uses 45 REFRENCES 47LCD BASED VOTING MACHINE USING 8051 MICROCONTROLLER pic INTRODUCT ION This LCD based electronic voting machine is knowing for four crowd outdidates. The input part make ups of a set of 6 haptic switches. The switches and 162 LCD are interfaced to microcontroller AT89C51 for various operations and displays. The grooming of casting votes for the candidates has been endured 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 lead off 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 sift. For more details on working with LCD, refer LCD interfacing with 8051. The selective information pins of the LCD (pins 7-14) are connected to the production port P2 of the microcontroller. The control pins (RS, R/W and EN) are connected to port P3 pin s P30, P31 & P36 respectively. CIRCUIT DIAGRAM pic LIST OFCOMPONENTS COMPONENT quantity 1) General PCB 1 2) 162LCD 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 difference regulator 1 10) 10k Resistor 1 COMPONENTS KA 7805 (Voltage Regulator) Features ? Output Current up to 1A ? Output Voltage of 5 thermic Overload Protection ? Short Circuit Protection ? Output electronic transistor Safe Operating Area Protection Description 7805 is a emf regulator integrated travel. It is a member of 78xx series of fixed linear 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 constant value. The xx in 78xx indicates the fixed output voltage it is designed to provide. 7805 provides +5V adjust power supply. Capacitor s of suitable values can be connected at input and output pins depending upon the respective voltage levels. Pin Connections (Front View) Pin No Function denote 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 smash programmable and erasable demand 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 apply as both input and output ports. Except P0 which involve 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 individually. 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 peculiar(a) 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 & 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 be flags 3) it lie in of 16 bit address bus 4) it also consist of 3 internal and two external interrupts 5) less power role in 8051 with respect to other micro-controller 6) it consist of 16-bit program counter and information pointer 7) 8051 can process 1 million one-cycle commands per heartbeat 8) it also consist of 32 general purpose testifys each of 8 bits 9) ROM on 8051 is 4 Kbytes in size 10) it also consist of Two 16 bit Timer/ Coun terLCD LCD (Liquid Crystal Display) screen is an electronic display module and find a wide disgorge of applications. A 162 LCD display is very underlying module and is very commonly used in various devices and circuits. These modules are preferred over s til now segments and other multi segment LEDs. The reasons being LCDs are economical easily programmable have no limitation of displaying special & even custom cases (unlike in seven segments), animations and so on. A 162 LCD means it can display 16 characters per line and in that location are 2 such lines. In this LCD each character is displayed in 57 pixel matrix. This LCD has two registers, namely, instruction 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, elucidation 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 recital 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 msec 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 // lead up voting pin sbit stop_pin = P15 // Stop voting pin sbit candidate_1=P11 //Candidate1 sbit candidate_2=P12 //Candidate2 sbit candidate_3=P13 //Candidate3 sbit candidate_4=P14 //Can didate4 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