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. ›OV5647 5MP Raspberry Pi Camera

Component guide · Beginner · 6 min read

OV5647 5MP Raspberry Pi Camera

Wiring, Setup and Code

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the OV5647 camera isOV5647 camera pinoutWiring the OV5647 cameraExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

The OV5647 is the 5 MP sensor used in the original Raspberry Pi Camera v1 and many low-cost Pi cameras, including fisheye, NoIR night-vision and IR-cut versions. It connects with a CSI ribbon, records 1080p at 30 fps and works with rpicam-apps and Picamera2 on every Raspberry Pi with a camera connector. It is the cheapest way to add a camera to a Pi project.

Key specs at a glance

Sensor
OmniVision OV5647, 5 MP (2592 × 1944)
Video
1080p30, 720p60, 640 × 480 at 90 fps
Interface
MIPI CSI-2, 2 lanes, 15-pin ribbon
Pixel size
1.4 µm, 1/4 inch optical format
Versions
Standard, NoIR (no IR filter), motorised IR-cut, fisheye, M12 and CS lenses
Focus
Fixed on most; motorised on autofocus versions

Models in this guide

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

  • Option 15MP OV5647 Fisheye Lens Camera Module for Raspberry Pi₹889
  • Option 2Arducam 5MP OV5647 160° Wide Angle Camera Module₹2,799
  • Option 3Arducam 5MP OV5647 Camera Board with LS-40180 Fisheye Lens₹2,699
  • Option 4Arducam 5MP OV5647 Camera Module w/ M12x0.5 Lens for Raspberry Pi₹2,209
  • Option 5Arducam 5MP OV5647 Fisheye Camera w/ M8 Lens for Raspberry Pi₹2,769
  • Option 6Arducam 5MP OV5647 NoIR Camera Module for Raspberry Pi₹1,339
01

What the OV5647 camera is

The OV5647 is the first sensor Raspberry Pi used, so every Pi model and the software support it out of the box. Image quality is fine in good light, but low-light noise is higher than on the IMX219 or IMX708.

NoIR versions have no infrared filter: with IR LEDs they see in the dark, but daylight colours look pink. IR-cut versions switch a filter in by day and out at night, often with built-in IR LEDs and a light sensor.

02

OV5647 camera pinout

The pins on the OV5647 camera and what each one does.

PinFunction
CSI ribbon (15-pin, 1 mm pitch)Camera data lanes, clock, I2C control and power in one flat cable
Blue stiffener sideFaces the Ethernet/USB ports on a Pi 4; on a Pi 5 the 22-pin end faces away from the board edge as printed
Metal contactsFace the connector contacts; a reversed cable gives 'no cameras available'
Lens mountFixed, M12 or CS/C mount depending on the board
PinFunction
CSI ribbon (15-pin, 1 mm pitch)
Camera data lanes, clock, I2C control and power in one flat cable
Blue stiffener side
Faces the Ethernet/USB ports on a Pi 4; on a Pi 5 the 22-pin end faces away from the board edge as printed
Metal contacts
Face the connector contacts; a reversed cable gives 'no cameras available'
Lens mount
Fixed, M12 or CS/C mount depending on the board
03

Wiring the OV5647 camera

Turn the Pi off before connecting. Lift the connector latch, push the ribbon fully in with the contacts facing the connector pins, then press the latch down. The Pi 5 and Zero use a smaller 22-pin connector, so they need a 15-to-22-pin cable.

OV5647 camera pinRaspberry Pi 5Raspberry Pi 4
Ribbon cableCAM/DISP 0 or 1 (22-pin, use a 15-to-22 cable)CAMERA port (15-pin)
PowerFrom the ribbon (no extra wires)From the ribbon (no extra wires)
Softwarerpicam-apps / Picamera2 (Bookworm)rpicam-apps / Picamera2 (Bookworm)
Ribbon cable
Raspberry Pi 5:
CAM/DISP 0 or 1 (22-pin, use a 15-to-22 cable)
Raspberry Pi 4:
CAMERA port (15-pin)
Power
Raspberry Pi 5:
From the ribbon (no extra wires)
Raspberry Pi 4:
From the ribbon (no extra wires)
Software
Raspberry Pi 5:
rpicam-apps / Picamera2 (Bookworm)
Raspberry Pi 4:
rpicam-apps / Picamera2 (Bookworm)
04

Example code

First check the camera from a terminal with rpicam-hello --list-cameras (older images: libcamera-hello). Picamera2 is installed by default on Raspberry Pi OS Bookworm.

Take a photo and record a clip with Picamera2 · MicroPython
from picamera2 import Picamera2
from picamera2.encoders import H264Encoder
import time

cam = Picamera2()
cam.configure(cam.create_still_configuration())
cam.start()
time.sleep(2)                       # let exposure and white balance settle
cam.capture_file("ov5647.jpg")
cam.stop()

video = cam.create_video_configuration(main={"size": (1920, 1080)})
cam.configure(video)
cam.start_recording(H264Encoder(bitrate=10_000_000), "clip.h264")
time.sleep(10)
cam.stop_recording()
05

Setup and tuning

Detect it

rpicam-hello --list-cameras should list the sensor. If not, re-seat the ribbon and check its direction.

Third-party boards

some need a line in /boot/firmware/config.txt, such as camera_auto_detect=0 and dtoverlay=ov5647, then a reboot.

Focus

fixed-focus lenses can be turned gently to adjust; M12 and CS lenses screw in and out.

Heat

long recordings warm the sensor; leave some air around it.

NoIR colour

use IR lighting at night and accept odd colours by day, or choose an IR-cut version.

06

What you need

Shop this list20 of 20 found in our store · ₹46,807

  • 5MP OV5647 Fisheye Lens Camera Module for Raspberry Pi: the part this guide covers5MP OV5647 Fisheye Lens Camera Module for Raspberry Pi₹889
  • Arducam 5MP OV5647 160° Wide Angle Camera Module: another version this guide coversArducam 5MP OV5647 160° Wide Angle Camera Module₹2,799
  • Arducam 5MP OV5647 Camera Board with LS-40180 Fisheye Lens: another version this guide coversArducam 5MP OV5647 Camera Board with LS-40180 Fisheye Lens₹2,699
  • Arducam 5MP OV5647 Camera Module w/ M12x0.5 Lens for Raspberry Pi: another version this guide coversArducam 5MP OV5647 Camera Module w/ M12x0.5 Lens for Raspberry Pi₹2,209
  • Arducam 5MP OV5647 Fisheye Camera w/ M8 Lens for Raspberry Pi: another version this guide coversArducam 5MP OV5647 Fisheye Camera w/ M8 Lens for Raspberry Pi₹2,769
  • Arducam 5MP OV5647 NoIR Camera Module for Raspberry Pi: another version this guide coversArducam 5MP OV5647 NoIR Camera Module for Raspberry Pi₹1,339
  • Arducam 5MP OV5647 NoIR Camera Module for Raspberry Pi 4/3B+/3: another version this guide coversArducam 5MP OV5647 NoIR Camera Module for Raspberry Pi₹1,339
  • Arducam 5MP OV5647 NoIR MINI Camera Module w/ Flex Cable: another version this guide coversArducam 5MP OV5647 NoIR MINI Camera Module w/ Flex Cable₹2,409
  • Arducam 5MP OV5647 NoIR Motorized IRcut Camera w/ LS-1820 Lens: another version this guide coversArducam 5MP OV5647 NoIR Motorized IRcut Camera w/ LS-1820 Lens₹4,049
  • Arducam 5MP OV5647 NoIR Motorized IRcut Filter Camera w/ LS-30188 Lens: another version this guide coversArducam 5MP OV5647 NoIR Motorized IRcut Filter Camera w/ LS-30188 Lens₹4,139
  • Arducam 5MP OV5647 Pan Tilt Camera for Raspberry Pi: another version this guide coversArducam 5MP OV5647 Pan Tilt Camera for Raspberry Pi₹2,194
  • Arducam Auto Focus Camera Module, OV5647 5MP 1080P Motorized Lens for Raspberry Pi: another version this guide coversArducam Auto Focus Camera Module, OV5647 5MP 1080P Motorized Lens for Raspberry Pi₹1,849
  • Arducam B0032 OV5647 CS-Mount Camera Board for Raspberry Pi: another version this guide coversArducam B0032 OV5647 CS-Mount Camera Board for Raspberry Pi₹2,729
  • Arducam B0033R 5MP OV5647 Camera Module w/ 100cm Ribbon Cable for Raspberry Pi: another version this guide coversArducam B0033R 5MP OV5647 Camera Module w/ 100cm Ribbon Cable for Raspberry Pi₹489
  • Arducam MINI OV5647 Wide Angle Camera Module for Raspberry Pi: another version this guide coversArducam MINI OV5647 Wide Angle Camera Module for Raspberry Pi₹6,149
  • Arducam Noir Camera for Raspberry Pi w/ CS Mount Lens LS-2717CS & OV5647 5MP: another version this guide coversArducam Noir Camera for Raspberry Pi w/ CS Mount Lens LS-2717CS & OV5647 5MP₹2,479
  • Arducam OV5647 5MP Mini Camera Module for Raspberry Pi: another version this guide coversArducam OV5647 5MP Mini Camera Module for Raspberry Pi₹1,499
  • Arducam Ultra Wide Angle Fisheye 5MP OV5647 Camera for Raspberry Pi: another version this guide coversArducam Ultra Wide Angle Fisheye 5MP OV5647 Camera for Raspberry Pi₹2,839
  • OV5647 5MP 1080P IR-Cut Camera for Raspberry Pi: another version this guide coversOV5647 5MP 1080P IR-Cut Camera for Raspberry Pi₹970
  • OV5647 5MP 1080P IR-Cut Camera for Raspberry Pi 3/4 w/ Auto Day/Night Mode: another version this guide coversOV5647 5MP 1080P IR-Cut Camera for Raspberry Pi₹970
