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

    Multiple valve PWM control with DUET

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    7
    607
    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.
    • reFlexlabundefined
      reFlexlab
      last edited by reFlexlab

      Hello everyone.

      I am currently building a multi-fonctional fabrication plateform. I have plan to control several component.

      I noticed that a way to control a selenoid valve with the duet is to wire the valve to a PWM fan control pin .
      You can then use the command M571 in order to trigger the PWM output only when the extruder is on.

      I would Like to know if I could control multiple 12V selenoid valve. For exemple in the same way you can use multiple extruders.

      Is the command M571 is triggered on the selected extruder ?
      Can you assign different pin to different extruder ?

      Thank you,
      Tom

      @ reFlexLab Paris # MMMM project
      Modular Multimaterial Multiprocess Manufacturing

      1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User
        last edited by

        Are you needing PWM to partially actuate the solenoids or are you just using the PWM capable fan pins because of the transistors?

        You will want to make sure you add flyback diodes to the solenoids in any case.

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

          Is https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M670_Set_IO_port_bit_mapping any use to you?

          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
          • reFlexlabundefined
            reFlexlab
            last edited by

            Hello,

            dc42 : I don't understand how to use in combination the M571 and M670 command and how they influence eachother.

            Bearer : I think flyback diodes are already built in isn't it ?

            @ reFlexLab Paris # MMMM project
            Modular Multimaterial Multiprocess Manufacturing

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

              M670 sets up the mapping of bits to output ports, to turn solenoids or other devices on or off. Then you specify in each G1 command what you want on and what you want off for that move, using the P parameter. Optionally, you can specify a small time advance for switching the solenoids, to allow them to react.

              If you don't want to turn the solenoids on/off that often, or you want variable PWM, then use M42 instead. See https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins.

              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
              • T3P3Tonyundefined
                T3P3Tony administrators @reFlexlab
                last edited by T3P3Tony

                @reflexlab said in Multiple valve PWM control with DUET:

                Bearer : I think flyback diodes are already built in isn't it ?

                Flyback diodes were added to the PWM fan outputs from revision 1.02 of the Duet 2

                www.duet3d.com

                1 Reply Last reply Reply Quote 0
                • reFlexlabundefined
                  reFlexlab
                  last edited by

                  Hello, I am coming back to this subject.

                  Maybe this is a simple question but I am trying to use the unused pin on the DUET wifi.

                  I plan to use the M670 command, in order to successively control output ports during moving..

                  They are area of shadow in the use of the M670 command.

                  For exemple if I want to trigger two output ports : 20 and 22 which are fan output pins (chosen with this help) :

                  I want pin 20 off and pin 22 on during the moove I will send this command :

                  M670 P20:22
                  G1 P0:1 X... Y... Z...

                  Is it correct. Thank you

                  reFlexlab

                  @ reFlexLab Paris # MMMM project
                  Modular Multimaterial Multiprocess Manufacturing

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