STM32 uses a timer channel to control any IO to output the same PWM wave

Abstract: this blog introduces a method that STM32 uses a timer channel to control any IO to output the same PWM wave. The hardware platform used in this paper is STM32F407VET6. The codes of other types of platforms may be different, but the principles are general. Implementation principle: we all know that STM32 can directly output PWM wa ...

Posted by zuperxtreme on Sat, 20 Nov 2021 18:45:47 -0800

STM32F103 completes the data acquisition of AHT20 temperature and humidity sensor based on I2C protocol

1, I2C bus communication protocol 1. Introduction to I2C bus I2C is the abbreviation of inter integrated circuit, which reads as I-squared-C. It was proposed by Philips in the 1980s and developed to allow motherboards, embedded systems or mobile phones to connect low-speed peripheral external devices. I2C bus is a bidirectional synchrono ...

Posted by atulkul on Sat, 20 Nov 2021 01:05:21 -0800

Some problems about stm32 driving matrix keyboard and the alternative method of matrix keyboard (Zhenxiang)

Some problems about stm32 driving matrix keyboard and alternative methods of matrix keyboard About matrix keyboard For general buttons, I generally prefer interrupt mode to trigger. One is to save the resources of single chip microcomputer without having to scan it back and forth. Second, the interrupt is very efficient and easy to handle. Bu ...

Posted by $phpNut on Fri, 19 Nov 2021 20:52:24 -0800

[C language] an easy-to-use circular queue and use example (AT framework taking EC200/600 as an example)

1. Preface Previous: https://blog.csdn.net/ylc0919/article/details/111050124 It's been ten months since I said I would send the second generation framework. It's hard to have time to summarize the harvest during this period. After writing the first generation AT queue, I have many ideas. For example, can one AT queue manage multiple AT mod ...

Posted by webtailor on Fri, 19 Nov 2021 12:14:48 -0800

Getting Started with Python Web Crawlers

Python Web Crawler (1) Getting Started Libraries used: requestspip+BeautifulSoup4pip+tqdmpip+html5lib python version: 3.8 Compilation environment: Jupyter Notebook (Anaconda3) Tour: Chrome Knowledge involved: HTML Hypertext Markup Language , What is a crawl 1. Web Crawler (Web Crawler or Web Spider) It is a program that aut ...

Posted by Vince889 on Wed, 17 Nov 2021 09:13:43 -0800

ADC acquisition experiment

catalogue Test requirements: Experimental equipment: Experimental ideas: Experimental steps: Summary: Program source code: Test requirements: Collect 50hz AC through stm32ADC and display it through serial port Experimental equipment: Wildfire stm32MINI series with stm32f103RC chip Experimental ideas: Trigger ADC through Tim (time ...

Posted by Randuin on Tue, 16 Nov 2021 18:48:13 -0800

STM32F103 - timer encoder mode and advanced timer output complementary PWM signals

STM32F103 - timer encoder mode and advanced timer output complementary PWM signals When STM32 is just used, the encoder speed is calculated by using the input capture interrupt to obtain the motor speed. After a period of learning, it is found that the motor speed is obtained by using the input capture interrupt. When the motor speed is not hi ...

Posted by fred2k7 on Fri, 12 Nov 2021 14:59:58 -0800

Multibyte Read of EEPROM24C02 on I2C Bus

The multi-byte reading of EEPROM under I2C bus is not difficult, basically a little change on the basis of one byte reading, so let's review the function of reading a single byte and see what he means at each step. The read data explained here are all optional reads under EEPROM24C02: The time series is as follows The timing analysis is as fo ...

Posted by costamesakid on Fri, 12 Nov 2021 14:41:34 -0800

stm32+TB6612 drive DC motor

         Because the single chip microcomputer can not directly drive the motor, it is necessary to add a motor drive module between them. The L298N motor drive module was used in the previous article. Now we recommend a new motor drive module. It is much easier to use than L298N, and it takes up a small ...

Posted by Walle on Fri, 12 Nov 2021 13:57:31 -0800

C language learning notes - bit field

    in C language, Boolean bool variables are often used when operating data with only true and false states. If multiple states need to be observed at the same time, the operation efficiency of selection bits will be higher. 8 bits of a byte are used to represent 8 states respectively. It saves memory and is more efficient to process ...

Posted by a.beam.reach on Wed, 10 Nov 2021 10:52:26 -0800