The green connection should be connected when flashing the module and disconnected when running.
USB to Serial TTL Above FT232RL Below Wire the module according to the diagram above and plug into your PC. I found the top device worked fine (I bought it here) but the FT232RL wouldn’t work without a separate supply to the 5V pin. When using WiFi the ESP32 can use more current than is supplied via USB through these devices resulting in the module crashing and rebooting.
Connections The ESP32-CAM doesn’t come with a USB connector so you need either a CP2102 or a FT232RL USB to TTL Serial Converter to connect it to your PC.
ESP-WHO Face Detection and Recognition Libraries To set up the face detection and recognition libraries and demos, type or paste the following commands in the MSYS2 terminal window cd ~ git clone -recursive If you look in c:msys32home**yourusername**esp-who you will see the ESP-WHO libraries and examples have been installed. Check if IDF_PATH is set by typing: printenv IDF_PATH The ESP32 development environment is now set up. Close the MSYS2 terminal window and then double click mingw32.exe to open it again. export IDF_PATH='C:/msys32/home/**yourusername**/esp/esp-idf' Save and close this new file. Following this tutorial it will be C:msys32home**yourusername**espesp-idf Create a new file named export_idf_path.sh in C:/msys32/etc/profile.d/ Open it in Notepad and add the following line to the new export_idf_path.sh file replacing the IDF_PATH with your own. A user profile script needs to be added so projects will build without the path to these files having to be entered every time. If you look in c:msys32home**yourusername**esp you will see all the APIs and libraries for the ESP32 have been installed. cd ~ mkdir esp cd ~/esp git clone -recursive NOTE: If you run into an error: cannot fork() type or paste the command below: c:/msys32/autorebase.bat and run the git clone command again. When the script has completed, type or paste the following commands one at a time. Press the up arrow to see the C:/msys32/windows_install_prerequisites.sh command and press enter. Copy the contents of the file here to a new file in C:msys32 Copy or paste the command below and press enter: C:/msys32/windows_install_prerequisites.sh You are likely to see an error message similar to this: ***fatal error - cygheap base mismatch detected Close the terminal window and again navigate to C:msys32 and double-click mingw32.exe to re-open the terminal.
Navigate to C:msys32 and double-click mingw32.exe to run the application.
If you prefer to use the Arduino IDE (it’s a lot easier to set up the web server demo) there’s another tutorial here: ESP32-CAM using Arduino IDE ESP32 Development Environment Download the 32bit version (-i686-) of MYSYS from here: Install following the steps on the page above but uncheck the “Run MSYS2 32-bit now” checkbox at the end. Follow the steps below to download and install everything you need to develop on the ESP32 including packages for the ESP-IDF and the ESP32 toolchain.
The software needs to be compiled and uploaded using the Espressif development environment. The AI-Thinker ESP32-CAM module features an ESP32-S chip, an OV2640 camera and a microSD card slot. With this module you get face detection for ~ $7! They have them on AliExpress here. January 7, 2019Updated: Ap09:36:27Author WordBot2737022 A step by step guide to setting up the Ai-Thinker ESP32-CAM with Espressif’s ESP32 development environment and the ESP-WHO libraries for face detection and recognition.