Microcontroller Based Code Locking System with Alarm

Similar documents
Keywords Digital IC tester, Microcontroller AT89S52

3 PHASE FAULT ANALYSIS WITH AUTO RESET FOR TEMPORARY FAULT AND TRIP FOR PREMANENT

C H A P T E R 1 INTRODUCTION

POWER SAVER METER USING MICROCONTROLLER TO SAVE ELECTRICITY UPTO 30-40%

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

GSM MODULE BASED SMART NOTICE BOARD

DTMF BASED HOME AUTOMATION

PREPAID ENERGY METER

Transmission Line Security System Based on RFID and GSM Technology

MICROCONTROLLER BASED AUTOMATIC PLANT IRRIGATION SYSTEM

MODERN SYSTEM TO PROTECTION AN ELECTRICAL TRANSFORMER

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

Home Automation control system using SMS

Solar Based E Uniform For Soldiers-Used For Temperature Control And Tracking

Design & Interface of Voice Module for Deaf and Dumb

Design and Installation of Home Automation and Security System Using Microcontroller and ZigBee Modulation

MICROCONTROLLER BASED LPG GAS DETECTOR USING GSM MODULE

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

JOURNAL OF INFORMATION, KNOWLEDGE AND RESEARCH IN ELECTRICAL ENGINEERING (ISSN: ISSN , GIF: , SIF: )

ericssonz LBI-38616B MAINTENANCE MANUAL FOR MTD TM SERIES AND DATA RADIO LOGIC BOARD 19D902151G3 DESCRIPTION CIRCUIT ANALYSIS TABLE OF CONTENTS

LABORATORY MANUAL Interfacing LCD 16x2, Keypad 4x4 and 7Segment Display to PIC18F4580

Automatic Power Supply from Four Different Sources without Interruption

Design and construction of ENP for Car : a novel Embedded System

AVR Peripheral Board. Campus Component Pvt. Ltd.

Applications of 8051 Microcontrollers

DTMF BASED INDUSTRIAL AUTOMATION

Vehicle Theft Intimation and Capturing by using GSM

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

TABLE OF CONTENTS Overview... Hardware Introduction... Software Development... I/O Distribution...

Vikas Kumar, EE Department, BKBIET, Pilani, Rajasthan, India

Component And IC Tester Using 89S52 Microcontroller

International Journal Of Advanced Research In Engineering Technology & Sciences

Memory & Simple I/O Interfacing

A TECHNICAL REVIEW ON DTMF BASED ELECTRONIC VOTING MACHINE

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

LAMPIRAN. Universitas Sumatera Utara

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

ECE 372 Microcontroller Design

International Journal of Advance Engineering and Research Development POWER SAVER FOR INDUSTRIAL & COMMERCIAL ESTABLISHMENT

Basic Interface Techniques for the CRD155B

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

IMPLEMENTATION OF A GUI REMOTE SYSTEM FOR HOME AUTOMATION Awuhe T. Samuel 1, Tingir T. James 2, Kpochi P. Kpochi 3

INTERFACING HARDWARE WITH MICROCONTROLLER

MONITORING AND CONTROLLING OF ELECTRICAL MACHINES AND ELECTRICAL APPLIANCES BY USINGWI-FI BASED ANDROID APPLICATION

AC : INFRARED COMMUNICATIONS FOR CONTROLLING A ROBOT

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

MICRO BURN IN PRODUCTS LISTED IN MODEL NUMBER ORDER FOLLOWED BY A BRIEF DESCRIPTION

Secure Microcontrollers for Smart Cards. AT90SC Summary

Unit 2. Computer Control. PIC stands for PROGRAMMABLE INTERFACE CONTROLLER. A PIC chip takes in input signals and then controls output transducers

DEV-1 HamStack Development Board

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

AT89S8252 Development Board V1.0. Manual

Tampering Detection Of Energy Meter By Gsm Modem

The engine temperature real-time monitoring instrument based on Microcontroller. Wang Jiayue, Yue Yuntao, Luan Ru, Zhang Jianghui Qin Xin

RTC Interface 89C51 DS M. Krishna Kumar MAM/M7/LU17/V1/ Vcc VCC 5 SDA P1.0 6 SCL P KHz 3 BAT 3.

output devices. connected to the controller. data communications link. relay systems. user program. MECH1500Quiz1ReviewVersion2 Name: Class: Date:

CPEG300 Embedded System Design. Lecture Interface with Peripheral Devices

