Перейти к содержимому

How to make CCTV camera using ESP 32 camera?

Robotics with Riaan

0:00 / 0:00

How to make CCTV camera using ESP 32 camera?

217 просмотров · 12 дней назад
Robotics with Riaan
11 подписчиков
217 просмотров · 12 дней назад
ESP32-CCTV — Professional Standalone CCTV System Build a fully self-contained, standalone CCTV security camera using the ESP32-CAM AI-Thinker / OV2640 and a PIR motion sensor. This project creates its own secure, hidden Wi-Fi network, streams live video, captures motion-triggered photos with LED flash, and stores them locally on a microSD card. 🔑 Key Features Self-Contained Wi-Fi Access Point: Operates without a router. Creates a dedicated hidden network ESP32-CCTV. Fixed MAC Address: Prevents connected devices from recognizing the camera as a new network upon every reboot. Live Video Streaming: Built-in MJPEG stream server accessible via browser http://192.168.4.1:81/stream. Motion Detection & Auto-Capture: Triggers high-res photo capture with LED flash using a PIR sensor 30s warmup, 10s cooldown. MicroSD Storage 1-Bit MMC Mode: Saves JPEG photos locally while keeping GPIO pins free for sensors. Web Gallery & Controls: Password-protected dashboard for live view, manual photos, motion toggles, system stats, image downloads, and deletion. 🛠️ Hardware Required Development Board: ESP32-CAM AI-Thinker with OV2640 module PIR Motion Sensor: Connected to GPIO13 Flash LED: Built-in / GPIO4 Storage: MicroSD Card formatted for SD_MMC mode 🌐 Default Access & Credentials Wi-Fi SSID: ESP32-CCTV Hidden Network Wi-Fi Password: 12345678 Web Dashboard: http://192.168.4.1 Web Login Username: admin Web Login Password: cctv123 ⚙️ Code Line Numbers for Editing Credentials Wi-Fi SSID Name: Line 60: const char* AP_SSID = "ESP32-CCTV"; Wi-Fi Access Point Password: Line 62: const char* AP_PASSWORD = "12345678"; Web Interface Username: Line 118: const char* WEB_USERNAME = "admin"; Web Interface Password: Line 119: const char* WEB_PASSWORD = "cctv123"; 💻 Arduino IDE Setup & Installation Additional Board Manager URL Paste this URL into File : Preferences : Additional Boards Manager URLs: https://raw.githubusercontent.com/espressi... Board Selection Open Tools : Board : Boards Manager, search for esp32, and install the board package by Espressif Systems. Selected Board: AI Thinker ESP32-CAM or ESP32 Wrover Module PSRAM: Enabled Required Libraries No external library installation is required. All included header files are pre-bundled with the official Espressif ESP32 core package: esp_camera.h FS.h & SD_MMC.h WiFi.h, esp_wifi.h, & esp_mac.h WebServer.h 🛒 Parts List & Ordering Links ESP32-CAM Module with OV2640 Camera: Buy on Amazon: https://www.amazon.com/dp/B07S5PV73X FTDI USB-to-TTL Serial Adapter for flashing code: Buy on Amazon: https://www.amazon.com/dp/B00GX63U3N HC-SR501 PIR Motion Sensor: Buy on Amazon: https://www.amazon.com/dp/B07KA12MBB MicroSD Card 32GB recommended: Buy on Amazon: https://www.amazon.com/dp/B073JWXGNT code; https://docs.google.com/document/d/1r21Fbd... wiring digram; https://docs.google.com/document/d/17sr4ve...