Giter VIP home page Giter VIP logo

basys3-clock-alarm-with-buzzer's Introduction

Basys3-clock-alarm-with-buzzer

Digital clock implemented in vhdl for the Basys 3 Board from Digilent. Small project to complete the VHDL class of the Master degree program Master in Engineering of Electrical engineering registered at the Facultad de Mecanica y Electrica (FIME) of the UNIVERSIDAD AUTONOMA DE NUEVO LEON.

Power summary

power summary clock alarm

and the schematic can be found here: link to schematic

What you will see in the code

  1. Debouncer
  2. Decoder from binary to bcd
  3. Decoder from bcd to 7 segment display
  4. Clock divider with multiple output frequencies
  5. Button menu
  6. LED animated ( shift from left to right and right to left)
  7. Buzzer alarm sound ( at 200Hz between G3 (196.00Hz) and G#3/Ab3 (207.65Hz) )

Project video

Clock Alarm Basys 3

Instructions

############### THE BUZZER ###############

Connect the buzzer to JA4, you can use a simple BJT 2N2222 Transistor connected in saturation mode (emitter to GND and collector to one of the buzzer termination), the other buzzer termination is connected to VCC. Remember to use a diode betweeen the emitter to collector of the BJT, the anode of the diode to the emitter and the catode to the collector to let the the current in inductance flow back to the source. You might use a 1K ohm resistor in series with the base (I didn't use it).

############### THE LEDS ###############

When LED 0 and LED 1 are OFF the data displayed is the current clock When LED 0 is ON and LED 1 is OFF the data displayed is the new clock to set

############### THE BUTTONS ###############

  1. When LED 0 is OFF and LED 1 is ON the data displayed is the alarm

  2. To enter in setting mode, to configure or check the new clock or alarm data press the center button (BTNC).

  3. To select a digit from the 7 segment display it is neccesary to use the right button (BTNR). When the digit is selected it will be blinking at 500ms.

  4. To change the digit value, it is neccesary to use the up button (BTNU).

  5. To set the new clock into the current clock it is neccesary to press left and down button (BTNL and BTND) at the same time for 1 second.

############### THE SWITCHES ###############

  1. When SW0 and SW1 are ON or OFF, the current clock will count every second

  2. When SW0 is ON and SW1 is OFF, the counter will increase 10 time faster (every 100 milisecond)

  3. When SW0 is OFF and SW1 is ON, the counter will increase 100 time faster (every 10 milisecond)

############### THE DISPLAY ###############

The display has 4 digits and 1 dot, from left to right, the first digit is the ten digit for the hour, the second digit is the unit digit for hour, the thrid digit is the ten digit for minutes, the fourth digit is the unit digit for minutes the dot is blinking accordingly to the selected clock using the SW0 and SW1, thus it might be indicating seconds.

basys3-clock-alarm-with-buzzer's People

Contributors

romybompart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.