Custom video streaming web server project - no output on serial monitor

Hi - I have just tried to use the project “iot_3_html_cam_led” in the StarterKit. I uploaded the sketch successfully, after adding my SSID and Password and ensuring the baud rate is set correctly, but I get no output on the serial monitor - (it should output the URL for the webpage to view the camera stream).

I added a simple print statement in the loop() to check the serial output was working, and that worked fine. Any ideas why this isn’t working? I noticed the loop() is empty, which seems strange to me - is that an error in the sketch?

Thanks!

As an update: I placed the code line startCameraServer(); in the loop() and I got this output repeatedly:

ELF file SHA256: 39d21cd43

Rebooting…

��?qL�1[!aʄ])9q1!���9!�E (150) cam_hal: cam_dma_config(301): frame buffer malloc failed

E (150) cam_hal: cam_config(390): cam_dma_config failed

E (150) camera: Camera config failed with error 0xffffffff

Camera init failed with error 0xffffffff

assert failed: xQueueSemaphoreTake queue.c:1709 (( pxQueue ))

Backtrace: 0x40082625:0x3ffb1ea0 0x4008cd7d:0x3ffb1ec0 0x400932ca:0x3ffb1ee0 0x4008d552:0x3ffb2010 0x400f87ca:0x3ffb2050 0x400e7d8a:0x3ffb2070 0x400f8d3d:0x3ffb2090 0x400f8d9d:0x3ffb20b0 0x400e6cfd:0x3ffb2100 0x4011040b:0x3ffb2120 0x400d2ac0:0x3ffb2190 0x400d2c6f:0x3ffb2250 0x400d7684:0x3ffb2270 0x4008d9f6:0x3ffb2290

There should be two steps you have overlooked.
Before you upload the code, enable PSRAM and set the partition scheme to Huge APP (3MB No OTA/1MB SPIFFS).
After selecting the correct motherboard (ESP32 Dev Module) and port, click the “Upload” button.
We explained this in 8.2 Camera Network Server. But in 8.3 Customizing the Video Streaming Web Server lesson, we did not add this point, which you may have overlooked, we will add these two steps in the tutorial later.

Thanks for the reply. I had already made those changes but with no success.

Can you tell me which camera module should be selected in the #defined list please? In other words, which camera module is supplied with the Sunfounder kit?

Thank you.

…by way of an update: I powered up my laptop and ESP board this morning and (making no changes at all to the code), it worked and gave me the ip address. I entered this address into Chrome and Safari browsers, but both said “Address unreachable”.

I then powered everything down, and powered up again to check for a consistent result, but unfortunately I again got the error “Camera init failed with error 0x105”. So I may have a flakey camera module?

Incidentally - there is no mention as to whether there should be a SD card in the board tat the camera module plugs into, so I assume it should work without one?

Thanks for any further advice you can give.

  1. After esp 32 successfully configures the network, the computer PC browser accesses the IP of esp 32 successfully configured, provided that the network of esp 32 successfully configured and the computer’s network should be in the same LAN, in order to have normal access.
    For example, your esp 32 network IP is 192.168.1.0, while the computer’s IP is 192.168.1.8, in order to access normally. If your computer’s IP is 192.168.2.1, you can’t access it.
  2. Right. Whether the expansion board has an SD card inserted or not has nothing to do with the camera function, they are two functions.
  3. Our camera is: ESP32-CAM for 75mm 66 degree OV2640 camera.
  4. Please make sure the camera is firmly connected to the expansion board.

Thanks for the response. The cameras listed in your code are as follows:

Blockquote

#define CAMERA_MODEL_WROVER_KIT // Has PSRAM

//#define CAMERA_MODEL_ESP_EYE // Has PSRAM

//#define CAMERA_MODEL_ESP32S3_EYE // Has PSRAM

//#define CAMERA_MODEL_M5STACK_PSRAM // Has PSRAM

//#define CAMERA_MODEL_M5STACK_V2_PSRAM // M5Camera version B Has PSRAM

//#define CAMERA_MODEL_M5STACK_WIDE // Has PSRAM

//#define CAMERA_MODEL_M5STACK_ESP32CAM // No PSRAM

//#define CAMERA_MODEL_M5STACK_UNITCAM // No PSRAM

//#define CAMERA_MODEL_M5STACK_CAMS3_UNIT // Has PSRAM

//#define CAMERA_MODEL_AI_THINKER // Has PSRAM

//#define CAMERA_MODEL_TTGO_T_JOURNAL // No PSRAM

//#define CAMERA_MODEL_XIAO_ESP32S3 // Has PSRAM

// ** Espressif Internal Boards **

//#define CAMERA_MODEL_ESP32_CAM_BOARD

//#define CAMERA_MODEL_ESP32S2_CAM_BOARD

//#define CAMERA_MODEL_ESP32S3_CAM_LCD

//#define CAMERA_MODEL_DFRobot_FireBeetle2_ESP32S3 // Has PSRAM

//#define CAMERA_MODEL_DFRobot_Romeo_ESP32S3 // Has PSRAM

Blockquote

Can you tell me which of these is the correct camera to choose please?

I have used AI Thinker Camera, as I see the new sketch on the SunFounder page has this camera selected.

I get the IP address, and when I go there I get this display: This is not the same as the page you show so I am wondering what to do next?

After you accessed the webcam, the page did not display the image, we recommend refreshing the page to see if the image can be displayed properly?
.
It is recommended to work with our configured webcam.