GithubHelp home page GithubHelp logo

vokerlee / alarm-clock-stm32 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 356 KB

Final project of STM32 course — Alarm clock. It is written for STM32F051R8.

License: MIT License

C 15.86% C++ 83.22% Assembly 0.93%
stm32 alarm-clock alarm exti nvic

alarm-clock-stm32's Introduction

Alarm-Clock STM32

Final project of STM32 course.

  • Lecturer: Arseniy Poyda
  • Length of course: 1 semester
  • When was passed: 2 semester
  • Language: Russian

Connection

Seven-segment display can be connected in the following way:

  • Pins from PC0 to PC6 are segments a, b, c, ..., g respectively.
  • Pins from PC7 to PC10 are numbers 1-4.
  • Pin PC11 is a dot (separates minutes and hours).

Now let's connect two addition buttons to manage the tuning:

  • It is enough to use 3V or 5V and pins PC13 and PC14 respectively.

OK. Piezo speaker is left. Use GND and PA5. Now the alarm is in a workable state.

Usage

Everything is simple. In default state alarm-clock shows the counting time from scratch. You are to set the alarm time. Algorithm is as follows: clamp USER button, now you are in tune regime. Using buttons you can increase or decrease set time in minutes. To begin manipulate with hours clamp the left button (PC13). To arrive (to manipulate with minutes again) clamp the right button (PC14). So, when you are ready to continue, clamp USER button again. Now alarm time is set.

When a wonderful music begins to play, you have 3 veriants: to turn off the music (USER button), to delay the time for 5 minutes (the left button) or for 10 minutes (the right button). Here was the concise description of simple alarm-clock.

Thank you for attention.

alarm-clock-stm32's People

Contributors

vokerlee 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.