Difference between revisions of "ESP32-CAM"

From ElectroDragon
Jump to navigation Jump to search
(Logs)
Line 69: Line 69:
 
* Picture file name: /picture0.jpg
 
* Picture file name: /picture0.jpg
 
* Saved file to path: /picture0.jpg
 
* Saved file to path: /picture0.jpg
 +
 +
Fail Log
 +
* rst:0x1 (POWERON_RESET),boot:0x36 (SPI_FAST_FLASH_BOOT)
 +
* configsip: 0, SPIWP:0xee
 +
* clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
 +
* mode:DIO, clock div:1
 +
* load:0x3fff0018,len:4
 +
* load:0x3fff001c,len:1216
 +
* ho 0 tail 12 room 4
 +
* load:0x40078000,len:10864
 +
* load:0x40080400,len:6432
 +
* entry 0x400806b8
 +
* [E][sccb.c:154] SCCB_Write(): SCCB_Write Failed addr:0x30, reg:0xc9, data:0x80, ret:-1
 +
* [E][sccb.c:154] SCCB_Write(): SCCB_Write Failed addr:0x30, reg:0x05, data:0x01, ret:263
 +
* [E][camera.c:1215] camera_init(): Failed to set frame size
 +
* [E][camera.c:1270] esp_camera_init(): Camera init failed with error 0x20002
 
[[category: ESP32 SDK]]
 
[[category: ESP32 SDK]]

Revision as of 05:55, 15 September 2020

Esp32-cam.png

HDK

ESP32-CAM Pin Definition

// Pin definition for CAMERA_MODEL_AI_THINKER

  • #define PWDN_GPIO_NUM 32
  • #define RESET_GPIO_NUM -1
  • #define XCLK_GPIO_NUM 0
  • #define SIOD_GPIO_NUM 26
  • #define SIOC_GPIO_NUM 27
  • #define Y9_GPIO_NUM 35
  • #define Y8_GPIO_NUM 34
  • #define Y7_GPIO_NUM 39
  • #define Y6_GPIO_NUM 36
  • #define Y5_GPIO_NUM 21
  • #define Y4_GPIO_NUM 19
  • #define Y3_GPIO_NUM 18
  • #define Y2_GPIO_NUM 5
  • #define VSYNC_GPIO_NUM 25
  • #define HREF_GPIO_NUM 23
  • #define PCLK_GPIO_NUM 22

M5 Stack

Interface OV2640 Pin ESP32Cam

  • SCCB Clock SIOC IO23
  • SCCB Data SIOD IO22
  • System Clock XCLK IO27
  • Vertical Sync VSYNC IO25
  • Horizontal Reference HREF IO26
  • Pixel Clock PCLK IO21
  • Pixel Data Bit 0 D2 IO17
  • Pixel Data Bit 1 D3 IO35
  • Pixel Data Bit 2 D4 IO34
  • Pixel Data Bit 3 D5 IO5
  • Pixel Data Bit 4 D6 IO39
  • Pixel Data Bit 5 D7 IO18
  • Pixel Data Bit 6 D8 IO36
  • Pixel Data Bit 7 D9 IO19
  • Camera Reset RESET IO15
  • Camera Power Down PWDN see Note 1
  • Power Supply 3.3V 3V3 3V3
  • Ground GND GND
  • SCL IO4
  • SDA IO13
  • 5V 5V
  • GND GND

SCH

SDK

Code

Logs

  • rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
  • configsip: 0, SPIWP:0xee
  • clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  • mode:DIO, clock div:1
  • load:0x3fff0018,len:4
  • load:0x3fff001c,len:1216
  • ho 0 tail 12 room 4
  • load:0x40078000,len:9720
  • ho 0 tail 12 room 4
  • load:0x40080400,len:6352
  • entry 0x400806b8
  • Initializing the camera module...Ok!
  • Initializing the MicroSD card module... Starting SD Card
  • Picture file name: /picture0.jpg
  • Saved file to path: /picture0.jpg

Fail Log

  • rst:0x1 (POWERON_RESET),boot:0x36 (SPI_FAST_FLASH_BOOT)
  • configsip: 0, SPIWP:0xee
  • clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  • mode:DIO, clock div:1
  • load:0x3fff0018,len:4
  • load:0x3fff001c,len:1216
  • ho 0 tail 12 room 4
  • load:0x40078000,len:10864
  • load:0x40080400,len:6432
  • entry 0x400806b8
  • [E][sccb.c:154] SCCB_Write(): SCCB_Write Failed addr:0x30, reg:0xc9, data:0x80, ret:-1
  • [E][sccb.c:154] SCCB_Write(): SCCB_Write Failed addr:0x30, reg:0x05, data:0x01, ret:263
  • [E][camera.c:1215] camera_init(): Failed to set frame size
  • [E][camera.c:1270] esp_camera_init(): Camera init failed with error 0x20002