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

Uncategorized

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 : https://www.banggood.in/Geekcreit-ESP32-CAM-WiFi-bluetooth-Camera-Module-Development-Board-ESP32-With-Camera-Module-OV2640-p-1394679.html?p=LU070313923481201709&custlinkid=321315

https://www.banggood.in/Geekcreit-ESP32-CAM-WiFi-Bluetooth-Camera-Module-Development-Board-ESP32-p-1443851.html?p=LU070313923481201709&custlinkid=3213

https://www.banggood.in/3-Pcs-Geekcreit-ESP32-CAM-WiFi-Bluetooth-Camera-Module-Development-Board-ESP32-With-Camera-Module-OV2640-p-1447941.html?p=LU070313923481201709&custlinkid=321319

FTDI : https://www.banggood.in/FT232RL-FTDI-USB-To-TTL-Serial-Converter-Adapter-Module-For-Arduino-p-917226.html?p=LU070313923481201709&custlinkid=332298

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
  • Supports UART/SPI/I2C/PWM/ADC/DAC
  • 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 : https://dl.espressif.com/dl/package_esp32_index.json

Code :

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

OR

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:

#define CAMERA_MODEL_AI_THINKER

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 *