The pinouts for the PiCowbell are identical for all of the different camera module variants.
Power
- VB (VBUS) - This is the micro-USB input voltage, connected to the micro-USB port on the Raspberry Pi Pico. It is nominally 5V.
- VS (VSYS) - This is the main system input voltage. It can range from 1.8V to 5.5V and is used to generate the 3.3V needed for the RP2040 and the GPIO pins.
- EN (3V3_EN) - This connects to the enable pin on the Raspberry Pi Pico, and is pulled high (to VSYS) via a 100kΩ resistor.
- 3V - This is the 3.3V output from the Raspberry Pi Pico.
- Vr (ADC_VREF) - This is the ADC power supply and reference voltage. It is generated on the Raspberry Pi Pico by filtering the 3.3V supply. It can be used with an external reference when ADC performance is required.
- G - This is the common ground for power and logic. All GND pins are highlighted in white on the PC board silkscreen.
- SCL - I2C clock pin on the PiCowbell. It is connected to your microcontroller I2C clock line, which is GPIO5 on the Pico. This connection is shared with the STEMMA QT port on the end of the board.
- SDA - I2C data pin on the PiCowbell. It is connected to your microcontroller I2C data line, which is GPIO4 on the Pico. This connection is shared with the STEMMA QT port on the end of the board.
- STEMMA QT - These connectors allow you to connect to dev boards with STEMMA QT connectors or to other things with various associated accessories. There's one port at the end of the PiCowbell.
Be sure to peel off the protective film or remove the protective cover that covers the lens!
In the center of the board is the OV5640 camera module. The camera utilizes the following pins:
- VSYNC - GP0
- HREF - GP2
- PCLK - GP3
- PWDN - GP1
- DATA2 - GP6
- DATA3 - GP7
- DATA4 - GP8
- DATA5 - GP9
- DATA6 - GP10
- DATA7 - GP11
- DATA8 - GP12
- DATA9 - GP13
- RESET - GP14
For more information on the OV5640 pins, check out the Adafruit Learn Guide for the module.
On the back center of the board is the XCLK jumper for the camera module. It is outlined in white and labeled XCLK on the board silk. This jumper connects the XCLK pin from the camera module (center pad of the jumper) to an onboard oscillator (left pad of the jumper labeled INT). This oscillator generates a 16 MHz clock. If you cut this jumper, this disconnects the XCLK pin from the oscillator. You can then solder the center pad of the jumper to the A0 pad to its right to connect XCLK to pin A0. The XCLK pin must be driven with a 16MHz square wave from the microcontroller or other source.
- Vmotor - On the back of the board, below the board label silk, is the Vmotor jumper. It is labeled Vmotor on the board silk. This jumper connects 3.3V to the motor for auto-focus camera modules. If you cut this jumper, it will disconnect 3.3V from the DATA1 pin on the camera module.
The microSD card slot is connected to the following pins for SPI:
- MISO (GP16) - This is the SPI MISO (Microcontroller In / Serial Out) pin. It's used for the SD card to send data to the microcontroller.
- SCK (GP18) - This is the SPI clock input pin.
- MO (MOSI/GP19) - This is the SPI MOSI (Microcontroller Out / Serial In) pin. It is used to send data from the microcontroller to the SD card.
- CS (Chip Select/GP17) - This is the chip select pin for the SD card.
- SD Det - On the back of the board, directly next to GP15, is the SD Detect jumper. The jumper is labeled SD Det on the silk. You can solder this jumper closed to connect the optional SD card detect line to GP15.
On the end of the board, next to the STEMMA QT connector, is the shutter button. It is connected to GP22. You can use this button in your code to take photos or as an additional input.
Page last edited May 06, 2024
Text editor powered by tinymce.