stm32 configure camera

stm32 configure camera1. Experiment preparation2. Wiring diagram3. Experimental steps and experimental resultsIntroduction to the main program source code of wifi configuration

1. Experiment preparation

2. Wiring diagram

STM32F103wifi camera
PA2RX
PA3TX
GNDGND
5V5V

image-2024022200001 image-2024022200002

stm32 can also be connected to the computer, and you can use the ttl module. The stm32 used in this tutorial directly encapsulates the ttl module, and you can connect it to the computer through the USB interface Connection between STM32 and ttl module

STM32F103ttl module
PA9RX
PA10TX
GNDGND
5V5V

 

3. Experimental steps and experimental results

  1. Check whether the program is running normally

If only one mode is enabled, then sta_ip:null or ap_ip:null When sta_ip:null occurs, you need to check whether the connected wifi name and password are correct. If correct, whether only the AP mode is turned on and the STA mode is not turned on.

  1. Transparent transmission of data based on IP connection
  1. Watch the camera picture

Introduction to the main program source code of wifi configuration

The above constants are defined in the esp32_wifi.c source code of this project

If you want to change the wifi mode, this tutorial defaults to dual mode coexistence, that is, STA+AP mode Select the mode under the file esp32_wifi.h

0: represents canceling this mode 1: represents selecting this mode You can only choose one mode, not at the same time, otherwise the IP address will not be queried