Using Built-in Reference Voltage of STM32

Using Built-in Reference Voltage of STM32

Each STM32 chip has an internal reference voltage, equivalent to a standard voltage measurement point, connected to channel 17 of ADC1 inside the chip. According to the data in the datasheet, the typical value of this reference voltage is 1.20V, with a minimum of 1.16V and a maximum of 1.24V. This voltage does not significantly … Read more

Learning STM32: A Comprehensive Guide

Learning STM32: A Comprehensive Guide

Many people who have learned STM32 share a common characteristic: they can only use some representative hardware features, such as AD conversion, and can only perform single conversions, while they do not know how to perform loop or multiple conversions. Then they have to refer to the chip manual, but the problem is that the … Read more

Using STM32Cube: A Step-by-Step Guide

Using STM32Cube: A Step-by-Step Guide

STM32Cube is a powerful free development tool provided by STMicroelectronics for developers, enabling them to quickly develop and apply applications on the STM32 platform. STM32Cube mainly consists of two parts: 1. The graphical configuration tool STM32CubeMX, which allows users to graphically configure the interfaces and pins of STM32 chips. 2. Embedded software packages, including HAL … Read more

How to Configure STM32 IO Ports

How to Configure STM32 IO Ports

1.0 The STM32 input and output pins have the following 8 possible configurations: (4 inputs + 2 outputs + 2 multiplexed outputs) 1) Floating Input _IN_FLOATING 2) Pull-Up Input _IPU 3) Pull-Down Input _IPD 4) Analog Input _AIN 5) Open-Drain Output _OUT_OD 6) Push-Pull Output _OUT_PP 7) Multiplexed Push-Pull Output _AF_PP 8) Multiplexed Open-Drain Output … Read more

How to Get Started with ESP8266 and STM32

How to Get Started with ESP8266 and STM32

When learning about the Internet of Things, the first thing that comes to mind is the ESP8266. This module can connect to the internet, allowing it to connect to your home router or act as a hotspot for your phone to connect to. Isn’t that fascinating? Although the programming and related products for this device … Read more

Clock Configuration Method for STM32F103 Microcontroller

Clock Configuration Method for STM32F103 Microcontroller

In microcontrollers, the STM32F103 is powerful and widely used. To ensure the stable operation and performance optimization of the STM32F103 system, configuring its clock system is essential. So, how do we configure it? 1. Clock Source Selection HSI: Internal RC oscillator with a frequency of 8MHz, suitable for situations where clock frequency accuracy is not … Read more

3KW Communication Power Supply Solution Based on STM32G474RBT6 MCU

3KW Communication Power Supply Solution Based on STM32G474RBT6 MCU

The STDES-3KWTLCP reference design targets a 3 kW/53.5V AC-DC converter power supply for 5G communication applications, utilizing a complete ST digital power solution. The circuit design includes a front-end totem pole PFC and a back-end LLC full-bridge architecture. The front totem pole PFC provides power factor correction (PFC) and harmonic distortion (THD) suppression, while the … Read more

Ultrasonic Distance Measurement Using STM32 and HC-SR04

Ultrasonic Distance Measurement Using STM32 and HC-SR04

Recently, I have been learning STM32 to create a simple application, and I thought I would share an article. The microcontroller used in this article is the STM32F103C8T6, the ultrasonic distance measuring module is the HC-SR04, and the distance results are displayed using a 0.96-inch OLED screen module. Effect Display The display result when the … Read more

Calibration Methods for RTC in STM32

Recently, I read some posts about RTC calibration and found that many people have doubts. Coincidentally, I also implemented RTC calibration in STM32 recently. Here are some insights. While this may seem trivial to experienced users, it can be beneficial for beginners. One of the core implementations of RTC calibration is the function void BKP_SetRTCCalibrationValue … Read more

Design of Smart RFID Card Parking Lock System Based on STM32

Design of Smart RFID Card Parking Lock System Based on STM32

Introduction The car parking lock system based on RFID video technology consists of a core circuit board with STM32F103C8T6 microcontroller, an LCD1602 liquid crystal display circuit, an RFID module circuit, a button circuit, and a relay circuit. The relay simulates the car parking entrance lock switch, normally closed to prevent other vehicles from entering. If … Read more