stm32f103 RTC perpetual calendar project

Introduction

stm32f103 RTC perpetual calendar project.
GitHub link: https://github.com/RedandBlackyang/RTC_wannianli
If you find it easy to use, remember to light up the little stars~~
The code comments will be perfect in the follow-up, everyone will continue to pay attention~ (but I Lazy)

Burning introduction

It is recommended to use wildfire's stm32 board (guide or overbearing for burning).

In order for Chinese characters to be displayed normally on OLED, you need to burn a new font file GB2312_H1616.FON. This font file is suitable for the way of writing OLED pages (different from the font file that comes with Wildfire, and the modulus is different). srcdata need to file in the project folder into the root of the sd card, and then use the official routines wildfires 刷外部FLASH程序(如何恢复出厂内容)were burning.

Key operation introduction

In order to meet the compact design of the clock, 4 buttons are used for control. They are next, ok, back and serial calibration trigger buttons.

Next is used to select the next function item, the ok key means to confirm the selection, and back returns to the previous page.

Features

  • RTC real time clock

  • Year, month, day, hour, minute and second can be set by keys

  • Stopwatch timing function

  • Timed alarm function

  • Display year, month, day, hour, minute, second, week and lunar calendar (the lunar calendar is automatically updated according to the date)

  • Graphic display clock

  • Use temperature and humidity sensors to measure and display ambient temperature and humidity

  • Can use computer serial port for time synchronization

Pin correspondence

keyUse matrix keyboard, use one row and four columns for interrupt trigger

Line 1 R1 --> PC10

Column 1 C1 --> PC6

Column 2 C2 --> PC7

Column 3 C3 --> PC8

Column 4 C4 --> PC9

DHT11 温湿度传感器

VCC --> 3.3V

DATA --> PE6

GND --> GND

IIC oled 0.96寸屏幕

Use IIC1

GND --> GND

VCC --> 3.3V

SCL --> PB6

SDA -> PB7

Guess you like

Origin blog.csdn.net/weixin_45916669/article/details/115002697