Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›OV2640 2MP, OV3660 3MP, OV5640 5MP FPC

Component guide · Intermediate · 3 min read

OV2640 2MP, OV3660 3MP, OV5640 5MP FPC and OV7670 VGA Camera Modules

SCCB/DVP), and OV2640 Binocular for STM32

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the OV2640, OV3660, OV5640 and OV7670 camera modules isOV2640, OV3660, OV5640 and OV7670 camera modules pinoutWiring the OV2640, OV3660, OV5640 and OV7670 camera modulesExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

These are bare image sensor modules with a parallel (DVP) data bus and an I2C-like SCCB control bus. The OV2640 (2MP, JPEG out) is the sensor on ESP32-CAM boards and a common replacement; the OV3660 and OV5640 are higher resolution drop-ins for many ESP32 boards; the OV7670 is an old VGA sensor without JPEG. You need a microcontroller with a camera interface, such as an ESP32 or STM32 with DCMI.

Key specs at a glance

Resolution
0.3MP (OV7670), 2MP (OV2640), 3MP (OV3660), 5MP (OV5640)
Data
8-bit parallel DVP
Control
SCCB (I2C compatible)
Output
JPEG (OV2640, OV3660, OV5640) or raw RGB/YUV (OV7670)
Supply
3.3 V with on-board regulators for 1.2 to 2.8 V cores
Connector
24-pin FPC or 2x9 header

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1OV2640 2MP CMOS Camera Module w/ 4.3mm Lens₹269
  • Option 2OV2640 2MP Camera Module w/ SCCB Connector₹259
  • Option 3OV3660 Camera Module 3MP Compatible w/ OV2640 Program₹229
  • Option 4Teledyne FLIR OV5640 FPC Camera Module₹2,879
  • Option 5OV7670 640×480 VGA CMOS Camera Image Sensor Module₹128
  • Option 6OV7670 0.3MP Camera Module w/ SCCB Connector₹156
01

What the OV2640, OV3660, OV5640 and OV7670 camera modules is

The OV2640 (2 MP, JPEG output) and OV7670 (0.3 MP, raw output) are low-cost camera modules used with ESP32, STM32 and Arduino for snapshots, streaming and simple vision.

An Uno cannot read these sensors: it is too slow and lacks the memory for a frame. Use an ESP32 with PSRAM, an STM32 with DCMI, or a board made for cameras.

When swapping an ESP32-CAM sensor, match the FPC pinout and lens length; OV3660 and OV5640 are supported by the esp32-camera driver.

02

OV2640, OV3660, OV5640 and OV7670 camera modules pinout

The pins on the OV2640, OV3660, OV5640 and OV7670 camera modules and what each one does.

PinFunction
SIOC / SIODSCCB clock and data
XCLKClock input (about 20 MHz)
PCLK / VSYNC / HREFPixel clock and sync
D0 to D7Pixel data
PWDN / RESETPower down and reset
3V3 / GNDSupply
PinFunction
SIOC / SIOD
SCCB clock and data
XCLK
Clock input (about 20 MHz)
PCLK / VSYNC / HREF
Pixel clock and sync
D0 to D7
Pixel data
PWDN / RESET
Power down and reset
3V3 / GND
Supply
03

Wiring the OV2640, OV3660, OV5640 and OV7670 camera modules

Connect the OV2640, OV3660, OV5640 and OV7670 camera modules like this.

OV2640, OV3660, OV5640 and OV7670 camera modules pinUnoESP32 with PSRAM
SIOC / SIODNot supported (too slow)Camera SCCB pins
D0 to D7, PCLK, VSYNC, HREFNot supportedCamera data pins per board map
XCLKNot supportedXCLK pin
SIOC / SIOD
Uno:
Not supported (too slow)
ESP32 with PSRAM:
Camera SCCB pins
D0 to D7, PCLK, VSYNC, HREF
Uno:
Not supported
ESP32 with PSRAM:
Camera data pins per board map
XCLK
Uno:
Not supported
ESP32 with PSRAM:
XCLK pin
04

Example code

Use the pin map for your board. The OV7670 needs raw pixel format and lower frame sizes.

Take a photo on an ESP32 camera board (esp_camera) · Arduino C++Verify & upload in Electrolark
#include "esp_camera.h"
// Set these pins for YOUR board (see its pin map). Example values are for an AI-Thinker style board.
camera_config_t c = {
  .pin_pwdn = 32, .pin_reset = -1, .pin_xclk = 0, .pin_sccb_sda = 26, .pin_sccb_scl = 27,
  .pin_d7 = 35, .pin_d6 = 34, .pin_d5 = 39, .pin_d4 = 36, .pin_d3 = 21, .pin_d2 = 19, .pin_d1 = 18, .pin_d0 = 5,
  .pin_vsync = 25, .pin_href = 23, .pin_pclk = 22,
  .xclk_freq_hz = 20000000, .ledc_timer = LEDC_TIMER_0, .ledc_channel = LEDC_CHANNEL_0,
  .pixel_format = PIXFORMAT_JPEG, .frame_size = FRAMESIZE_SVGA, .jpeg_quality = 12, .fb_count = 1
};

void setup() {
  Serial.begin(115200);
  if (esp_camera_init(&c) != ESP_OK) { Serial.println("Camera init failed - check pins and PSRAM"); return; }
  camera_fb_t *fb = esp_camera_fb_get();
  Serial.printf("Got a %u byte JPEG\n", fb->len);
  esp_camera_fb_return(fb);
}

