Elegoo Smart Robot Car V4 cannot upload ESP32-camera code

config in Arduino IDE:
install library: ESP32 (2.0.2)
board: AI-Thinker ESP-CAM
port: /dev/ttyCAM0

example code:
WIFI--WIFI-Scan

build:
success

upload: (output as below):

Sketch uses 794025 bytes (25%) of program storage space. Maximum is 3145728 bytes.
Global variables use 53908 bytes (16%) of dynamic memory, leaving 273772 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.1
Serial port /dev/ttyACM0
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

What I did:

  1. press and hold the switch button down when "uploading ..." starts. The switch button is the only button I find on the ESP32-WRVER-Camera board. (same error message like above) (I did some research and find somebody suggests it to fix the issue).
  2. try the same process in Linux and Mac OS. (same)

PCB diagram:

some references:

Press the button before uploading the code. On screen Waiting for upload should appear, then upload the code.

1 Like

ELEGOO Smart Robot Car Kit V4.0 (with Camera)

Hey Idahowalker,
thank you so much for your prompt response. I tried your method and am not sure if I execute it right.

  1. build---> press the "switch" button ----> nothing happens on the Arduino IDE screen

  2. build---> press the "switch" button ----> wait 5 seconds (nothing happens) --> upload the code
    ----> same error (hold on the button down or not, same error).

press the button, message on monitor should be waiting for upload, build and upload.

Thank you so much.

I follow your instructions and press the switch button first.
I did not find the message on the monitor. And I hold the switch button down and build, upload. Same error message.

I attach one gif for your reference. At the begining, I press the switch button and no message on the screen.

cannot upload esp32-cam in linux arduino

Post a few images of your project.

OS: Ubuntu 20.04
Arduino IDE: 1.8.19
Hardware: ELEGOO Smart Robot Car Kit V4.0 (with Camera)
Wifi module: ESP32-WROVER-V1.2
Serial port used.

Network:


ESP32-WROVER-V1.2

additional board manager url for esp32:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

Example-Wifi-scan in Arduino IDE

Images of the ESP32 wired up?

Oh, did you, as per the examples/instructions you linked, short the programing pin to ground?

1 Like

I use the default ESP32 wiring from Elegoo Smart Car and did not short the programing pin to ground.

I thought Elegoo already did so (short the pin to ground when uploading the code to ESP32-CAM).

Should I short pin GPIO 0 to Ground when uploading code?

I've uploaded the code via MicroUSB in the ESP32-CAM board. The USB in Smart Car Sheild I used is not for ESP32-CAM.

Hi, could you help me fix mine?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.