1.. _weact_ov2640_cam_module: 2 3WeAct Studio MiniSTM32H7xx OV2640 Camera Sensor 4############################################### 5 6Overview 7******** 8 9The OV2640 camera sensor is designed to interface with the WeAct Studio 10MiniSTM32H7xx boards, providing camera sensor capabilities. This shield 11integrates the OV2640 camera module, which is capable of capturing images 12and video with a resolution of up to 2 megapixels. 13 14.. figure:: ov2640.webp 15 :align: center 16 :alt: OV2640 Camera Sensor 17 18More information about the OV2640 camera sensor can be found on the 19`MiniSTM32H7xx GitHub`_ and in the `OV2640 datasheet`_. 20 21Requirements 22************ 23 24Your board needs to have a ``zephyr_camera_dvp`` device tree label to work with this shield. 25 26Pin Assignments 27=============== 28 29The shield connects to the WeAct Studio MiniSTM32H7xx board via the 30following pins: 31 32+--------------+-----------+-----------------------------+ 33| Shield Pin | Board Pin | Function | 34+==============+===========+=============================+ 35| DCMI_D0 | PC6 | DCMI Data Line 0 | 36+--------------+-----------+-----------------------------+ 37| DCMI_D1 | PC7 | DCMI Data Line 1 | 38+--------------+-----------+-----------------------------+ 39| DCMI_D2 | PE0 | DCMI Data Line 2 | 40+--------------+-----------+-----------------------------+ 41| DCMI_D3 | PE1 | DCMI Data Line 3 | 42+--------------+-----------+-----------------------------+ 43| DCMI_D4 | PE4 | DCMI Data Line 4 | 44+--------------+-----------+-----------------------------+ 45| DCMI_D5 | PD3 | DCMI Data Line 5 | 46+--------------+-----------+-----------------------------+ 47| DCMI_D6 | PE5 | DCMI Data Line 6 | 48+--------------+-----------+-----------------------------+ 49| DCMI_D7 | PE6 | DCMI Data Line 7 | 50+--------------+-----------+-----------------------------+ 51| DCMI_HSYNC | PA4 | DCMI HSYNC | 52+--------------+-----------+-----------------------------+ 53| DCMI_VSYNC | PB7 | DCMI VSYNC | 54+--------------+-----------+-----------------------------+ 55| DCMI_PIXCLK | PA6 | DCMI Pixel Clock | 56+--------------+-----------+-----------------------------+ 57| I2C_SDA | PB9 | I2C Data Line | 58+--------------+-----------+-----------------------------+ 59| I2C_SCL | PB8 | I2C Clock Line | 60+--------------+-----------+-----------------------------+ 61| RCC_MCO1 | PA8 | Clock Output | 62+--------------+-----------+-----------------------------+ 63| SUPPLY | PA7 | Power Supply Control (GPIO) | 64+--------------+-----------+-----------------------------+ 65 66Programming 67*********** 68 69Set ``--shield weact_ov2640_cam_module`` when you invoke ``west build``. For example: 70 71.. zephyr-app-commands:: 72 :zephyr-app: samples/drivers/video/capture_to_lvgl/ 73 :board: mini_stm32h743 74 :shield: weact_ov2640_cam_module 75 :gen-args: -DCONFIG_BOOT_DELAY=2000 76 :goals: build 77 78.. _MiniSTM32H7xx GitHub: 79 https://github.com/WeActStudio/MiniSTM32H7xx 80 81.. _OV2640 datasheet: 82 https://www.uctronics.com/download/cam_module/OV2640DS.pdf 83