07

Alternatives and when to choose them

  • ✓IMX219 camera: 8 MP, sharper and less noisy, the Camera v2 sensor.
  • ✓IMX708 Camera Module 3: 12 MP with autofocus and HDR.
  • ✓Raspberry Pi camera modules: every Pi camera compared.
08

Common mistakes to avoid

  • !Inserting the ribbon backwards, so the camera is not detected.
  • !Using a 15-pin cable on a Pi 5 or Zero, which has the smaller 22-pin connector.
  • !Expecting good colours from a NoIR camera in daylight.
  • !Plugging the camera in with the Pi powered on.
09

Frequently asked questions

Does the OV5647 work with Raspberry Pi 5?

Yes, with a 15-to-22-pin camera cable.

What resolution is the OV5647?

5 MP stills (2592 × 1944) and 1080p video at 30 fps.

What does NoIR mean?

The camera has no infrared filter, so it can see IR light for night vision.

Why does it say no cameras available?

Usually the ribbon is backwards or loose, or a third-party board needs the ov5647 overlay in config.txt.

OV5647 or IMX219?

IMX219 for better image quality; OV5647 when cost matters most.

Parts for this guide

  • 5MP OV5647 Fisheye Lens Camera Module for Raspberry Pi
    ₹889View
  • Arducam 5MP OV5647 160° Wide Angle Camera Module
    ₹2,799View
  • Arducam 5MP OV5647 Camera Board with LS-40180 Fisheye Lens
    ₹2,699View
  • Arducam 5MP OV5647 Camera Module w/ M12x0.5 Lens for Raspberry Pi
    ₹2,209View
  • Arducam 5MP OV5647 Fisheye Camera w/ M8 Lens for Raspberry Pi
    ₹2,769View
  • Arducam 5MP OV5647 NoIR Camera Module for Raspberry Pi
    ₹1,339View
  • Arducam 5MP OV5647 NoIR Camera Module for Raspberry Pi 4/3B+/3
    ₹3,189View
  • Arducam 5MP OV5647 NoIR MINI Camera Module w/ Flex Cable
    ₹2,409View
  • Arducam 5MP OV5647 NoIR Motorized IRcut Camera w/ LS-1820 Lens
    ₹4,049View
  • Arducam 5MP OV5647 NoIR Motorized IRcut Filter Camera w/ LS-30188 Lens
    ₹4,139View
  • Arducam 5MP OV5647 Pan Tilt Camera for Raspberry Pi
    ₹2,194View
  • Arducam Auto Focus Camera Module, OV5647 5MP 1080P Motorized Lens for Raspberry Pi
    ₹1,849View
  • Arducam B0032 OV5647 CS-Mount Camera Board for Raspberry Pi
    ₹2,729View
  • Arducam B0033R 5MP OV5647 Camera Module w/ 100cm Ribbon Cable for Raspberry Pi
    ₹489View
  • Arducam MINI OV5647 Wide Angle Camera Module for Raspberry Pi
    ₹6,149View
  • Arducam Noir Camera for Raspberry Pi w/ CS Mount Lens LS-2717CS & OV5647 5MP
    ₹2,479View
  • Arducam OV5647 5MP Mini Camera Module for Raspberry Pi
    ₹1,499View
  • Arducam Ultra Wide Angle Fisheye 5MP OV5647 Camera for Raspberry Pi
    ₹2,839View
  • OV5647 5MP 1080P IR-Cut Camera for Raspberry Pi
    ₹970View
  • OV5647 5MP 1080P IR-Cut Camera for Raspberry Pi 3/4 w/ Auto Day/Night Mode
    ₹970View
  • OV5647 5MP IR-Cut Camera Module w/ Night Vision for Raspberry Pi
    ₹1,609View
  • Waveshare OV5647 5MP OIS Camera Module for Raspberry Pi
    ₹6,299View
  • Waveshare Raspberry Pi Camera (B) Adjustable-Focus 5MP OV5647 Module
    ₹1,419View
  • Waveshare Raspberry Pi Camera (G) Fisheye Lens, 5MP OV5647 Sensor
    ₹2,139View
  • Waveshare Raspberry Pi Camera Module (D) 5MP OV5647 Sensor
    ₹1,419View
  • Waveshare Raspberry Pi FPC Camera (B) for Raspberry Pi, OV5647 5MP
    ₹2,119View
  • Raspberry Pi 5MP CSI Camera Module for Pi Zero W
    ₹289View
  • Raspberry Pi 5 with 4GB RAM
    ₹14,079View
  • Raspberry Pi 4 Model B with 4GB RAM
    ₹11,461View
  • Raspberry Pi Zero 2 W: Quad-Core IoT Board
    ₹2,179View
  • Arducam CB008 3.8cm 15-Pin to 22-Pin Camera Cable for Raspberry Pi Zero/W
    ₹227View
  • Arducam B0229 Raspberry Pi Camera Ribbon Flex Extension Cable Set (5cm, 60cm, 100cm)
    ₹1,129View
