• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Question on ESP 32 Canera

Q&A Forum › Category: ESP32 › Question on ESP 32 Canera
0 Vote Up Vote Down
Dattatraya Apte asked 6 years ago

Dear Sir,

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.
3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

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.

Regards,
Rui

0 Vote Up Vote Down
Dattatraya Apte answered 6 years ago

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

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

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.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.