Compiling the code using Arduino IDE - sorinbotirla/esp32-marauder-ESP32-CAM GitHub Wiki

Compiling the code using Arduino IDE

you can compile the source code using Arduino IDE. I tested this using Linux (Debian or Ubuntu) but it should work on Windows too.

1. Install Arduino IDE

Install and open the the latest release of Arduino IDE
In the Arduino IDE, go to File>Preferences

2. Add ESP32 json files

Add the following URLs to Additional Boards Manager URLs:

https://dl.espressif.com/dl/package_esp32_index.json
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

3. Install ESP32 support for Arduino IDE

Go to Tools>Board>Boards Manager, search for esp32 and install esp32 by Espressif Systems

Make sure it is version 2.0.10

NOTE: If you're using windows
Install the CP210X Drivers
Install the CH340X Drivers

4. Edit platforms.txt

With any text editor, open platform.txt file which is located on:

Windows: C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\platform.txt
Linux or Mac: /home/USERNAME/.arduino15/packages/esp32/hardware/esp32/2.0.10/platform.txt

(replace USERNAME with your username)

In the platform.txt file:

Add -w to the following compiler settings

build.extra_flags.esp32
build.extra_flags.esp32s2
build.extra_flags.esp32s3
build.extra_flags.esp32c3

Add -zmuldefs to the following compiler settings

compiler.c.elf.libs.esp32
compiler.c.elf.libs.esp32s2
compiler.c.elf.libs.esp32s3
compiler.c.elf.libs.esp32c3

alternatively you can rename the platform.txt to platform.txt_bak (to make a backup) and copy the platform.txt file from this repository

5. Install the required libraries:

6. Replace the User_Setup.h file

open the TFT_eSPI library installation folder:

on Windows: C:\Users\USERNAME\Documents\Arduino\libraries\TFT_eSPI\
on Linux or Mac: /home/USERNAME/Arduino/libraries/TFT_eSPI-master/

make a backup of the User_Setup.h file by renaming it to User_Setup.h_bak
Copy the User_Setup.h file from this repository to the folder you just opened

7. Follow these instructions for installing ESP32 Spiffs Tool

8. Configure the Arduino IDE settings for this ESP32

Open Arduino IDE, go to Tools > Board > Esp32 and choose LOLIN D32
go to Tools > Partition Scheme and choose Minimal SPIFFS (Large APPS with OTA)
go to Tools > Programmer and choose esptool

9. open the esp32_marauder_espcam.ino in Arduino IDE

Click the compile button. If you did everything correctly it should compile just fine.

10. Connect the ESP32 CAM

Short the ESP32-CAM pin 0 to GND then plug the usb cable of the serial interface..
(Or you can solder a push button between them for convenience)

Use a CP2101/FTDI232/CH340G/PL232 serial interface. Using jump wires (dupont), connect the interface to the ESP32 CAM as follows:

TTL Interface ESP32 CAM
GND GND
VCC VIN
TX U0R (RX)
RX U0T (TX)


You can upload the code and after it finishes uploading, you need to press the reset button once.
Repeat the procedure if you want to change things in the code and upload again.

A CP2101 Serial interface:
CP2101

serial-connection


Other Serial Interfaces

serial interfaces


If everything went right, you can now start Building a Dual ESP32 Marauder
⚠️ **GitHub.com Fallback** ⚠️