MICROPROCESSOR &
                   MICROCONTROLLER
                       (BEX32003)

                   DIGITAL CODE LOCK
GROUP MEMBER:
MOHD TARMIZI BIN ISAHAK                    (CE 100163)
MUHAMMAD FIKRI BIN ISMAIL                  (CE 100148)
RAJA FAIRUZ NABILA BT RAJA MUDZAFAR SHAH   (CE100202)
ZAIRUL AFFANDI BIN ABDUL KAMAR                     (CE
   100125)
NUR ADILAH BINTI SHAMSUDDIN                (CE 100165)

INSTRUCTORS:
DR MOHD SHAMIAN BIN ZAINAL

DATE:
23 DECEMBER 2011
INTRODUCTION
Digital Code Lock using PIC16F627 is a basic control system
with an ability that allows the rightful user to deploy platform to
     any property that require simple password protection.



           This code can be changed by the user. This circuit is
                 eminently suitable as a digital code lock.




                 Digital code lock is a type of lock in which a sequence
                            numbers is used to open the lock.



                   This type of lock use numerical code for authentication where
                     the correct code must be entered in order for the lock to
                                            deactivate.



                          The lock can be use with an outdoor gate or a normal door.
                            The functionality of this lock implemented in software.
When the correct code is entered it will open the
  door. The significant of this project is first
        eliminating the need for a key.


   When there is no key, it will allow each person who
    lives at a residence to enter home without a key.


          The lost and forgotten keys are problems of the
                               past.


             Hence using the digital code lock it will reduce the
             risk and liability of keys falling into wrong hands as
                      a result being stolen or duplicate.

                    The digital code lock, changing access code is
                   more cost effective then the process of changing
                                     all keyed lock.
PROBLEM
STATEMENT
There are great varieties of
                               digital code locks. Generally
                             speaking, they can be classified
                               into scores of type, such as
                             electronic lock, fingerprint lock,
                              card lock biological lock, etc.




 Among them the most                                              This kind of lock can avoiding
 practical and the most                                            the problems caused by the
popularized one come to                                                  copying of keys.
    digital code lock.




                                                   It is because the keys people carry
                                                    have become burden most of the
       On the premise that it’s safety is           time, but by contrast people need
       high, it’s another feature without          only to remember a set of codes for
        key is getting more and more               electronics locks and don’t have to
                favour of people.                        carry any key, thus freeing
                                                          themselves from worries.
OBJECTIVES
To help users
               and give them
                favour to go
                 anywhere.
To avoid any                     To design a
   crimes                        keyless door
 especially                     entry by using
  stealing                     electronic digital
 activities.                      lock code.

                    The
               objectives of
                our project
               are listed as
                  above:
SCOPE
   OF
PROJECT
Projects do not need
                        complex and not too short
                          according to the study
                        and it should relate to the
                           study basic idea and
                         operation of Digital Code
                                   Lock.




                                                   The project identifies the
The project produced must
                                                     suitable type of PIC
    involve the use of
                                                microcontroller for the project
 components and circuits
                                                 to developed interfacing link
  have been studied and
                                                between hardware circuit and
       understood.
                                                    software programming.




                        The project displayed the
                         code and signal, when
                          success LCD screen
                        display ‘code accepted’.
PROJECT
IMPLEMENTATION
 Circuit   Design and Drawing

    - Research the circuit
    - Study the component and material
    - Simulate the circuit
    - Construct the circuit
 Programming         the PIC

   - Select the language to use for microcontroller
   - Write the program code
   - Debug and check the error
   - Compile the code
 Board   Construction
   - Drawing the circuit (Proteus Software)
- Wiring circuit (protoboard)
BLOCK DIAGRAM
   Electronic Code Lock has both hardware and software
    parts. Figure below shows block diagram of the project:
FLOW CHART
CONCLUSION
When we completed this
                                            project, we had learned and
                                             understand the process of
                                            constructing the Digital Code

                                                                                        Lock which contained
     This digital code lock is
                                                                                       hardware and software
   therefore particularly useful
                                                                                     development. We also know
  in applications such as hotel
                                                                                         and understand the
   room door locks, residential
                                                                                     microcontroller PIC and how
     housing and even office
                                                                                        to implement it on my
            buildings.
                                                                                               project.



We feel that this digital code
  lock is very marketable                                                                Designing code lock very
 because it is easy to use,                                                             interesting for us where we
comparatively inexpensive                                                                    can get involve in
     due to low power                                                                    programming environment
  consumption and highly                                                                          seriously.
           reliable.




           The biggest hurdle we had to                                          Our digital code lock
          overcome with this project was                                     performed as expected. We
          interfacing the microcontroller                                   were able to implement all the
                 with the hardware                                            functions specified in our
                    components.                                                       proposal.
RECOMMENDATION
Digital code lock is
                                    useful
                          in society. Therefore, it
                          should be expanded so
                          that the community can
                             use wherever they
                            are as well as using
                               a code lock on
                           the vehicle or the like.




                              There are few
                           suggestions appear
                             after completing
                             several stages of
                            this project based
                            on some problems
                               that we find:


                                                       Digital code lock may
   For the sake of the
                                                      need to limit the number
   future, digital code
                                                          of password entry
 lock should be added
                                                       attempts to reduce the
with siren when have a
                                                           risk for broken-
   burglary password.
                                                             in password.
REFERENCES
[1] Tim Wilmshurst, Designing Embedded              Systems     with   PIC
   Microcontrollers, 2nd ed. United Kingdom 1998.

