+ All Categories
Home > Documents > Codelock Report

Codelock Report

Date post: 02-Jun-2018
Category:
Upload: do-tat-thanh
View: 224 times
Download: 0 times
Share this document with a friend

of 25

Transcript
  • 8/10/2019 Codelock Report

    1/25

    Table of Contents

    I. Abstract..................................................................................................................2II. Introduction and overview................................................................................3

    B. Purpose of our product:....................................................................................3III. Approach to the project problem......................................................................4

    A. Structure of our s stem.....................................................................................4B. !ardware..........................................................................................................."#. Software............................................................................................................"

    I$. %etails about partial devices..............................................................................&A. A'()*A +.......................................................................................................&B. ,#% -& 2........................................................................................................./#. 0ela .................................................................................................................+

    %. 'ransistor B1' P #-+-"..............................................................................eatures..............................................................................................................). )lectronic ,oc5..............................................................................................-6. !7brid8e circuit with 4 0ela s.......................................................................-6

    $. S stem desi8n.....................................................................................................-2A. !ardware........................................................................................................-2Bloc5 dia8ram of master unit..............................................................................-/

    $I. 0esult of our s stem desi8n............................................................................24$II. #onclusion.....................................................................................................24$II. 0eference.......................................................................................................24

    1

  • 8/10/2019 Codelock Report

    2/25

    Chapter I. Abstract%i8ital desi8n is an ver important subject on this semester . 'he subject consist ofman 5nowled8e of other subject li5e : electronics 9 microprocessor9 al8orithm foren8ineer . In order to practice what we have learn9 the project 8ive us a chance to8et familiar and understand our theor in di8ital desi8n subject. Because of all thatreason9 m 8roup have choose a project re uired man s5ill and included manobject in di8ital desi8n subject. After finished this project 9 we feel ver confidentwith our s5ill9 and thin5 that we still can development our project further.

    2

  • 8/10/2019 Codelock Report

    3/25

    Chapter II. Introduction and overviewA. Introduction about code lock :

    ; %i8ital #ode ,oc5 usin8 A'()*A+ is a basic control s stem with an abilit thatallows the ri8htful user to deplo platform to an propert that re uire simple

    password protection.; 'his code can be chan8ed b the user. 'his circuit is eminentl suitable as a di8italcode loc5.

    ; %i8ital code loc5 is a t pe of loc5 in which a se uence numbers is used to openthe loc5.

    ; 'his t pe of loc5 use numerical code for authentication where the correct codemust be entered in order for the loc5 to deactivate.

    ; 'he loc5 can be use with an outdoor 8ate or a normal door. 'he functionalit ofthis loc5 implemented in software.

    B. Purpose of our product:; 'here are 8reat varieties of di8ital code loc5s. *enerall spea5in89 the can be

    classified into scores of t pe9 such as electronic loc59 fin8erprint loc59 card loc5 biolo8ical loc59 etc.

    ; 'his 5ind of loc5 can avoidin8 the problems caused b the cop in8 of 5e s.; It is because the 5e s people carr have become burden most of the time9 but b

    contrast people need onl to remember a set of codes for electronics loc5s anddon

  • 8/10/2019 Codelock Report

    4/25

  • 8/10/2019 Codelock Report

    5/25

    B. ardwareA'me8a+ microprocessor D cheap9 popular9 have man peripheral interfaceE,#% -& 2 displaCe pad 4 4)lectronic ,oc5 4 0ela s'ransistor B1' P # -+-"

    C. Software#omplier : A$0 studioP#B desi8ner : Altium desi8n

    5

  • 8/10/2019 Codelock Report

    6/25

    Chapter I!. "etails about partial devices

    A. A#$%&A '

    'he AtmelGA$0G A'me8a+ is a low7power #(=S +7bit microcontroller based on theA$0 0IS# architecture. B e ecutin8 powerful instructions in a sin8le cloc5 c cle9 theA'me8a+ achieves throu8hputs approachin8 -(IPS per (!>9 allowin8 the s stemdesi8ner to optimi>e power consumption versus processin8 speed.

    (eatures; !i8h7performance9 ,ow7power AtmelGA$0G +7bit (icrocontroller ; Advanced 0IS# Architecture H -36 Powerful Instructions H (ost Sin8le7cloc5 # cle ) ecution H 32 @ + *eneral Purpose ?or5in8 0e8isters

    H ull Static =peration H p to -&(IPS 'hrou8hput at -&(!> H =n7chip 27c cle (ultiplier ; IJ= and Pac5a8es H 23 Pro8rammable IJ= ,ines H 2+7lead P%IP9 327lead 'K P9 and 327pad K J(,; =peratin8 $olta8es H 2./$ 7 "."$ DA'me8a+,E H 4."$ 7 "."$ DA'me8a+E; Speed *rades H 6 7 +(!> DA'me8a+,E H 6 7 -&(!> DA'me8a+E; Power #onsumption at 4(h>9 3$9 2"6 # H Active: 3.&mA H Idle (ode: -.6mA H Power7down (ode: 6."LA

    6

  • 8/10/2019 Codelock Report

    7/25

    B. )C" *+,-

    "escription7 'he !%44/+6 dot7matri li uid cr stal displa controller and driver ,SI displa s

    alphanumerics9 1apanese 5ana characters9 and s mbols. It can be confi8ured to drive adot7matri li uid cr stal displa under the control of a 47 or +7bit microprocessor. Sinceall the functions such as displa 0A(9 character 8enerator9 and li uid cr stal driver9re uired for drivin8 a dot7matri li uid cr stal displa are internall provided on onechip9 a minimal s stem can be interfaced with this controllerJdriver.7 A sin8le !%44/+6 can displa up to one +7character line or two +7character lines.e/isters7'he !%44/+6 has two +7bit re8isters9 an instruction re8ister DI0E and a data re8ister D%0E.7'he I0 stores instruction codes9 such as displa clear and cursor shift9 and addressinformation for displa data 0A( D%%0A(E and character 8enerator 0A( D#*0A(E.'he I0 can onl be written from the (P .7'he %0 temporaril stores data to be written into %%0A( or #*0A( and temporarilstores data to be read from %%0A( or #*0A(. %ata written into the %0 from the(P is automaticall written into %%0A( or #*0A( b an internal operation. 'he%0 is also used for data stora8e when readin8 data from %%0A( or #*0A(. ?henaddress information is written into the I09 data is read and then stored into the %0 from%%0A( or #*0A( b an internal operation. %ata transfer between the (P is thencompleted when the (P reads the %0. After the read9 data in %%0A( or #*0A( atthe ne t address is sent to the %0 for the ne t read from the (P . B the re8ister selector D0SE si8nal9 these two re8isters can be selected D'able -E.

    Busy (la/ 0B(17?hen the bus fla8 is -9 the !%44/+6 is in the internal operation mode9 and the ne tinstruction will not be accepted. ?hen 0S M 6 and 0J? M - D'able -E9 the bus fla8 isoutput to %B/. 'he ne t instruction must be written after ensurin8 that the bus fla8 is 6.

    7

  • 8/10/2019 Codelock Report

    8/25

    Address Counter 0AC17 'he address counter DA#E assi8ns addresses to both %%0A( and #*0A(. ?hen anaddress of an instruction is written into the I09 the address information is sent from the I0to the A#. Selection of either %%0A( or #*0A( is also determined concurrentl bthe instruction.7 After writin8 into Dreadin8 fromE %%0A( or #*0A(9 the A# is automaticallincremented b -Ddecremented b -E. 'he A# contents are then output to %B6 to %B& when 0S M 6 and0J? M - D'able -E.

    C. elay

    An electromagnetic relay is a type of electrical switch controlledby an electromagnet. It is used in a ariety of applications!including alarms and sensors! signal switching! and the detectionand control of faults on electrical distribution lines. "his de icewas in ented in 1#35! and its straightforward function has notchanged much since. $onsumers interact with electromagneticrelays in a ariety of forms daily! from timed o%ce lights to testbuttons and other &uality control de ices.

    "he core of the electromagnetic relay! naturally! is an

    electromagnet! formed by winding a coil around an iron core.'hen the coil is energi(ed by passing current through it! the corein turn becomes magneti(ed! attracting a pi oting iron armature.As the armature pi ots! it operates one or more sets of contacts!thus a)ecting the circuit. 'hen the magnetic charge is lost! thearmature and contacts are released. *emagneti(ation can causea leap of oltage across the coil! damaging other components of

    #

  • 8/10/2019 Codelock Report

    9/25

  • 8/10/2019 Codelock Report

    10/25

    9ower *issipation 9tot 4 m' $urrent :ain andwidth ftotal # ;

  • 8/10/2019 Codelock Report

    11/25

    !7brid8e circuit with 4 0ela s

    11

  • 8/10/2019 Codelock Report

    12/25

  • 8/10/2019 Codelock Report

    13/25

    $icro controller

    $icrocontroller"efinition:An embedded microcontroller is chip which has a computer processor with all its supportfunctions Dcloc5 R resetE9 memor Dboth pro8ram and dataE9 and IJ=Dincludin8 businterfaceE built in to the device. 'hese built in function minimi>e the need for e ternalcircuitsand devices to be desi8ned in the final application.#ypes of $icrocontroller#reatin8 application for microcontrollers is completel different than an other development job in computin8 and electronics. In most other application one probabl

    have a number of subs stems and interface alread available for hisJher use. 'his is notthe case with a microcontroller where one is responsible for7;Power distribution;S stem cloc5in8;Interface desi8n and wirin8;S stem pro8rammin8;Application pro8rammin8;%evice pro8rammin8

    13

  • 8/10/2019 Codelock Report

    14/25

    PCB:Power Suply Board

    14

  • 8/10/2019 Codelock Report

    15/25

  • 8/10/2019 Codelock Report

    16/25

    16

  • 8/10/2019 Codelock Report

    17/25

    Block dia/ram of master unit

    17

  • 8/10/2019 Codelock Report

    18/25

    B. Software

    *. 7eyPad

    1#

  • 8/10/2019 Codelock Report

    19/25

    -. 8 brid/e circuit with 6 elays to chan/e direction of the current

    18

  • 8/10/2019 Codelock Report

    20/25

    9. "eclare the default value of the initial password

    uint-& t ))()( pass- M ----T

    6. $ain Pro/ram

    2

  • 8/10/2019 Codelock Report

    21/25

    21

  • 8/10/2019 Codelock Report

    22/25

    22

  • 8/10/2019 Codelock Report

    23/25

    23

  • 8/10/2019 Codelock Report

    24/25

    4. (low Chart 0#he way its work 1

    24

  • 8/10/2019 Codelock Report

    25/25

    Chapter !I. esult of our system desi/n=ur s stem desi8n wor5 well on both simulation and real pcb circuit. All videorecorded our project result have added to project file.

    Chapter !II. ConclusionIn order to 8et those results9 we would li5e to e press our deep 8ratitude toProfessor 8u Un #Vnh Kuan8 %un8 for puttin8 the 8roup to8ether and helpin8 usthrou8hout the project. Beside his dili8ent and easil 7understand instructions9meticulous preparation9 and top7 ualit support and information9 his attitude alsolent us a fresh perspective to the subject of %i8ital desi8n subject. After finishedour project 9 we 8ot more 5nowled8e about 'hermo measurement s stem andmicroprocessor A$0 and man peripheral interface 9 and have the chances to practice what we learn in lecturesW 'his is ver useful e perience for us to wor5well in the future.

    eference7 www.alldatasheet.com=>$*?datasheet7 www.alldatasheet.com=Atmega#?datasheet

    7 www.alldatasheet.com=$1#15?datasheet

    25

    http://www.alldatasheet.com/C1815+datasheethttp://www.alldatasheet.com/C1815+datasheet

Recommended