Skip to content

This project sets up an ESP32-CAM as a web server that captures and serves images via HTTP frame by frame.

Notifications You must be signed in to change notification settings

ErnaneJ/esp-cam-image-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ESP32-CAM Web Server πŸ“·

This project sets up an ESP32-CAM as a web server that captures and serves images via HTTP.

πŸ“Œ Features

  • Captures images from the ESP32-CAM
  • Serves images via a web interface
  • Supports flash control via URL parameters

πŸ“‚ Project Structure

.
β”œβ”€β”€ README.md
β”œβ”€β”€ lib
β”‚   └── esp32cam-main.zip (https://github.com/yoursunny/esp32cam)
└── src
    └── main.ino

πŸš€ Getting Started

Prerequisites

Ensure you have the following installed:

  • Arduino IDE
  • ESP32 board support (Install via Arduino Board Manager)
  • Required libraries (WiFi, WebServer, esp32cam)

πŸ”§ Setup Instructions

  1. Open main.ino in Arduino IDE.
  2. Replace the Wi-Fi credentials in the following lines:
    const char *WIFI_SSID = "YOUR_WIFI_SSID";
    const char *WIFI_PASS = "YOUR_WIFI_PASSWORD";
  3. Select AI Thinker ESP32-CAM as the board.
  4. Connect the ESP32-CAM and upload the code.

πŸ“‘ Accessing the Web Server

After uploading, check the serial monitor for the assigned IP address. Use a web browser or API tool to request images.

🌐 API Endpoints

Endpoint Method Parameters Description
/frame.jpg GET flash=true/false Captures and returns an image. Default flash=false.

Example Request

http://<ESP32-CAM-IP>/frame.jpg?flash=true

πŸ›  Troubleshooting

  • If the camera fails to initialize, check the wiring and power supply.
  • If the ESP32-CAM does not connect to Wi-Fi, verify SSID and password.
  • If necessary, install esp32cam in your Arduino IDE.

πŸ“– Additional Resources

For a step-by-step guide on setting up the ESP32-CAM with Arduino IDE, refer to this tutorial: πŸ”— ESP32-CAM Setup Guide

About

This project sets up an ESP32-CAM as a web server that captures and serves images via HTTP frame by frame.

Topics

Resources

Stars

Watchers

Forks

Languages