24V on/off switch

Hi @Jhans,

You can use a Pixhawk AUX pin in “relay” mode (by default pins 5 and 6) to output a 3.3V signal, which can be controlled with the relay button functions. That signal can be used to switch a logic-level MOSFET (discussed here) or a relay, which can control the connection between your 24V supply and your DC motor.

The primary considerations are ensuring:

  • 3.3V is a suitable switching voltage for the switching hardware you choose
  • the current draw required for switching is <25mA (per the datasheet I/O max draw) - mostly a problem for relays
  • the switching hardware supports the current required by your motor, and its supply voltage