ESP32 Camera -  Image server @techtutorialsx11
ESP32 Camera -  Image server  @techtutorialsx11
Uploaded June 2020 | Updated September 2026, 1 week ago
This tutorial explains how to setup a HTTP web server on a ESP32 to return to the client images taken by a camera connected to the microcontroller.

For a written tutorial with source code, please check the corresponding post on my blog: techtutorialsx.com/2020/06/10/esp32-camera-image-server

I'm using a HW-818 camera board model and a OV2640 camera. The board can be found at eBay: ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=ESP32-CAM-CH340&_sacat=0&LH_TitleDesc=0&_osacat=0&_odkw=HW-818+esp32

We will make use of the async HTTP web server library: github.com/me-no-dev/ESPAsyncWebServer

For an introductory tutorial on how to use this server library, please check my other videos or my blog: techtutorialsx.com/2017/12/01/esp32-arduino-asynchronous-http-webserver

Some corrections / additional information of what was mentioned on the video:
- xclk_freq_hz is the frequency of the clock signal of the camera, not the crystal frequency, like mentioned. The value of 20000000 Hz is one of the possible values that should be used for the OV2640 (note here: github.com/espressif/esp32-camera/blob/4af111a5e274a2973fa10cd3c1ec69174a1bdb93/driver/include/esp_camera.h#L98)
- fb_count is the number of frame buffers to be allocated (not the number of frames, like mentioned).

You can find more information about the camera driver here: github.com/espressif/esp32-camera

Arduino core example mentioned in the video: github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Camera/CameraWebServer

Pin definitions for each camera board: github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/Camera/CameraWebServer/camera_pins.h

Frame sizes enum: github.com/espressif/esp32-camera/blob/9f99b1b03ccfbd1937c3aee96f563af9df1e0ba6/driver/include/sensor.h#L57

Pixel format enums: github.com/espressif/esp32-camera/blob/9f99b1b03ccfbd1937c3aee96f563af9df1e0ba6/driver/include/sensor.h#L29

For a lot more ESP32 tutorials (more than 300!), please check my blog: techtutorialsx.com/category/esp32

Also for the ESP8266: techtutorialsx.com/category/esp8266
ESP32 Camera -  Image serverESP32 Arduino FAT file system: write fileESP32: Getting started with WebSerialESP8266: HTTP POST RequestsESP32 web server: Controlling HTTP methods allowedESP32 Arduino HTTP web server: redirectsESP32 Arduino: FAT file systemESP32: Static IP addressESP32 Arduino: Base64 encodingESP32 Arduino: Getting started with WiFi eventsESP32 Arduino: Parsing XMLESP32 Arduino: HTTP GET Requests
Techtutorialsx |

ESP32 Camera - Image server

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER