So I've been trying to set up a esp32 camera ,Tried doing a more advance code and getting this error
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header.
Now I'm just trying to do some simple code just to trina solve the problem.
I already change the esp32 cam module,bought another ttl to usb connector and tried multiple usb cables.
This is the error code below
Arduino: 1.8.16 Hourly Build 2021/09/03 10:33 (Windows 10), Board: "AI Thinker ESP32-CAM, 240MHz (WiFi/BT), QIO, 80MHz"
Sketch uses 224185 bytes (7%) of program storage space. Maximum is 3145728 bytes.
Global variables use 11884 bytes (3%) of dynamic memory, leaving 315796 bytes for local variables. Maximum is 327680 bytes.
Before uploading the sketch, you pressed the ESP32's cam reset button correct? And that caused the monitor to display a 'waiting for upload' message, correct?
If the waiting for upload message does not appear then the upload will fail.
That would be a problem. Can you post a image or 2 or 3 of your project all hooked up to the FTDI thingy and post a link to your FTDI thingy. I found some ftdi thingies work work and others do not.
COM1 is usually the computer's internal serial port. Please run this experiment to determine whether COM1 is actually the port of your FTDI FT232 adapter:
Unplug your FTDI FT232 adapter from the computer.
Select Tools > Port from the Arduino IDE's menus.
Note the ports, if any, listed in the menu.
Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential.
Plug your FTDI FT232 adapter into the computer.
Select Tools > Port from the Arduino IDE's menus. - The new port listed in the menu is your FTDI FT232 adapter.
If COM1 is listed on the menu even when the FTDI adapter is not connected to your computer, then COM1 is not the FTDI adapter.
This is normal and expected if COM1 is not the FTDI adapter. Stop fiddling with COM1 and focus on getting the FTDI adapter to be recognized by your computer.
Open Windows Device Manager and then connect the FTDI adapter to your computer. Do you see a new device appear in the Device Manager device tree?