Cameras for Raspberry Pi

  1. Home
  2. Docs
  3. Cameras for Raspberry Pi
  4. Native Raspberry Pi Cameras
  5. 5MP OV5647 Motorized IR-CUT Camera Modules

5MP OV5647 Motorized IR-CUT Camera Modules

Introduction

Arducam 5MP OV5647 Motorized IR-CUT Camera Modules are designed for both daylight and night vision photography. The motorized IR cut filter can be switched ON/OFF automatically, and the infrared LEDs are automatically ON/OFF according to the light environment. The cameras in this serial are fully supported by all the Raspberry Pi board versions including Pi 4, Pi 3 and Pi Zero. They can be widely used in wildlife photography, agriculture NDVI applications and etc.

Models in this Series

There are two cameras in this series. The difference between them is whether there are infrared LEDs. They are the same in terms of software operation.

B0151

B003503

Common Specs

Image Sensor

Sensor ModelOV5647
Shutter TypeRolling Shutter
Active Pixels2592×1944
Resolution5MP
Image Sensor FormatType 1/4″
Pixel Size1.4μm×1.4μm
OV5647 Block Diagram
OV5647 Block Diagram

OV5647 Full Datasheet

Refer here:

https://www.arducam.com/downloads/modules/RaspberryPi_camera/OV5647DS.pdf

Lens Assembly

InterchangeabilityYES
F/NO2.3
Focus TypeManual Focus
Focal Length2.3mm
Field of View(FoV)105° Horizontal
Lens MountM12 Lens
IR SensitivityMotorized IR Cut filter

Board

Camera Board Size36×36 mm
Mechanical Dimension OV5647
Mechanical Dimension

Connector & Cable

Connector InterfaceMIPI CSI-2 15-pin 2-lane
Ribbon Cable Length150mm

Quick Start Guide

Hardware Setup​​​​​​

Ensure your Raspberry Pi is turned off.

1.Locate the camera port (CSI)

For Raspberry Pi Model A & B, it’s between the HDMI and audio port of the Raspberry Pi board.

raspberry pi zero overhead.00 00 00 19.Still001 1
SPRK default preset name web 1920 – 1
2.Gently pull up on the edges of the connector’s plastic clip and avoid pulling it off
3.Insert the ribbon cable

Make sure the metal contacts are facing the HDMI connectors. Do not bend the flex cable, and make sure it’s firmly inserted.

4.Push the plastic clip down

Do it while holding the flex cable still, until the connector’s clip is back in place.

Software Setup​​

At present, we support using libcamera and raspistill to capture images with OV5647 camera, please refer to the following messages:

  • Using libcamera to access the camera

The Raspberry Pi Bullseye system support using libcamera to capture images. Please make sure you have downloaded the official Bullseye as follows:

Raspberry Pi Bullseye system

-Raspberry Pi Bullseye

List all cameras:

libcamera-still --list-cameras

Open a preview window:

libcamera-still -t 0

Save a jpg file in your pi after 5s preview:

libcamera-still -t 5000 -o test.jpg

For more commands for using libcaemra, please refer to Github-libcamera apps

  • Using raspistill to access the camera

The raspberry pi Bullseye system support using raspistill command to capture image too, you need to run the raspi-config to enable legacy, please see the following:

  1. Run raspi-config

Open your terminal and input sudo rapi-config

sudo raspi-config

2. Move to interface option

image

3. Enable the legacy

image 1
image 2

4. Save and reboot

sudo reboot

5. Detect the camera

vcgencmd get_camera

If the camera is detected, the output will be the follows:

image 3

6. Run the camera

Preview:

raspistill -t 0

Save a file:

raspistill -t -5000 -o test.jpg

For more usage of raspistill or previous command, please refer to the following messages:

Getting started with Raspberry Pi

Basic Camera Usage

Once installed, there are various ways the cameras can be used. The simplest option is to use one of the provided camera applications. There are four Linux command-line applications installed by default (e.g. raspistill): using these is described on this page.

You can also programatically access the camera using the Python programming language, using the picamera library.

Beginner Graphic Tutorial

Getting started with Raspberry Pi

Basic Camera Usage

Once installed, there are various ways the cameras can be used. The simplest option is to use one of the provided camera applications. There are four Linux command-line applications installed by default (e.g. raspistill): using these is described on this page.

You can also programatically access the camera using the Python programming language, using the picamera library.

Advanced Camera Usage

Advanced features, along with some hints and tips, are described in the following pages:

FAQ/Troubleshooting

The use of the four Raspberry Pi camera applications

FAQ about raspberry pi camera module

Was this article helpful to you? Yes 2 No 1