yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
WiFi Camera Module📖
1.Configure WiFi camera on PC
  • Serial port configuration WiFi instructions
2.Configure WiFi camera on MCU
  • 1. jetson
  • 2. microbit
  • 3. STM32
  • 4. Raspberry Pi
3.APP control car
1. 4wd_uno car
  • 4wd_uno car
2. pico car
  • pico car
4. tinybit
  • 4. tinybit
5. Super:kit
  • A.Mobile shooter
  • B.Pretty car
  • C.Clip robot
  • D.Proficient carrier
  • E.Skip car
  • G.Spider
3. STM32 car
  • STM32 car
4.APP control PTZ
  • 1. 4wd_uno car (with PTZ)
  • 2. pico car (with PTZ)
  • 3. STM32 car (with PTZ)
  • 4. superkit-control servo PTZ
5.AI Vision
  • 1. AI visual recognition mode switching
  • 2. Cat and dog detection
  • 3. Face Detection
  • 4. Color recognition
  • 5. Person recognition
  • 6. QR code recognition
  • 7. Implementation of visual line inspection solution
Download
  • Annex
  • Code
  • PTZ Assembly Steps
Download ZIP

Welcome to WiFi Camera Module repository

3. STM32

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

  • STM32F103 series microcontroller
  • wifi camera

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
  • Download the program of this project to the stm32 board
  • Open the serial port assistant on the computer, open the computer and detect the stm32 serial port, as shown below image-2024022200003
  • After pressing the reset button of stm32, the serial port assistant will print out the corresponding information. image-2024022200004
  • Wait for about 30 seconds and the corresponding wifi information will be printed. If the AP+STA mode is turned on, then the IP addresses of the AP+STA will have the correct IP address (this source code is in this mode) image-2024022200005

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
  • First open the NetAssist.exe software on your computer and make sure the computer and camera are on the same network segment.

  • Then connect according to the obtained IP address. For example, the obtained sta_ip is: "192.168.2.199"/ap_ip is: "192.168.4.1"

  • Then there are 2 ways

    1. Connect the computer to the camera's spontaneous wifi, and then connect through the ip 192.168.4.1. The port number is 8888 and cannot be changed. image-2024022200012
    2. The computer is connected directly through the IP address 192.168.2.199. The port number is 8888 and cannot be changed. The following figure is a diagram of a successful connection. image-2024022200013
  • Then by sending information, the terminal of the serial port assistant will also print relevant information image-2024022200014

  1. Watch the camera picture
  • Open the browser on your computer or mobile phone

  • Then watch the video through the obtained IP address. For example, the obtained sta_ip is: "192.168.2.199"/ap_ip is: "192.168.4.1"

  • Then you can watch the live camera footage in 2 ways

    1. Connect the computer to the camera's spontaneous wifi, and then enter http://192.168.4.1:81/stream through the browser to access the camera screen
    2. Directly enter http://192.168.2.199:81/stream on your computer to access the camera screen. image-2024022200015

Introduction to the main program source code of wifi configuration

xxxxxxxxxx
#define STA_WIFI_SSID "Yahboom2"
#define STA_WIFI_PD "yahboom"
​
#define AP_WIFI_SSID "ESP32_WIFI_TEST"
#define AP_WIFI_PD ""

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

  • STA_WIFI_SSID: The name of the wifi to be connected, change it according to your own situation
  • STA_WIFI_PD: The wifi password to be connected, change it according to your own situation
  • AP_WIFI_SSID: The wifi name of the wifi camera's spontaneous hotspot, change it according to your own situation
  • AP_WIFI_PD: The wifi password of the wifi camera's spontaneous hotspot, change it according to your own situation

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

xxxxxxxxxx
#define MODE_AP 0
#define MODE_STA 0
#define MODE_AP_STA 1

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

microbit
Raspberry Pi

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文