1. Home
  2. Docs
  3. Raspberry Pi Pico
  4. SPI cameras for Raspberry Pi Pico

SPI cameras for Raspberry Pi Pico

Table Of Contents

Introduction

As an alternative to Arduino, Raspberry Pi Pico lacks processing power, memory, and a CSI interface, which makes it impossible for Pico to work with the official or any MIPI CSI-2 camera modules. Thankfully, Pico has a wide range of flexible I/O options includes SPI, which enables the Arducam SPI camera to work with Pico.

Now, the Arducam team has solved the compatibility of our SPI camera with Raspberry Pi Pico. Getting started here!

1 2

Application

  • loT cameras
  • Robot cameras
  • Wildlife cameras
  • Other battery-powered products
  • Can be used in MCU, Raspberry Pi, ARM, DSP, FPGA platforms

Features

  • 2MP image sensor OV2640 (B0067) / 5MP image sensor OV5642 (B0068)
  • M12 mount or CS-mount lens holder with changeable lens options
  • IR sensitive with proper lens combination
  • 12C interface for the sensor configuration
  • SPI interface for camera commands and data stream
  • All IO ports are 5V/3.3V tolerant
  • Support JPEG compression mode, single and multiple shoot mode, one-time capture multiple read operation, burst read operation, low power mode and etc.
  • Well mated with standard Raspberry Pi Pico boards
  • Provide open-source code library for Arduino, STM32, Chipkit, Raspberry Pi, BeagleBone Black
  • Small form of factor

Pin Definition

Pin No.Pin NameTypeDescription
1CSInputSPI slave chip select input
2MOSIInputSPI master output slave input
3MISOOutputSPI master input slave output
4SCLKInputSPI serial clock
5GNDGroundPower ground
6+5VPOWER5V Power supply
7SDABi-directionalTwo-Wire Serial Interface Data I/O
8SCLInputTwo-Wire Serial Interface Clock

Key Specification

B0067B0068
Image SensorOV2640OV5642
Active array size1600×12002592×1944
Shutterrolling shutterrolling shutter
Lens1/4 inch1/4 inch
SPI speed8MHz8MHz
Frame buffer8MB8MB
Temperature-10°C~+55°C-10°C~+55°C
Power consumptionNormal: 5V/70mA
Low power Mode: 5V/20mA
Normal: 5V/390mA
Low power mode: 5V/20mA

Typical Wiring

image

Quick Start

Get the driver

git clone https://github.com/ArduCAM/PICO_SPI_CAM.git

Compile the driver library

Note: Refer to the official manual for the development environment:

Choose the demo to be compiled. (default is Arducam_MINI_2MP_Plus_Videostreaing)

cd  PICO_SPI_CAM
mkdir build
cd build
cmake ..
make 

Run the test

Copy “Arducam_mini_2mp_plus_videostreaming.uf2” file to pico to run the test.

Cameras supported:

  • OV2640 2MP_Plus JPEG format
  • OV5642 5MP_Plus  JPEG format

Demos provided:

Copy the .uf2 file to pico

10

What’s Next

If you want to know more about our SPI cameras, refer to the SPI Camera Software Application Note.

Was this article helpful to you? Yes No 1