EMBEDDED SYSTEMS COURSE CURRICULUM

Introduction to Microcontrollers

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

Embedded Systems and Software

Professional Radio GM Series. Controlhead Service Information

The Atmel ATmega328P Microcontroller


Controlling and Monitoring Of Industrial Parameters by Using GSM

INTELLIGENT APPLIANCE CONTROL SYSTEM USING ARM7 AND ZIGBEE

This Part-B course discusses design techniques that are used to reduce noise problems in large-scale integration (LSI) devices.

Development of Prototype Model for Wireless Based Controlled Pick and Place Robotic Vehicle

Design of An Embedded System For Monitoring and Controlling Temperature and Light

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22

PROGRAMMABLE POWER SUPPLY

Embedded Piano Interfaced with LCD

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING MSC SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2016/2017

PK2200 Series. Features. C-Programmable Controller. Specifications Board Size Enclosure Size Operating Temp.

Release Note. How to Use the OptoCon Connection Module. 1 Introduction. Option C Revision 4 Revised 8/13/98

Circuit Diagram For Water Level Controller Using 8051 Microcontroller With Pin Configuration

Rear Distance Detection with Ultrasonic Sensors Project Report

Chapter 3 Hardware of Microcontroller based Capacitance meter

UNIT 3 THE 8051-REAL WORLD INTERFACING

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

CHAPTER 5. Voltage Regulator

The Microcontroller Idea Book

Prepaid Energy Meter for Billing System Using Microcontroller and Dongle

Lecture (02) PIC16F84 (I)

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

MODULE 12 APPLICATIONS OF MEMORY DEVICES:

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

GSM BASED SMART NOTICE BOARD

QUASAR PROJECT KIT # ATMEL AVR PROGRAMMER

ELCT708 MicroLab Session #1 Introduction to Embedded Systems and Microcontrollers. Eng. Salma Hesham

±15kV ESD-Protected, Single/Dual/Octal, CMOS Switch Debouncers

PROGRAMMING AND CUSTOMIZING

INTRO TO I/O INTERFACE

Click-A-Tune. User Manual

Module 12: Elementary Input/Output

The Design of Embedded MCU Network Measure and Control System

ELECTRIC LINEMAN PROTECTION USING USER CHANGEABLE PASSWORD BASED CIRCUIT BREAKER 1

AT29C K (32K x 8) 5-volt Only CMOS Flash Memory. Features. Description. Pin Configurations

Infrared Add-On Module for Line Following Robot

Transcription:

