Descrição
The OV2640 2MP Camera Module is an image capture board with a 2-megapixel CMOS sensor, for computer vision, monitoring and photo recording projects in embedded systems. The sensor captures images up to 1600 x 1200 pixels and delivers the output in formats such as JPEG or RGB, ready to be processed or stored by the microcontroller. It is intended for platforms such as Arduino, STM32, FPGA and DSP. As the module has no memory of its own to store frames, the board you connect to it decides what to do with the images.
How to connect and use: the module has a 20-pin connector with 2.54 mm pitch. The power supply must be 3.3 V. Do not connect it to 5 V. The sensor configuration (resolution, format, gain, white balance and other parameters) is done through the SCCB bus, which is compatible with I2C, using two signal lines. Image data comes out through an 8-bit parallel bus, of the DVP type, together with the synchronization and pixel clock signals. The sensor requires an external clock (XCLK) generated by the microcontroller. The board needs enough input pins for the data bus and enough RAM to store at least one frame before sending it. This module was designed to work with camera libraries for ESP32 and other libraries compatible with DVP and SCCB. The Arduino ArduCAM line uses a different interface (SPI, with its own shield) and is not the same type of module.
SPECIFICATIONS
Brand: OEM
Model: OV2640
Sensor: OV2640 CMOS, 2 megapixels, 1/4 inch format
Maximum resolution: 1600 x 1200 pixels (UXGA); the sensor's physical array is 1632 x 1232
Frame rate: up to 15 fps at UXGA, 30 fps at SVGA and 60 fps at CIF
Output formats: JPEG, RGB RAW, RGB565/555, YUV 4:2:2, YCbCr 4:2:2 and YUV 4:2:0
Resizing: scaling from SXGA down to 40 x 30 pixels
Control and configuration: SCCB bus (I2C compatible)
Data interface: 8-bit parallel (DVP)
Operating voltage: 3.3 V
Digital logic levels: 3.3 V LVTTL; I/O voltage between 1.7 V and 3.3 V
Sensitivity: high in low light
Connector: 20 pins, 2.54 mm pitch
Onboard memory (flash, EEPROM, SRAM): 0 KB as listed, meaning the module has no memory of its own
Dimensions: 2.5 cm x 2.5 cm x 2.5 cm as listed; other OV2640 module manufacturers usually have sides between 27 mm and 28 mm
Weight: 15 g
Declared compatibility: Arduino, STM32, FPGA and DSP
USB cable included: no
WHAT YOU NEED ALONG WITH IT
A board with at least 8 free digital pins for the data bus, plus the synchronization, SCCB and XCLK pins. It also needs enough RAM to hold one frame. A regular Arduino UNO usually does not have the resources for this. A board with more RAM and pins, such as an ESP32 or an STM32, is usually the most suitable choice. You also need a camera library compatible with the OV2640 sensor and with your board, and a flat cable or adapter to connect the module. Also check that your board has a 3.3 V supply with sufficient current.
WARNING
The most common mistake is powering the module with 5 V or connecting the signal pins directly to a 5 V board without level conversion. The sensor operates at 3.3 V. Another common mistake is buying the module thinking it works with the Arduino UNO and an SPI shield, like those in the ArduCAM line. This module uses a parallel bus, so confirm the interface before buying.