Wednesday, October 9, 2019

Parity Generator

PARITY GENERATOR Vinti Thakkar Swetha Jain Riddhi Vira TE : B-3 TE : B-3 TE : B-3 Roll no : 0812103 Roll no : 0812106 Roll no : 0812114 Email : vinti. thakkar Email : shweta. mjain Email : riddhi1312 @gmail. com [email  protected] com @gmail. com AbstractSecurity is a prime concern in our day-today life. Everyone wants to be as much secure as possible. An access control for doors forms a vital link in a security chain. The microcontroller based digital lock for Doors is an access control system that allows only authorized persons to access a restricted area. The system is fully controlled by the 8 bit microcontroller AT89C2051 which has a 2Kbytes of ROM for the program memory. The password is stored in the EPROM so that we can change it at any time. The system has a Keypad by which the password can be entered through it. When the entered password equals with the password stored in the memory then the relay gets on and so that the door is opened. If we entered a wrong password for more than three times then the Alarm is switched on. 1. Introductionâ€Å"Password Based Door Security System using Microcontroller† is used in the places where we need more security. It can also used to secure lockers and other protective doors. The system comprises a number keypad and the keypads are connected to the 8 bit microcontroller AT89C2051. This is one of the popular Microcontroller. It has only 20 pins and there are 15 input/output lines. The microcontroller has a program memory of 2 Kilobytes. The microcontroller continuously monitor the keypad and if somebody enters the password it will check the entered password with the password which was stored in the memory and if it they are same then the microcontroller will switch on the corresponding device. The system will allow the person who knows the password and it will not allow who don’t know the password and the system will also show the persons who try to break the protection barrier. 3. Circuit Diagram ExplanationThe Main Part of the above Circuit diagrams is the Microcontroller AT89C2051. The Keypad was the input device and it was connected in a matrix format so that the numbers of ports needed are reduced. The Microcontroller reads a four-digit password through the Keypad. Then the Microcontroller compares the four digit password with the number which is preprogrammed and if it is equal then the Microcontroller will switch on the motor for the door and if we enter the wrong password for more than three times then an alarm will be switched on until a right password was pressed through the Keypad. The Password was stored in the EEPROM and the password can be changed at any time using the same keypad. To change the password dial 1234 –Old password- New Password. The power supply section is the important one. It should deliver constant output regulated power supply for successful working of the project. A 0-12V/500 mA transformer is used for our purpose the primary of this transformer is connected in to main supply through on/off switch& fuse for protecting from overload and short circuit protection. The secondary is connected to the diodes convert from 12V AC to 12V DC voltage. Which is further regulated to +5v, by using IC 78054. Component Details1) Resistor :Resistor is a component that resists the flow of direct or alternating electric circuit. Resistors can limit or divide the current, reduce the voltage, protect an electric circuit, or provide large amounts of heat or light. An electric current is the movement of charged particles called electrons from one region to another. Resistors are usually placed in electric circuits. Physicists explain the flow of current through a material, such as a resistor, by comparing it to water flowing through a pipe. Resistors are designed to have a specific value of resistance. Resistors used in electric circuits are cylindrical. They are often color coded by three or four color bands that indicate the specific value of resistance. Resistors obey ohm’s law, which states that the current density is directly proportional to the electric field when the temperature is constant. ) Integrated Circuits :Timer IC (555) -The LM555 is a highly stable device for generating accurate time delays or oscillation. Additional terminals are provided for triggering or resetting if desired. In the time delay mode of operation, the time is precisely controlled by one external resistor and capacitor. For astable operation as an oscillator, the free running frequency and duty cycle are accurately controlled with two external resistors and one capacitor. The circuit may be triggered and reset on falling waveforms, and the output circuit can source or sink up to 200mA or drive TTL circuits. Regulator IC (LM 7805) -The LM7805 monolithic 3-terminal positive voltage regulators employ internal current-limiting, thermal shutdown and safe-area compensation, making them essentially indestructible. If adequate heat sinking is provided, they can deliver over 1. 0A output current. They are intended as fixed voltage regulators in a wide range of applications including local (on-card) regulation for elimination of noise and distribution problems associated with single-point regulation. In addition to use as fixed voltage regulators, these devices can be used with external components to obtain adjustable output voltages and currents. Considerable effort was expended to make the entire series of regulators easy to use and minimize the number of external components. It is not necessary to bypass the output, although this does improve transient response. Input bypassing is needed only if the regulator is located far from the filter capacitor of the power supply. EEPROM (AT24C02) -The AT24C02 provides 2048 bits of serial electrically erasable and programmable read-only memory (EEPROM) organized as 256words of 8 bits each. The device is optimized for use in many industrial and commercial applications where low-power and low-voltage operation are essential. The AT24C02 is available in space-saving 8-lead PDIP, 8-lead JEDEC SOIC, 8-lead MAP, 5-lead SOT23 (AT24C02) and 8-lead TSSOP packages and is accessed via a 2-wire serial interface. In addition, the entire family is available in 2. 7V (2. 7V to 5. 5V) and 1. 8V (1. 8V to 5. 5V) versions. heck till all keys releasedK2:ACALL DEALAY ;call 20 msec delayMOV A,KEYS;see if any key is pressedANL A,#11100000B ;mask unused bitsCJNE A,#11100000B,OVER;key pressed, await closureSJMP K2OVER:ACALL DEALAYMOV A,KEYSANL A,#11100000BCJNE A,#11100000B,OVER1SJMP K2OVER1:MOV A,KEYSORL A,#11111110BMOV KEYS,ACLR ROW1MOV A,KEYSANL A,#11100000BCJNE A,#11100000B,ROW_1MOV A,KEYSORL A,#11111110BMOV KEYS,ACLR ROW2MOV A,KE YSANL A,#11100000BCJNE A,#11100000B,ROW_2MOV A,KEYSORL A,#11111110BMOV KEYS,ACLR ROW3MOV A,KEYSANL A,#11100000BCJNE A,#11100000B,ROW_3MOV A,KEYSORL A,#11111110BMOV KEYS,ACLR ROW4MOV A,KEYSANL A,#11100000BCJNE A,#11100000B,ROW_4LJMP K2ROW_1:RLC AJC MAT1MOV KEY,#01HAJMP K1MAT1:RLC AK1:CJNE R3,#01H,G1INC R3MOV N1,KEYAJMP KEYBOARDG1:CJNE R3,#02H,G2INC R3MOV N2,KEYAJMP KEYBOARDG2:CJNE R3,#03H,G3INC R3MOV N3,KEYAJMP KEYBOARDG3:CJNE R3,#04H,G4MOV R3,#01HMOV N4,KEYG4:MOV A,N1SWAP AORL A,N2MOV N2,A;HIGHER DIGITSS IN N2MOV A,N3SWAP AORL A,N4MOV N4,A;LOWER DISITS IN N4MOV A,N2CJNE A,#12H, BV1MOV A,N4CJNE A,#79H,BV1CPL L1CLR ALRMMOV COUNT,#00HAJMP KEYBOARDBV1:MOV A,N2CJNE A,#12H, BV2MOV A,N4CJNE A,#71H,BV2CPL L2CLR ALRMMOV COUNT,#00HAJMP KEYBOARDBV2:INC COUNTMOV A,COUNTCJNE A,#03H,HH1SETB ALRMMOV COUNT,#00H HH1:AJMP KEYBOARD;((((((((((((((((((((((((((((((((8. AcknowledgmentsWe wish to express our profound thanks to the people around us who helped make this project a reality. Firstly, we would like to thank Ms. Vidya Daund for mentoring this project, right from the selection of the topic to its completion. Also, we would like to thank the laboratory assistants Bhakti Ma’am and Kiran Sir who have been constantly there for us whenever we were in need and helped us in whatever ways possible. We would also like to thank all those who have contributed towards the development of our project| 2. Flowchart2) Capacitor :Capacitor or electric condenser is a device for storing an electric charge. The simplest form of capacitor consists of two metal plates separated by a non touching layer called the dielectric. When one plate is charged with electricity from a direct current or electrostatic source, the other plate have induced in it a charge of the opposite sign; that is, positive if the original charge is negative and negative if the original charge is positive. The electrical size of the capacitor is its capacitance. Capacitors are limited in the amount of electric charge they can absorb; they can conduct direct current for only instances but function well as conductors in alternating current circuits. Fixed capacity and variable capacity capacitors are used in conjunction with coils as resonant circuits in radios and other electronic equipment. Capacitors are produced in a wide variety of forms. Air, Mica, Ceramics, Paper, Oil, and Vacuums are used as dielectrics depending on the purpose for which the device is intended. 3) Transistor :Transistor is a device which transforms current flow from low resistance path to high resistance path. It is capable of performing many functions of the vacuum tube in electronic circuits, the transistor is the solid state device consisting of a tiny piece of semi conducting material, usually germanium or silicon, to which three or more electrical connections are made. ) Diode :Diode is a electronic device that allows the passage of current in only one direction. The first such devices were vacuum-tube diodes, consisting of an evacuated glass or steel envelope containing two electrodes – a cathode and an anode. The diodes commonly used in ele ctronic circuits are semiconductor diodes. There are different diodes used in electronic circuits such as Junction diode, Zener diode, Photo diodes, and tunnel diode. Junction diodes consist of junction of two different kinds of semiconductor material. 5. Program (Code) :-include REG_51. PDF KEYSEQUP1ROW1EQUP1. 4ROW2EQUP1. 3ROW3EQUP1. 2ROW4EQUP1. 1COL1EQUP1. 5COL2EQUP1. 6COL3EQUP1. 7L1EQUP3. 1;3. 7L2EQUP3. 0ALRMEQUP3. DSEGORG 20HKEY:DS1N1:DS1N2:DS1N3:DS1N4:DS1COUNT:DS1CSEGORG 0000HSETB L1SETB L2CLR ALRMMOV R3,#01HMOV COUNT,#00HKEYBOARD:MOV KEY,#00HSETB COL1SETB COL2SETB COL3K11:CLR ROW1CLR ROW2CLR ROW3CLR ROW4MOV A,KEYSANL A,#11100000BCJNE A,#11100000B,K11;JC MAT2MOV KEY,#02HAJMP K1MAT2:RLC AJC K1MOV KEY,#03HAJMP K1ROW_2:RLC AJC MAT3MOV KEY,#04HAJMP K1MAT3:RLC AJC MAT4MOV KEY,#05HAJMP K1MAT4:RLC AJC K1MOV KEY,#06HAJMP K1ROW_3:RLC AJC MAT5MOV KEY,#07HAJMP K1MAT5:RLC AJC MAT6MOV KEY,#08HAJMP K1MAT6:RLC AJC K1MOV KEY,#09HAJMP K1ROW_4:RLC AJC MAT7MOV KEY,#0AHMOV COUNT,#00HMOV R3,#01HAJM P KEYBOARDMAT7:RLC AJC MAT8MOV KEY,#0BH;for 0AJMP K1MAT8:RLC AJC K1MOV KEY,#0CHDELAY:MOV R1,#50REPP2:NOPDJNZ R1,REPP2RET;((((((((((((((((((((((((((((((((END6. Conclusion7. ApplicationOur electronic door lock performed as expected. We were able to implement all of the functions specified in our proposal. The biggest hurdle we had to overcome with this project was interfacing the micro controller with the hardware components. We feel that this electronic door lock is very marketable because it is easy to use, comparatively inexpensive due to low power consumption, and highly reliable. This door lock is therefore particularly useful in applications such as hotel room door locks, residential housing, and even office buildings.. 9. References 1) Microchip, AT89C2051 Data Sheet, Microchip Technology Inc. , 2003 2) Arrick Robotics, â€Å"Driving High-Power Loads with a Microprocessor,† 2005,

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.