Hello friends, I am Horst from Germany and I have acquired the ESP32-Cam Project. First I updated my Arduino software to version 1.8.12. Now, despite the instructions, I am unable to integrate “esp32 by Espressif Systems” into arduino. Can someone help me?
Thank you, Horst.
Hi Horst.
What do you mean by you “are unable to integrate “esp32 by Espressif Systems”? What do you see in your Arduino IDE? Can you please provide more details? Otherwise, it is very difficult to find out what might be wrong.
Regards,
Sara
Hi Sara, thank you for your answer. I have now managed to load and check the program “CameraWebServer” with the updated software arduino 1.8.12. Unfortunately I am now unable to load the program onto the esp32 – cam – no port is active! Where can my mistake be? Please help.
horst
Hi again.
What is the FTDI programmer that you’re using? Make sure that you have the right connections.
If you have the right connections and you still don’t see the port, this often means you don’t have the USB drivers installed. You may need to install the CP2102 drivers if you didn’t already.
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
Regards,
Sara
Hi Sara,
Thanks for your tips. I am now ready to activate port 10 when connecting. The upload is canceled, although I follow your instructions. The FTDI type is YP-05. My connections to the ESP32-Cam are ok in my opinion.
Maybe you have another tip that will help me.
Greetings Horst.
What do you mean by the upload is canceled? What do you see in the debugging window?
Regards,
Sara
High Sara,
My current status: When I connect the ESP32-Cam to my PC with Windows 7 via the FTDI adapter, port 10 is activated. The transfer of the program stops with the message: “Writing at 0x00010000 … (0%). A fatal error ocurred: Timed out waiting for packet heade. The PC can then no longer be shut down and must be switched off using the power switch. I am at a loss, please help.
Horst.
Hi.
That’s very weird! That never happened to me and I have no idea what might cause that issue.
Do you have another board to experiment? Do you have a regular ESP32 board? Can you upload code to that board (a simple sketch)? Or does that only happen with the ESP32-CAM?
Are you able to experiment using another computer? It may be something related to your computer.
Regards,
Sara
Hi,
I have the same problem with a Windows 10 laptop – the program cannot be loaded. On the other hand, there are no problems with the COM interface. On the other hand, I have no difficulties with a “normal” ESP32. I noticed two things for ESP32-Cam:
– The supply voltage is only 4.8 V.
– The connection designations on the ESP32 webcam for Rx and Tx are UOT and UnR? Do you have any idea?
Regards,
Horst
I am having similar problems getting the Camera Web Server sketch loaded. I was getting connection timeout errors and then found with my (CP210x USB to COM port) dongle I had to connect RXD -> UORXD and TXD -> UOTXD. With this connection I confirmed the COM port works using RealTerm.exe. But now when I try to upload the program I get the “A fatal error occurred: Invalid head of packet (0x78)” error message. (Also pressing the reset button in the monitor window I get strange characters which would indicate it is connected correctly.) Elsewhere on the net I saw a suggestion that changing the upload speed fixes the problem but I don’t see a way to change it. Any suggestions?
Hi all.
With the FTDI we’re using, the connections are:
- RX ->U0T
- TX–>U0R
I don’t know if other FTDI programmers are working the other way around. Or work in a different way that are preventing uploading code to the board.
Unfortunately, I’m out of ideas of what might be wrong. All my ESP32-CAM boards are working fine and I don’t know what might be causing your issues.
To change the upload speed, you need to select other board than the AI-Thinker.
You can try with the following options under the Tools menu:
- Board: ESP32 Wrover Module
- Upload speed: 115200
- Partition scheme: Huge App 3MB (No OTA/ 1M SPIFFS)
Let me know if with these settings you are able to upload code.
Regards,
Sara
It works now but I am not sure why.
I made the switch to the Wrover Module, 115200 baud and Huge App partition and the Camera Server sketch would not compile because it ran out of program memory. I then switched to the ChipID example that compiled OK but still gave the same uploading errors like the following:
Connecting….
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:6f:28:a9:c1:98
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600
Changed.
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47…
Writing at 0x0000e000… (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 5461.3 kbit/s)…
A fatal error occurred: Invalid head of packet (0x80)
A fatal error occurred: Invalid head of packet (0x80)
From the above you can see I forgot to change the baud rate but it was failing after seemingly communicating OK at 921600 baud. I then changed it to 11520 baud and it downloaded properly. I then tried at 230400 and 512000 and they both worked.
With that success, I went back to the CameraWebServer sketch and the “AI Thinker ESP32-CAM” board and it now uploaded correctly without errors. Thanks 🙂