Skip to main content

ESP32S – CAM AI TinkerOV2640 Camera Module

You are here:

Basic Wifi FPV using the ESP32 Camera module intended to direct access point to phone

ESP32 development boards with a camera are becoming very popular among the maker community. There are several models with different features like microSD card support, microphone, screen, and much more for a very reasonable price. These boards allow you to build projects with image, video streaming, face recognition and detection, and other AI applications.

ESP32-CAM Comparison Table

Log wifi on two options

ESP32-CAM-Video-Access-Point : search wifi network for (ESP32 CAM Access Point) Password :123456789 IP Address 192.168.4.1

ESP32-CAM-Video-Streaming : (Requires both your device and ESP32-CAM connected to your Router – Router SSID and Password required) Reset button of the ESP32-CAM then goto Tools > Serial Monitor and Copy the IP address

3D printed Adapter for ESP32CAM housing and mounts

Synerduino drone implementation of an ESP32-Cam FPV Wifi

For additional Range you may wish to configure for IPEX Connector External Antenna

Projects with video streaming could disconnect frequently when you don’t use an external antenna due to poor connectivity at longer distance. So, make sure you get one to have your projects working reliably.

To enable or disable the on-board antenna, you just need to unsolder that resistor and solder it in the desired configuration. You can also drop some solder to connect those points (you don’t necessarily need to add the resistor as long as the pads are connected).

ESP32-CAM Camera AI Thinker Module External Antenna and on-board antenna

Connect to the Synerduino PWM pins for power (Ideal if you have a External UBEC) or an ESC with one

ESP32-CAM pinout

The steps to follow to configure and program everything so that it works:

  1. In order to upload code to the board, you have to connect USB to your PC.

Arduino IDE Setup

2 .The next step is to install the ESP32 library to be able to take advantage of this one. For that, from the Arduino IDE go to File> Preferences> There, in the field to add URL, add: https://dl.espressif.com/dl/package_esp32_index.json and click OK. Now go to Tools> Board> Board Manager> search for ESP32 and press install “ESP32 by Espressif Systems”

File > Preference > Additional Board Manager >

Add this links

https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
https://dl.espressif.com/dl/package_esp32_index.json
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

3. Then open Arduino IDE > Tools > Boards > Arduino ESP32 > select AI-Thinker ESP32-CAM (you must have the ESP32 addon installed for this option to appear in the menu). Then go to Tools> Port and select COM, where your board is connected.

Tools > Boards > Arduino ESP32 > AI Thinker ESP32-Cam

On th Sketch

ESP32_CAM SynerIPC tab define CAMERA_MODEL_AI_THINKER // Has PSRAM

4. Now you can upload a sketch on the board, to keep it simple, use one of the examples see File> Example> ESP32> Camera> CameraWebServer. Once done, when the message that it was loaded successfully appears, remove the cable from the GPIO pin 0 of GND and press the Reset button on the board.

Then, click the Upload button in your Arduino IDE.

Program ESP32-CAM with Arduino IDE

When you start to see some dots on the debugging window, press the ESP32-CAM on-board RST button.

Some models have FLASH button this is press while plunging the USB to put the board into programming mode

Program and upload code to ESP32-CAM with Arduino IDE
ESP32-CAM Press RESET RST on-board button to restart

Finally, you can use and start see the results in the web interface … When you run it, it will give you on the monitor a URL with an IP that you must insert in your web browser to access. From it you can adjust parameters and see what is seen from the camera sensor.

Connect via SyneIPC-A as Access point

http://192.168.1.1 for Configurator

http://192.168.1.1:81/stream for Video streaming

Other Links

https://github.com/rzeldent/esp32cam-rtsp: ESP32S – CAM AI TinkerOV2640 Camera Module https://github.com/geeksville/Micro-RTSP: ESP32S – CAM AI TinkerOV2640 Camera Module https://github.com/circuitrocks/ESP32-RTSP: ESP32S – CAM AI TinkerOV2640 Camera Module

https://en.hwlibre.com/esp32-camera/

Table of Contents