Trigger distant camera using 3.3V
This. Unsure if your opto input already includes that resistor.

Make sure to pick a MOSFET with a rated RSdon for a Vgs of at least 3.3V, and that it's source-drain voltage can withstand at least 30V.

Might want to connect a TVS diode from gate to ground too since it sounds like this thing can be unplugged leaving the gate vulnerable to ESD.







simulate this circuit &ndash; Schematic created using CircuitLab