Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4537

Other RP2040 boards • Raspberry Pi Pico (Pico 4 ML): Pin and Schematic are different But How it Works?

$
0
0
I have RP2040 Based Pico4ML. Since my purpose was to use the camera on it, I first tested the camera with Pico4ML, TensorFlow Image Segmentation etc. Everything works perfectly. Then I thought, "Why can't I do this with Generic Raspberry Pi Pico, which is available to everyone?" and tried to set up the same system with it. Then I tried the link I gave below and it worked.

https://docs.arducam.com/Arduino-SPI-ca ... ra-Module/

Right after this point, my problem started: Are the Pin Numbers given in the library and the pin numbers in the schematic different? Can someone who has used it or has experience explain how this works?

arducampico.c Library

Code:

int PIN_CAM_SIOD        = 4;  // I2C0 SDAint PIN_CAM_SIOC        = 5;  // I2C0 SCLint PIN_CAM_RESETB      = 2;int PIN_CAM_XCLK        = 3;int PIN_CAM_VSYNC       = 16;  // GP15 hsync  GP14 pixel clockint PIN_CAM_Y2_PIO_BASE = 6;   // data GPIO6
In fact, it is so interesting that the naming is wrong:


Name in Library <-> Name in Schematic

Code:

PIN_CAM_SIOD        <-> PIN_CAM_SIOD        PIN_CAM_SIOC        <-> PIN_CAM_SIODPIN_CAM_RESETB      <-> VSYNCPIN_CAM_XCLK        <-> HREFPIN_CAM_VSYNC       <-> PCLK  PIN_CAM_Y2_PIO_BASE <-> DO
I really never understood this situation.

Thanks.

Statistics: Posted by firzen — Fri Mar 22, 2024 10:23 pm — Replies 0 — Views 25



Viewing all articles
Browse latest Browse all 4537

Trending Articles