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

    E1 as 12v pwm

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    9
    930
    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.
    • mfoltzundefined
      mfoltz
      last edited by

      I am wanting to add some 12v leds for lighting and 3 extra fans for stepper cooling and was wondering if I could use my unused E1 heater terminals to control these? I would like to inject g code with my slicer to turn them on and off with a print.
      I thought of using one of my pwm fan pins but they are all already in use.

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

        Yes you can, using the M42 command. See https://duet3d.com/wiki/Using_servos_and_controlling_unused_I/O_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
        • mfoltzundefined
          mfoltz
          last edited by

          would I use M42 P? S1

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

            Yes, S1 to turn them on, S0 to turn them off, or something in between to turn them on at reduced brightness.

            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
            • mfoltzundefined
              mfoltz
              last edited by

              what would the P parameter be for the E1 heater pin?

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

                E1 heater is heater 2, so it would be P2 as described in the wiki page I linked to.

                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
                • mfoltzundefined
                  mfoltz
                  last edited by

                  Just wanted to double check. Thanks You are a big part of what makes duet so great.

                  1 Reply Last reply Reply Quote 0
                  • mfoltzundefined
                    mfoltz
                    last edited by

                    Just tried it sent M305 H2 A-1 C-1 D- and then when I send M42 P2 S1 I get the error message M42 P2 S1
                    Error: Logical pin 2 is not available for writing.

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

                      It's M307 you need not M305.

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