Shop Embedded Camera Modules & Sensors (Arducam, IMX)

Keep learning

Buying guideBeginnerRaspberry Pi Camera ModulesCompare Raspberry Pi Camera Module 3, HQ, Global Shutter and Arducam sensors, choose a lens, pick the right CSI cable for Pi 5 and test with rpicam.3 min read · Boards & MicrocontrollersComponent guideBeginnerRaspberry Pi 5 GuideThe Raspberry Pi 5 is a credit-card-size Linux computer with a 2.4 GHz quad-core Arm CPU, 2 to 16 GB of RAM, dual 4K HDMI, PCIe for NVMe storage and 40 GPIO pins.4 min read · Boards & MicrocontrollersConcept explainerIntermediateCamera Lenses for Embedded CamerasSmall cameras use M12 (S-mount) lenses, while the Raspberry Pi HQ camera takes CS or C mount lenses.3 min read · IoT & Wireless

Sources

  • Raspberry Pi camera documentation (raspberrypi.com)
  • OmniVision OV5647 product brief
  • Picamera2 library manual (Raspberry Pi Ltd)

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 OV5647 camera isOV5647 camera pinoutWiring the OV5647 cameraExample 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 guide1 item · ₹889

5MP OV5647 Fisheye Lens Camera Module for Raspberry Pi

Run itChange the inputs and watch the output

The script prints nothing. It saves one still, then records 10 s of 1080p video.

Shell
$ python3 capture.py
$ ls
capture.py  clip.h264  ov5647.jpg

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