Skip to content

caotrongphuoc/mini-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

624 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo Traffic

Mini Clock - Digital Desk Clock built on AK Embedded Base Kit

Demo

Documentation

Introduction

Mini Clock is a digital desk clock built on the AK Embedded Base Kit.

This project focuses on building a simple clock application using an event-driven approach. It handles basic features such as displaying time, updating the screen, reading button inputs, and triggering an hourly chime.

Through this project, I practiced several embedded concepts:

  • System design: Organizing the main features and logic of the clock.
  • Task management: Splitting the program into small tasks such as time update, display update, and button handling.
  • Communication: Using signals, timers, and messages to handle events.
  • State machine: Managing clock modes such as normal display, setting time, and chime control.

I. Hardware

AK Embedded Base Kit - STM32L151 - v3.0

Figure 1: AK Embedded Base Kit - STM32L151

AK Embedded Base Kit is an evaluation kit aimed at intermediate and advanced embedded software learners.

The kit integrates a 1.54" OLED LCD, 3 push buttons, and a buzzer capable of playing short melodies, giving you everything you need to study event-driven systems through hands-on game-machine design. It also exposes RS485, the Qwiic Connect System, and Grove connectors, so it doubles as a convenient prototyping board for real-world embedded projects.

MCU Overview:

SoC Name : STM32L151CBT6
RAM      : 16 KB

Flash Partitions Layout
----------------------
[ 0x08000000 - 0x08001FFF ] : Bootloader Partition (8 KB)
=> AK Bootloader

[ 0x08002000 - 0x08002FFF ] : BSF Shared Partition (4 KB)
=> Used for data sharing between Bootloader and Application

[ 0x08003000 - 0x0801FFFF ] : Application Partition (116 KB)
=> Zomwar firmware

MCU Naming Convention:

Part Meaning
STM32 STMicroelectronics 32-bit MCU family.
L Low-power series.
151 STM32L151 product line.
C 48-pin package.
B 128 KB Flash memory.
T LQFP package.
6 Industrial temperature grade.

Figure 2: Board view Top + Bottom

About

A smart desk clock built on the AK Embedded Kit (STM32L151), using the hardware RTC.

Resources

License

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors