OV2640 vs OV7670: Spec Comparison, Sample Images, Datasheets, Lens Options, Pinouts, Compatibility, and Tutorials

Published by Lee Jackson on

Specifications and Datasheets of OV2640 and OV7670

ov2640 vs OV7670
Key SpecsOV2640OV7670
Array Size1600 x 1200 (UXGA)640 x 480 (VGA)
Power SupplyCore: 1.3V DC ± 5%
Analog: 2.5~3.0V DC
I/O: 1.7V to 3.3V
Core: 1.8V DC ± 10%
Analog: 2.45~3.0V DC
I/O: 1.7V to 3.0V
Power ConsumptionFree running: 125mW
Standby:600μA
Free running: 60mW
Standby: < 20μA
Image Sensor FormatType 1/4″Type 1/6″
Maximum Image Transfer Rate1600×[email protected],
[email protected],
[email protected]
[email protected]
Sensitivity0.6V/Lux-sec1.3V/Lux-sec
S/N ratio40dB46dB
Dynamic Range50dB52dB
Pixel Size2.2 x 2.2 μm3.6 x 3.6 μm
Output FormatYUV/RGB/Raw RGB Data/MJPEGYUV/RGB/GRB/Raw RGB Data
Shutter TypeRolling ShutterRolling Shutter

What you need to know about these two image sensors:

  • OV7670 was released on August 15, 2005; OV2640 was released in the following year (2006).
  • Both sensors were initially designed for mobile applications.
  • Both sensors have build-in ISP and output YUV and RGB video format
  • What makes these two discontinued sensors more and more popular in recent years is their cost-effectiveness, successful integrations with MCUs, the growing trend of embedded systems, and the rise of machine learning and computer vision technologies.
  • OV7670 works right after the power is applied and no additional register settings are required,while OV2640 must do registers initialization to make it output any video.
  • OV2640 offers higher resolution and more importantly, it has an on-chip JPEG encoder, which offloads the processing power from low-end MCU and takes much less memory footprint on limited MCU internal RAM.
  • If VGA resolution at 30 fps is good enough for your project, OV7670 is usually a better choice because it’s way cheaper than the OV2640 camera.

Below are the full datasheets of these two image sensors:

Sample Images Captured by OV2640 & OV7670 Camera Modules

sample photos taken by ov7670 and ov2640

Photos were taken at the two camera’s maximum resolutions. You can download the sample images here:

The setup we used to take these images:

ov7670 ov2640 camera development kit

With the Arducam USB camera evaluation board, you can tune the sensor registers on-the-fly to get the best result much easier.

Pinouts of the 24-Pin OV7670 & OV2640 CCMs

OV2640 vs OV7670 Camera Module Pin Definitions (01 ~ 24)

ov2640 vs ov7670 pin definitions comparison
Pin No.OV2640OV7670
1STROBENC
2AGNDDGND
3SDASDA
4AVDD (2.8V)AVDD
5SCLSCL
6RESETRESET
7VSYNCVD
8PWDNPWDN
9HREFHD
10DVDDDVDD
11DOVDDDOVDD
12D9D7
13MCLKMCLK
14D8D6
15DGNDGND
16D7D5
17PCLKPCLK
18D6D4
19D2D0
20D5D3
21D3D1
22D4D2
23D1NC
24D0NC

Where to buy OV2640 & OV7670 Camera Modules

get ov2640 or ov7670 cameras with various interfaces

There are many different versions of the two cameras, the main differences between them are the interfaces they have, and whether or not they are compatible with particular hardware or platforms.

1. OV2640 & OV7670 CCM Camera Module

Why you need CCM Camera Modules:

  • Do-it-yourself with the camera bring-up, developing, debugging, and tuning process.
  • In terms of volume production, standard CCM modules are generally better.
  • Saving budget with the lowest possible cost over camera modules.

2. OV2640 SPI Camera Module

Why you need SPI camera modules:

  • Highly optimized to work on resource-constrained microcontrollers.
  • Up to 8MByte onboard frame buffer.
  • I2C for configuration, SPI for data, and command.
  • Support multiple camera setups on a single MCU.

3. OV2640 & OV7670 USB 2.0 Camera Evaluation Kit

Why you need camera evaluation kits:

  • USB 2.0 connection for quick Proof-of-Concept building with the two cameras.
  • Tweak the sensor registers on the fly.
  • Comprehensive SDK and API for easy integration.
  • Swappable DVP camera adapters that add support for more sensors.

OV2640 & OV7670 Resources and Tutorials

ov2640 ov7670 camera resources and tutorials

Given the above camera variants and with some coding, you can put them on just about any hardware you want. Below is a list of guaranteed-to-work platforms and documentations to help you jump-start your machine vision journey.

Arduino

ESP32/ESP8266 (Node MCU)

Raspberry Pi Pico & RP2040 Boards

STM32 Development Boards

BBC Micro: Bit

OV2640 & OV7670 Camera Project Recommendations


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *