yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
ESP32 WiFi Camera Lite📖
1.ESP32 camera basic course
  • 1.Development environment
  • 2.Compile and use routine
  • 3.How to update firmware
2.Configure camera on PC
  • Configure camera on PC
3.View video on APP
  • View video on APP
4.Configure camera on MCU
IIC
  • Arduino
  • Microbit
  • STM32
  • MSPM0G3507
  • MSPM0G3519new
  • PICO
  • Raspberry Pi
  • Jetson
  • RDK X5
Serial Port
  • Arduino
  • Microbit
  • STM32
  • MSPM0G3507
  • MSPM0G3519new
  • PICO
  • Raspberry Pi
  • Jetson
  • RDK X5
5. APP remote control servo gimbal
  • 1. STM32 drives the servo gimbal
  • 2.Arduino drives the servo gimbal
  • 3.Pico
  • 4.MSPM0G3507 drives the servo gimbal
  • 5.MSPM0G3519 drives the servo gimbalnew
  • 6. Microbit drives the servo gimbal
  • 7. Raspberry Pi drives the servo gimbal
  • 8. Jetson drives the servo gimbal
  • 9.RDK X5 driving servo gimbal
6. Expansion tutorials
  • ESP32
  • Robot car
Download
  • RemoteCtrl_APP(iOS_Android)
  • 3D_Model_File
  • Code
  • Software_Tools
  • Module_fireware
  • Protocols_Hardware
Download ZIP

Welcome to ESP32 WiFi Camera Lite repository

Configure camera on PC

Configure camera on PC

Note: The camera has been burned with factory firmware. If you have not burned other AI single-instance firmware, you do not need to burn the factory firmware again. The factory firmware of the camera only provides bin file burning, and does not provide program source code.

1. esp camera connected to computer

Connect the computer and esp32 camera via type-c data cable,

image-20250113145509654

2. Serial port configuration

Baud rate 115200, no parity check, no hardware flow control, 1 stop bit

If you use the serial port assistant configuration, you need to remove the automatic sending of new lines (additional bits) when sending commands

As shown in the figure: The following figure indicates that the factory firmware has been burned.

image-20250113145641243

2.1 Setwifi command in STA mode (mode for connecting to LAN)

CommandDescriptionExampleRemarks
sta_ssid:wifi name to connectsta_ssid:yahboomyahboom: is the wifi to connect
sta_pd:wifi password to connectsta_pd:1234567812345678: is the wifi password to connect

image-20250113145934294

image-20250113150232637

Notes

  1. Whether it is sta_ssid or sta_pd, it must be followed by an English character such as a comma (,), colon (:), period (.), etc.**
  2. When the wifi to be connected does not have a password, just send sta_pd: once.
  3. The above command will return OK if it is successful. If it does not return any information, check the serial port connection.
  4. When sending the sta_ssid: command, it will return fail,ssid is null!, indicating that the connected wifi name cannot be empty.
  5. The command can be sent in all uppercase or lowercase.
  6. The wifi name and password cannot exceed 30 characters in length, otherwise the configuration fails.
  7. The wifi name and password cannot contain Chinese characters.
  8. Every time the wifi password is changed, it will be automatically reset. If you only change the wifi name, you need to manually power off and reset

2.2. Configure the wifi command in AP mode (module self-heating point mode)

CommandDescriptionExampleRemarks
ap_ssid:The wifi name to be setap_ssid:my_wifimy_wifi: the wifi you want to set
ap_pd:the wifi password you want to setsta_pd:1234567812345678: the wifi password you want to set

Use the default hotspot name. You don't need to set a password.

Notes

  1. Whether it is ap_ssid or ap_pd, it must be followed by an English character such as a comma (,), colon (:), period (.), etc.**
  2. When the wifi you want to set has no password, you only need to send ap_pd: once.
  3. The above command will return OK if it is successful. If it does not return any information, check the serial port connection.
  4. When sending the ap_ssid: command, it will return fail,AP_Name is null!, indicating that the wifi name cannot be empty.
  5. The command can be sent in all uppercase or lowercase letters.
  6. The wifi name and password cannot exceed 30 characters in length, otherwise the configuration will fail.
  7. The wifi name and password cannot contain Chinese characters.
  8. The wifi password will be automatically reset every time it is changed. If you only change the wifi name, you need to manually power off and reset

2.3 Configure wifi mode

CommandDescriptionExampleRemarks
wifi_mode:Configure wifi modewifi_mode:20: AP mode 1: STA mode 2: AP+STA mode

image-20250113150818977

Notes

  1. wifi_mode must be followed by an English character such as comma (,), colon (:), period (.), etc.
  2. wifi_mode can only be set to 3 modes. If a negative number is passed in, the default is AP mode. If the number is greater than 2, the default is AP+STA mode

2.4 Set AI mode

CommandDescriptionExampleRemarks
ai_mode:Configure AI recognition modeai_mode:00: Normal mode 1: Cat and dog detection 2: Face detection 3: Color recognition 4: Face recognition 5: QR code recognition

image-20250113150910572

The module will be reset after changing the ai mode.

Notes

  1. ai_mode must be followed by an English character such as comma (,), colon (:), period (.), etc.
  2. ai_mode can only set 5 modes in total. If an illegal number is passed in, the default is normal mode.
  3. After each mode change, the image transmission module will automatically restart. After the module restarts successfully, refresh the web page or mobile app to re-enter
  4. ai_mode: You can also use all-capitalized English AI_MODE:
  5. Factory firmware mode: The default is normal mode.
  6. In face recognition mode, the type-c serial port configuration and network transparent transmission functions will be invalid. The main reason is that there is not enough space to create tasks. If you need to use the failed function, just don't use the face recognition mode. The face detection mode is for normal use.

2.5 Read IP address

sta_ipQuery the IP address of sta modesta_ipReturn the IP address connected to the LAN
(such as sta_ip:192.168.2.111)
ap_ipQuery the IP address of ap modeap_ipReturn the IP address of the wifi mode
(such as ap_ip:192.168.4.1)

image-20250113151038711

image-20250113151052654

3. Browser to view the screen

3.1 LAN remote viewing

Now that we know the sta_ip (192.168.2.105) obtained by the module connecting to the LAN, we can use this ip to view the real-time screen on the network.

image-20250113151225572

Click start stream to view the screen,

image-20250113151254992

Because the face detection mode (ai_mode:2) has just been set, the face can be recognized normally when it is placed in front of the camera,

image-20250113151457019

3.2 Remote viewing of module hotspot

Connect the computer to the module's hotspot

image-20250113151611205

Open the browser and enter the IP address 192.168.4.1, which is the fixed address of the hotspot.

image-20250113151649814

Click start stream to view the screen,

image-20250113151702838

Because the face detection mode (ai_mode:2) has just been set, the face can be recognized normally when it is placed in front of the camera, (other ai modes can be configured by yourself)

image-20250113151457019

How to update firmware
View video on APP

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