cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H753 with the OV5640 Camera

0xdharanesh
Associate

Hello everyone,

I’m new to STM32 development and I’m trying to set up a simple test using the STM32H753 with an OV5640 camera module.

My goal is to capture frames from the OV5640 and send them over USB to view them on my laptop — just to verify that the camera is working and capturing images correctly.

I’ve gone through various online examples and references, but most of them are either for different STM32 families or for other camera sensors. I’ve written some code based on those examples, but it doesn’t seem to work — I suspect I might be missing something in the clock configuration.

I’m currently using the official OV5640 driver from ST:
:backhand_index_pointing_right: https://github.com/STMicroelectronics/stm32-ov5640/blob/main/ov5640.c

If anyone has experience connecting the OV5640 to an STM32H7 series MCU (especially the H753) or has an example project to share, I’d really appreciate your help or guidance on the correct initialization and clock setup.

Thank you in advance!

1 REPLY 1
KDJEM.1
ST Employee

Hello @0xdharanesh and welcome to the community;

 

I recommend you take a look at these examples:

  • Examples  in FP-AI-VISION1 package: The FP-AI-VISION1 function pack features a USB webcam application, which can be used to create image and video datasets as well as to perform live testing on the host. The FP-AI-VISION1 runs on the STM32H747I-DISCO Discovery board connected to the B-CAMS-OMV (OV5640) camera module 
  • DCMI_CaptureMode this example explains how to use the DCMI to interface with a camera module (OV5640) and continuously capture images to a Camera Frame Buffer located in external SDRAM. Each camera image is then copied to the LCD display frame buffer using the DMA2D in ARGB8888 format.
  • DCMI_SnapshotMode this example describes how to use the DCMI to interface with a camera module (OV5640), capture a single image in Camera Frame Buffer (320x240 with RGB565 format) and once full frame camera is captured display it on the LCD in ARGB8888 format.

These examples have been tested with STM32H747I-DISCO board and can be easily tailored to any other device.

I hope this help you!

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.