0.参考
以ESP Component espressif/esp32-camera组件的example为工程进行实践。

1.挂载OV2640
改动1:按主程序文件头部的指导(Setup),在SDK Configuration Editor中确认一下配置。

改动2:按主程序文件头部的指导(Setup),替换成自己使用的板子。
#include "esp_camera.h"
#define BOARD_ESP32S3_GOOUUU 1
改动3:改变一下SPI RAM Mode

2.Build,Flash and Monitor
监视器输出,GoodGood
I (752) main_task: Started on CPU0
I (755) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (763) main_task: Calling app_main()
I (766) s3 ll_cam: DMA Channel=0
I (769) cam_hal: cam init ok
I (771) sccb-ng: pin_sda 4 pin_scl 5
I (775) sccb-ng: sccb_i2c_port=1
I (790) camera: Camera PID=0x26 VER=0x42 MIDL=0x7f MIDH=0xa2
I (790) camera: Detected OV2640 camera
I (791) camera: Detected camera at address=0x30
I (864) cam_hal: PSRAM DMA mode disabled
I (864) s3 ll_cam: node_size: 3840, nodes_per_line: 1, lines_per_node: 6
I (864) s3 ll_cam: dma_half_buffer_min: 3840, dma_half_buffer: 15360, lines_per_half_buffer: 24, dma_buffer_size: 30720
I (873) cam_hal: buffer_size: 30720, half_buffer_size: 15360, node_buffer_size: 3840, node_cnt: 8, total_cnt: 10
I (883) cam_hal: Allocating 153600 Byte frame buffer in PSRAM
I (889) cam_hal: cam config ok
I (892) ov2640: Set PLL: clk_2x: 1, clk_div: 3, pclk_auto: 1, pclk_div: 8
I (963) example:take_picture: Taking picture...
I (1055) example:take_picture: Picture taken! Its size was: 153600 bytes
I (6055) example:take_picture: Taking picture...
I (6055) example:take_picture: Picture taken! Its size was: 153600 bytes
I (11055) example:take_picture: Taking picture...
I (11055) example:take_picture: Picture taken! Its size was: 153600 bytes
2570

被折叠的 条评论
为什么被折叠?



