Here are Minor Details of Cheap ESP32-CAM Setup With Arduino IDE. In an earlier guide, we described the steps to setup the normal variants of ESP WROOM 32 with Arduino IDE on Windows PC. The software setup part is essentially the same for these cheap ESP32-CAMs too but there is more hardware to buy with it. This board has an OV2640 camera and a microSD card slot. Obviously, OV2640 camera separately sold. But it is not profitable to separately buy an ESP32, OV2640 camera, SD card slot. As for the card reader part, GPIO 14 is CLK, GPIO 15 is CMD, GPIO 2 is Data 0, GPIO 4 is Data 1, GPIO 12 is Data 2, GPIO 13 is Data 3. GPIO 4 is also connected to the onboard LED. These boards are a clone of “Ai Thinker CAM Development Board with a camera” :
1 | https://github.com/raphaelbs/esp32-cam-ai-thinker |
These cheap ESP32-CAM does not come with a USB connector, unlike the normal ESP32. We need an FTDI programmer to upload code through the U0R and U0T pins (which are the serial pins). So, buy an FTDI programmer (like FT232RL). FT232RL FTDI programmer costs hardly $3. Normal ESP32 boards are shipped with CP2102 programmer. CP2102 FTDI programmers are also sold. Connect the ESP32-CAM board with your computer using an FTDI programmer. If you use an FT232RL with 5v and 3.3v, set the voltage jumper to 3.3v. CP2102 FTDI programmer almost never fails, FT232RL FTDI programmer failed in my case.
GPIO 1 and GPIO 3 are the serial pins. You need these pins to upload code to your board.
---
1 2 3 4 5 6 7 8 9 10 11 12 13 | # GPIO 0 will be shorted with GND (on the ESP32 cam board) # to enable uploading code ESP32 ESP32 GPIO 0 <--> GND # Rest is easy ESP32 FTDI programmer GND ---> GND 3.3V --> 3.3V UOR ---> Tx UOT ---> Rx |
Go to Tools > Board and select ESP32 Wrover Module. This module is Wrover, not WROOM. Go to Tools > Port and select the COM port the ESP32 is connected to. In Tools > Partition Scheme, select “Huge APP (3MB No OTA)” option.
Now, click the upload button to upload the code. Rest of the part is like our common ESP32 boards. In your Arduino IDE, go to File > Examples > ESP32 > Camera and open the CameraWebServer example. Edit the Sketch defines to look like this (assuming you are using the Ai-Thinker module):
1 2 3 4 | // Select camera model //#define CAMERA_MODEL_WROVER_KIT //#define CAMERA_MODEL_M5STACK_PSRAM #define CAMERA_MODEL_AI_THINKER |
The ESP32 IP address should be printed in the Serial Monitor. Go to the IP address. Press the Start Streaming button to start video streaming. You can do face recognition feature too :
1 | https://github.com/espressif/esp-who |
If you have received the board with the antenna jumper set for an external antenna rather than the onboard antenna, then you need this guide on WiFi antenna.
Tagged With esp32 cam software , esp32 cam arduino , esp32-cam GPIO , esp32 cam arduino ide , programmer esp32 cam , arduino uno and eps32camera , esp32 cam code , esp32 cam setup , esp32 cam , esp wifi cam aduino code