• 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

[NEARLY SOLVED] Failed to connect to ESP32

Q&A Forum › Category: ESP32 › [NEARLY SOLVED] Failed to connect to ESP32
0 Vote Up Vote Down
yvonne asked 5 years ago

I have the same problem with the ESP32-CAM.
Do you know how I can solve this problem with the ESP32-Cam?
Thank you.
Yvonne

Question Tags: Error
15 Answers
0 Vote Up Vote Down
Steve Mercer answered 5 years ago

We’re gonna need more info here. Could you please elaborate on what you mean by “Same problem “?

0 Vote Up Vote Down
yvonne answered 5 years ago

Sorry, I’m referring to the article:
https://randomnerdtutorials.com/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/
Here  the solution is a capacitor. 
I have the same problem with the ESP32-Cam, which differs from the esp32. So my question is: can I use a capacitor as well and if so, where do I have to solder it.
Thank you.

0 Vote Up Vote Down
Steve Mercer answered 5 years ago

AFAIK the only difference between ESP32 and ESP32-CAM is the addition of the camera module which takes quite a few pins. I would have thought you could add the capacitor to the same pins.

0 Vote Up Vote Down
yvonne answered 5 years ago

Well I don’t know. For instance I don’t see the EN pin on the ESP32-CAM.

0 Vote Up Vote Down
Steve Mercer answered 5 years ago

I guess it depends on which board you have. I have both an AI-Thinker board and an Arducam IOTAI. For both of these boards I don’t need that capacitor. Just a real FTDI for the ai-thinker and a good USB cable for the IOTAI. I don’t have to hit the button either. Just upload and the Arduino IDE resets the board for me. So does PlatformIO.

0 Vote Up Vote Down
yvonne answered 5 years ago

Hi Steve,
Well still no luck. I have ordered the Arducam today, but they are not in stock, so I have to wait until November 6.
I have tried again with the ESP32-Cam.
I have 3 of those modules. 1 Is a Al-Thinker board. 
I use the Camera Web Server code in Arduino and the code of Rui.
I change the code to Al-Thinker or Wroom depending of the Cam.
I bought a new USB cable for the FTDI to the PC.
I have tried it on a Windows10 computer and an iMac computer.
I have watched 4 or 5 YouTube movies with solutions. 
One is that you have to attach the Cam to the Arduino Uno.
But whatever I do, same error message: failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/
I push the button when the …._…. appears. Nothing.
The small torch on the Cam is on when I push the button.
The only thing is that I don’t see anything on the FTDI. Only a red light when it is attached to the computer, but not a flickering light on the FTDI. I don’t know if that is necessary.
I also tried to upload with the USB to TTL module which I normally use for uploading code to a Sonoff basic module.
Do you think you have another idea?
Thank you for your help.
Yvonne

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Yvonne.

Have you taken a look at our ESP32-CAM troubleshooting guide? It covers the most common mistakes when trying to upload code to the board.

Many times the error is that one forgets to connect GPIO 0 to GND when uploading the code or swapping RX with TX. Another common issue is also related to the power supply.

Here’s the guide: https://randomnerdtutorials.com/esp32-cam-troubleshooting-guide/

I hope this helps.

Regards,
Sara

0 Vote Up Vote Down
yvonne answered 5 years ago

Hi Sara,
Yes, I wrote this guide and I have not forgotten to connect GPIO 0 to GND.
But, finally I found an article that I could connect 5V and GND of the ESP32 Cam to an external power supply and for the rest as you described in your tutorial. This worked. I could upload the could, but now I had an other error message. When I deleted the connection between GND and GPIO0 and pushed the reset button, the error message was the following:
[E][camera.c:1049] camera_probe(): Detected camera not supported.
[E][camera.c:1249] esp_camera_init(): Camera probe failed with error 0x20004

I tried to find out what is going on. I wrote a lot on the Internet from people with the same error messages, but until now I found no solution. So I’m stuck.
But thanks for your reaction.
Have a nice weekend.
Yvonne

0 Vote Up Vote Down
yvonne answered 5 years ago

One more thing: the strange thing is that I can see that the board got an IP address. So the uploading is succesful I presume.
Yvonne

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
That error means that the board is not able to initialize or detect the camera.
Usually, it can be one of the following scenarios:

  • improper power supply (but I guess you already fixed this issue)
  • camera pins definition in the code is not correct
  • the camera probe is broken or it is not connected properly. You can try disconnect an reconnect the camera again to see if it is something related with that.

I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
Steve Mercer answered 5 years ago

I got that error quite a lot when I got my first ESP32-CAM. For me it was power/cable related. I needed a good USB data cable to make it work. All of the micro-USB cables I had were from chargers and it appeared they weren’t very good. Others have found they need to disconnect the camera cable and clean out the connector.

0 Vote Up Vote Down
yvonne answered 5 years ago

Hi Sara,
Ik tried to translate a Dutch proverb in Portugese, but I did not succeed. But what I wanted to tell you is that I have succeed. I know what I did, but I don’t know why it is good. I have a ESP32S-Cam and an ESP32-CAM AIThinker. The first one was finally uploaded, but with the above error message. The other one could not be uploaded. 
I decided to try to upload the ESP32S-Cam again as an AIThinker and it worked without any error messages. So now I have the pictures in my webbrowser. I want to thank you and Steve for the help and patience.
I hope other people can do advantage with this.
Kind regards and a nice weekend.
Yvonne

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Yvonne.
That’s great! Weird things happen in electronics sometimes.
I’m glad that you finally made it work.
I’ll mark this issue as resolved. If you need further help, just open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
Ralph Hilton answered 5 years ago

I had no success with an ftdi to usb module but wiring up an Arduino as one worked as per this video https://www.youtube.com/watch?v=0LIhTLsOLbA
 

0 Vote Up Vote Down
Steve Mercer answered 5 years ago

Wow. In my experience I had to use an FTDI as using an Arduino just would not work for me.

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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.