2MP OV2640 1/4” Camera Module for Raspberry Pi

Overview

Features:

  • Flex type module or M12 mount lens holder with more lens options module
  • 1/4” sensor size
  • High sensitivity for low-light operation
  • Standard SCCB interface
  • Output support for Raw RGB, RGB (RGB565/555), GRB422, YUV (422/420) and YCbCr (4:2:2) formats, JPEG compression formats
  • Supports image sizes: UXGA, SXGA, SVGA, and any size scaling down from SXGA to 40×30
  • Automatic image control functions including Automatic Exposure Control (AEC), Automatic Gain Control (AGC), Automatic White Balance (AWB), Automatic Band Filter (ABF), and Automatic Black-Level Calibration (ABLC)
  • Image quality controls including color saturation, gamma, sharpness (edge enhancement), lens correction, white pixel canceling, noise canceling, and 50/60 Hz luminance detection
  • Low operating voltage for embedded portable apps

Key Specifications:


Application:

  • Cellular phones
  • PDAs
  • Toys
  • Other battery-powered products
  • Can be used in MCU, Raspberry Pi, ARM, DSP, FPGA platforms

Pin Definition


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)
17DOUT1OutputPixel Data Output 1(10bit mode)
18DOUT0OutputPixel Data Output 0 (10bit mode)
19RSTInputCamera reset, active low
20PWDNInputCamera power down, active high

Demonstration:


ArduCAM provides a full demonstration for OV2640 camera module on Arduino platform. Please download the examples from github.


Example ArduCAM_Shield_V2_Camera_Playback.ino

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.


Example ArduCAM_Shield_V2_Digital_Camera.ino

It will run the ArduCAM as a real 2MP digital camera, provide both preview and JPEG capture
The demo sketch will do the following tasks:
1. Set the sensor to BMP preview output mode.
2. Switch to JPEG mode when shutter buttom pressed.
3. Capture and buffer the image to FIFO.
4. Store the image to Micro SD/TF card with JPEG format.
5. Resolution can be changed by myCAM.OV2640_set_JPEG_size() function.
This program requires the latest ArduCAM library and ArduCAM Shield_V2 ArduCAM shield and use Arduino IDE 1.6.8 compiler or above.


Example ArduCAM_Mini_Video_Streaming.ino

It will run the ArduCAM as a real 2MP digital camera, provide both preview and JPEG capture
1. Set the sensor to JPEG output mode.
2. Capture and buffer the image to FIFO.
3. Transfer the captured JPEG image back to host via Arduino board USB port.
4. Resolution can be changed by myCAM.OV2640_set_JPEG_size() function.
This program requires the latest ArduCAM library and Rev.C or Rev.C+ ArduCAM shield and use Arduino IDE 1.6.8 compiler or above.
5. Use ArduCAM host v2 application to capture, view and save pictures.

Sample Pictures Taken by OV2640


OV2640 UXGA 1600x1200 - Arducam Based Camera

Blog

Documentation