How to Print Logs from STM32 Microcontroller Without Using Serial Port

How to Print Logs from STM32 Microcontroller Without Using Serial Port

This article mainly introduces methods for outputting logs in embedded development. The most common method is to output UART logs through the serial port. This method is simple to implement, and most embedded chips have serial port functionality. Related articles: Learning STM32 Microcontroller, Serial Port is Inevitable. However, such a simple function can sometimes be … Read more

Comprehensive Analysis of STM32 Bootloader Development: From Design to Implementation (Includes Key Code)

Comprehensive Analysis of STM32 Bootloader Development: From Design to Implementation (Includes Key Code)

Engineers’ painful lessons: 80% of device bricking incidents stem from Bootloader design flaws! Introduction In the late-night production workshop, my colleague Wang stared blankly at the 200 devices that had just failed an upgrade—A single erroneous OTA upgrade directly caused an entire batch of devices to become bricked. This painful experience is not uncommon in … Read more

Introducing a Database for Embedded Design

Introducing a Database for Embedded Design

Introduction: Due to limited resources, embedded systems cannot store important data as conveniently as databases interfacing with operating systems. Therefore, this article will introduce the principles and applications of an embedded database, TinyFlashDB, analyze its advantages in resource-constrained environments, summarize pain points and solutions in practical development, and complete the porting and functional verification of … Read more

Creating a New Project in Keli MDK5

Creating a New Project in Keli MDK5

Scan to follow Chip Dynamics , say goodbye to “chip” blockage! Search WeChatChip DynamicsHow to Create a New Project Today we will learn how to create an STM32 project using Keli. Before creating the project, we need to create a folder in a directory on the computer where we can place all the projects we … Read more

STM32 Project Sharing: Design of IoT Monitoring Node for Urban Noise and Air Quality Based on STM32 Microcontroller

STM32 Project Sharing: Design of IoT Monitoring Node for Urban Noise and Air Quality Based on STM32 Microcontroller

We do not engage in one-time transactions; we aim to be long-term partners in technical growth! 01 — Physical Video Display See the end of the article for data sharing 02 — Project Overview Title: Design of IoT Monitoring Node for Urban Noise and Air Quality Based on STM32 Microcontroller Main Control: STM32F103C8T6 Display: OLED … Read more

A Single Idea Ruined a Design in STM32 Development: The Dilemma of Ignoring USB Clock Requirements

A Single Idea Ruined a Design in STM32 Development: The Dilemma of Ignoring USB Clock Requirements

Introduction Recently, I have been researching mechanical fault diagnosis and decided to create a small accelerometer, planning to use the STM32F1 as the main controller. Initially, I planned to use an external crystal oscillator as the main clock for the STM32, but to further reduce the size of the board, I decided to remove the … Read more

Experiment on Closed-Loop Control of Encoded Motors Based on STM32F1 Series: OLED Code Porting (Part 2)

Experiment on Closed-Loop Control of Encoded Motors Based on STM32F1 Series: OLED Code Porting (Part 2)

Detailed Explanation of OLED Character Dot Matrix Display Rules 1. Storage Rules Description OLED typically displays characters in a dot matrix format. Taking the 8×16 dot matrix as an example, each character occupies a pixel area of 8 columns wide × 16 rows high. Data Storage Format Description: /** * Data storage format: * Vertical … Read more

Design and Application of an IoT Monitoring System for Smart Greenhouses with Multi-Sensor Integration

Design and Application of an IoT Monitoring System for Smart Greenhouses with Multi-Sensor Integration

Core Tip Abstract: To reduce agricultural production costs and improve planting efficiency, and to address the challenges of real-time data collection in traditional greenhouses that lead to subjective decision-making, a smart greenhouse IoT monitoring system has been designed. This system is centered around multi-sensor and camera integration technology, utilizing the STM32 microcontroller to control multiple … Read more

Mastering STM32 and PCB Design Through Building a Quadrotor Drone

Mastering STM32 and PCB Design Through Building a Quadrotor Drone

After publishing the teardown article, I often receive messages from friends asking how to learn electronic design, how to learn microcontrollers, and so on. Many people feel confused and are unsure about what they should learn. Some people know what they need to learn but don’t know where to start. Only a very few can … Read more

Analysis of Abnormal Level Conversion in STM32 Simulated SPI: A Comprehensive Solution from 2V Mysterious Voltage to Waveform Distortion

Analysis of Abnormal Level Conversion in STM32 Simulated SPI: A Comprehensive Solution from 2V Mysterious Voltage to Waveform Distortion

Recently, while using the IO ports of STM32 for simulated SPI communication, I encountered a strange phenomenon: Normal Condition: 3.3V push-pull output, waveform is perfect Abnormal Condition: 3.3V to 1.8V, push-pull output with a 4.7K pull-up, SPI timing waveform distortion, data writing is abnormal Only after increasing the delay can the waveform return to normal! … Read more