Back
ESP32-CAM Pan Tilt Camera
Smart Surveillance System

ESP32-CAM Pan Tilt Camera

A wireless surveillance system powered by ESP32-CAM featuring live video streaming, pan-tilt servo control, LED flash brightness adjustment, and browser-based operation.

ESP32-CAM Live Streaming
Pan/Tilt Servo Control
Web UI Browser Control

Project Overview

This project uses an ESP32-CAM module to create a compact wireless surveillance system capable of streaming live video directly to a web browser. Users can remotely control camera movement through pan and tilt servos.

The system includes a built-in web dashboard featuring live video streaming, LED flash brightness control, image rotation, horizontal flip, vertical flip, and real-time servo positioning.

View GitHub Repo

Core Hardware Modules

NodeMCU ESP8266 Wi-Fi processor managing sensor inputs and cloud synchronization.
MFRC522 RFID Contactless proximity validation for authorized access tokens.
HC-SR04 Ultrasonic Precision sonar distance checks for vehicle detection.
SG90 Servo Motor Mechanical barrier control for physical gate actuation.

Project Resources

ESP8266 Firmware Motion detection firmware featuring ultrasonic sensing, visitor counting, LED indication, NTP time synchronization, and Twilio WhatsApp alert integration.
Hardware Connections Complete wiring guide for NodeMCU ESP8266, HC-SR04 Ultrasonic Sensor, LED indicator, power connections and GPIO mapping.

Pin Configuration

Component NodeMCU Pin
HC-SR04 TRIG D1 (GPIO5)
HC-SR04 ECHO D2 (GPIO4)
LED Indicator D5 (GPIO14)
VCC VIN
GND GND

Project Source Codes

1. ESP32-CAM Streaming Firmware

Controls live camera streaming, pan-tilt servos, WebSocket communication, and flash brightness control.

Download ESP32-CAM Code
View ESP32-CAM Source Code

                

2. Web Control Dashboard

Browser dashboard with live streaming, pan, tilt, brightness, rotate and flip controls.

Download Dashboard
View Dashboard Source Code