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

7. Raspberry Pi drives the servo gimbal

Raspberry Pi remote control servo gimbal

Note: ESP32 camera needs to be burned with factory firmware. If you have not flashed the firmware after receiving the ESP32 camera, you do not need to do so. The factory default firmware is used

1. Experimental preparation

  • ESP32 camera

  • Raspberry Pi 5 development board

  • 2-DOF gimbal

  • 24-channel servo driver board

  • USB to TTL

2. Wiring diagram

Note: Because Raspberry Pi 5 has only one serial port, an external USB to TTL is required. Because of insufficient voltage, ESP32 camera and 24-channel servo driver board need additional power supply via type-c data cable

Raspberry Pi motherboard ----> USB to TTLESP32 camera
TXRX
RXTX
GNDGND
NC5V
Raspberry Pi motherboard24-channel servo driver board
GPIO14RX
GPIO15TX
GNDGND
5V5V
24-channel servo driver boardServo
s5Vertical servo
s6Horizontal servo

Physical connection diagram:

image-20250121180921763

Pin diagram:

image-20250121180938966

3. Experimental steps and experimental results

Quick method: You can directly connect to the wifi opened by esp32. The name of this experiment is ESP32_WIFI_TEST. Then the IP address camera information of the mobile app is 192.169.4.1. You can use the app to control the servo

  1. Upload the provided program source code "pi_servo.py" file to your own Raspberry Pi motherboard.

  2. The official image of the Raspberry Pi motherboard does not open the serial port by default. Now you need to open the serial port. Enter in the terminal,

xxxxxxxxxx
sudo srpi-config

image-20250121181109797

Select Interface Options,

image-20250121181128833

Select I6 Serial Port, press Enter to enable, and then restart the Raspberry Pi to use it.

image-20250121181151266

  1. Open the code just uploaded, and change it to the name and password of the wifi you want to connect to. You can also change the name of the hotspot and the corresponding wifi mode.

image-20250114190657145

  1. Run the program in the terminal, and it will return the ip address of the current network connection and the address of the hotspot.

xxxxxxxxxx
python3 pi_servo.py

image-20250121181342027

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

  • On the login page, set it according to the IP obtained by the serial port assistant. If the IP obtained by the serial port assistant is "192.168.2.50", then the configuration is as follows

image-20250122112346445

  • Then click login directly

  • (Optional) If you want to connect to the hotspot of the wifi camera, the IP address must be set to 192.168.4.1, as shown in the figure

image-20250122112357249

  • When the IP address is configured correctly and connected successfully, you can control the servo gimbal through the app console page

Horizontal screen

image-20250122112404914

Note: Every time you restart the app, you need to click the exit button in the upper right corner, then exit and reconfigure the IP address information before logging in

Microbit drives the servo gimbal
Jetson drives the servo gimbal

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