Giter Club home page Giter Club logo

electronic-lock's Introduction

Electronic Lock

Introduction

This project was built in VHDL on Intel Quartus Prime Software and consists on a electronic lock using a FPGA.

The lock is based on a state machine and works as follows: Using a pre-stablished password (defined on the algorithm), the FPGA (with no other peripherals) takes user input from an arrangement of the switches, that symbolizes one digit, and from a button, who is responsible for registering that digit. This way, the FPGA compares that digit to the equivalent digit of the password and, if the result is true, it goes to the next state of the state machine and repeat the same logic, otherwise turns on a number of leds equivalent to the number of user input mistakes. This process goes on until the user gets the wrong digit 3 times, showing an "erro" message on the 7 segment displays, or until the user gets the whole password right, which turns on a different led indicating the correct answer and shows "open" on the same 7 segment displays.

Key Concepts

  • Logic Programmable Devices (FPGA)
  • Logic gates
  • Sequential and combinational circuits

Screenshots

Wrong password test

Wrong password test

Correct password test

Correct password test

How to Run

To run the desired simulation of this project, just clone or download it and run it on the software Intel Quartus Prime (the version used was 20.1).

For actual using on the FPGA, you will need to assign all the inputs and outputs to the corresponding device pins (the specific device used was the Altera Cyclone V 5CEBA4F23C7) and do all the steps necessary to generate and configure the files for further injection on the device.

electronic-lock's People

Contributors

daniellima0 avatar

Watchers

 avatar

Forkers

rafaelm42

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.