Git Product home page Git Product logo

microkontroller-praktikum-rtc's Introduction

Microkontroller-Praktikum-RTC

Using the realtime clock of the STM32 to display the date and time value and an I²C display.

Project description

Notion Project Documentation

  • Use the Real-Time-Clock RTC of the STM32
  • Display the time every second in the format TT:MM - HH:MM:SS
  • Using the UART, the time can be modified

Used components

Tasks

RTC & UART

  • sets the RTC with UART
  • checks the time input from UART
  • checks the date input from UART
  • uses interrupts to receive input
  • does not require to type the symbols : and -
  • considers leap years
  • document and beautify RTC code

Sync timer

  • uses interrupt to synchronize RTC value to the display
  • only synchronize data every second
  • use RTC alarm interrupt instead of timer interrupt

I²C display

  • initializes display
  • use the I²C-2 and set to 100kHz clock frequency (max rating of display)
  • connect PB -> SDA, PB9 -> SCL, GND and a supply voltage of 5V
  • I²C communication error lights up the red onboard led
  • check and document initialisation and transfer code

Reduce HAL_I2C_Transmit overhead

HAL_I2C_Transmit is expensive because of decreased I²C speed of the display!

  • send all characters to the display in one HAL_I2C_Transmit call
  • use asynchronous transmit to transfer the data to the display
  • only transfer changed chars

microkontroller-praktikum-rtc's People

Contributors

mariogeier00 avatar rand0x 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.