Skip to content

HaninMoAnwar/RealClock-LED-Effects-FreeRTOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

RealClock FreeRTOS LED Effects

This project showcases a RealClock system with LED effects implemented using FreeRTOS. The Nucleo-f446re microcontroller is utilized, along with a user interface program using UART.

Project Features

  • Choose from four different LED effects for four LEDs.
  • Set a new time or date.
  • Enable time and date reporting, sent to SWV (Serial Wire Viewer) every 1 second.

Project FlowChart

SystemFlowChart

FreeRTOS Task Design

Tasks:

  • Command Handle Task: Responsible for receiving user input over UART.
  • Display Task: Responsible for displaying messages or menus to the user over UART.
  • Main-menu Task: Allows the user to choose system functionalities such as LED Effects and RTC configuration.
  • LED Effect Task: Starts the selected LED effect.
  • RTC Task: Handles setting the new time and date and enabling reporting.

Queues

  • Q_Send: Sends data to UART.
  • Q_Receive: Receives data from UART.

Tasks And Interrupt FlowChart

TasksAndINTFlow

Tasks State Machine Diagrams

Command Handle Task

CommandTaskSM

Display Task

DisplayTaskSM

Main-Menu Task

MainMenuTaskSM

LED Effect Task

LEDsTaskSM

RTC Task

RTCTaskSM

Used Peripherals

The project is based on CubeMX HAL Drivers and utilizes the following peripherals:

  • UART = RTC
  • GPIO
  • Systick (FreeRTOS clock base)

Future Improvements

  • Set alarms.
  • Contribute to the project with SEGGER tool.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages