Skip to content

takatz28/Digital-Lock-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Digital Lock System

Project Setup

  • For the Zybo Z7-20 setup, click here.
  • For the ZedBoard setup, click here.

Requirements

  • Software
  • Hardware
    • Zybo Z7-20 Zynq-7000 Development Board, or
    • ZedBoard Zynq-7000 ARM/FPGA SoC Development Board
  • Peripherals
    • PMOD seven-segment display (SSD)
    • Pmod KYPD 16-button Keypad
    • One passive buzzer (Zybo version)

Instructions (Zybo/Zedboard)

  1. Open Vivado 2019.1.
  2. Using the tcl console, type the following:
cd <change to extracted_folder>/<lock or lock_zed>
source ./lock.tcl # if using Zybo, or
source ./lock_zed.tcl # if using ZedBoard
  1. Create a new HDL wrapper for the block design.
  2. Run synthesis and implementation, then generate the bitstream.
  3. Go to File > Export > Export Hardware. Make sure that the "Include Bitstream" box is marked.
  4. Go to File > Launch SDK.
  5. Once the SDK is launched, go to File > New > Application Project.
  6. Fill up the form with the following details:
Field Value
Project Name "Your preferred name"
OS Platform Standalone
Hardware Platform design_1_wrapper_hw_platform_0
Processor ps7_cortex a9_0
Language C
  1. Click on Next, select the Empty Application template, then click Finish.
  2. Copy the contents of (zybo or zybo_zed)/src into the src folder under "Project Name".
  3. Under Project Explorer, right-click on the project folder, click on C/C++ Build Settings.
  4. Under Libraries, click on Add, then type m.
  5. Program the FPGA.
  6. Right-click on the project folder, click on Run As > Launch On Hardware (GDB).

Operating Modes

  • Guest Mode
    • Allows the user up to five times to guess the combination. Corresponding characters and LED patterns are generated based on the current input status.
  • Administrator Mode
    • A two-stage process that lets the user modify various information:
    1. Switch change: A switch combination must be applied to the lock in order to move on to the second stage.
    2. Keypad input: The lock will prompt for the administrator password. Once verified, the user will be able to reset or change the lock/admin combinations.