Digital Clock Using Internal RTC of STM32L476

by Avinash KumarP in Circuits > Arduino

3430 Views, 2 Favorites, 0 Comments

Digital Clock Using Internal RTC of STM32L476

5.png

This tutorial guides to making digital clock at home and can run as long as it is powered by power source.It uses internal registers of microcontroller and does not requires external RTC .

Install STM32CUBEMX and Keil With Packages for STM32L476.

Make Electronics Interfacing for Your Project.

Electronics components needed for this project is :-

1)16x2 alphanumeric LCD

2)STM32L476 nucleo board.

3)Bread board

4)Jumper wires.

5)One laptop with windows installed.

Connection of LCD and STM32L476 board are mentioned below:-

STM32L476 - LCD
GND - PIN1

5V - PIN2

NA - 1K resistor connected to GND

PB10 - RS

PB11 - RW

PB2 - EN

PB12 - D4

PB13 - D5

PB14 - D6

PB15 - D7

5V - PIN15

GND - PIN16

Selecting Microcontroller in STM32CUBEMX

Open cubemx and select nucleo64 board with microcontroller as STM32L476.

Making Selections in Stm32cubemx.

Digital Clock using Internal RTC of STM32L476
2.png
3.png
4.png

Make necessary selections in STM32cubemx according to images shown in this tutorial.

Press the RESET Button of Board and Find Time and Date Running on Your LCD.