Help controlling IoT Relay with Duet 2 WiFi

  • Hello. I have a Modix Big60 V3 which has manual control for the bed heaters (not connected to Duet). I am wondering how I can wire up this IoT relay below (basically which pins and what GCODE command I should be using. The goal is to have the heaters turn off after a print. Thank you.

    The IoT Power Relay is designed to allow you to safely control an outlet device that operates at 3--48VDC or 12--120VAC. Each IoT Power Relay features a single input (from the included C13 power cable) to four outputs: one normally on, one always on, and two normally off. The durable SPDT control relay is rated at 30/40A, for 400,000 operations.

  • It will be easier to explain if you tell us what version of Duet you are using, what version of firmware you are using and what is currently connected to your board(s).

    To get you started, look at M42 in THIS document.

  • Firmware details below. I'll get a picture of the board soon.

    Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
    Firmware Electronics: Duet WiFi 1.02 or later
    Firmware Version: 2.05.1 (2020-02-09b1)
    WiFi Server Version: 1.23
    Web Interface Version: 1.22.6

  • @demetri90

    It depends on what should be de-energized in the off state.
    To be able to control the linked relay, the Duet would always have to remain under power.
    That means you need 2 power supplies. 5V for the Duet + e.g. 24V for the main power. The 24V power supply could then be controlled via G-Code.

    Maybe my approach brings you further. Here everything except the smart home relay is powered off. And the printer can be switched on via http.

  • OK, I would use pin #50 on the expansion connector to control your AC outlet.

    Then use M42 as described here to turn your bed heat on and off using GCODE.

    Do you need more help than this or are you OK to start experimenting?

Log in to reply