Skip to content

Instantly share code, notes, and snippets.

@mateuscelio
Created February 24, 2021 23:53
Show Gist options
  • Save mateuscelio/aa2fbb18474709b3f7f9b85230906b80 to your computer and use it in GitHub Desktop.
Save mateuscelio/aa2fbb18474709b3f7f9b85230906b80 to your computer and use it in GitHub Desktop.
How to program ESP32 CAM using Arduino UNO with PlatformIO

Pin connections

Connect ESP UOR(GPIO 3) pin to Arduino RX(D0) pin. Connect ESP UOT(GPIO 1) pin to Arduino TX(D1) pin.

Supply energy to ESP connecting Arduino 5V pin and GND to ESP 5V and GND pin.

Connect Arduino RESET pin to the GND.

To program, connect ESP IO0(GPIO 0) to GND. To start and use serial monitor, disconnects the ESP IO0(GPIO 0) from GND.

If while uploading the program the monitor dont pass from "Connecting..................", press the ESP RST button and release.

; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32cam]
platform = espressif32
board = esp32cam
framework = espidf
board_build.partitions = partitions_singleapp.csv ;https://github.com/platformio/platform-espressif32/issues/248
monitor_speed = 115200
monitor_port = /dev/ttyACM0 ;use the Arduino UNO port
upload_port=/dev/ttyACM0 ;use the Arduino UNO port
upload_speed = 115200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment