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. ›Arducam SPI Cameras

Component guide · Intermediate · 4 min read

Arducam SPI Cameras

Mini 2MP and 5MP, Mega 3MP and 5MP AF) and DVP Sensors (OV5642, OV3640, OV7675, HM01B0, OV5640)

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 Arducam Mini and Mega SPI cameras and DVP sensors isArducam Mini and Mega SPI cameras and DVP sensors pinoutWiring the Arducam Mini and Mega SPI cameras and DVP sensorsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

Arducam's SPI cameras let small boards like Arduino, Pico and ESP8266 take JPEG photos: the camera board has its own frame buffer and sends the image over SPI. The Mini 2MP and 5MP use OV2640 and OV5642 sensors; the newer Mega 3MP and 5MP autofocus boards are faster. The DVP sensor boards (OV5642, OV3640, OV7675, HM01B0) connect to boards with a camera parallel port.

Key specs at a glance

Interface
SPI plus I2C (Mini, Mega); parallel DVP (sensor boards)
Resolution
0.3MP (OV7675) to 5MP
Output
JPEG from the camera's buffer
Supply
3.3 or 5 V (Mini and Mega)
Boards
Arduino, Pico, ESP32, ESP8266, STM32
Low power
HM01B0 for TinyML on RP2040 and Arduino

Models in this guide

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

  • Option 1Arducam 2MP Mini SPI Camera Module for Arduino & Raspberry Pi Pico₹3,369
  • Option 2Arducam 5MP Mini SPI Camera Module w/ M12 Lens Mount₹5,059
  • Option 3Arducam B400 Mega 3MP SPI Camera Module w/ Case₹2,269
  • Option 4Arducam Mega 5MP AF SPI Camera Module₹4,499
  • Option 5Arducam Mini Module Camera Shield 5MP OV5642 for Arduino₹5,059
  • Option 6Arducam EK043 5MP Mega DVP ESP32 Camera Evaluation Kit₹5,669
01

What the Arducam Mini and Mega SPI cameras and DVP sensors is

Arducam's SPI cameras let small boards such as the Arduino, Pico and ESP8266 take JPEG photos: the camera stores the frame in its own buffer and sends it over SPI.

Because the camera buffers the JPEG, even an Uno can save photos to an SD card, just slowly. Video is not practical over SPI on small boards.

The HM01B0 is a low-power grayscale sensor used in TinyML person-detection examples.

02

Arducam Mini and Mega SPI cameras and DVP sensors pinout

The pins on the Arducam Mini and Mega SPI cameras and DVP sensors and what each one does.

PinFunction
CSSPI chip select
MOSI / MISO / SCKSPI data and clock
SDA / SCLI2C sensor control (Mini)
VCC / GNDPower
PinFunction
CS
SPI chip select
MOSI / MISO / SCK
SPI data and clock
SDA / SCL
I2C sensor control (Mini)
VCC / GND
Power
03

Wiring the Arducam Mini and Mega SPI cameras and DVP sensors

Use the Arducam library for your board; Mega boards use SPI only.

Arducam Mini and Mega SPI cameras and DVP sensors pinArduino UnoESP32
VCC5V or 3.3V (see the module)3V3
GNDGNDGND
SCKD13GPIO 18
MISO / SDOD12GPIO 19
MOSI / SDID11GPIO 23
CSD10GPIO 5
VCC
Arduino Uno:
5V or 3.3V (see the module)
ESP32:
3V3
GND
Arduino Uno:
GND
ESP32:
GND
SCK
Arduino Uno:
D13
ESP32:
GPIO 18
MISO / SDO
Arduino Uno:
D12
ESP32:
GPIO 19
MOSI / SDI
Arduino Uno:
D11
ESP32:
GPIO 23
CS
Arduino Uno:
D10
ESP32:
GPIO 5
04

Example code

The Mini boards use the older ArduCAM library and examples.

Take a photo with an Arducam Mega (Arducam_Mega library) · Arduino C++Verify & upload in Electrolark
#include "Arducam_Mega.h"
const int CS = 7;
Arducam_Mega cam(CS);

void setup() {
  Serial.begin(115200);
  cam.begin();
  cam.takePicture(CAM_IMAGE_MODE_QVGA, CAM_IMAGE_PIX_FMT_JPG);
  uint32_t len = cam.getTotalLength();
  Serial.print("JPEG bytes: "); Serial.println(len);
  // read the image with cam.readBuff() and write it to SD or send it over serial
}

void loop() {}
05

Setup and tuning

Wiring

connect SPI (MOSI, MISO, SCK, CS) plus I2C (SDA, SCL) for sensor setup, and power at 3.3 or 5 V as the board allows.

Library

use the ArduCAM library for Mini boards and the Arducam Mega library for Mega boards; set the camera model in the header.

SPI speed

start at 4 to 8 MHz with short wires. Long jumpers corrupt the image data.

Saving photos

stream the JPEG to an SD card, the serial port or a Wi-Fi client; it does not fit in an Uno's RAM.

DVP sensor boards

connect to boards with a parallel camera interface, such as an ESP32 or STM32, not to an Uno.

06

What you need

