STM32f4 application layer learning road (what should you pay attention to when learning STM MCU from zero basis? How to get started from a novice, what knowledge do you need to master? What are the MCU projects suitable for novices?)

STM32f4 application layer learning road

What should I pay attention to when learning STM MCU with zero basis?

How to get started with STM32 application layer from a novice, what knowledge do you need to master?

What are the MCU projects suitable for novices?

Reasons for reading:
1. This article basically lists the learning points for learning STM32 microcontroller application layer development

2. And give a wealth of project practice (the author of these projects have been completely done and successful)

3. The author also divides these items into basic requirements and improved requirements

4. Most of the project author codes are completely open source, and supporting learning articles are provided to readers (the article quality is guaranteed)

This article will give you the answer! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

My board: stm32f407zgt6 punctual atom mini version
Insert picture description here

Insert picture description here

Author: shawn
consult QQ: 965 798 711
2021.3.1
17:02
All Rights Reserved

Insert picture description here
//
//
The following are the necessary knowledge to learn, I suggest learning stm32 when microcontroller
with some of the items can be used to practice hand

//
//
1.GPIO
knowledge :
1. Know the resources on your development board
2. Experience the most basic library function configuration process
3. Distinguish the meaning of various configurations of pull-up and pull-down, push-pull output
4. Understand the multiplexing of pins on the board, and learn to check the data sheet
//
//

2. LED
knowledge points:
1. The first project of every electronic engineer is basically to light up his first LED
//
//

3. KEY
knowledge points:
1. Understand the detection principle of key presses
2. Understand the anti-shake mechanism
3. Understand the programming of continuous pressing and only pressing once

Improve the project:
1. Write
a link to my article for the 4*4 matrix keyboard driver by myself:
STM32f4 diary 7 external matrix keyboard use (4X4 matrix keyboard liberation board resources)
Insert picture description here

//
//

4. USART serial port (peripherals: HMI serial screen, HC-06 Bluetooth chip, CH340)
knowledge points:
1. Understand the meaning and characteristics of usart communication
2. Understand the code configuration
3. Understand the usart resources on your own board
4. Understand the communication protocol Write, understand the
common items of communication protocol :
1. Use the computer serial debugging assistant "open, close" command to control the flashing of the MCU light

Improve project:
1. HMI intelligent serial port screen and single-chip microcomputer communication

Give my article link
STM32f4 diary 4 HMI smart serial screen and single-chip serial port communication experiment (can control the flashing of the LED light on the single-chip by pressing the picture of the serial port screen)
Insert picture description here

2. The Android phone controls the Bluetooth chip, and then uses the Bluetooth serial port to control the flashing of the light on the MCU

//
//

5.
Knowledge points of TIM timer mode (OLED, LCD, serial screen) :
1. Understand what a timer is and what a timer can do
2. Understand the basic configuration process and basic functions of the timer for timing
3. Understand TIM as a whole Various modes, powerful mode settings, such as encoder mode, Hall sensor mode, coordination with DMA, input capture mode
4. Understand the RTC precise clock

Common items:
1. The first clock in life, accurate to the second, with OLED display, you can use the buttons to adjust the current time, but this effect is not very good, not cool enough, beautiful

2. Understand the principle of touch screen and code writing, and use LCD to display the second clock in life (in addition to basic display and time adjustment functions, free graffiti can be achieved in 1/3 of the screen)

Improve the project:
1. Learn the serial screen HMI, use RTC to accurately time the serial screen beautiful display with WS2812 dazzling display
//
//

6.PWM
(peripherals: car chassis, 3 infrared sensors, L298N2, lithium battery 12V, WS2812, passive buzzer, HC-06 Bluetooth chip)
Knowledge points:
1. Know what is PWM wave, frequency, account Air ratio concept
2. Understand the basic configuration of TIM pwm mode, understand how to formulate a fixed frequency, duty cycle PWM wave
3. Understand the application of PWM wave engineering, used to adjust the speed of the motor and other
basic items:
1.
Ordinarybreathing lightRequirements: From dark to light in one second, from light to dark in the next second

2. life, the first car key projects, draw the focus of
the general requirements :
to achieve the car forward and backward, turn left, turn right

Give my article link
STM32f4 diary 3 diy car experiment (car experiment one: drive the car in a circle, go straight, go backwards)

Improve requirements : the
car realizes infrared tracing and
Bluetooth mobile app control

Give my article link
STM32f4 diary 8 four-wheel three-way tracking car experiment (car experiment two: infrared module detection and tracking (turn left, turn right, forward, stop))
Insert picture description here

3...WS2812 light array control (using the knowledge of DMA to make shiny light bulbs and be the most beautiful boy in the dormitory)
Insert picture description here

4. Making electronic music
with passive buzzer Understand the difference between passive buzzer and active buzzer, and experience the joy of passive buzzer making music

//
//
7. Input capture (motor with AB phase encoder)
common project:
set two timers, one output PWM wave, one capture output PWM wave, get frequency, duty cycle and other information
My article link
STM32f4 Diary 2's pwm wave input capture experiment (you can connect to a signal generator, or you can combine it with the previous article to capture yourself)

Improve project:
understand the function and concept of
AB phase encoder , capture the frequency of AB phase encoder, detect motor speed (how many revolutions per second), position (how many angles)

Give my article link
STM32f4 Diary 5 AB phase encoder speed measurement experiment (TIM timer encoder mode use)
Insert picture description here

Improve again:
PID algorithm controls the motor speed and fixes the value you want.
PID algorithm controls the motor position and fixes the angle you want.

Give my article link
STM32f4 diary 6 the most basic PID teaching (using the encoder mode of the TIM timer to adjust the motor speed in real time to reach the required value)
Insert picture description here

//
//
8. ADC DAC
common items:
measure voltage and
do signal output (square wave, triangle wave, sine wave)

Improve project:
single signal generator and signal cycle reproduction device
Insert picture description here

//
//
9.SPI
(peripheral: LD3320 kit, steering gear)
1. LD3320 offline voice recognition (your personal voice assistant)
Insert picture description here

My article link
STM32f4 diary 9 LD3320 speech recognition (your personal voice assistant MICRO)

2. The dormitory voice control light-off artifact
(solution 1: voice recognition plus a steering gear to achieve smart light-off program is higher)
(solution 2: can be achieved through Bluetooth, you can choose a cheaper 51 single-chip microcomputer)

//
//
10. IIC
common projects:
1. Drive OLED to display Chinese
Insert picture description here

//
//
11. DMA
common items:
1. Cooperate with PWM to drive WS2812 light array
Insert picture description here
//
//

Other
1. Soldering DSQ oscilloscope
Insert picture description here
Insert picture description here

2. The use of multimeter
Insert picture description here

//
//
To be continued! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
As the author learns more projects, this article will be updated from time to time, so stay tuned

//
//

My board: mini version stm32f407zgt6 punctual atomic
Author: shawn
consult QQ: 965 798 711
2021.3.1
17:02
All Rights Reserved

Guess you like

Origin blog.csdn.net/qq_51564898/article/details/114263350
Recommended