ArduCAM Pinouts

Published by Lee Jackson on

Pin definition:

SignalsDescriptionSignalsDescription
+3.3V+3.3V from shield+5V+5V from Arduino
D13.3V logic version of D1D03.3V logic version of D0
D33.3V logic version of D3D23.3V logic version of D2
D53.3V logic version of D5D43.3V logic version of D4
D73.3V logic version of D7D63.3V logic version of D6
D93.3V logic version of D9D83.3V logic version of D8
+3.3V+3.3V from shieldGNDGround
IO1Expansion GPIO1IO0Expansion GPIO0
D113.3V logic version of D11D133.3V logic version of D13
IO2Expansion GPIO2D123.3V logic version of D12
IO3Expansion GPIO3D103.3V logic version of D10
IO5Expansion GPIO5IO4Expansion GPIO4
A03.3V logic version of A0A13.3V logic version of A1
A23.3V logic version of A2A33.3V logic version of A3
A43.3V logic version of A4A53.3V logic version of A5
GNDGroundGNDGround

Arduino board use IOs to emulate parallel bus to access ArduChip internal registers and external LCD registers. User should instantiate the ArduCAM and UTFT class which use parallel bus before the setup routine. The function of each signal list as follows:

SignalsFunctions
D[7:0]Parallel bus data[7:0]
A0Parallel bus RD, active low
A1Parallel bus WR, active low
A2Parallel bus RS
A3Parallel bus CS, active low
A4I2CSDA for Camera Module
A5I2CSCL for Camera Module
D10LCD chipselect, active low
D9SD/TF chipselect, active low
D11SPI MOSI
D12SPI MISO
D13SPI SCLK

The following is a piece of the code for demonstration of the instantiate the ArduCAM and UTFT class.

#define SD_CS 9 

//UTFT(byte model, int RS, int WR, int RD, int CS)
UTFT myGLCD(ITDB32S,A2,A1,A0,10);   
//ArduCAM(byte model,int RS, int WR, int RD, int CS)
ArduCAM myCAM(OV7670,A2,A1,A0,A3);

void setup()
{
  // Setup I2C port
  Wire.begin();   
  if (!SD.begin(SD_CS)) 
  {
    while (1);
  }
  // Setup ArduChip
  myCAM.InitCAM();
  // Setup the LCD
  myGLCD.InitLCD();
  ShowStart();
  delay(2000);
}

Categories: Tutorial

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *