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

    Power relay

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    7
    35
    5.1k
    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.
    • DjDemonDundefined
      DjDemonD
      last edited by

      Okay so if I am going to use a module like this, to control mains on/off (with a permanent 5v supply to duet):

      Which takes care of the isolation and flyback diode etc.. But it needs +5v to trigger, what is the best way to go about it? My reading of the wiki suggests PS_ON pin is grounded when M80 is sent?

      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
      • dc42undefined
        dc42 administrators
        last edited by

        Are you sure that relay board has isolation? I don't see an optical isolator on it.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

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

          Okay maybe not that one but there are units for a few £'s more which do.

          Regardless - how would you advise connecting it?

          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
          • DjDemonDundefined
            DjDemonD
            last edited by

            How about this one?

            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
            • dc42undefined
              dc42 administrators
              last edited by

              That one has a 4-pin device on it that is probably an opto isolator.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 0
              • BikingVikingundefined
                BikingViking
                last edited by

                It's a bit of a different level of investment if you don't have a system up and running, but I have the printer on a z-wave plug which also monitors power consumption (bit of an eye opener) simplifies setup a fair bit.

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

                  Sure thats one way of doing it and I think asking David to consider some sort of interface to radio switched plugs/alexa etc. could be a great addition. But I'm just considering simple M80 for on and M81 for off setup. I have 3 machines running duet board now so a simple solution is what I'm after. I have a power monitor running to the bench for all my printers it is interesting I agree.

                  If powering the duet from external 5v should we use the 5v & GND pins in the PS_ON header? Or can plugging in a usb charger/adaptor to the usb port suffice long term?

                  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
                  • dc42undefined
                    dc42 administrators
                    last edited by

                    You can feed power via the USB port or the external 5V connector (the one with the PS_ON pin), it makes no difference.

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

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

                      Thank you. 🙂

                      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
                      • Cataundefined
                        Cata
                        last edited by

                        Share the results and diagrams if works. I'm thinking on use a similirar relay board with ps_on pins of the duet to fire the camera button and makes timelapses

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

                          I'm still none the wiser as to how best to connect it. It seems some of these relay modules can accept a high or low signal, so set to low, I would expect you can ground the IN pin on the relay to the PS_ON pin on the duet to trigger it. For those relay modules which only accept a high signal then if PS_ON goes to ground when M80 is sent, I think it might be best to use something like a logic inverter to reverse the signal. https://www.ebay.co.uk/itm/LOGIC-SINGLE-INVERTER-GATE-5SC70-Part-SN74LVC1GU04DCKT/351615798176?epid=1339373369&hash=item51ddef4ba0:g:QM8AAOxy8HlSa77O

                          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
                          • dc42undefined
                            dc42 administrators
                            last edited by

                            If you choose a relay module with an optically isolated input, then it will hopefully have + and - control input terminals separate from the power supply terminals. In which case you can connect the input terminals to +3.3V or +3V and PS_ON.

                            Duet WiFi hardware designer and firmware engineer
                            Please do not ask me for Duet support via PM or email, use the forum
                            http://www.escher3d.com, https://miscsolutions.wordpress.com

                            1 Reply Last reply Reply Quote 0
                            • Cataundefined
                              Cata
                              last edited by

                              To use it as a camera trigger, I need to execute m80 and followed by m81. What interval would I have if I put them one below the other in the gcode?

                              1 Reply Last reply Reply Quote 0
                              • dc42undefined
                                dc42 administrators
                                last edited by

                                More than a microsecond, but possibly less than a millisecond.

                                Duet WiFi hardware designer and firmware engineer
                                Please do not ask me for Duet support via PM or email, use the forum
                                http://www.escher3d.com, https://miscsolutions.wordpress.com

                                1 Reply Last reply Reply Quote 0
                                • Cataundefined
                                  Cata
                                  last edited by

                                  I can't tell if that is a joke or not. I will read about gcode waits and try to trigger the camera without the duet first

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

                                    Okay so I've settled on this one:


                                    So to make this work, I would hook up +5v from the duet to both VCC and CH1 pins, then GND to PS_ON?

                                    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
                                    • dc42undefined
                                      dc42 administrators
                                      last edited by

                                      No. Please post a photo of the back of the board with better lighting and focus, so that I can see the PCB traces clearly.

                                      Duet WiFi hardware designer and firmware engineer
                                      Please do not ask me for Duet support via PM or email, use the forum
                                      http://www.escher3d.com, https://miscsolutions.wordpress.com

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

                                        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
                                        • dc42undefined
                                          dc42 administrators
                                          last edited by

                                          The traces still are not very clear. But I think that CH1 and GND are the input signal, connected to the input of the opto coupler through a series resistor, while VCC and RGND provide power to the relay. If that's the case, connect VCC to +5V and RGND to ground. Connect GND to the Duet PS_ON output, and connect CH1 to either +5V or +3.3V.

                                          Duet WiFi hardware designer and firmware engineer
                                          Please do not ask me for Duet support via PM or email, use the forum
                                          http://www.escher3d.com, https://miscsolutions.wordpress.com

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

                                            Okay thanks David. I'll have a play with it on the bench before connecting it to a duet board.

                                            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
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA