logo elektroda
logo elektroda
X
logo elektroda

[Solved] NodeMCU V2 + ArduCam Mini 2MP OV2640 - browser display problem

p.szkutnik 474 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20479994
    p.szkutnik
    Level 2  
    Good morning

    I've been struggling for a long time, but finally I have to ask for help...
    I recently bought myself a NodeMCU V2 module ( exactly this one ). I also have an ArduCam-Mini-2MP camera based on the OV2640 ( this ). Well, and of course I'd like to make myself a webcam :)

    I've connected one to the other in the standard way (I've tried it many times, just in case I made a mistake), I've uploaded probably all the necessary boards and libraries to the Arduino app, I run the "ArduCAM_ESP8266_OV2640_Capture" sketch, the ESP8266 connects to the home Wi-Fi, I type the appropriate address into the browser, the serial port monitor displays:
    20:37:57.294 -> Server started
    20:38:02.395 -> CAM Capturing
    20:38:02.491 -> capture total_time used (in milliseconds):52
    20:38:02.491 -> CAM Capture Done!
    20:38:10.088 -> send total_time used (in milliseconds):7624
    20:38:10.088 -> CAM send Done!

    The browser shows a dark background, but on it only the message:
    Image "http://192.168.0.199/capture" cannot be displayed because it contains errors.

    The camera itself is functional, because when I connect it via a regular Arduino and upload the sketch "ArduCAM_Mini_2MP_Plus_functions", I can see the image from it in the application "ArduCAM_Host_V2.exe". Incidentally, the same sketch uploaded to the ESP8266 gives "COM is open!" and "ArduCAM single" messages in the same application, but nothing else and the image is not there (here, however, I guess it has a right not to be).

    In the file "memorysaver.h" I set once "#define OV2640_MINI_2MP", once "#define OV2640_MINI_2MP_PLUS", but neither one nor the other gives anything (actually for this camera it should be with PLUS).

    What am I doing wrong, can someone advise me?

    Greetings
    Piotrek
  • ADVERTISEMENT
  • #2 20518733
    p.szkutnik
    Level 2  
    Problem solved! By trial and error I came to the fact that in the file "memorysaver.h" the definition should be uncommented:
    #define ARDUCAM_SHIELD_V2
    And already everything works :) .
ADVERTISEMENT