Skip to content
MCU Atlas

Expanded ESP32-CAM webcam server

A friendlier, feature-rich version of Espressif's camera example for the ESP32-CAM: more settings, a better web UI and what a webcam actually needs.

Difficulty:BeginnerSource available

Photos

Expanded ESP32-CAM webcam server photo 1

Photos: hackaday.io

Key Facts

About This Project

This project extends the stock Espressif CameraWebServer sketch for the AI-Thinker ESP32-CAM, adding a cleaner UI, saved settings, a standalone stream viewer, OTA updates, LED control and an embeddable stream endpoint. It is a practical base for DIY security cams, 3D-printer monitors and timelapse rigs, and the README covers common power and flashing pitfalls with these boards.

Source & Attribution

Source: GitHub
Also from: Hackaday.io
License: LGPL-2.1
Last verified: 10/15/2026
Expanded ESP32-CAM webcam server

How to Build It

An expanded version of Espressif's CameraWebServer example for the cheap AI-Thinker ESP32-CAM. It adds lamp control, view rotation, a cleaner UI, saved settings and better stability, turning the module into a simple Wi-Fi webcam with an MJPEG stream and still capture.

Parts Needed

Steps

  1. 1

    Set up the Arduino IDE

    Install the latest stable Arduino IDE and Espressif ESP32 core. The author doesn't support development builds.

  2. 2

    Wire for programming

    Cross the adapter's TX and RX to the ESP32-CAM's RX and TX, supply 5V and GND, and hold GPIO0 to GND at power-up to enter flash mode. Use a 3.3V logic adapter, never a 5V one.

  3. 3

    Get the sketch

    Download the release zip, unpack it into your sketchbook folder and rename the folder so it matches the .ino name (drop the version number).

  4. 4

    Configure

    Copy the example network config to myconfig.h and enter your Wi-Fi details. The default camera pinout is AI-Thinker; select another if you have a different module.

  5. 5

    Upload and run

    Select the AI Thinker ESP32-CAM board and upload. Then remove the GPIO0 jumper, reset, and open the IP address shown in the serial monitor.

  6. 6

    Tips

    Avoid PlatformIO builds for now (the README notes the stream drops). Only one stream can run at a time. Most dropouts come from weak Wi-Fi or power, so keep the module close to the router.

Bill of Materials

Parts list

2 parts · 2 linked

Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works

Not included: 3D-printed case, wire, solder, USB cable

Download CSV

Related Projects

DashBoy: the Game Boy Camera sensor reborn as a standalone camera on a Pi Pico
Illustration
RASPBERRY PI PICORP2040
The open-source DashBoy: a Raspberry Pi Pico drives the Game Boy Camera’s sensor directly — retro photos, time-lapses and HDR from 1990s silicon.
Intermediate·Code
10 parts listed
ESP32 iPhone Agent: AI phone automation without jailbreak
Illustration
ESP32ESP32-S3
Open-source firmware and an iOS app let an AI vision model see an iPhone's screen and tap, swipe and type — the eyes and the hands are a single ESP32-S3 board.
Intermediate·Code
4 parts listed
Prusa Core One camera upgrade: autofocus on an ESP32-S3
Illustration
ESP32ESP32-S3
An autofocus OV5640 on an ESP32-S3 replaces the stock Prusa Core One camera: sharper first layers, timelapses that record themselves to SD, and open firmware.
Intermediate·Code
5 parts listed