Skip to content

pan tilt ESP32 CAM

Pan Tilt ESP32 Cam Web Streaming

Overview

In this project, we’ll attach the ESP32-CAM to a pan and tilt stand with two SG90 servo motors. With a pan and tilt camera stand, you can move the camera up, down, to the left, and to the right—this is great for surveillance. The ESP32-CAM hosts a web server that shows video streaming and buttons to control the servo motors to move the camera.

Pan tilt ESP32 Cam Project

Parts Required

For this project, we’ll use the following parts:

Steps

1) Pan and Tilt Stand and Motors Assembly

Pan tilt ESP32 Cam Project

2) Connecting Servo Motors to ESP32 and Power Supply

Servo Connection

3) ESP32 CAM Case Assembly

4) ESP32 CAM Programming

  • FTDI <=> ESP32 CAM Wiring
    Wiring Diagram

  • Software and Code Setup:

    1. Install Arduino IDE
    2. Download the code
    3. Download libraries & ESP32 board:
      • Open pan_tilt_esp32_cam sketch in Arduino IDE
      • Go to Preferences in the File menu
        Preferences
      • Paste this URL in Additional boards manager URLs: https://dl.espressif.com/dl/package_esp32_index.json
        Boards Manager
      • Go to Boards Manager, search for esp32, and install version 1.0.6
        ESP32 Board
      • Go to Library Manager, search for esp32Servo, and install version 0.11.0
        Servo Library
      • Setup the ESP32 CAM board
        Board Setup
      • Upload the code to the connected ESP32 board using the FTDI module
        Code Upload

5) Web Application

  • After uploading the code, remove the jumper wire
    Jumper Removal
  • Press the reset button
    Reset Button
  • Open the IP address in a browser connected to the same Wi-Fi network
    Web Application Interface 1 Web Application Interface 2