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

4. Raspberry Pi

Raspberry Pi configuration camera

Raspberry Pi configuration camera1. Experiment preparation2. Experimental wiring3. Open the Raspberry Pi hard serial port (this step is not required for Raspberry Pi 5)4. Experimental steps and experimental results5. Analysis of wifi configuration source code

1. Experiment preparation

  • raspberry pie
  • wifi camera

2. Experimental wiring

as the picture shows image-2024022200001 image-2024022200002

3. Open the Raspberry Pi hard serial port (this step is not required for Raspberry Pi 5)

  • Configure the Raspberry Pi serial port first, because the hard serial port of the Raspberry Pi is used for Bluetooth, and the mini serial port is unstable to use. This experiment uses the hard serial port. Raspberry Pi pin diagram image-2022120500001
  1. First perform the following operations to map the serial port Enter sudo raspi-config in the terminal
  2. image-2022120500008
  3. image-2022120500009
  4. image-2022120500010
  5. image-2022120500011
  6. Set the hardware serial port to GPIO serial port and edit /boot/config.txt with root permissions That is, the command is:
xxxxxxxxxx
sudo nano /boot/config.txt

After opening the file, add two lines at the end dtoverlay=miniuart-bt force_turbo=1 image-2022120500013 Save: Ctrl+O, exit Ctrl+X.

  1. After saving and exiting, restart the Raspberry Pi. You can see that the serial ports have been swapped. image-2022120500012 Reference link: https://blog.iyatt.com/?p=1817

4. Experimental steps and experimental results

  1. Open a new Raspberry Pi terminal and send the source code of this experiment to the Raspberry Pi.
  2. Execute the following instructions
xxxxxxxxxx
python3 PI_SET_WIFI.py
  1. If it is opened successfully, the following results will appear image-2024022200003 This information is related to configuring the camera wifi mode, reading version information and other related operations.
  2. 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-2024022200004 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.
  3. Transparent data transmission 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 the information, the Raspberry Pi terminal will also print the relevant information image-2024022200014

  1. View camera footage
  • 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

5. Analysis of wifi configuration source code

xxxxxxxxxx
Sta_wifi_ssid = "Yahboom"
Sta_wifi_pd = "yahboom"
​
AP_wifi_ssid = "ESP_WIFI_TEST"
AP_wifi_pd = ""
​
wifi_mode = '2'
  • Sta_wifi_ssid: The wifi name of sta is the name of the wifi to be connected
  • Sta_wifi_pd: sta's wifi is the password of the wifi to be connected
  • AP_wifi_ssid: The name of the wifi camera's spontaneous hotspot
  • AP_wifi_pd: Password for wifi camera spontaneous hotspot
  • wifi_mode: Working mode of wifi camera '0': AP mode '1': STA mode '2': AP+STA mode
STM32
4wd_uno car

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/中文