5MP: OV5640

  • Introduction

ArduCAM now released a new 5MegaPixel AutoFocus CMOS camera module with JPEG output. The camera module is based on Omnivision OV5640 image sensor and can be used with ArduCAM shields and other platforms like Freescale i.MX6 develop board.

The OV5640 (color) image sensor is a low voltage, high-performance, 1/4-inch 5 megapixel CMOS image sensor that provides the full functionality of a single chip 5 megapixel (2592×1944) camera using OmniBSI™ technology in a small footprint package. It provides full-frame, sub-sampled, windowed or arbitrarily scaled 8-bit/10-bit images in various formats via the control of the Serial Camera Control Bus (SCCB) interface.

The OV5640 has an image array capable of operating at up to 15 frames per second (fps) in 5 megapixel resolution with complete user control over image quality, formatting and output data transfer. All required image processing functions, including exposure control, gamma, white balance, color saturation, hue control, defective pixel canceling, noise canceling, etc., are programmable through the SCCB interface or embedded microcontroller. The OV5640 also includes a compression engine for increased processing power. In addition, Omnivision image sensors use proprietary sensor technology to improve image quality by reducing or eliminating common lighting/electrical sources of image contamination, such as fixed pattern noise, smearing, etc., to produce a clean, fully stable, color image.

  • Features

OV5640_feature

  • Key Specifications

OV5640_Spec

  • Block Diagram

OV5640_diagram

  • Application
  • Cellular phones
  • PDAs
  • Toys
  • Other battery-powered products
  • ARM based platforms
  • Pin Definition

The OV5640 module uses standard ArduCAM camera pin out. And the OV5640 support both DVP (parallel) and MIPI interface with some shared pins. User can configure the module with different interface mode and pin out definition is list as follows.

DVP interface

Pin No.PIN NAME TYPE DESCRIPTION
1VCCPOWER3.3v Power supply
2GNDGroundPower ground
3SCLInputTwo-Wire Serial Interface Clock
4SDATABi-directionalTwo-Wire Serial Interface Data I/O
5VSYNCOutputActive High: Frame Valid; indicates active frame
6HREFOutputActive High: Line/Data Valid; indicates active pixels
7PCLKOutputPixel Clock output from sensor
8XCLKInputMaster Clock into Sensor
9DOUT9OutputPixel Data Output 9 (MSB)
10DOUT8OutputPixel Data Output 8
11DOUT7OutputPixel Data Output 7
12DOUT6OutputPixel Data Output 6
13DOUT5OutputPixel Data Output 5
14DOUT4OutputPixel Data Output 4
15DOUT3OutputPixel Data Output 3
16DOUT2OutputPixel Data Output 2 (LSB)
17M+POWERPower for VCM
18GNDGroundGround for VCM
19RSTInputSensor reset signal, active low
20PWDNInputPower down input, active high

MIPI interface

Pin No.PIN NAME TYPE DESCRIPTION
1VCCPOWER3.3v Power supply
2GNDGroundPower ground
3SCLInputTwo-Wire Serial Interface Clock
4SDATABi-directionalTwo-Wire Serial Interface Data I/O
5VSYNCOutputNA
6HREFOutputNA
7PCLKOutputNA
8XCLKInputMaster Clock into Sensor
9DOUT9OutputMIPI port MDP1
10DOUT8OutputMIPI port MDN1
11DOUT7OutputMIPI port MCP
12DOUT6OutputMIPI port MCN
13DOUT5OutputMIPI port MDP0
14DOUT4OutputMIPI port MDN0
15DOUT3OutputNA
16DOUT2OutputNA
17M+POWERPower for VCM
18GNDGroundGround for VCM
19RSTInputSensor reset signal, active low
20PWDNInputPower down input, active high
  • Mechanical Dimension

OV5640_dim

  • Demonstration

ArduCAM provides a full demonstration for OV5640 camera module on Arduino platform. Please download the ArduCAM_Shield_V2_Camera_Playback.ino from github.

It will turn the ArduCAM into a real digital camera with capture and playback functions.
1. Preview the live video on LCD Screen.
2. Capture and buffer the image to FIFO when shutter pressed quickly.
3. Store the image to Micro SD/TF card with BMP format.
4. Playback the capture photos one by one when shutter button hold on for 3 seconds.
This program requires the latest ArduCAM library and ArduCAM Shield_V2 ArduCAM shield and use Arduino IDE 1.6.8 compiler or above.