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
We’re gonna need more info here. Could you please elaborate on what you mean by “Same problem “?
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.
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.
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.
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
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
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
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
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
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.
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
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
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