Hi all,

I'm currently working with an FFC-6P board and I'm integrating some environmental sensors. The sensors are powered and connected to the 6P and I can see them with i2cdetect -y -r 4 so know they're present on bus 4. The issue I'm having is that I'm using Adafruits Blinka compatibility layer for circuit python and as the FFC-6P isn't a supported board it errors out.

This is fine in theory as I can use the generic Linux setup however I need to know the pin numbers/names (taken from pinmux) of the SDA and SCL pins on bus 4 to input them manually. It should look something like this; (Example from Jetson Orin)

SDA = Pin("GP16_I2C8_DAT") # I2C4

SCL = Pin("GP81_I2C9_CLK")

SDA_1 = Pin("GP14_I2C2_DAT") # I2C2

SCL_1 = Pin("GP13_I2C2_CLK")

I tried extracting the DTB from the image and de-compiling to see if I could find any pinmux info there but had no luck. Are you able to provide a pinmux table for the FFC-6P or let me know the pin names?

Kind Regards,

Jordan

  • erik replied to this.
    • Best Answerset by erik

    Hi JordanGell ,
    Could you try these ones?

    SDA = IO31, I2C4_SDA (mode2)
    SCL = IO30, I2C4_SCL (mode2)

    Hi JordanGell ,
    Could you try these ones?

    SDA = IO31, I2C4_SDA (mode2)
    SCL = IO30, I2C4_SCL (mode2)

      erik

      Thanks Erik, I believe those are the correct names.

      Kind Regards,

      Jordan

      We encountered a few more issues getting sensors to work as expected and also required pin numbering however everything is now working as expected. The pin names map to GPIO number as follows;

      I2C4_SCL = GPIO30

      I2C4_SDA=GPIO31

      In case anyone else is looking for info on the GPIO pin numbering extremely useful tables are present in the OAK SOM MAX datasheet

      https://github.com/luxonis/depthai-hardware/blob/master/SoMs/OAK-SoM-Max/OAK-SoM-MAX_Datasheet.pdf