ESP 32 Camera Streaming video over WiFi |Getting Started with ESP 32 CAM board


The ESP32-CAM is a very small camera module with the ESP32-S chip that costs approximately $10. Besides the OV2640 camera, and several GPIOs to connect peripherals, it also features a microSD card slot that can be useful to store images taken with the camera or to store files to serve to clients.

Components Required :

ESP 32 Cam Board :


Features :

  • The smallest 802.11b/g/n Wi-Fi BT SoC module
  • Low power 32-bit CPU,can also serve the application processor
  • Up to 160MHz clock speed, summary computing power up to 600 DMIPS
  • Built-in 520 KB SRAM, external 4MPSRAM
  • Support OV2640 and OV7670 cameras, built-in flash lamp
  • Support image WiFI upload
  • Support TF card
  • Supports multiple sleep modes
  • Embedded Lwip and FreeRTOS
  • Supports STA/AP/STA+AP operation mode
  • Support Smart Config/AirKiss technology
  • Support for serial port local and remote firmware upgrades (FOTA)

Pin Configuration :

Pins used for microSD card reader:

  • GPIO 14: CLK
  • GPIO 15: CMD
  • GPIO 2: Data 0
  • GPIO 4: Data 1 (also connected to the on-board LED)
  • GPIO 12: Data 2
  • GPIO 13: Data 3

Install ESP 32 boards in Arduino IDE :

Please refer this video to add ESP32 Boards in Arduino IDE

ESP 32 Boards Link :

Code :

In your Arduino IDE, go to File Examples ESP32 Camera and open the CameraWebServer example.


Download the code from here :

Schematics For Programming the Board :

The ESP32-CAM doesn’t have a USB connector, so you need to use FTDI to upload code through the U0R and U0T pins (serial pins) in ESP32 CAM Board.

Please refer the schematics below

Uploading of the code :

Before uploading the code, you need to input your wifi credentials in the following part of code:

const char* ssid = "REPLACE_WITH_YOUR_SSID";
const char* password = "REPLACE_WITH_YOUR_PASSWORD";

and make sure you select the right camera module.As here we’re using the AI-THINKER Model so select the following

So, comment all the other models and uncomment this one:


follow these steps to upload the code :

  1. Go to Tools Board and select ESP32 Wrover Module
  2. Go to Tools Port and select the COM port the ESP32 is connected to
  3. In Tools Partition Scheme, select “Huge APP (3MB No OTA)
  4. Then, click the upload button to upload the code.

Getting IP From Serial Monitor :

Remove the jumper connected between GPIO0 & GND then,​

Open the Serial Monitor with the baud rate : 115200. Press the ESP32-CAM on-board Reset button and wait for the IP to appear and wait for few seconds and then hit reset again.

Its time to check the video Stream :

Open your browser and make sure your PC is connected to same network as ESP32 CAM and then type the IP and click on stream button and you’ll get similar video stream.

For Detailed Info Please watch the video.

232 thoughts on “ESP 32 Camera Streaming video over WiFi |Getting Started with ESP 32 CAM board

Leave a Reply

Your email address will not be published. Required fields are marked *