[2] Harprit Singh Sandhu, Making PIC Microcontroller Instruments &
    Controllers, New York, 1987.

[3] Milan Verle mikroElektronika, PIC Microcontrollers Programming in C,
    1st ed, United Kingdom, 2009.

[4] Myke Predko, Programming and Customizing the PIC Microcontroller,
   3rd ed, 2005.

[5] Di Jasio, Wilmshurst, Ibrahim, Morton, Bates, J. Smith, D.W. Smith, and
   Hellebuyck, PIC Microcontrollers Know It All, United Kingdom, 1987.

Digital Code Lock

  • 1.
    MICROPROCESSOR & MICROCONTROLLER (BEX32003) DIGITAL CODE LOCK GROUP MEMBER: MOHD TARMIZI BIN ISAHAK (CE 100163) MUHAMMAD FIKRI BIN ISMAIL (CE 100148) RAJA FAIRUZ NABILA BT RAJA MUDZAFAR SHAH (CE100202) ZAIRUL AFFANDI BIN ABDUL KAMAR (CE 100125) NUR ADILAH BINTI SHAMSUDDIN (CE 100165) INSTRUCTORS: DR MOHD SHAMIAN BIN ZAINAL DATE: 23 DECEMBER 2011
  • 2.
  • 3.
    Digital Code Lockusing PIC16F627 is a basic control system with an ability that allows the rightful user to deploy platform to any property that require simple password protection. This code can be changed by the user. This circuit is eminently suitable as a digital code lock. Digital code lock is a type of lock in which a sequence numbers is used to open the lock. This type of lock use numerical code for authentication where the correct code must be entered in order for the lock to deactivate. The lock can be use with an outdoor gate or a normal door. The functionality of this lock implemented in software.
  • 4.
    When the correctcode is entered it will open the door. The significant of this project is first eliminating the need for a key. When there is no key, it will allow each person who lives at a residence to enter home without a key. The lost and forgotten keys are problems of the past. Hence using the digital code lock it will reduce the risk and liability of keys falling into wrong hands as a result being stolen or duplicate. The digital code lock, changing access code is more cost effective then the process of changing all keyed lock.
  • 5.
  • 6.
    There are greatvarieties of digital code locks. Generally speaking, they can be classified into scores of type, such as electronic lock, fingerprint lock, card lock biological lock, etc. Among them the most This kind of lock can avoiding practical and the most the problems caused by the popularized one come to copying of keys. digital code lock. It is because the keys people carry have become burden most of the On the premise that it’s safety is time, but by contrast people need high, it’s another feature without only to remember a set of codes for key is getting more and more electronics locks and don’t have to favour of people. carry any key, thus freeing themselves from worries.
  • 7.
  • 8.
    To help users and give them favour to go anywhere. To avoid any To design a crimes keyless door especially entry by using stealing electronic digital activities. lock code. The objectives of our project are listed as above:
  • 9.
    SCOPE OF PROJECT
  • 10.
    Projects do notneed complex and not too short according to the study and it should relate to the study basic idea and operation of Digital Code Lock. The project identifies the The project produced must suitable type of PIC involve the use of microcontroller for the project components and circuits to developed interfacing link have been studied and between hardware circuit and understood. software programming. The project displayed the code and signal, when success LCD screen display ‘code accepted’.
  • 11.
  • 12.
     Circuit Design and Drawing - Research the circuit - Study the component and material - Simulate the circuit - Construct the circuit
  • 13.
     Programming the PIC - Select the language to use for microcontroller - Write the program code - Debug and check the error - Compile the code
  • 14.
     Board Construction - Drawing the circuit (Proteus Software)
  • 15.
    - Wiring circuit(protoboard)
  • 16.
    BLOCK DIAGRAM  Electronic Code Lock has both hardware and software parts. Figure below shows block diagram of the project:
  • 17.
  • 18.
  • 19.
    When we completedthis project, we had learned and understand the process of constructing the Digital Code Lock which contained This digital code lock is hardware and software therefore particularly useful development. We also know in applications such as hotel and understand the room door locks, residential microcontroller PIC and how housing and even office to implement it on my buildings. project. We feel that this digital code lock is very marketable Designing code lock very because it is easy to use, interesting for us where we comparatively inexpensive can get involve in due to low power programming environment consumption and highly seriously. reliable. The biggest hurdle we had to Our digital code lock overcome with this project was performed as expected. We interfacing the microcontroller were able to implement all the with the hardware functions specified in our components. proposal.
  • 20.
  • 21.
    Digital code lockis useful in society. Therefore, it should be expanded so that the community can use wherever they are as well as using a code lock on the vehicle or the like. There are few suggestions appear after completing several stages of this project based on some problems that we find: Digital code lock may For the sake of the need to limit the number future, digital code of password entry lock should be added attempts to reduce the with siren when have a risk for broken- burglary password. in password.
  • 22.
    REFERENCES [1] Tim Wilmshurst,Designing Embedded Systems with PIC Microcontrollers, 2nd ed. United Kingdom 1998. [2] Harprit Singh Sandhu, Making PIC Microcontroller Instruments & Controllers, New York, 1987. [3] Milan Verle mikroElektronika, PIC Microcontrollers Programming in C, 1st ed, United Kingdom, 2009. [4] Myke Predko, Programming and Customizing the PIC Microcontroller, 3rd ed, 2005. [5] Di Jasio, Wilmshurst, Ibrahim, Morton, Bates, J. Smith, D.W. Smith, and Hellebuyck, PIC Microcontrollers Know It All, United Kingdom, 1987.