ArduCAM Shield Mini 2MP Plus is lasted version of mini 2mp camera, it is a high definition 2MP SPI camera, which reduce the complexity of the camera control interface. It integrates 2MP CMOS image sensor OV2640, and provides miniature size, as well as the easy to use hardware interface and open source code library. The ArduCAM mini can be used in any platforms like Arduino, Raspberry Pi, Maple, Chipkit, Beaglebone black, as long as they have SPI and I2C interface and can be well mated with standard Arduino boards. ArduCAM mini not only offers the capability to add a camera interface which doesn’t have in some low cost microcontrollers, but also provides the capability to add multiple cameras to a single microcontroller.
- 2MP image sensor OV2640
- M12 mount or CS mount lens holder with changeable lens options
- IR sensitive with proper lens combination
- I2C 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 Arduino boards
- Provide open source code library for Arduino, STM32, Chipkit, Raspberry Pi, BeagleBone Black
- Small form of factor
3. Key Specifications
|Power Consumption |
Low power mode: 5V/20mA
|Active pixel size: 1600×1200|
|SPI speed: 8MHz||Lens: 1/4 inch|
|Frame buffer: 8MByte||Resolution support:|
|Format support: RAW, YUV, RGB, JPEG||Size: 34 x 24 mm|
|Weight: 20g||Temperature: -10℃～+55℃|
4. Pin Definition
|Pin No.||PIN NAME||TYPE||DESCRIPTION|
|1||CS||Input||SPI slave chip select input|
|2||MOSI||Input||SPI master output slave input|
|3||MISO||Output||SPI master input slave output|
|4||SCLK||Input||SPI serial clock|
|6||VCC||POWER||3.3V ~ 5V Power supply|
|7||SDA||Bi-directional||Two-Wire Serial Interface Data I/O|
|8||SCL||Input||Two-Wire Serial Interface Clock|
5.1 Single Capture Mode
Single capture mode is the default capture mode of the camera. After issuing a capture command via SPI port, the ArduCAM will wait for a new frame and buffer the one entire image data to the frame buffer, and then assert the completion flag bit in the register. User only needs to poll the flag bit from the register to check out if the capture is done.
5.2 Multiple Capture Mode
Multiple capture mode is advanced capture mode. By setting the number of frames in the capture register, the ArduCAM will capture consequent frames after issuing capture command.
5.3 Short Movie Recording Mode
Short movie recording mode is advanced capture mode. By setting the maximum number of frames in the corresponding register, the ArduCAM will capture continuous frames until the 8MByte frame buffer is full.
5.4 JPEG Compression
The JPEG compression function is implemented in the image sensor. With proper register settings to the sensor, user can get different resolution with JPEG image stream output.
5.5 Normal Read and Burst Read Operation
Normal read operation reads each image data by sending a read command in one SPI read operation cycle. While burst read operation only need to send a read command then read multiple image data in one SPI read operation cycle. It is recommended to use burst read operation to get better throughput performance.
5.6 Rewind Read Operation
Sometimes user wants to read the same frame of image data multiple times for processing, the rewind read operation is designed for this purpose. By resetting the read pointer to the beginning of the image data, user can read the same image data from the start point again.
5.7 Low Power Mode
Some battery power device need save power when in the idle status, the ArduCAM offers the low power mode to reduce power consumption, by shutdown the sensor and memory circuits.
5.8 Image Sensor Control
Image sensor control function is implemented in the image sensor. By setting proper set of register settings, user can control the exposure, white balance, brightness, contrast, color saturation and etc.
6. Hardware Wiring
6.1 Single Camera Wiring
The typical connection between ArduCAM shield and Arduino or etc platform is shown in the Figure 1. More typically the Figure 2 shows the wiring for Arduino UNO R3 board.
Figure 1 Typical Wiring
Figure 2 Wiring for Arduino UNO R3
6.2 Multi Cameras Wiring
The multi-cameras connection between ArduCAM shield and Arduino or etc platform is shown in the Figure 3. More typically the Figure 4 shows the multi-cameras wiring for Arduino UNO R3 board.
Figure 3 Multi-Cameras Wiring
Figure 4 Mult-Cameras Wiring on Arduino UNO
7. I2C Interface
The I2C interface is directly connected to the image sensor OV2640. It should be well initialized before normal operation, or else there is no output from the sensor. The OV2640 I2C slave address is 0x60 for write and 0x61 for read. User can use I2C master to read and write all the registers in the OV2640 sensor. For more information about the OV2640 register, please refer the OV2640 datasheet. The Figure 5 shows writing value 0x01 to the OV2640 register 0xFF. The Figure 6 shows reading value 0x26 from the OV2640 register 0x0A.
Figure 5 I2C Write Bus Timing
Figure 6 I2C Read Bus Timing
8. SPI Slave Interface
The ArduCAM SPI slave interface is fixed SPI mode 0 with POL = 0 and PHA = 1. The maximum speed of SCLK is designed for 8MHz, care should taken do not over clock the maximum 8MHz. The SPI protocol is designed with a command phase with variable data phase. The chip select signal should always keep asserted during the SPI read or write bus cycle. For SPI detail timing, please continue to read Arduchip chapter.
9. Lens Options
ArduCAM Shield Mini 2MP Plus camera shield is shipped with default LS-4011 (S mount) . There are more lens options which can be found from our lens product page.
10. Mechanical Dimension