I'm trying to connect an OV2640 camera module to a microcontroller.

This camera module has only 18 pins as seen in this schema: https://imgur.com/a/SGpfrXt

Here an image of the module: https://imgur.com/a/7MOIDwi

These pins are on the module:

  • 3.3V
  • GND
  • SCL
  • SDA
  • D0 - D7
  • DCLK
  • PWDN
  • NC

Maybe I could set XLCK and PLCK via the DCLK pin but I don't know how.

I am pretty new to camera modules and searched the net a lot of times. Most examples are for the OV7670. This module has also 18 Pins but all are used quiet contrary to the OV2640.

Could anybody help me connect and get a signal?


In this specific OV2640 module, it's supposed to have a 12MHz oscillator in the board connected to XLCK pin (you can all time adjust the PLL trough SCCB interface as usual). Remove the plastic lens and see near the CMOS. Regards

  • 1
    Thanks for your answer. Yes there is a oscillator right to the CMOS, i am a nooby when it comes to cameras with microcontroller. In all examples the XCLK is connected to a pin, i read that the XCLK could be "simulated" but i don't know how. – jsimon Jan 30 '19 at 12:49

I also bought one of these to use with an esp32, not realizing that there was an on-board oscillator and no system clock pin. I just left the pin on the esp that's supposed to connect to XCLK hanging, and set the frequency to 12000000 in my code. It seems to work alright!

Not the answer you're looking for? Browse other questions tagged or ask your own question.