Using RT-Thread on STM32L051 (1. New project)

After learning the basics of RT-Thread kernel, let’s use RT-Thread to implement a small application. Hardware platform: STM32L051C8 TCM310 (Enocean wireless chip) Software platform: RT-Thread Studio STM32CubeMX Product name: wireless temperature sensor Realization function: STM32L051 reads SHT21D temperature and humidity sensor data through I2C protocol, and then communicates with Enocean through serial port, according to […]

Read More

Use RT-Thread on STM32L051 (four, serial communication)

Application – Using RT-Thread on STM32L051 Part 4, cleverly using semaphores to handle serial communication. Table of contents foreword1. Description of Design Ideas2. Driver transplantationThird, the processing of semaphores3.1 Release the semaphore3.2 Get semaphore4. Basic test4.1 Acceptance test4.2 Serial port communication details __HAL_UART_ENABLE_IT HAL_UART_Receive_IT4.3 Send testFive, always pay attention to the size of RAMepilogue foreword […]

Read More

Internal Flash read and write operations based on STM32

This article mainly introduces how to write the various internal Flash reading and writing methods of STM32 and the functions of reading and writing long files. After reading this article, you can normally complete the Flash read and write operations. introduce STM32 FLASH Different models of STM32 have different FLASH capacities, the smallest is only […]

Read More

cm-level ultrasonic ranging system and complete code based on STM32F411

This project uses the HC-SR04 ultrasonic sensor and the STM32F411 development board to measure the distance of the target object with an accuracy of centimeters. The project BOM is as follows: STM32F411RE development board x1 HC-SR04 Ultrasonic Sensor x1 A few jumpers Among them, the HC-SR04 ultrasonic sensor can read the range of 2-400cm with […]

Read More

The price of ST single-chip microcomputer is rising faster than Shenzhen's housing price? ST will increase prices across the board from next year

Recently, ST suddenly issued a price increase notice. Once the news was issued, it caused a lot of forwarding. The notice stated that ST's raw material supply was insufficient due to the impact of the new crown epidemic, while facing rising costs and aggressive commercial terms, demand remained strong. Therefore, ST has decided to increase […]

Read More

Analysis of the main features and structural block diagram of STM32F1 ADC

Introduction to STM32F1 ADC ADC (analog to digital converter) is an analog-to-digital converter, which can convert analog signals into digital signals. According to its conversion principle, it is mainly divided into three types: successive approximation type, double integral type, and voltage-frequency conversion type. The ADC of STM32F1 is a successive approximation analog-to-digital converter. The STM32F103 […]

Read More

Pit in the process of robot construction and future improvement direction

Open the robot as a whole, and summarize the pits encountered during the construction of the robot and the future improvement direction. The shared files include structural design, program control, circuit design and other module related materials for your reference. Robot principle analysis According to the position and attitude data of the gyroscope, the robot […]

Read More

What are the opportunities and problems of domestic replacement for this kind of chip that is rushing around the world?

Without the MCU, we wouldn't deserve to be called "modern people." The MCU is not the Marvel Universe. As a necessity of modern life, MCU (Microcontroller Unit, also known as single-chip microcomputer) has long been integrated into human production and life, and is everywhere. Air conditioners, remote controls, smart chargers… Any electronic product that requires […]

Read More