• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Smart Remote Power Control

Scheduled Pinned Locked Moved
General Discussion
smart home shelly 2.5 ps-on
3
6
653
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    DIY-O-Sphere
    last edited by DIY-O-Sphere 11 Oct 2020, 11:19

    To control the duet via PS-ON is nothing new.
    link text
    But to do this via a smart home actuator might be a more current option.

    While searching for an actuator I came across the Shelly 2.5
    I have chosen it because it brings its own web interface to control. And because it's not cloud bound by default.
    There is no nead for a smart home server. So it's already a good option out of the box.

    The goal was to be able to switch the printer in such a way that it cannot be accidentally switched off in the middle of printing. Also all loads should be switched off.
    The result is the following schematic. (Only the relevant area)

    27362285-a915-4ff3-9c38-e9c65a9ebf9e-grafik.png

    The key is to switch the actuator parallel to the PS-ON relay output.
    I use an industrial relay with several channels, this has the advantage that one can switch a separated feedback channel once the duet is booted.
    Currently I have 3 channels in use. Power supply, feedback and the heating bed (220V).

    The following setting must be made in the switching channel of the Shelly.

    Set the button type to "Detached Switch".

    fe18a3f8-fac7-4fc6-be76-82302bd28475-grafik.png

    Set an "Auto Off" timer for that channel.
    With this setting the input switch (SW) can be queried separately.

    0a16694c-a7ed-49c5-8ffd-7afe8bd05b17-grafik.png

    With this wiring and setting the printer only can be switched off by G-Code.
    Either out of the DWC or automatic at the end of printing.
    Of course, it also works via a hard-wired kill or main switch.

    611ba825-0230-4891-99a4-c74687aa079c-grafik.png

    When everything worked I have been thinking about how to make it more comfortable and to get acoustic feedback.
    The drama began seting up a homeserver starting to build a node red dashboard....
    To cut a long story short it ended with the integration of G-codes, video image and the activation/deactivation logic.
    Still work in progress...
    Demo Duet Remote.mp4

    3378c04d-f634-4b04-b365-7dd17d942bd5-grafik.png

    (UTC+1)

    1 Reply Last reply Reply Quote 3
    • undefined
      T3P3Tony administrators
      last edited by 14 Oct 2020, 08:11

      Nice work. Is that industrial relay one that stays on even if the control signal drops (is that what the second path via the diode is giving you?)

      (btw added .mp4 upload)

      www.duet3d.com

      undefined 1 Reply Last reply 14 Oct 2020, 18:43 Reply Quote 0
      • undefined
        DIY-O-Sphere @T3P3Tony
        last edited by DIY-O-Sphere 14 Oct 2020, 18:43

        @T3P3Tony
        This is a momentary relay.
        The secondary channel displays the status of the relay.
        In the node red flow it controls the button status (color and naming) and also deactivates the boot button once the duet is up.
        This is not absolutely necessary. But otherwise you can trigger the relay several times in a row. (From the Shelly's own UI that is still possible)
        With a slightly modified circuit it even would work with only one channel . To me with this wiring it seemed to be more logical and the relay was lying around unused.

        Edit:

        (btw added .mp4 upload)

        Still getting this error:

        99caaf15-ae54-4b86-879c-47e9566d5b77-grafik.png

        (UTC+1)

        1 Reply Last reply Reply Quote 0
        • undefined
          T3P3Tony administrators
          last edited by 14 Oct 2020, 21:23

          can you try a refresh/reload on the broswer setting to test the mp4 upload pls.

          www.duet3d.com

          undefined 1 Reply Last reply 14 Oct 2020, 21:57 Reply Quote 0
          • undefined
            DIY-O-Sphere @T3P3Tony
            last edited by 14 Oct 2020, 21:57

            @T3P3Tony
            No chance.....nor cleaning cash

            (UTC+1)

            1 Reply Last reply Reply Quote 0
            • undefined
              fcwilt
              last edited by 14 Oct 2020, 22:06

              I wasn't using a computer power supply, just a typical Meanwell DC unit.

              I wanted to be able to power my printers up/down so I got this:

              Controlled Power Outlets

              It has features I don't need but it has the local and remote power control that I wanted.

              I'm would imagine there are other similar units.

              Frederick

              Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

              1 Reply Last reply Reply Quote 0
              • undefined DIY-O-Sphere referenced this topic 24 Apr 2022, 09:28
              • undefined DIY-O-Sphere referenced this topic 28 Jul 2022, 18:43
              • undefined DIY-O-Sphere referenced this topic 12 Feb 2023, 16:00
              • undefined DIY-O-Sphere referenced this topic 4 Mar 2023, 17:28
              6 out of 6
              • First post
                6/6
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA