2025-12-23 1:43 AM
Can we interface the Raspberry Pi camera with the STM32 that has a camera interface feature?
2025-12-23 3:51 AM - edited 2025-12-23 3:52 AM
Hello,
This is an answer from STM32 Sidekick
:
The STM32 DCMI (Digital Camera Interface) is designed to connect with camera modules and CMOS sensors that use an 8- to 14-bit parallel interface. It supports various video formats and data rates up to 140 Mbyte/s with an 80 MHz pixel clock. However, the Raspberry Pi camera typically uses a MIPI CSI-2 serial interface, which is not directly compatible with the parallel DCMI interface of STM32 MCUs. There is no direct mention or example in the official documentation of interfacing a Raspberry Pi camera with STM32 DCMI, and thus, direct connection is not supported.
The STM32 DCMI interface is compatible with a wide range of camera modules that provide a parallel output. Examples include:
Always verify the camera module's specifications for compatibility with the DCMI interface.
The STM32 DCMI does not natively support MIPI CSI-2 camera modules, such as the Raspberry Pi camera, because it is a parallel interface, not a serial one. However, it is possible to use a MIPI CSI-2 to parallel bridge, such as the STMIPID02 from STMicroelectronics. This bridge converts the MIPI CSI-2 output to a parallel format compatible with the DCMI. Some STM32MP13 Discovery kits include such a bridge, enabling the use of MIPI CSI-2 cameras with STM32 DCMI.
For additional support or to discuss your specific application with ST experts, you’re welcome to join conversations in STM32 forums.
Please also refer to the AN5020 "Introduction to digital camera interface (DCMI) for STM32 MCUs"
and the wiki: Camera bridges hardware components