ArduCAM-M-2MP Camera Shield

Similar documents
Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

Table 1 below is a complete list of MPTH commands with descriptions. Table 1 : MPTH Commands. Command Name Code Setting Value Description

Embedded Systems Design Course Applying the mbed microcontroller

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

NB3H5150 I2C Programming Guide. I2C/SMBus Custom Configuration Application Note

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

MicroMag3 3-Axis Magnetic Sensor Module

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

Part 1. MAX BIT DAC with an Arduino Board. MIDI to Voltage Converter Part1

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

Dolphin In-Circuit programming Updating Firmware in the field

Serial Communications

FPGA INTEGRATION MANUAL SATURN-SIL 2 MODULES. Dictionary Code. Edition 01. Revision 00. Number of pages 18

Arduino DUE + DAC MCP4922 (SPI)

USB - FPGA MODULE (PRELIMINARY)

Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication

Raspberry Pi. Hans- Petter Halvorsen, M.Sc.

USER GUIDE EDBG. Description

Microprocessor & Assembly Language

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

A DIY Hardware Packet Sniffer

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

Nemo 96HD/HD+ MODBUS

Web Site: Forums: forums.parallax.com Sales: Technical:

RS-485 Protocol Manual

FR FAMILY MB91460 SPI - DAISY CHAIN COMMUNICATION 32-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Lab 2.0 Thermal Camera Interface

CMOS OV7660 Camera Module 1/5-Inch 0.3-Megapixel Module Datasheet

WICE-SPI Hardware Operation Manual

FUNCTIONAL BLOCK DIAGRAM SDA SCL SMBALERT. SMBus SERIAL BUS INTERFACE ADDRESS SELECTION PWM CONFIG AUTOMATIC FAN SPEED CONTROL REGISTERS

MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence :

SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: wireless embedded network

Consult protocol, Nissan Technical egroup, Issue 6

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

Internal Oscillator. I 2 C Interface. SPI Interface. Controller. Internal Registers Port Controller. Eight I/O Pins. Figure 1.

EA DOGS104x-A INCL. CONTROLLER SSD1803A FOR SPI AND I²C. available at 1 piece! Switchable font height ACCESSORIES

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

AN UART/SPI/I 2 C code examples. Document information. Abstract Simple code examples are provided for UART0, SPI and I 2 C.

Hardware Development Kit

RFID MODULE Mifare Reader / Writer SL030 User Manual Version 2.6 Nov 2012 StrongLink

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

MLX90393 Getting Started Guide

Command Processor for MPSSE and MCU Host Bus Emulation Modes

Full Power Domain SLCR (FPD_SLCR)

EARTH PEOPLE TECHNOLOGY SERIAL GRAPH TOOL FOR THE ARDUINO UNO USER MANUAL

Sample EHG CL and EHG SL10 16-bit Modbus RTU Packet

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Industrial microsd/sdhc Memory Card

PART B QUESTIONS AND ANSWERS UNIT I

RPDO 1 TPDO 1 TPDO 5 TPDO 6 TPDO 7 TPDO 8

SPDIF Specification. Author: Geir Drange

SDLC Controller. Documentation. Design File Formats. Verification

PCI IDE Controller. Specification. Revision 1.0

73M1866B/73M1966B FXOCTL Application User Guide November 2, 2009 Rev. 4.1 UG_1x66B_009

Introduction to graphics and LCD technologies. NXP Product Line Microcontrollers Business Line Standard ICs

AXI Performance Monitor v5.0

8 by 8 dot matrix LED displays with Cascadable Serial driver B32CDM8 B48CDM8 B64CDM8 General Description

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

SKYEMODULE GEMINI DATASHEET VERSION

DS1621 Digital Thermometer and Thermostat

FLYPORT Wi-Fi G

Switch Fabric Implementation Using Shared Memory

SYMETRIX SOLUTIONS: TECH TIP August 2015

NHD-0420D3Z-FL-GBW-V3

3.2 inch Arduino LCD Shield User Guide

eztcp Technical Document Modbus/TCP of eztcp Caution: Specifications of this document may be changed without prior notice for improvement.

Camera Sensor Driver Development And Integration

BV4512. I2C-LCD- 128 x 64 Graphic Controller. Product specification. November 2008 V0.a. ByVac Page 1 of 14

Hello, and welcome to this presentation of the STM32 Serial Audio Interface. I will present the features of this interface, which is used to connect

1. Summary. 2. Module Application Instruction. DFPLayer Mini. 1.2.Features. 1.3.Application Specification Description

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / 22.

SafeSPI - Serial Peripheral Interface for Automotive Safety

Lecture N -1- PHYS Microcontrollers

Bluetooth HID Profile

Android Controlled Based Interface

MODBUS APPLICATION PROTOCOL SPECIFICATION V1.1b3 CONTENTS

M25P05-A. 512-Kbit, serial flash memory, 50 MHz SPI bus interface. Features

VDIP1. Vinculum VNC1L Module. Datasheet

ADT7467. dbcool Remote Thermal Monitor and Fan Controller

Soft-Starter SSW-06 V1.6X

User Manual. AS-Interface Programmer

PMC-XM-DIFF & EADIN/MODBUS Virtex Design

Using the AnyBus -X Gateway to Communicate between a DVT camera and a Profibus Master

SRF08 Ultra sonic range finder Technical Specification

Vinco Development Module. Datasheet

Using an IR Remote with a Raspberry Pi Media Center

Building a computer. Electronic Numerical Integrator and Computer (ENIAC)

SSD1306. Advance Information. 128 x 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller

Technical Note TN_158. What is the Camera Parallel Interface?

Integration of Arduino as a slave system to LonWorks based System using I2C Interface

DS1621 Digital Thermometer and Thermostat

Micro SDSC / SDHC / SDXC. Micro SD Data Sheet

Modbus TCP / DALI converter

WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide

MONOCHROME RGB YCbCr VIDEO DIGITIZER

21152 PCI-to-PCI Bridge

Transcription:

ArduCAM-M-2MP Camera Shield 2MP SPI Camera Hardware Application Note Rev 1.0, Mar 2015

Table of Contents 1 Introduction... 2 2 Typical Wiring... 2 2.1 Single Camera Wiring... 2 2.2 Multi Cameras Wiring... 2 3 I2C Interface... 3 4 SPI Slave Interface... 4 5 ArduChip Timing Diagram... 4 5.1 SPI Bus Write Timing... 4 5.2 SPI Bus Single Read Timing... 4 5.3 SPI Bus Burst Read Timing... 5 6 Registers Table... 5 1

1 Introduction This application note describes the detail hardware operation of ArduCAM-M-2MP camera shield. 2 Typical Wiring 2.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 2.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. 2

Figure 3 Multi-Cameras Wiring Figure 4 Mult-Cameras Wiring on Arduino UNO 3 I2C Interface The I2C interface is directly connected to the image sensor OV2640. 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. 3

Figure 5 I2C Write Bus Timing 4 SPI Slave Interface Figure 6 I2C Read Bus Timing 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. The first bit[7] of the command phase is read/write byte, 0 is for read and 1 is for write, and the bit[6:0] is the address to be read or write in the data phase. ArduChip register table see Table 1. 5 ArduChip Timing Diagram 5.1 SPI Bus Write Timing The SPI bus write timing composed of a command phase and a data phase during the assertion of the chip select signal CSn. The first 8 bits is command byte which is decoded as a register address, and the second 8 bits is data byte to be written to the ArduChip internal registers. Figure 7 SPI Bus Write Timing 5.2 SPI Bus Single Read Timing The SPI bus single read timing is for read operation of ArduChip internal registers and single FIFO read function. It is composed of a command phase and a data phase during the assertion of chip select signal CSn. The first 8 bits is command byte which is decoded as a register address, the second 8 bits is dummy byte written to the SPI bus MOSI signal, and the content read back from register is appeared on the SPI bus MISO signal. 4

Figure 8 SPI Bus Single Read Timing 5.3 SPI Bus Burst Read Timing The SPI bus burst read timing is only for burst FIFO read operation. It is composed of a burst read command phase and multiple data phases in order to get double throughput compared to the single FIFO read operation. The first byte read from the FIFO is a dummy byte, and the following bytes are valid bytes. 6 Registers Table Figure 9 SPI Bus Burst Read Timing Sensor and FIFO timing is controlled with a set of registers which is implemented in the ArduChip. User can send capture commands and read image data with a simple SPI slave interface. The detail description of registers bits can be found in the software section in this document. As mentioned earlier the first bit[7] of the command phase is read/write byte, 0 is for read and 1 is for write, and the bit[6:0] is the address to be read or write in the data phase. So user has to combine the 8 bits address according to the read or write commands they want to issue. Table 1 ArduChip Register Table Register Address Register Type Description bit[6:0] 0x00 RW Test Register 0x01 RW Capture Control Register Bit[2:0]: Number of frames to be captured 0x02 RW Reserved 0x03 RW Sensor Interface Timing Register Bit[0]: Sensor Hsync Polarity, 5

0 = active high, 1 = active low Bit[1]: Sensor Vsync Polarity 0 = active high, 1 = active low Bit[3]: Sensor data delay 0 = no delay, 1= delay 1 PCLK Bit[4]: FIFO mode control 0 = FIFO mode disable, 1 = enable FIFO mode Bit[6]: low power mode control 0 = normal mode, 1 = low power mode 0x04 RW FIFO control Register Bit[0]: write 1 to clear FIFO write done flag Bit[1]: write 1 to start capture Bit[4]: write 1 to reset FIFO write pointer Bit[5]: write 1 to reset FIFO read pointer 0x05 RW GPIO Direction Register Bit[0]: Sensor reset IO direction Bit[1]: Sensor power down IO direction Bit[2]: Sensor power enable IO direction 0 = input, 1 = output 0x06 RW GPIO Write Register Bit[0]: Sensor reset IO value Bit[1]: Sensor power down IO value Bit[1]: Sensor power enable IO value 0x3B RO Reserved 0x3C RO Burst FIFO read operation 0x3D RO Single FIFO read operation 0x3E RO Reserved 0x3F RO Reserved 0x40 RO ArduChip version, constant value 0x40 for 2MP model Bit[7:4]: integer part of the revision number Bit[3:0]: decimal part of the revision number 0x41 RO Bit[0]: camera vsync pin status Bit[3]: camera write FIFO done flag 0x42 RO Camera write FIFO size[7:0] 0x43 RO Camera write FIFO size[15:8] 0x44 RO Camera write FIFO size[18:16] 0x45 RO GPIO Read Register Bit[0]: Sensor reset IO value Bit[1]: Sensor power down IO value Bit[1]: Sensor power enable IO value 6