Guide by Tim; Use a ESP32-CAM Module to Stream HD Video Over Local Network

I have just shared content in Guides > Wireless: “Use a ESP32-CAM Module to Stream HD Video Over Local Network”





Read more

4 Likes

Hi Tim, I have just started having a look at the esp32-cam and I have got as far as trying to flash the “CameraWebServer” code from your project onto it via an Arduino Uno R3 but I am getting an error late during the compiling stage as follows:

"Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "ESP32 Wrover Module, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), QIO, 80MHz, 921600, None, Disabled

Sketch uses 1495301 bytes (114%) of program storage space. Maximum is 1310720 bytes.

text section exceeds available space in board

Global variables use 71364 bytes (21%) of dynamic memory, leaving 256316 bytes for local variables. Maximum is 327680 bytes.

Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.

Error compiling for board ESP32 Wrover Module."

Any suggestions for where to next for me?
Do I need a bigger Arduino or do I need to put an SD card in the ESP32-cam, or have I done something wrong??

2 Likes

Sorry, I panicked too soon. If all else fails (re-)read the instructions. I missed the partition selection in the configuration fine print. Now compiling OK.

2 Likes

If you get this error: Camera probe failed with error 0x105(ESP_ERR_NOT_FOUND)

You might need to change the camera model definition. This one worked for me:
#define CAMERA_MODEL_AI_THINKER // Has PSRAM

2 Likes

Compilation error: human_face_detect_msr01.hpp: No such file or directory
camera: OV2640_V1

2 Likes

Hey Zbigniew,

Could you send through an image of your hardware as well? That’ll really help with the troubleshooting process for me over here.

Kind regards,
Tim

1 Like

My hardware


2 Likes

Hey Zbigniew

You probably need to change the camera model definition as one of the errors is Camera Probe failed.

Uncommenting this one worked for a fellow higher-up (there are a couple of camera definitions at the top of the script so you can trial and error them one by one) -
#define CAMERA_MODEL_AI_THINKER // Has PSRAM

Or is the situation that when you try to use the AI Face Recognition System it errors out?

Kind regards,
Tim

1 Like

Hey,
I’ve alredy try all camera models but still I have problem with code depens on wersion of camera.
Sorry for my english I haven’t use this language for few years.


Zrzut ekranu_20230302_214545

1 Like

1 Like

Hey Zbigniew.

It looks like your | app_httpd.cpp | is very different than the one I have on my computer. See my section of that file that’s giving you problems in the image below, it looks completely different than yours.

So hopefully this will be an easy fix. Make sure you use the link at the bottom of the full written-up article and unzip it. Then open up the correct | CameraWebServer | file which will be in the folder | ~User\Downloads\article-downloads-esp32-cam-scripts\ESP32\examples\Camera\CameraWebServer |.

Hope that helps you!

Kindest regards,
Tim

Hi,
I have the same problem
![e1|690x357]
(upload://g9zwaz1Kuc97BirIhsuTCy9xQ8q.jpeg)

Kindest regards,
Zbyszek

Hi Tim,

I am using your tutorial for a component in a university project and am currently getting this error. Is there any advice you have to solve it?

Thanks,
Dave

Hey David,
Welcome to the forums!

It looks like the sketch isn’t properly identifying the camera module you are using.
Could you double check your board info and see what the board variant is showing as in the Arduino IDE, you can do this by going to Tools and clicking Get Board Info
It should show you the type of board under BM: and from there, ensure your board type is the one available within the sketch between lines 16-29 as shown below:
image
From there try again to upload the sketch and if the problem persists, we can try and figure it out and get it fixed up for you.

Cheers,
Blayden

Hi Blayden,

Thanks for your reply! I have got the ESP32 connected to an Arduino Uno, so it says BN: Arduino Uno, I have attached a photo to show.

Thanks in advance for any more help you can give me.

Dave


1 Like

Hey David,

There may be some differences using the Arduino Uno to flash the ESP32CAM module, one thing I did find was that the specification of Flashmode:QIO may be a necessity that isn’t described in some guides. Make sure that the connection between Reset and ground is there (I can see you have a jumper, though make sure the ends are properly seated) or alternatively you can remove the ATmega16U2 from its socket just to be sure.

Alternatively if this doesn’t work (it seems like everything is wired up correctly) it might be worth getting an FTDI breakout for this ESP board as they can be fairly finnicky.

If you could upload a screenshot of the Tools menu settings, it would be helpful too.

Cheers,
Blayden

1 Like

Hi Blayden,

I believe the ends are properly seated, I don’t know what you mean by Flashmode: QIO.

I have attached my tools menu.

Thanks again and sorry for needing so much assistance.

Hey David,

No worries at all, helping out is what we are here to do (plus it isgreat to debug for anyone else that may have the same problem in future)!
While we don’t have any ESP32 CAMs currently in stock, I will bring in my personal one tomorrow to try and debug the problem from my end with your setup. Maybe someone will jump in before me and point out something I may have missed in the meantime, but I will try and get a solid answer for you tomorrow with it physically in front of me.

Cheers,
Blayden

Hi Blayden,

Just wondering if you had any luck? I have been trying to work it out today as well without much progress.

Thanks,
David

Hey David,

I have been working on it intermittently all day and I think the basis of your error has more to do with the sketchs included libraries than anything else.

Give these steps a go and see if it resolves the issue.:

  • Check if you have multiple installations of the same library by going to the Sketch > Include Library menu in the Arduino IDE. If you see multiple versions of the WiFi library listed, remove the older or unnecessary versions.
  • Check your Sketch folder and Libraries folder to ensure there aren’t any conflicting or duplicate library files. If you find any duplicates, remove them.
  • Ensure that the correct board is selected in the Tools > Board menu of the Arduino IDE. Make sure the board you have selected is compatible with the libraries you are using.
  • Make sure you have the latest version of the library installed by going to Sketch > Include Library > WiFi and selecting “Update” if available.
  • Restart the Arduino IDE and try compiling your sketch again.

If that fails to work, you can try and clear the cache of your IDE by going to File>Preferences>Clear Cache.
I hope that works for you so you can get back on track.

Cheers,
Blayden

2 Likes