

The OV7725 is a low-voltage CMOS image sensor manufactured by OmniVision. It is designed for high-quality video and image capture, offering VGA resolution (640x480) at high frame rates. The sensor supports multiple output formats, including YUV, RGB, and RAW, making it versatile for a wide range of applications. Its compact design and low power consumption make it ideal for use in security cameras, robotics, mobile devices, and other embedded systems requiring real-time image processing.








| Parameter | Specification |
|---|---|
| Resolution | VGA (640x480) |
| Pixel Size | 6.0 µm x 6.0 µm |
| Frame Rate | Up to 60 fps (at VGA resolution) |
| Output Formats | YUV, RGB, RAW |
| Supply Voltage | 2.5V (analog), 1.8V (digital core) |
| Operating Temperature | -30°C to +70°C |
| Power Consumption | Low power consumption |
| Interface | SCCB (Serial Camera Control Bus) |
| Shutter Type | Rolling shutter |
The OV7725 comes in a 24-pin package. Below is the pin configuration:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VDD_IO | I/O power supply (1.8V or 2.8V) |
| 2 | GND | Ground |
| 3 | PCLK | Pixel clock output |
| 4 | VSYNC | Vertical synchronization signal |
| 5 | HREF | Horizontal reference signal |
| 6 | D0 | Data output bit 0 |
| 7 | D1 | Data output bit 1 |
| 8 | D2 | Data output bit 2 |
| 9 | D3 | Data output bit 3 |
| 10 | D4 | Data output bit 4 |
| 11 | D5 | Data output bit 5 |
| 12 | D6 | Data output bit 6 |
| 13 | D7 | Data output bit 7 |
| 14 | RESETB | Active-low reset input |
| 15 | PWDN | Power down mode input |
| 16 | SCL | SCCB clock input |
| 17 | SDA | SCCB data input/output |
| 18 | VDD | Core power supply (1.8V) |
| 19 | GND | Ground |
| 20 | MCLK | Master clock input |
| 21 | NC | Not connected |
| 22 | NC | Not connected |
| 23 | NC | Not connected |
| 24 | NC | Not connected |
Below is an example of how to interface the OV7725 with an Arduino UNO for basic image capture:
#include <Wire.h> // Include the Wire library for SCCB communication
#define OV7725_SCCB_ADDR 0x42 // OV7725 SCCB address
void setup() {
Wire.begin(); // Initialize I2C communication
Serial.begin(9600); // Initialize serial communication for debugging
// Reset the OV7725
Wire.beginTransmission(OV7725_SCCB_ADDR);
Wire.write(0x12); // Register address for COM7 (common control register)
Wire.write(0x80); // Reset command
Wire.endTransmission();
delay(100); // Wait for the sensor to reset
// Configure the OV7725 for VGA resolution
Wire.beginTransmission(OV7725_SCCB_ADDR);
Wire.write(0x12); // Register address for COM7
Wire.write(0x00); // Set VGA resolution
Wire.endTransmission();
Serial.println("OV7725 initialized.");
}
void loop() {
// Add code to capture and process image data
Serial.println("Capturing image...");
delay(1000); // Simulate image capture delay
}
No Image Output:
Distorted or Noisy Image:
Sensor Not Responding to SCCB Commands:
Q: Can the OV7725 capture images in low light?
A: Yes, the OV7725 has good low-light performance, but additional lighting may be required for very dark environments.
Q: What is the maximum frame rate supported by the OV7725?
A: The OV7725 supports up to 60 frames per second at VGA resolution.
Q: Can the OV7725 output RAW image data?
A: Yes, the OV7725 supports RAW output format in addition to YUV and RGB.
Q: Is the OV7725 compatible with 5V systems?
A: The OV7725 operates at 1.8V or 2.8V. Use a logic level shifter to interface with 5V systems.
Q: How do I focus the OV7725?
A: The OV7725 requires a compatible lens with adjustable focus. Rotate the lens to achieve the desired focus.
This concludes the documentation for the OV7725 CMOS image sensor.