Shop this list14 of 15 found in our store · ₹37,112

  • Arducam 2MP Mini SPI Camera Module for Arduino & Raspberry Pi Pico: the part this guide coversRaspberry Pi Pico₹419
  • Arducam 5MP Mini SPI Camera Module w/ M12 Lens Mount: another version this guide coversArducam 5MP Mini SPI Camera Module w/ M12 Lens Mount₹5,059
  • Arducam B400 Mega 3MP SPI Camera Module w/ Case: another version this guide coversArducam B400 Mega 3MP SPI Camera Module w/ Case₹2,269
  • Arducam Mega 5MP AF SPI Camera Module: another version this guide coversArducam Mega 5MP AF SPI Camera Module₹4,499
  • Arducam Mini Module Camera Shield 5MP OV5642 for Arduino: another version this guide coversArducam Mini Module Camera Shield 5MP OV5642 for Arduino₹5,059
  • Arducam EK043 5MP Mega DVP ESP32 Camera Evaluation Kit: another version this guide coversArducam EK043 5MP Mega DVP ESP32 Camera Evaluation Kit₹5,669
  • Arducam 5MP Camera Module OV5642 with CS Mount Lens: another version this guide coversArducam 5MP Camera Module OV5642 with CS Mount Lens₹3,009
  • Arducam OV5642 5MP Camera Module w/ M12 Lens: another version this guide coversArducam OV5642 5MP Camera Module w/ M12 Lens₹2,889
  • Arducam OV3640 3MP M12 Mount Camera Module w/ JPEG Output: another version this guide coversArducam OV3640 3MP M12 Mount Camera Module w/ JPEG Output₹2,049
  • Arducam OV7675 0.3MP Camera Breakout Board w/ M12 6mm Lens: another version this guide coversArducam OV7675 0.3MP Camera Breakout Board w/ M12 6mm Lens₹605
  • Arducam HM01B0 QVGA CMOS Monochrome Camera Module for RP2040 & Arduino: another version this guide coversArducam HM01B0 QVGA CMOS Monochrome Camera Module for RP2040 & Arduino₹1,099
  • Arducam B0533 5MP OV5640 Camera Module for Toradex Apalis/Verdin Arm: another version this guide coversArducam B0533 5MP OV5640 Camera Module for Toradex Apalis/Verdin Arm₹3,849
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • Uno R3 development board: a controller for SPI camerasUNO R3 ATmega328P Development Board with Type-C₹249Closest match, check the specs
07

Alternatives and when to choose them

  • ✓ESP32 camera boards: faster Wi-Fi cameras.
  • ✓OV2640 and OV7670 modules: bare DVP sensors.
  • ✓OpenMV: vision on board.
08

Common mistakes to avoid

  • !Using long jumpers at a high SPI clock.
  • !Choosing the wrong camera model in the library header.
  • !Trying to hold a full JPEG in an Uno's 2 KB of RAM.
  • !Connecting a DVP sensor board to a board with no camera interface.
09

Frequently asked questions

Can an Arduino Uno take photos with an Arducam Mini?

Yes. The camera does the capture and buffering, and the Uno streams the JPEG to an SD card or serial.

Can I stream video with an SPI camera?

Only slow, low-resolution frames. For live video use an ESP32-CAM or a Raspberry Pi camera.

Why are my images corrupted?

Usually SPI wires are too long or the clock is too fast. Shorten the wires and lower the SPI speed.

What is the HM01B0 used for?

It is a low-power greyscale sensor used for TinyML, such as person detection on RP2040 or Arduino boards.

Mini or Mega, which should I buy?

The Mega boards are newer and faster with autofocus options; the Mini boards have more older tutorials.

Parts for this guide

  • Arducam 2MP Mini SPI Camera Module for Arduino & Raspberry Pi Pico
    ₹3,369View
  • Arducam 5MP Mini SPI Camera Module w/ M12 Lens Mount
    ₹5,059View
  • Arducam B400 Mega 3MP SPI Camera Module w/ Case
    ₹2,269View
  • Arducam Mega 5MP AF SPI Camera Module
    ₹4,499View
  • Arducam Mini Module Camera Shield 5MP OV5642 for Arduino
    ₹5,059View
  • Arducam EK043 5MP Mega DVP ESP32 Camera Evaluation Kit
    ₹5,669View
  • Arducam 5MP Camera Module OV5642 with CS Mount Lens
    ₹3,009View
  • Arducam OV5642 5MP Camera Module w/ M12 Lens
    ₹2,889View
  • Arducam OV3640 3MP M12 Mount Camera Module w/ JPEG Output
    ₹2,049View
  • Arducam OV7675 0.3MP Camera Breakout Board w/ M12 6mm Lens
    ₹605View
  • Arducam HM01B0 QVGA CMOS Monochrome Camera Module for RP2040 & Arduino
    ₹1,099View
  • Arducam B0533 5MP OV5640 Camera Module for Toradex Apalis/Verdin Arm
    ₹3,849View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Uno R3 Development Board (No Cable)
    ₹359View
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 guideIntermediateOV2640 2MP, OV3660 3MP, OV5640 5MP FPCThese are bare image sensor modules with a parallel (DVP) data bus and an I2C-like SCCB control bus.3 min read · SensorsBuying guideIntermediateTinyML and AI Vision KitsTinyML kits run small neural networks next to a camera or microphone without sending data to the cloud.3 min read · IoT & Wireless

Sources

  • Arducam Mega and Mini docs

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 Arducam Mini and Mega SPI cameras and DVP sensors isArducam Mini and Mega SPI cameras and DVP sensors pinoutWiring the Arducam Mini and Mega SPI cameras and DVP sensorsExample 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)5 items · ₹9,016

Arducam 5MP Mini SPI Camera Module w/ M12 Lens Mount · Arducam OV3640 3MP M12 Mount Camera Module w/ JPEG Output · Arducam OV7675 0.3MP Camera Breakout Board w/ M12 6mm Lens · Arducam HM01B0 QVGA CMOS Monochrome Camera Module for RP2040 & Arduino · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

A QVGA (320 x 240) JPEG is usually 5 to 15 kB, more for a busy scene.

Serial monitor115200 baud
JPEG bytes: 11347

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