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
On this page
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
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.
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.
| Pin | Function |
|---|---|
| CS | SPI chip select |
| MOSI / MISO / SCK | SPI data and clock |
| SDA / SCL | I2C sensor control (Mini) |
| VCC / GND | Power |
- CS
- SPI chip select
- MOSI / MISO / SCK
- SPI data and clock
- SDA / SCL
- I2C sensor control (Mini)
- VCC / GND
- Power
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 pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5V or 3.3V (see the module) | 3V3 |
| GND | GND | GND |
| SCK | D13 | GPIO 18 |
| MISO / SDO | D12 | GPIO 19 |
| MOSI / SDI | D11 | GPIO 23 |
| CS | D10 | GPIO 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
Example code
The Mini boards use the older ArduCAM library and examples.
#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() {}Setup and tuning
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.
use the ArduCAM library for Mini boards and the Arducam Mega library for Mega boards; set the camera model in the header.
start at 4 to 8 MHz with short wires. Long jumpers corrupt the image data.
stream the JPEG to an SD card, the serial port or a Wi-Fi client; it does not fit in an Uno's RAM.
connect to boards with a parallel camera interface, such as an ESP32 or STM32, not to an Uno.
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
Alternatives and when to choose them
- ESP32 camera boards: faster Wi-Fi cameras.
- OV2640 and OV7670 modules: bare DVP sensors.
- OpenMV: vision on board.
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.
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
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

