stm32 development board car and camera

stm32 development board car and 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
PD5RX
PD6TX
GNDGND
5V5V

as the picture shows: image-2024022200001

Wiring of servo gimbal

image-2024022200015

3. Experimental steps and experimental results

Shortcut method: You can directly connect to the wifi opened by esp32. In this experiment, the name is ESP32_WIFI_TEST, and then the ip address camera information of the mobile app is 192.169.4.1 to control the car

  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 one mode of AP is turned on and the STA mode is not turned on.

  1. Use the app to control the movement of the car. After installing the "ESP32Cam" app, open it.

Horizontal screen image-2024022200014

Introduction to the main program source code of wifi configuration

The above constants are defined in the esp32_wifi.c (standard library)/bsp_wifi.c (HAL library) 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