IOSR Journal of Electrical and Electronics Engineering (IOSR-JEEE) e-issn: 2278-1676,p-ISSN: 2320-3331, Volume 9, Issue 1 Ver. II (Jan. 2014), PP 09-17 Microcontroller Based Code Locking System with Alarm Diarah Reuben Samuel, OsuekeChristian.O, Egbune Dickson (Electrical and Information Engineering, College of Science and Engineering/ Landmark University Omu-Aran, Nigeria) (Mechanical Engineering, College of Science and Engineering/ Landmark University Omu-Aran, Nigeria (Electrical and Information Engineering, College of Science and Engineering/ Landmark University Omu-Aran, Nigeria) Abstract : The need for strict security measures has been necessary since the beginning of time. Access to certain places and items need strict restrictions to only the privileged few. This restricted zone can vary from strong holds and safes in financial institutions to doors leading to restricted areas. The various innovations in security access system include; code based lock, keycard lock, thumb print scan, retina scan. They come in handy in security systems. Code based locking system is best suited in most applications because of its simplicity and reliability. Since the code based locking system is always resident in the area to be protected, there are fewer chances of security breaches unlike the keycard lock system in which the access card can fall into unauthorized hands. Furthermore, in the issue of maintenance, the access code can easily be changed at will with lesser cost unlike in the case of keycard system where a new set of access cards are required. The design and operational principles of a microcontroller based code locking system is the subject of the thesis.the project is made of a keypad unit for entering the access code, a dynamic display unit that displays different messages at specific time, a door controller section made up of a H-bridge driver IC that controls the movement of the motor attached to the door and an alarm system that triggers when the conditions are bridged. The whole system is controlled by an 8051 based microcontroller (89s51). Keywords :Debugging,Hardware, Microcontroller, programming, software. I. Introduction 9 Page

10 Page

2.2 DISPLAY UNIT: the display unit consists of 16*2 liquid crstal display that dispays the position of the intruder as well as the condition of the alarm system. The lower data bus of the LCD is connected to port 2 of the microcontroller while RS and EN pins are connected to port 3_0 and port 3_1 respectively. 2.3 Key pad unit Keypads are assembled in a matrix form as illustrated below: Fig 2.3 4x3 matrix key pad 11 Page

The above diagram shows 4x3 keypad 12 switches in a default state (all switches open) there is no connection between the rows and columns. When the switch is pressed a connection between the switch s columns is made. KEYPAD DECODER Many keypads are built with an onboard decoder that scan the keypad, and if a key is pressed, returns a number identifying the key. The decoder has 7 inputs; the 4 x inputs are connected to the 4 keypad columns while the y inputs are connected to the 3 keypad rows. How the keyboard is scanned. The steps are Scan row 1 Scan row 2 Scan row 3 Scanning a row is achieved applying 0V to the port pin for that row and 5V to the other three rows, then scanning each individual column to see if one of them is low. If it is, then the key at the junction between the current row and column being scanned is the pressed key. Clear row 1, set other 3 Scan column 1 Scan column 2 Scan column 3 Clear row 2, set other 3 Scan column 1 Scan column 2 Scan column 3 Clear row 3, set other 3 Scan column 1 Scan column 2 Scan column 3 For example, let s say the key being pressed is key 6. When scanning the first row, P1.0 will be cleared while the other 3 rows (P1.1, P1.2, and P1.3) are set. Since no key in this row is closed, there is no path for current through any of the pull up resistors and all 3 columns (on P1.4 to P1.6) are high. Therefore the key pressed was not found while scanning row 1. - Scanning row 2 (with 6 still closed) in this case, column 3 is connected through the closed switch to row 2. Since row 2 is low, column 3 is low The keypad is initialized in the main program all rows are cleared. Therefore when a key is pressed, since all rows are LOW, then one of the columns (the one containing the key that has been pressed) will be connected to 0V. 2.4 Microcontroller unit: The AT89C51 is a low power, high performance cmos 8-bit microcontroller with 4Kbytes of flash programmable and erasable read only memory (PEROM). The device is manufactured using Atmel`s high density nonvolatile memory technology and is compatible with the industry standard MCS-51 instruction set and pinout. The on-chip flash allows the program memory to be reprogrammed in system or by a conventional nonvolatile memory programmer. By combining a versatile 8-bit CPU with flash on a monolithic chip, the Atmel AT89C51 is a powerful microcomputer, which provides a highly flexible and cost effective solution to many embedded control application.the AT89C51 is designed with static logic for operation down to zero frequency and support two software selectable power saving modes. The idle mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt system to continue functioning. The power down mode saves the RAM contents but freezes the oscillator disabling all other chip functions until the next hardware reset.. 12 Page

MICRO- CONTROLLER AT89C51 Microcontroller Based Code Locking System With Alarm Fig. 3.22: Pin configuration of AT89S51 Features of AT89S51 Programmable serial channel Compatible with MCS-51TM product 4Kbytes of in-system Reprogrammable flash memory - Endurance: 1,000 write/erase cycles Fully static operation:0hz to 24MHz Three-level program memory lock 128 x 8-bit internal RAM 32 programmable I/O lines Two 16-bit timer/counters Six interrupt sources Low-power idle and power-down modes. 2.5 Alarm unit This consists of an LED, which connects from the P0.7 of the micro controller, which in turn connects to 1K resistor, which finally connects to the VCC. The LED indicates on the alarm is set to slow. P3.7 of the micro controller connects to the resistor (1K), through the base of the transistor (NPN C945) and the collector to the ground, while the emitter terminal is connected to the negative terminal of the alarm speaker, and the positive to the Vcc. The remaining terminal of the resistor to Vcc, as shown in the figure 3.4 1k P2.7 28 VCC vcc VCC 4.7k Buzzer P2.6 27 2k C945or NPN Transistor GND Fig. 3.4 Micro controller interface with alarm unit 13 Page

2.5.1 Door control segment: The door control segment consists of an H-Bridge driver IC that guarantee s the clockwise and the anti clockwise movement of the electric motor attached to the door system. The H-Bridge driver IC L293D is designed to control 2 DC motors. There are 2 input and 2 output pins for each motor. The 2 pairs of input determine the behavior of electric motor attached to it. The chip has two enable pins that must be high (+5V) for operation. The behavior of motor for various input conditions are as follows: A B Stop Low Low Clockwise Low High Anti clockwise High Low Stop High High Table 3.5: H-bridge motor control II. Design Process: A micro-controller based project design process is characterized by the following; Definition of task Requirements Factor that influence choice In defining a task, every design comes from an idea or a problem that requires a solution. Questions may be generated on what exactly that is required to be achieved and the feasibility of the ideas as regards to the implementation. If these questions are analyzed critically with tangible solutions to the problem, a development of this idea into a reality is the next step. Requirements for design process have to be considered once an idea has been established. The need to determine whether or not the idea requires a PC or not, depending on the complexity of the circuitry, or whether the circuits to be designed needs to make a complex decision or deal with complex data. The compare these factors with topic with IC s (AND gates) which two inputs when high logic changes outputs. Preferably, a micro-controller will be the best option based on the circuits to be designed with less hardware connections and flexibility. Writing a program that performs a desired function accesses the ability of the micro-controller. However, it came to our thought that among all the components used here the one that consumes the highest power is the Light Emitting Diodes (LEDs), which need as much as 15-volt to glow and draw as maximum as 2-ampere of current. As a result if this, I decided to use 15-volts, 2-ampere rated transformer for this design. After the voltage is stepped down 15-volts using a transformer, a full wave rectifier circuit was designed using four Diodes (IN4001). This value of Diodes is used here because from the specification of voltage/diode rectifying data book, this value is adequate for lower voltages, say 0-24 volt. The load current of the rectifier is given as follows; Idc = 21m/3.1 When 1m = maximum current = 2 amp Idc = load current which is in dc form after recification. Hence idc = 2*3 / 3.14 =4/3.14, idc = 1.27 amps Therefore 1.27amps is the maximum load current that can be drawn in the whole system. Also it is known that after rectification, the same voltage (15-volts) continues to flow into the filter. As a result the load voltages 15- volts Thus Vdc = Load voltage = 15volts. And Vdc = 21m*RL / 3.14 RL = Load resistance RL = 47.13/4 RL = 11.78* 3.14 = 1.78 From this, it is obvious that V = IR = 1.27 * 1.27 14 Page

III. System Block Diagram 4.2 System Flowchart Figure 4.1 Block Diagram of Microcontroller Based code based locking system Fig 4.2 system flow chat 15 Page

4.3 CIRCUIT DIAGRAM Fig 4.3 circuit diagram IV. Software Design Software, are computer programs; instructions that cause the hardware, the machines to do work. Software as a whole can be divided into a number of categories based on the type of work done. The two primary software categories are operating systems (system software), which control the workings of the computer, and application software, which addresses the multitude of tasks for which people use computers. Fig.5.1 Software Design 16 Page

5.2 Program #include "at89x51.h" #define LCD_en P3_1 #define LCD_rs P3_0 #define LCD_DELAY 2000 /* Delay for 1 ms */ #define LCD_clear() LCD_command(0x1) /* Clear display LCD */ #define LCD_origin() LCD_command(0x2) /* Set to origin LCD */ #define LCD_row1() LCD_command(0x80) /* Begin at Line 1 */ #define LCD_row2() LCD_command(0xC0) /* Begin at Line 2 */ Microcontroller Based Code Locking System With Alarm code unsigned char digit[16]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x78,0,0x10,0xff,0x03,0x46,0x21,0x06,0x0e; LCD_row1(); LCD_puts("access blocked!!"); LCD_row2(); LCD_puts("pls enter puk!!");.. alarm(); //delay(2000); V. Conclusion This paper microcontroller based code locking system with alarmhas successfully presented a functional and an easy way to combat crime and theft using a low cost device, and can be remotely applied everywhere security is needed. REFERENCES [1]. Belone Schilling, Electronic Circuits: Discrete and Integrated, McGraw-Hill, New York,1979. [2]. B.L Theraja and A.K Theraja, A Textbook on Electrical Technology, 2003, 23 rd Edition, Pp 1887 Pp 1888. [3]. Paul Horowitz and Windfield Hill, The Art of Electronics, 1989, 2 nd Edition, Pp 7- Pp 8, Pp 55 Pp 58, Pp 614 Pp 622. [4]. Atmel Corporation Data Sheet on AT89C51, 0285D-B-12/97 [5]. NTE Electronics Inc., ECG Data Book, January 2002, 10 th Edition. [6]. Giorgio Rizzoni, Principles of Electrical Engineering, 2003, 3 rd Edition 17 Page