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

    Install a relay to turn power on and off

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    7
    15
    2.6k
    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.
    • Qdeathstarundefined
      Qdeathstar
      last edited by

      Its a good idea to break both the hot leg and the neutral. (in case of reverse polarity)

      1 Reply Last reply Reply Quote 0
      • okerchoundefined
        okercho
        last edited by

        I'm using a wifi plug that detects the power consumption. I've setup it to shutdown the plug if the consumption is below the idle value, so after 5-10 minutes of the end of the print, if I don't start another print, the printer shutdowns automatically…

        Regards

        Okercho
        Custom Prusa i3 Hephestos with Duet Wi-Fi
        E3d V6 with Bondtech BMG DirectDrive and PrecisionPiezo Sensor
        Rebuilding Hypercube Evolution

        1 Reply Last reply Reply Quote 0
        • DjDemonDundefined
          DjDemonD
          last edited by

          What make/model? I like this idea, I wonder if there a way to control it using the duet?

          Simon. Precision Piezo Z-Probe Technology
          www.precisionpiezo.co.uk
          PT1000 cartridge sensors NOW IN, just attach to your Duet board directly!

          1 Reply Last reply Reply Quote 0
          • bartolomeusundefined
            bartolomeus
            last edited by

            Is that the tp link smart plug? Doesn't octoprint have a plugin for it?

            1 Reply Last reply Reply Quote 0
            • EasyTargetundefined
              EasyTarget
              last edited by

              I keep seeing packs in shops with a handful of 433Mhz controlled wall sockets and a remote for silly money.

              And I stumbled across this nice article:
              https://www.rs-online.com/designspark/control-wireless-mains-sockets-with-arduino-and-raspberry-pi

              My (eventual) plan is to have the Octoprint server permanently powered; and control printers + some lighting using a bunch of these plugs and appropriate scripting; It looks pretty easy in theory.

              edit: 433Mhz, not 533 as originally written.

              Disaster? The original Printeye is dying with RRF 3.5 (M208 depreciated).
              PrintPy2024 to the rescue!
              MicroPython based; with simple wiring and and no custom PCB.

              1 Reply Last reply Reply Quote 0
              • DjDemonDundefined
                DjDemonD
                last edited by

                But useful as Octoprint is for controllers without WiFi and Web interfaces isn't using it with Duet just duplicating? Or do you think its worth seeing if the code can be incorporated into RRF?

                Simon. Precision Piezo Z-Probe Technology
                www.precisionpiezo.co.uk
                PT1000 cartridge sensors NOW IN, just attach to your Duet board directly!

                1 Reply Last reply Reply Quote 0
                • bartolomeusundefined
                  bartolomeus
                  last edited by

                  I believe octoprints code is based in this: https://github.com/softScheck/tplink-smartplug/blob/master/README.md

                  1 Reply Last reply Reply Quote 0
                  • EasyTargetundefined
                    EasyTarget
                    last edited by

                    For Octoprint I'll first get it up and running via std shell/python scripting; once I can run from the cmdline I'll just work out the correct YML to put in octoprint and bingo! I'll have power on/off buttons in the control panel.

                    Doing this natively on the Duet should be possible, a worthy addition; all the libs and info you might need are available with suitable googling, and someone with the relevant skills (eg. not me..) should not find it too hard to connect a 433mhz transponder and plumb into the firmware behind the appropriate Mcommands.

                    Disaster? The original Printeye is dying with RRF 3.5 (M208 depreciated).
                    PrintPy2024 to the rescue!
                    MicroPython based; with simple wiring and and no custom PCB.

                    1 Reply Last reply Reply Quote 0
                    • EasyTargetundefined
                      EasyTarget
                      last edited by

                      @DjDemonD:

                      But useful as Octoprint is for controllers without WiFi and Web interfaces isn't using it with Duet just duplicating? Or do you think its worth seeing if the code can be incorporated into RRF?

                      Yes.. to both.

                      • If someone took the time to get this working in RRF as a firmware option it would probably get used; the transponders are very cheap and just use a single data wire. The RF controlled switch packs are the sort of thing I see hanging on the aisle-ends in supermarkets and DIY shops a lot. By the time you have sourced a big enough relay, isolated and mosfetted it, connected to Duet and made it all neat and safe this might actually be a cheaper and easier solution.

                      • Err; yes a bit embarrassing.. I already used Octoprint for my cartesian; If I only had the Duet web interface I'd be just dandy, but after commissioning and several weeks of using the Duet control I have got round to configuring a parallel Octoprint service for the Delta; though I still prefer to use duet web control for configging, testing and casual control as needed.
                        With the resources of the Pi3 behind it Octoprint does a better job of managing files, multiple sessions, resisting disconnects, guest sessions, print history, it's impressive gcode visualizer, timelapse and more.. Customizing it is solid (if you grok yaml) so I have buttons for calibration etc. If anybody is interested I'd be happy to share my thoughts on this and my config, but lets not pollute this thread further (says the worst offender..)
                        https://photos.app.goo.gl/Km9cT4PY9wjs9kuI2 has a shot of this in operation.. two printers+cams running, and 90% idle on all cores.

                      Disaster? The original Printeye is dying with RRF 3.5 (M208 depreciated).
                      PrintPy2024 to the rescue!
                      MicroPython based; with simple wiring and and no custom PCB.

                      1 Reply Last reply Reply Quote 0
                      • DjDemonDundefined
                        DjDemonD
                        last edited by

                        There are suitable relays that will just connect direct to psON https://m.fr.aliexpress.com/item/32839999205.html?src=google&albch=shopping&acnt=494-037-6276&isdl=y&albcp=774771304&albag=47555573664&slnk=&trgt=61865531738&plac=&crea=fr32839999205&netw=g&device=m&mtctp=&gclid=CjwKCAiAqvXTBRBuEiwAE54dcDnxVY6kvQcCgXNrZeAvdgEwVUiL7j-Vd2At8iSZwjfNL7jQ07_D6hoCtUcQAvD_BwE
                        These have opto coupler and transistors etc.. So are quite safe and isolate the mains supply from the low voltage side. They also protect from flyback current when the relay switches. All you need is permanent 5v power for the duet such as USB charger.

                        Simon. Precision Piezo Z-Probe Technology
                        www.precisionpiezo.co.uk
                        PT1000 cartridge sensors NOW IN, just attach to your Duet board directly!

                        1 Reply Last reply Reply Quote 0
                        • dmkmediaundefined
                          dmkmedia
                          last edited by

                          it would be nice to control an Alexa plug socket is i wonder can there be any IOT integration in the future.
                          as I have various IOT Alexa controlled wall sockets.

                          IE Alexa turn off 3d printer would be nice

                          https://dmkitservices.com

                          1 Reply Last reply Reply Quote 0
                          • Qdeathstarundefined
                            Qdeathstar
                            last edited by

                            You could do that with an esp8266 and a 3.3v relay

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Unless otherwise noted, all forum content is licensed under CC-BY-SA