Serial port IDLE interrupt + DMA to accept variable length data
Introduction: for the serial port to receive some variable length data, we must face a problem: how to judge whether a frame of data reception is completed? RXNE non null interrupt is usually used in combination with simple data protocol. Frame header and frame tail are added to the data. Judge whether the frame tail is received in the program ...
Added by philwhite on Tue, 15 Feb 2022 22:03:22 +0200
Application of I2C protocol of STM32F103 (reading and writing EEPROM)
outline
This paper mainly records some personal opinions on learning I2C protocol, and realizes STM32 to read and write EEPROM data based on I2C protocol
Statement: due to limited personal ability, this article is only personal learning notes, and I hope to point out any mistakes
I2C characteristics
Support device bus, that is, multiple d ...
Added by lucasw on Mon, 14 Feb 2022 17:23:56 +0200
Intelligent deodorizer -- embedded development
1, Product creation
1. Functional requirements
APP end functiondescribeMode selectionPreservation mode and deodorization modeDeodorization timeYou can define the deodorization working time of the equipmentDeodorization gear adjustmentStrong, medium and weak grades are supportedLow power alarmLow battery report, APP end alarm
Device end funct ...
Added by mits on Mon, 14 Feb 2022 10:59:42 +0200
[punctual atom MP157 serial] Chapter 24 LED driving experiment under the device tree - extracted from [punctual atom] STM32MP1 embedded Linux Driver Development Guide v1 seven
1) Experimental platform: punctual atom STM32MP157 development board 2) Purchase link: https://item.taobao.com/item.htm?&id=629270721801 3) Full set of experimental source code + manual + video download address: http://www.openedv.com/thread-318813-1-1.html 4) Official station B of punctual atom: https://space.bilibili.com/394620890 5) Punc ...
Added by michibk on Sat, 12 Feb 2022 07:12:32 +0200
STM32_ Ultrasonic ranging
Principle of ultrasonic ranging
Using sound ranging, the speed of sound in the air is 340m/s(15 ℃) When the sound propagates, it will bounce back if it encounters an obstacle. The distance from the transmitting end to the obstacle can be calculated by counting the rebound time
S=v*(t/2)
Ultrasonic module instruction
In the single chip m ...
Added by many_pets on Sat, 12 Feb 2022 07:10:46 +0200
[punctual atom MP157 serial] Chapter 26 Linux buzzer experiment - extracted from [punctual atom] STM32MP1 embedded Linux Driver Development Guide v1 seven
1) Experimental platform: punctual atom STM32MP157 development board 2) Purchase link: https://item.taobao.com/item.htm?&id=629270721801 3) Full set of experimental source code + manual + video download address: http://www.openedv.com/thread-318813-1-1.html 4) Official station B of punctual atom: https://space.bilibili.com/394620890 5) Punc ...
Added by CG_dude on Sat, 12 Feb 2022 06:32:07 +0200
RT-THREAD Kernel Quick Start Mailbox, Message Queue, Signal
Catalogue of Series Articles
RT-THREAD Kernel Quick Start (1) Threads
RT-THREAD Kernel Quick Start (2) Timer
RT-THREAD Kernel Quick Start (3) Semaphores, Mutexes, Events
Preface
This is the fourth in the Quick Start series, the last to last in the Programming section, followed by a Memory Management and Interrupts section, which is t ...
Added by switchdoc on Sat, 12 Feb 2022 05:18:34 +0200
ESP8266, DHT11, fan, heating plate and steering gear module are mixed, and the upper computer is used to control the movement of fan, heating plate and steering gear
Mixed use of various modules
(1) Measurement of temperature and humidity; DHT11 (2) Display of temperature, humidity and other parameters; LCD screen (3) Setting of alarm data (key); EXIT interrupt service function (4) Temperature and humidity con ...
Added by adammc on Fri, 11 Feb 2022 21:16:09 +0200
< STM32 learning "-- running lantern experiment
1. Hardware
The hardware schematic diagram is as follows: The hardware schematic diagram is the hardware circuit of punctual atom stm32zet6 elite version. Different development boards should be based on the actual circuit. First of all, to make the led light up, there must be a voltage difference between the two sides of the led lamp. As can b ...
Added by farsighted on Sun, 06 Feb 2022 05:02:26 +0200
Detailed explanation and application of [005] [RT-Thread learning notes] semaphore
RT-Thread version: 4.0.5 MCU model: STM32F103RCT6 (ARM Cortex-M3 kernel)
1 Synchronization and Mutual Exclusion
First add a few concepts:
Execution Unit: Determined by the current hardware platform and the operating system it runs. For RT-Thread and STM32, the execution units are threads and interruptsCritical Zone: Multiple execut ...
Added by mcollyns on Sat, 05 Feb 2022 20:24:58 +0200