Detailed Explanation of CAN Communication Function and Source Code for STM32F407 Microcontroller

Detailed Explanation of CAN Communication Function and Source Code for STM32F407 Microcontroller

Click the blue text Follow us 1. Overview CAN stands for Controller Area Network, which is an ISO standardized serial communication protocol and one of the most widely used field buses internationally. CAN communication uses only two signal lines, namely CAN_High and CAN_Low. The CAN controller determines the bus level based on the potential difference … Read more

Detailed Explanation of GPIO Operations for 32-bit Microcontrollers

Detailed Explanation of GPIO Operations for 32-bit Microcontrollers

32 Single Chip Microcontroller I O When it comes to the IO of the 32-bit microcontroller, taking the F1 series as an example, we first need to mention: 1 initialization function: void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct); 2 functions to read input levels: uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); uint16_t GPIO_ReadInputData(GPIO_TypeDef* GPIOx); 2 functions to read output … Read more

Guide to Deploying Lightweight AI on STM32: Making Microcontrollers “Smart” with TinyFlow

Guide to Deploying Lightweight AI on STM32: Making Microcontrollers "Smart" with TinyFlow

This guide covers hardware selection, model optimization, toolchain operations, code implementation, and debugging techniques, using the STM32 series microcontrollers as an example: 1.Hardware Selection and Configuration (1)Clarify Requirements Computational Requirements: Simple classification tasks (e.g., binary classification of sensor data):Cortex-M0+/M3 (e.g., STM32G0/F1) are sufficient. Complex tasks (image recognition, speech processing): Choose models with hardware acceleration (e.g., … Read more

Remote Monitoring of Temperature and Humidity Using DHT11 with STM32 and LCD1602 Display in Proteus Simulation Design

Remote Monitoring of Temperature and Humidity Using DHT11 with STM32 and LCD1602 Display in Proteus Simulation Design

Remote monitoring of temperature and humidity using DHT11 with STM32 and LCD1602 display in Proteus simulation design (Simulation + Program + Design Report + Explanation Video) Simulation diagram in Proteus 8.9 Compiler: Keil 5 Programming Language: C Design Number: C0118 1. Main Functions Temperature and humidity monitoring system based on STM32 microcontroller with LCD1602 display … Read more

Methods for Reading Data from the ICM-40609-D Sensor Using STM32 Microcontroller

Methods for Reading Data from the ICM-40609-D Sensor Using STM32 Microcontroller

The ICM-40609-D is a high-performance six-axis MEMS sensor chip that integrates a 3-axis accelerometer and a 3-axis gyroscope, specifically designed for the drone market. It can replace previous models such as the ICM-42688, ICM-20602, and MPU6500. This chip is manufactured using advanced MEMS technology, featuring a compact size, low power consumption, and high accuracy. Its … Read more

STM32FreeRTOS: A Powerful Solution for Implementing Real-Time Operating Systems on Arduino

STM32FreeRTOS: A Powerful Solution for Implementing Real-Time Operating Systems on Arduino

In embedded system development, real-time operating systems (RTOS) are becoming increasingly important. The STM32FreeRTOS library provides Arduino users with an easy way to implement RTOS functionality. This article will delve into the features and usage of STM32FreeRTOS, allowing you to quickly get started with this powerful development tool. What is STM32FreeRTOS? STM32FreeRTOS is a library … Read more

What to Do When the External Reference Voltage of the MCU ADC Changes?

What to Do When the External Reference Voltage of the MCU ADC Changes?

This article is the second in a series discussing peripheral modules of microcontrollers, focusing on how to improve ADC conversion accuracy.In this article, I will summarize the understanding of the reference voltage for ADCs, which many engineers are not very clear about, especially in scenarios where the ADC is used with a battery directly powering … Read more

Review of Domestic Alternatives to STM32 (3)

Review of Domestic Alternatives to STM32 (3)

Last week, the embedded ARM article “With the Soaring Prices of STM32, Reviewing Domestic Alternatives to STM32” received widespread attention. At the request of readers, embedded ARM will continue to introduce domestic products that can replace STM32.Today, we present the products that can perfectly replace STM32: the HK32F103VET6 and HK32F030M from Hangshun, the latter being … Read more

Common C Language Knowledge Points in STM32

Common C Language Knowledge Points in STM32

The C language is essential foundational knowledge in microcontroller development. This article lists some basic C language knowledge points encountered while learning STM32, hoping to be helpful to everyone. 01 Bit ManipulationNext, we will explain several bit operators and then discuss techniques for using bit manipulation. The C language supports the following six bit operations:Six … Read more

Differences Between 32-bit MCUs: ESP32, GD32, and STM32

Differences Between 32-bit MCUs: ESP32, GD32, and STM32

If you don’t want to miss my updates, remember to check the public account in the upper right corner and set it as a star, and take down the stars to give to me. 01 Introduction STM32: A product released by STMicroelectronics on June 11, 2007, it is a 32-bit microcontroller. GD32: A product released … Read more