logo elektroda
logo elektroda
X
logo elektroda

ESP32 Cam - no image, error message capture failed

pier 2820 12
Best answers

Why does an ESP32-CAM report “Failed to get the frame on time” and how can I get the image stream working?

The problem is often the ESP32-CAM setup rather than a dead camera: try Arduino Core 1.0.2 instead of 1.0.4, make sure the sketch uses CAMERA_MODEL_AI_THINKER, and power the module from 5V rather than the 3.3V pin/output [#18792051][#18792202][#18792349] It also helps to test with another ESP32-CAM example sketch to isolate whether the issue is in the program or the hardware [#18792496] In the thread, the original poster eventually got a picture after repeatedly unplugging and replugging the camera and trying many Arduino/core combinations, so a bad connection or marginal setup was likely involved [#18793009]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18792012
    pier
    Level 24  
    Posts: 2446
    Help: 40
    Rate: 1893
    Hello.
    I wanted to test the ESP32 cam module, I uploaded a sample program to it and I have no image.
    In the serial monitor still the message: "[E][camera.c:1344] esp_camera_fb_get(): Failed to get the frame on time!
    Camera capture failed"
    I seemingly found a solution but after modifications it spits out that it does not recognise the camera.

    Can it be concluded that the camera is banged or Do you know of a solution?
  • ADVERTISEMENT
  • #2 18792042
    Anonymous
    Level 1  
  • #3 18792047
    pier
    Level 24  
    Posts: 2446
    Help: 40
    Rate: 1893
    khoam wrote:
    What version of Arduino Core for ESP32 do you have installed? 1.0.4?
    .
    Exactly
  • ADVERTISEMENT
  • #4 18792051
    Anonymous
    Level 1  
  • #5 18792168
    pier
    Level 24  
    Posts: 2446
    Help: 40
    Rate: 1893
    khoam wrote:
    Then change to 1.0.2 for a while, recompile and load the new program.
    .

    I changed it, loaded it and it is not possible to access the stream page. I have tried several times and it does not load.

    Added after 15 [minutes]: .

    The Arduino program has been doing something wrong lately and now it has stopped working. It doesn't start up at all.
  • ADVERTISEMENT
  • #6 18792202
    Anonymous
    Level 1  
  • #7 18792206
    pier
    Level 24  
    Posts: 2446
    Help: 40
    Rate: 1893
    khoam wrote:
    Where did you get this example program? Link?
    .
    From the Arduino examples for the ESP32 board.

    The Arduino is not starting up for me.

    Added after 48 [minutes]: .

    Arduino already embraced, fires up. Camera unchanged regardless of the Arduino Core version for ESP32.
    Of course I change the camera definition in the program.
  • #8 18792334
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #9 18792342
    pier
    Level 24  
    Posts: 2446
    Help: 40
    Rate: 1893
    khoam wrote:
    How do you power this module when the error you described in the first post occurs?
    .
    I supply power from the usb via a 3.3V LM1117 stabiliser. The error always occurs when clicking Start Stream or Get Still.
  • #10 18792349
    Anonymous
    Level 1  
  • #11 18792374
    pier
    Level 24  
    Posts: 2446
    Help: 40
    Rate: 1893
    khoam wrote:
    ESP32-CAM should be powered from 5V. Specifications are attached. Pin "3V3" is the power output.
    .

    It is possible to supply power via the 3.3V pin but just to be sure, I checked with no result.
  • #12 18792496
    Anonymous
    Level 1  
  • #13 18793009
    pier
    Level 24  
    Posts: 2446
    Help: 40
    Rate: 1893
    khoam wrote:
    To be sure, I would still check with another test program (a modification of what is standardly available in the Arduino IDE) - attached.
    Source: https://hackaday.io/project/168563-esp32-cam-example-expanded
    .

    After doing a fartillion times unplugging and plugging the camera into the board and countless combinations with the Arduino I finally have a picture. I don't know if it's mechanically something wrong or if finally Arduino took pity on me and let the hardware work as it should.

Topic summary

✨ The discussion revolves around issues faced with the ESP32-CAM module, specifically the inability to capture images and the error message "[E][camera.c:1344] esp_camera_fb_get(): Failed to get the frame on time! Camera capture failed." Users suggest checking the Arduino Core version, with recommendations to switch to version 1.0.2. The importance of using the correct camera model definition (CAMERA_MODEL_AI_THINKER) is emphasized. Power supply concerns are raised, with suggestions that the module should be powered from 5V instead of 3.3V. After multiple attempts and troubleshooting, one user finally managed to get a picture, indicating potential mechanical issues or software inconsistencies.
Generated by the language model.

FAQ

TL;DR: Seeing “esp_camera_fb_get(): Failed to get the frame on time!”? Use a 5 V supply—“Pin 3V3 is the power output.” [Elektroda, khoam, post #18792349]

Quick Facts

How do I fix “esp_camera_fb_get(): Failed to get the frame on time!” fast?

Start with power, model, and ribbon. 1. Power the ESP32‑CAM from the 5V pin using a stable 5 V source. 2. In CameraWebServer, set CAMERA_MODEL_AI_THINKER and comment out others. 3. Reseat the OV2640 ribbon firmly in the socket, then retest. [ESP32-CAM Troubleshooting Guide]

Should I power ESP32‑CAM from 5 V or 3.3 V?

Use 5 V on the 5V pin. Do not feed the 3V3 pin. “Pin 3V3 is the power output.” This simple change prevents capture failures linked to incorrect powering. [Elektroda, khoam, post #18792349]

Which Arduino‑ESP32 core version helps if 1.0.4 fails?

Install core 1.0.2 and recompile. Users report it restores camera capture when 1.0.4 misbehaves. “Then change to 1.0.2 for a while, recompile and load the new programme.” [Elektroda, khoam, post #18792051]

I set CAMERA_MODEL_AI_THINKER but still no image. What next?

Check the camera ribbon seating. The OP repeatedly unplugged and replugged the camera and finally got a picture. Intermittent contact often blocks frame capture until reseated. [Elektroda, pier, post #18793009]

What Arduino IDE settings are required for ESP32‑CAM streaming?

Select the AI Thinker ESP32‑CAM board, set CAMERA_MODEL_AI_THINKER in the sketch, and use 115200 baud in Serial Monitor. Upload, then browse to the printed IP address. [ESP32-CAM Troubleshooting Guide]

Why can’t I open the stream page after uploading?

Confirm your computer/phone is on the same network. Open the exact IP shown in Serial Monitor using http://IP. If the page still stalls, lower frame size to VGA/QVGA and ensure stable 5 V power. [ESP32-CAM Troubleshooting Guide]

I get “Camera not recognized” after code changes. What should I check?

Ensure the camera model define matches your board: CAMERA_MODEL_AI_THINKER. Misdefining the model blocks initialization. Also reseat the OV2640 ribbon to rule out a poor connection. [ESP32-CAM Troubleshooting Guide]

What’s a proven test sketch to validate the camera hardware?

Use the ESP32‑CAM Example Expanded. It is a known-good test that builds on the Arduino example and reports status, helping you confirm camera detection. [ESP32-CAM Example Expanded]

What does the timeout error actually mean?

The driver waited too long for a frame buffer from the camera. Power issues, incorrect camera model, or a loose ribbon commonly cause it. Fix those, then retry streaming. [ESP32-CAM Troubleshooting Guide]

Can powering from a USB‑to‑serial adapter’s 3.3 V pin cause this?

Yes. Do not power the board from 3.3 V. Use 5 V on the 5V pin. “Pin 3V3 is the power output.” Incorrect input voltage leads to capture failures. [Elektroda, khoam, post #18792349]

My Arduino IDE stopped launching mid‑debug. Could that be the problem?

Yes. Toolchain failures can mask the real issue. The OP’s Arduino IDE stopped working and needed attention before camera testing continued. Restart or reinstall the IDE, then reflash and retest. [Elektroda, pier, post #18792168]

How do I find the ESP32‑CAM’s IP address to view the stream?

Open Serial Monitor at 115200 baud. After connecting to Wi‑Fi, the sketch prints the device IP. Enter that IP in your browser to open the web UI. [ESP32-CAM Troubleshooting Guide]

Stream starts but freezes. Any quick tweaks?

Reduce framesize to VGA or QVGA and lower JPEG quality. This eases memory and bandwidth demands and improves stability during streaming. Ensure solid 5 V power as you retest. [ESP32-CAM Troubleshooting Guide]

Is my OV2640 camera dead, or is this a setup issue?

Rule out setup first: correct power, camera model define, and a firmly seated ribbon. The OP restored video after reseating, indicating a connection issue rather than a dead sensor. [Elektroda, pier, post #18793009]
Generated by the language model.
ADVERTISEMENT