Configure I2C Relay

So I have this relay:


And I checked the Ardupilot article for relay:
https://ardupilot.org/copter/docs/common-relay.html
And looked the parameters searching for relay I noticed that there is no option for using a I2C Relay.
Am I right or is there a way to control the relay?

lua sripting can do some crazy stuff, so maybee you can write the i2c bus. Have you tested it?

Nope, LUA cannot drive I2c directly.
You can do two things.

  1. Write an i2c relay driver for the autopilot (not recommended unless you have good experience with AP programming)
  2. Use a logic level relay like this (https://www.banggood.com/BESTEP-1-Channel-3_3V-Low-Level-Trigger-Relay-Module-Optocoupler-Isolation-Terminal-p-1355736.html) and configure an output of your flight controller as a relay driver output Docs here: https://ardupilot.org/copter/docs/common-relay.html