Tuesday, September 17, 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 BASED VOTING MACHINE USING 8051 AND VENDING MACHINE A project report Submitted by NIKITA MUDRAS TRUPTI LIMBAD SABERA YASMIN UNDER THE GUIDANCE 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 EXAMINER (PROJECT GUIDE) ___________________ _________________ PROF . SOHAIL SIDDIQUI PROF . NARGIS SHAIKH (PROJECT GUIDE) (HOD) PREFACEWe take an opportun ity to present the project report on ââ¬Å"lcd based voting machine and vending machineâ⬠and put before users some useful information about our project. We have made sincere attempts and taken every care to present this matter in precise and compact form. We are 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 being difficult but was made quite simple,intresting and successful due to deep involvement and complete dedication of our group members.ACKNOWLEDGEMENT It is indeed of great pleasure 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 studentââ¬â¢s life and its execution is inevitable in the hands of guide. we highly indebt the project guide Mr. Prasad Dhuri for this invaluable guidance and appreciation for giving form and substanc e 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-operation. We would also like to express our deep regards and gratitude to the principal 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 CONTENT LCD BASED VOTING MACHINE USING 8051 MICROCONTROLLER 1. Introduction 08 2. Circuit 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] INTRODUCTION This LCD based electronic voting machine is de signed for four candidates. The input part consists of a set of six tactile switches. The switches and 16Ãâ"2 LCD are interfaced to microcontroller AT89C51 for various operations and displays. The provision of casting votes for the candidates has been provided through four of these switches. These switches are made active high and connected to pins 2-5 (P1^1 ââ¬â P1^4) of the controller. The remaining two switches (both active low) are to start and stop the voting procedure.They are connected to pins 1 and 6 (P1^0 and P1^5) 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 screen. For more details on working with LCD, refer LCD interfacing with 8051. The data pins of the LCD (pins 7-14) are connected to the output port P2 of the microcontroller. The control pins (RS, R/W and EN) are connected to port P3 pins P3^0, P3^1 & P3^6 respectively. CIRCUIT DIAGRAM [pic] LIST OFà COMPONENTS COMPONENT |QUANTITY | |1) General PCB |1 | |2) 16Ãâ"2à LCD 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 voltage regulator |1 | |10) 10k Resistor |1 | COMPONENTS KA 7805 (Voltage Regulator) Features: ? Output Current up to 1A ? Output Voltage of 5 Thermal Overload Protection ? Short Circuit Protection ? Output Transistor Safe Operating Area Protection Description: 7805 is a voltage regulator integrated circuit. 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 regulated power supply. Capacitors of suitable values can be connected at input and output pins depending upon the respective voltage levels. Pin Connections (Front View): Pin No |Function |Name | |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 Atmel's 8051 family. ATMEL 89C51 has 4KB of Flash programmable and erasable read only memory (PEROM) and 128 bytes of RAM. It can be erased and program to a maximum of 1000 times. In 40 pin AT89C51, there are four ports designated as P1, P2, P3 and P0. All these ports are 8-bit bi-directional ports, i. e. , hey can be used as both input and output ports. Except P0 which needs 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 hi gh byte addresses, respectively, when connected to an external memory. Port 3 has multiplexed pins for special 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 defined flags 3) it consist of 16 bit address bus 4) it also consist of 3 internal and two external interrupts 5) less power usage 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 instructions per secondà 8) it also consist of 32 general purpose registers each of 8 bits 9) ROM on 8051 is 4 Kbytes in size 10) it also consist of Two 16 bit Timer/ CounterLCD: LCD (Liquid Crystal Display) scree n is an electronic display module and find a wide range of applications. A 16Ãâ"2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are preferred over seven segments and other multi segment LEDs. The reasons being: LCDs are economical; easily programmable; have no limitation of displaying special & even custom characters (unlike in seven segments), animations and so on. A 16Ãâ"2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD each character is displayed in 5Ãâ"7 pixel matrix. This LCD has two registers, namely, command 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, clearing 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 th e 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 |Register 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 = P3^0; //Register select (RS) pin sbit rw = P3^1; //Read write(RW) pin sbit en = P3^6; //Enable(EN) pin sbit ini_pin = P1^0; // Start voting pin sbit stop_pin = P1^5; // Stop voting pin sbit candidate_1=P1^1; //Candidate1 sbit candidate_2=P1^2; //Candidate2 sb it candidate_3=P1^3; //Candidate3 sbit candidate_4=P1^4; //Candidate4 int max = 0; int carry = 0; int arr[4]; int vote_amt[3],j; unsigned int vote_1,vote_2,vote_3,vote_4; void delay(int delay_time) // Time delay function { int j,k; for(j=0;j
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.