void loop() {}
05

Setup and tuning

Pick the right one

the OV2640 outputs JPEG, so it suits the ESP32-CAM and Arducam boards; the OV7670 gives raw pixels and needs a fast MCU.

Wiring

both use a parallel (DVP) data bus plus SCCB (I2C-like) control, XCLK, PCLK, VSYNC and HREF lines.

Voltage

the sensors run at 3.3 V logic with a 2.8 or 1.8 V core supplied by the module; never use 5 V signals.

Clock

feed XCLK (often 20 MHz for OV2640) from a PWM or clock pin.

Software

use the esp32-camera driver on ESP32; on Arduino Uno the OV7670 is too slow without a FIFO (AL422B) version.

06

What you need

Shop this list9 of 9 found in our store · ₹7,627

  • OV2640 2MP CMOS Camera Module w/ 4.3mm Lens: the part this guide coversOV2640 2MP CMOS Camera Module w/ 4.3mm Lens₹269
  • OV2640 2MP Camera Module w/ SCCB Connector: another version this guide coversOV2640 2MP Camera Module w/ SCCB Connector₹259
  • OV3660 Camera Module 3MP Compatible w/ OV2640 Program: another version this guide coversOV3660 Camera Module 3MP Compatible w/ OV2640 Program₹229
  • Teledyne FLIR OV5640 FPC Camera Module: another version this guide coversTeledyne FLIR OV5640 FPC Camera Module₹2,879
  • OV7670 640×480 VGA CMOS Camera Image Sensor Module: another version this guide coversOV7670 640×480 VGA CMOS Camera Image Sensor Module₹128
  • OV7670 0.3MP Camera Module w/ SCCB Connector: another version this guide coversOV7670 0.3MP Camera Module w/ SCCB Connector₹156
  • OV2640 Binocular Camera Module for STM32 3D Measurement: another version this guide coversOV2640 Binocular Camera Module for STM32 3D Measurement₹3,029
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • Raspberry Pi camera (OV5647 class): a CSI alternative for the PiRaspberry Pi 5MP CSI Camera Module for Pi Zero W₹289Closest match, check the specs
07

Alternatives and when to choose them

  • ✓ESP32-CAM: complete board with OV2640.
  • ✓ESP32 camera boards: ready boards.
  • ✓Arducam SPI cameras: work with small boards.
08

Common mistakes to avoid

  • !Driving the camera with 5 V logic.
  • !Using a plain OV7670 on a slow 8-bit Arduino.
  • !Long jumper wires on the high-speed data bus.
  • !Forgetting to supply XCLK.
09

Frequently asked questions

Can I use an OV7670 with an Arduino Uno?

Only the FIFO version works well; the plain module needs a faster board such as an STM32 or ESP32.

What is the difference between the OV2640 and OV7670?

The OV2640 is 2 MP with JPEG output; the OV7670 is 0.3 MP and outputs raw pixels.

Why are my images green or striped?

XCLK, PCLK timing or data wiring is wrong; check every data line and the clock speed.

Can the OV2640 stream video over Wi-Fi?

Yes, on an ESP32 it streams MJPEG using the CameraWebServer example.

Are these modules 5 V tolerant?

No. Use 3.3 V signals only, or level shifters with 5 V boards.

Parts for this guide

  • OV2640 2MP CMOS Camera Module w/ 4.3mm Lens
    ₹269View
  • OV2640 2MP Camera Module w/ SCCB Connector
    ₹259View
  • OV3660 Camera Module 3MP Compatible w/ OV2640 Program
    ₹229View
  • Teledyne FLIR OV5640 FPC Camera Module
    ₹2,879View
  • OV7670 640×480 VGA CMOS Camera Image Sensor Module
    ₹128View
  • OV7670 0.3MP Camera Module w/ SCCB Connector
    ₹156View
  • OV2640 Binocular Camera Module for STM32 3D Measurement
    ₹3,029View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • 5MP OV5647 Fisheye Lens Camera Module for Raspberry Pi
    ₹889View
Shop Embedded Camera Modules & Sensors (Arducam, IMX)

Keep learning

How-toIntermediateESP32-CAMThe ESP32-CAM is a low-cost ESP32 board with an OV2640 2 MP camera and microSD slot but no USB port.3 min read · Boards & MicrocontrollersComponent guideIntermediateESP32 Camera BoardsThese boards pair an ESP32 or ESP32-S3 with a camera, PSRAM and extras such as a screen, PIR sensor, microphone, battery charger or SD card.4 min read · IoT & WirelessConcept explainerIntermediateCamera Image Sensors ExplainedAn image sensor turns light into a grid of electrical signals.3 min read · Sensors

Sources

  • OmniVision OV2640 and OV7670 datasheets
  • esp32-camera driver

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the OV2640, OV3660, OV5640 and OV7670 camera modules isOV2640, OV3660, OV5640 and OV7670 camera modules pinoutWiring the OV2640, OV3660, OV5640 and OV7670 camera modulesExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)2 items · ₹473

OV2640 2MP CMOS Camera Module w/ 4.3mm Lens · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

SVGA (800 x 600) at quality 12 is usually 15 to 40 kB. The OV7670 has no JPEG, so this sketch is for the OV2640.

Serial monitor115200 baud
Got a 22948 byte JPEG

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question