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

    use second heater to power LED with PWM

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    11
    341
    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.
    • Fireflyundefined
      Firefly
      last edited by

      can the second heater repurposed to run fan or LEDs? PWM? and how do I go about it?

      deckingmanundefined dc42undefined 2 Replies Last reply Reply Quote 0
      • deckingmanundefined
        deckingman @Firefly
        last edited by

        @Firefly Board and firmware version?

        Ian
        https://somei3deas.wordpress.com/
        https://www.youtube.com/@deckingman

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

          @Firefly said in use second heater to power LED with PWM:

          can the second heater repurposed to run fan or LEDs? PWM? and how do I go about it?

          Fan: yes, provided the fan voltage matches the VIN voltage.

          LEDs with PWM: yes if it's an LED strip designed to run from the VIN voltage, without a power converter (i.e. the strip groups the LEDs so that the number in series plus the series resistor is 12V pr 24V according to your VIN voltage). No if it is a 12V or 24V LED with an in-built power converter.

          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
          • Fireflyundefined
            Firefly
            last edited by Firefly

            Maestro with 3.4 firmware, 24V LED, not neopixel or RGB, connected to second heater.

            in setup config tool, I do not see an option to add LEDs or assign it.

            typically the code used ' M109 T1 S200 ' but that is temperature,

            What gcode do I use to turn on at PWM 125? (max is 255 i think)

            1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator
              last edited by

              Setup the pin with M950 P and then switch it with M42

              https://docs.duet3d.com/User_manual/Reference/Gcodes#m42-switch-io-pin

              https://docs.duet3d.com/User_manual/Reference/Gcodes#m950-create-heater-fan-spindle-or-gpioservo-pin

              Z-Bot CoreXY Build | Thingiverse Profile

              Fireflyundefined 1 Reply Last reply Reply Quote 0
              • Fireflyundefined
                Firefly @Phaedrux
                last edited by

                @Phaedrux

                not working for me or I am not understanding how to do this.
                note: H0 = Bed heater, H1 = nozzle heater, H2 = not used

                so to be sure I unassigned H2, I see H1 is using pin "e0heat", so I assume "e1heat" is pin want, but tried a few different commands with no luck. which FHJPSR am I suppose to use for LED? or what is the P# e1heat using?

                7/26/2023, 3:43:57 PM: M950 H2 C"nil"
                7/26/2023, 3:45:13 PM: M950 H2 C"e1heat" Q100: Error: M950: missing parameter 'T'
                7/26/2023, 3:46:57 PM: M950 E0 C"e1heat" Q100: Error: M950: exactly one of FHJPSR must be given
                7/26/2023, 3:48:00 PM: M42 H2 S0.7: Error: M42: missing parameter 'P'
                7/26/2023, 3:48:39 PM: M42 H2 P"led" S0.7: Error: M42: expected number after 'P'
                7/26/2023, 3:49:13 PM: M42 H2 P"e1heat" S0.7: Error: M42: expected number after 'P'
                7/26/2023, 3:49:32 PM: M42 E0 P"e1heat" S0.7: Error: M42: expected number after 'P'
                7/26/2023, 3:56:03 PM: m115: FIRMWARE_NAME: RepRapFirmware for Duet 2 Maestro FIRMWARE_VERSION: 3.4.5 ELECTRONICS: Duet Maestro 1.0 FIRMWARE_DATE: 2022-11-30 19:42:44

                1 Reply Last reply Reply Quote 0
                • Fireflyundefined
                  Firefly
                  last edited by Firefly

                  da81b11c-9512-4813-bd74-e3ef3fd179ca-image.png

                  M42 P2 S0.5

                  did not work.

                  1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator
                    last edited by

                    Which pins on the board are you connecting to?

                    Is your bed heater on bedheat pins?

                    M950 P0 C"e1heat" ; create output 0 on pin e1heat
                    M42 P0 S1 ; set output 0 to 100% pwm

                    Z-Bot CoreXY Build | Thingiverse Profile

                    Fireflyundefined 1 Reply Last reply Reply Quote 0
                    • Fireflyundefined
                      Firefly @Phaedrux
                      last edited by

                      @Phaedrux connected to E1 Heater, + on VIN and ground on E1-

                      Fireflyundefined 1 Reply Last reply Reply Quote 0
                      • Fireflyundefined
                        Firefly @Firefly
                        last edited by

                        @Firefly

                        ok so that worked

                        M950 P2 C"e1heat"
                        M42 P2 S0.5

                        I think we need a guide understanding pin# and pin names, theory of connecting logic pins to whatever this pin naming thing is.

                        so , assign a logic pin to a pin name, which connects it to where its wired? but still using logic Pin# to control it?

                        but anyways, happy have it working.

                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by Phaedrux

                          https://docs.duet3d.com/Duet3D_hardware/Duet_2_family/Duet_2_Maestro#pin-names

                          In Duet 3 boards the pin names are more generic.

                          Z-Bot CoreXY Build | Thingiverse Profile

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