ESP32-CAM and Arduino

werkwerk65
Posts: 1
Joined: Fri Oct 23, 2020 12:52 pm

ESP32-CAM and Arduino

Postby werkwerk65 » Fri Oct 23, 2020 12:55 pm

Hello all

I was trying to test the sample code CameraWebServer. It was working fine, until i turned off my computer and turned it on again

I have got a brownout detected
I fixed that one by fixing the wiring

Thereafter, i got this problem

esptool.py v2.6
Serial port COM4
Connecting........_____....._____....._____

A fatal error occurred: Invalid head of packet (0x00)
A fatal error occurred: Invalid head of packet (0x00)

Could someone advise me on this problem ?

Thank you !

LucaFR
Posts: 3
Joined: Tue Nov 24, 2020 9:31 pm

Re: ESP32-CAM and Arduino

Postby LucaFR » Tue Nov 24, 2020 9:48 pm

Hi werkwerk65,
I have the same problem, but it has never worked fine for me :x . I have always got the error in attach (see attach).
It occurs every time I try to run the example code titled camerawebserver.
I have also followed the advice to power the esp32 by using an external source ( 5V), but I got the same problem.
The distance from the wifi source is not that much, (I can see from my laptop the strength of the signal is high).
Could someone help on this issue?
Thanks
Attachments
error invalid head of packet.PNG
error invalid head of packet.PNG (9.1 KiB) Viewed 6353 times

Radu79
Posts: 29
Joined: Tue Nov 17, 2020 9:50 pm

Re: ESP32-CAM and Arduino

Postby Radu79 » Wed Nov 25, 2020 12:08 pm

I get this problem often. For me, I just unplug the USB cable then plug it back in the computer, and it works.

LucaFR
Posts: 3
Joined: Tue Nov 24, 2020 9:31 pm

Re: ESP32-CAM and Arduino

Postby LucaFR » Wed Nov 25, 2020 8:31 pm

I have tried many time, also changing the USB port, but always the same error. I am trying to understand what I did wrong, but the assembly/wiring and the code seem all perfectly set up. Hope someone could advice to fix this issue :P

LucaFR
Posts: 3
Joined: Tue Nov 24, 2020 9:31 pm

Re: ESP32-CAM and Arduino

Postby LucaFR » Mon Nov 30, 2020 10:56 pm

Moreover, in addition to the error, when I open the serial monitor, I can see weird character (see attach)
Attachments
Cattura.PNG
Cattura.PNG (25.69 KiB) Viewed 6231 times

vinayreddy
Posts: 2
Joined: Wed Feb 10, 2021 8:06 am

Re: ESP32-CAM and Arduino

Postby vinayreddy » Wed Feb 10, 2021 8:08 am

I also experienced exact same error on one of the ESP![ESP32|690x388](upload://2YO54GJjfclMbTAJDzeX4Wd6t19.jpeg) 32 board.

Serial port COM3
Connecting........_____....._____....._____....._____....._____....._____.....____An error occurred while loading the sketch.
_
A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x00)

I could upload program to another board but was failing with one specific board.
1. I tried reducing "Flash Frequency" from Tools-->Flash Frequency from 80Mhz to 40Mhz
2. Tried reducing the "Upload speed" Tools-->Upload speed
3. Changing different board types
4. Holding "Boot" button till process completes
5. Tried different combination of Boot and En button Press and release

Finally I inspected ESP32 chip to PCB connectivity and found that 3.3v supply pin of ESP32 was not [properly soldered to PCB and was causing![ESP32|690x388](upload://2YO54GJjfclMbTAJDzeX4Wd6t19.jpeg) g the issue. Once it was soldered, everything worked fine
Attachments
ESP32.jpg
ESP32.jpg (2.04 MiB) Viewed 5816 times

roninfyc
Posts: 1
Joined: Fri Apr 02, 2021 11:41 am

Re: ESP32-CAM and Arduino

Postby roninfyc » Fri Apr 02, 2021 12:35 pm

first time post here. first time pick up this hobby too ..esp32cam. after i have done with the loading and click the serial monitor, i have tis error message as shown below, may i know what is this ?
Image
Attachments
IMG-20210402-WA0001.jpg
IMG-20210402-WA0001.jpg (50.14 KiB) Viewed 5433 times
IMG-20210402-WA0001.jpg
IMG-20210402-WA0001.jpg (50.14 KiB) Viewed 5433 times

Who is online

Users browsing this forum: No registered users and 92 guests