Building Security and Access Control System Group Members: Abdulrahman Daher Saeed199901447 Khalid Younus Ali Kalbat199900132 Mohammed Ramadan Sarhan199905274

  • View
    214

  • Download
    1

Embed Size (px)

Text of Building Security and Access Control System Group Members: Abdulrahman Daher Saeed199901447 Khalid...

  • Slide 1

Building Security and Access Control System Group Members: Abdulrahman Daher Saeed199901447 Khalid Younus Ali Kalbat199900132 Mohammed Ramadan Sarhan199905274 Mohammed Numan Shehadeh199901473 Slide 2 Executive Summary Designing and implementing a secure access and control system for an office building Designing and implementing a secure access and control system for an office building The system consists of two sites. The system consists of two sites. system site local site The two sites are connected using serial communication RS-232 The two sites are connected using serial communication RS-232 Slide 3 Executive Summary Local Site: where the personal computer is located and a user interface program is installed Local Site: where the personal computer is located and a user interface program is installed System site: a keypad and a Liquid Crystal Display (LCD) are located at the entrance of the system System site: a keypad and a Liquid Crystal Display (LCD) are located at the entrance of the system The LCD is used to show all the needed messages to the user to inform him/her about what to do at the entrance The LCD is used to show all the needed messages to the user to inform him/her about what to do at the entrance Slide 4 Introduction The importance of this project lies in the fact that it serves the security for offices, hospitals, businesses or institutional buildings The importance of this project lies in the fact that it serves the security for offices, hospitals, businesses or institutional buildings The system is environmentally friendly, it doesnt pollutes the environment. The system is environmentally friendly, it doesnt pollutes the environment. The system gives access to any person who has an authorized User ID and password The system gives access to any person who has an authorized User ID and password Slide 5 Introduction System Operation: System Operation: The LCD will show a message to the user asking him to enter his/her User ID and password Then it will show a wait message while the data will be transmitted to the PC via RS-232 interface The PC compares the data with the database to check if the person should be allowed to enter or not Slide 6 Introduction System Operation: System Operation: If a valid User ID and password were entered, the LCD will show an acceptance message The stepper motor will start rotating and open the door to give the person the permission to enter the building Otherwise, if the User ID and the password were not valid, another message will be displayed showing INVALID on the LCD Slide 7 Project Description The project is basically a Microcontroller based system The project is basically a Microcontroller based system Microchip PIC16F877 microcontroller was selected Microchip PIC16F877 microcontroller was selected The different components of the system are controlled by microcontroller The different components of the system are controlled by microcontroller Slide 8 Project Description The system consists of the following major components: Liquid Crystal Display (LCD) System Liquid Crystal Display (LCD) System Microcontrollers and other chips Microcontrollers and other chips Sensors (Opto-Switches) Sensors (Opto-Switches) Stepper motor Stepper motor Keypad Keypad Slide 9 System Block Diagram Slide 10 Microcontrollers There are many companies which provide series of microcontrollers There are many companies which provide series of microcontrollers Atmel Motorola Microchip Technology. The PIC16F877 microcontroller was selected The PIC16F877 microcontroller was selected The PIC microcontroller series are produced by Microchip Technology The PIC microcontroller series are produced by Microchip Technology Slide 11 Microcontrollers The PIC microcontroller has many powerful features. The PIC microcontroller has many powerful features. It has low cost compared to other products It has low cost compared to other products It is available in the Electrical Engineering Department with its programming tools It is available in the Electrical Engineering Department with its programming tools Slide 12 Microcontrollers Main Features: Main Features: 256 Bytes EEPROM data memory Interrupt capability (up to 14 sources) Three different built-in timers 8 channels 10-bit analog-to-digital converter Universal Synchronous Asynchronous Receiver Transmitter (USART) Slide 13 Development Tools MPLAB IDE is a Windows based Integrated Development Environment (IDE) MPLAB IDE is a Windows based Integrated Development Environment (IDE) MPLAB IDE is used to write, debug, and optimize programs in Assembly language MPLAB IDE is used to write, debug, and optimize programs in Assembly language Slide 14 Development Tools MPLAB IDE tools is used to: MPLAB IDE tools is used to: Assemble, compile, and link source code Debug the executable logic by watching program flow with the simulator Make timing measurements View variables in watch windows Program firmware with PICSTART Plus Slide 15 Development Tools PICSTART PLUS is used to PICSTART PLUS is used to Program micrcontrollers PICSTART PLUS makes designing simple. PICSTART PLUS makes designing simple. Slide 16 PIC16F877 Pin Configuration Slide 17 Keypad Interface Keypad is used for command and data input in computer systems Keypad is used for command and data input in computer systems The user can enter the User ID number and the password by the keypad The user can enter the User ID number and the password by the keypad Slide 18 Keypad Interface keypads are usually arranged as a simple matrix of conductors keypads are usually arranged as a simple matrix of conductors switches connect each row to each column switches connect each row to each column Slide 19 Keypad Interface Keypad scanning mechanism: Forcing the rows to zero by making the appropriate Port B pins outputs and writing 0s to these pins Making the pins associated with the columns inputs and checking these pins to determine if any are 0 Forcing the columns to zero by making the appropriate Port pins outputs and writing 0s to these pins Slide 20 Keypad Interface Keypad scanning mechanism: Making the pins associated with the rows inputs and checking these pins to determine which row is zero Using the row and column numbers to look-up the key value in a table and returning this value in the W accumulator Returning from the subroutine. Slide 21 Stepper Motor The stepper motor is used to open and close the door The stepper motor is used to open and close the door The stepper motor moves one step at a time The stepper motor moves one step at a time In order to rotate the stepper motor specific sequence of voltages should be applied to the stator coils In order to rotate the stepper motor specific sequence of voltages should be applied to the stator coils Slide 22 Stepper Motor Unipolar stepper motor is used since its easy to control Unipolar stepper motor is used since its easy to control Permanent magnet is used for the rotor and coils are put on the stator Permanent magnet is used for the rotor and coils are put on the stator 4 poles stepper motor has step angle of 90 degrees 4 poles stepper motor has step angle of 90 degrees Slide 23 Stepper Motor The turn of the motor is controlled by the electric current which passes into the motor terminals The turn of the motor is controlled by the electric current which passes into the motor terminals The motor can rotate in clockwise direction or counterclockwise direction The motor can rotate in clockwise direction or counterclockwise direction Slide 24 Stepper Motor Turning off coil A and turning on coil B will rotate the rotor in clockwise direction Turning off coil A and turning on coil B will rotate the rotor in clockwise direction Turning off coil B and turning on coil C will move the rotor one step further Turning off coil B and turning on coil C will move the rotor one step further Slide 25 Stepper Motor Control The microcontroller was used to control the stepper motor The microcontroller was used to control the stepper motor A program was written in assembly language to control the speed and the direction of rotation of the stepper motor A program was written in assembly language to control the speed and the direction of rotation of the stepper motor Slide 26 Stepper Motor Slide 27 Opto-Switch The Opto-Switch is a special type of sensors used as a switch The Opto-Switch is a special type of sensors used as a switch Consists of two sections: Consists of two sections: Infrared LED Phototransistor There is a small gap between the two sections There is a small gap between the two sections Slide 28 Opto-Switch The Opto-switches were used to provide a feedback to the microcontroller while the door is moving The Opto-switches were used to provide a feedback to the microcontroller while the door is moving There are three Opto-switches located on the track on which the door is sliding There are three Opto-switches located on the track on which the door is sliding The microcontroller senses the changes on these sensors and performs the proper action The microcontroller senses the changes on these sensors and performs the proper action Slide 29 Liquid Crystal Display (LCD) LCD can operate in one of the two modes: LCD can operate in one of the two modes: 8 bits data interface mode 4 bits data interface mode 8 bits mode is easier to implement because it requires less memory size but it also requires more additional I/O lines 8 bits mode is easier to implement because it requires less memory size but it also requires more additional I/O lines Slide 30 Liquid Crystal Display (LCD) The LCD has 11 data and control pins The LCD has 11 data and control pins D0-D7 is the bi-directional data bus D0-D7 is the bi-directional data bus R/W determines if we read from or write to the LCD R/W determines if we read from or write to the LCD According to RS pin, the data on the data bus is treated either as a command or character