cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get started with OV2640 camera module?

DMårt
Senior II

Hi!

I have a STM32 F446RE Nucleo board and that bord have DCMI included.

I wonder if I only need to connect the OV2640 camera module to the GPIO's of F446RE and then I'm done?

Or do I need to write some more code?

Where do I start?

The only information I found about OV2640 is here

http://pcbartists.com/design/imaging/stm32-ov2640-camera-interfacing/

Picture:

0690X00000BwMFwQAN.png

Does this mean that I only need to connect the DCMI pins to the camera + I need to connect the I2C pins to the camera as well?

Then I only need to write the I2C commands that can be found inside the data sheet of the camera module?

http://pcbartists.com/wp-content/uploads/2019/06/Reference-1-OV2640-datasheet.pdf

I assume that the picture will be like an array or something of 32 bit uint?

Or will the data be a struct?

4 REPLIES 4
KnarfB
Principal III

> I need to connect the I2C pins to the camera as well?

Yes, for camera control. The camera init sequences tend to be long, so you should look

You must also take care of the supply voltages and possibly level converters for IO, depending on your camera module. Look for reference designs, the chip is not new.

So the DCIM will handle the data by it self. But all I need to do is to control the I2C for the camera​?

​does OV2640 work with STM32F446re?

KnarfB
Principal III

Study the AN5020 Application note "Digital camera interface (DCMI) for STM32 MCUs"

There are STM boards like the 32F746GDISCOVERY and a camera module for it: STM32F4DIS-CAM. Both are well documented including schematics. The sensor is a different one, but similar.

I see that in the document, a OV9655 Cameron is used. I can following this manual for STM32 F446RE as well if I got a OV9655 camera?