While working on ESP 32 camera tutorial I got the following error message. Can you provide me the correct link for “esp_camera.h” library
Arduino: 1.8.8 (Windows 10), Board: "ESP32 Wrover Module, Huge APP (3MB No OTA), QIO, 80MHz, 921600, None" Sketch uses 2233498 bytes (71%) of program storage space. Maximum is 3145728 bytes. Global variables use 50692 bytes (15%) of dynamic memory, leaving 276988 bytes for local variables. Maximum is 327680 bytes. esptool.py v2.6-beta1 Serial port COM7 Connecting........_____....._____....._____....._____....._____....._____....._____ A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
You don’t need to install the esp_camera.h, it looks like your code is compiling fine. You’re having that “Connecting…….” error, because your Arduino IDE is not establishing a serial communication with the ESP32-CAM, so it can’t upload the code.
You need to:
- double-check your connections (TX-RX and RX-TX)
- GPIO 0 MUST BE CONNECTED TO GND on boot
- Press the on board reset to force it in flashing mode (while having GPIO 0 connected to GND)
Trying to upload again, but with the right setup (ESP CAM in flashing mode) should solve your uploading issue.
Thank You very much Mr. Rui for your prompt response.
I am using the same programmer which you have shown. In tools menu, which programmer should I select and which board is to be selected. Also can you please share me a programmer and ESp32 CAM wiring diagram
With Worm Regards
D. V. Apte
Baroda – India
Hello, I use these exact schematics: https://randomnerdtutorials.com/esp32-cam-video-streaming-face-recognition-arduino-ide/
Uploading the Code
Connect the ESP32-CAM board to your computer using an FTDI programmer. Follow the next schematic diagram:
Important: GPIO 0 needs to be connected to GND so that you’re able to upload code.
To upload the code, follow the next steps:
- Go to Tools > Board and select ESP32 Wrover Module
- Go to Tools > Port and select the COM port the ESP32 is connected to
- In Tools > Partition Scheme, select “Huge APP (3MB No OTA)“
- Then, click the upload button to upload the code.
Important: if you can’t upload the code, double-check that GPIO 0 is connected to GNDs and that you selected the right settings in the Tools menu. You should also press the on-board Reset button to restart your ESP32 in flashing mode.
That is exactly what you need to follow. I think you either have TX and RX not connected properly, or you didn’t the last part of reset the board while having GPIO 0 connected to GND.