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

    Repurposing E1 Heater as LED?

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    3
    5
    165
    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.
    • janjohundefined
      janjoh
      last edited by

      DUet 2 Wifi / 3.5.2

      So,I'd like to repurpose e1 heater as a LED strip, using a "Standard 24V COB strip".

      Looking at M950 i see

      "Tn (optional) LED type: 0 = DotStar, 1 = RGB Neopixel (default), 2 = RGBW Neopixel. DotStar LEDs can normally be assigned only to an output intended for them."

      I do not see a value for a "Plain jane" LED strip here. But i do see that "T" is optional, but no mention of what omitting it would default to.

      So, I guess that I can not define a PWM Led in this fashion? (Unless omitting T would achieve this)

      TL;DR: How to repurpose e1.heat as a PWM LED Driver?

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

        @janjoh if it's a standard single color LED strip and the voltage it needs is the same as your VIN voltage, you can connect it in place of the heater. Use M950 to configure it as a gpout port, then M42 to control 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

        janjohundefined 1 Reply Last reply Reply Quote 0
        • janjohundefined
          janjoh @dc42
          last edited by

          @dc42

          Thank you, I was JUST about to update that I made the same realization. "If this is not a supported LED type, then what else can it be?"

          And yes, I did order a 24V strip especially because I intended to use the e1 for this purpose

          950 P4 C"e1heat"
          M42 P4 S1 ; And all of a sudden I need to wear my shades inside.
          

          Now to figure out the best way to add a button / slider / something to DWC for this. Heh.. I suppose I COULD define it as a fan instead...

          apakundefined 1 Reply Last reply Reply Quote 0
          • janjohundefined
            janjoh
            last edited by janjoh

            Yeah, why NOT define it as a fan and get a nice slider all automatically... 🙂

            dcdbe6ef-f977-4c74-af82-9a852d15341d-image.png

            1 Reply Last reply Reply Quote 1
            • janjohundefined janjoh marked this topic as a question
            • janjohundefined janjoh has marked this topic as solved
            • apakundefined
              apak @janjoh
              last edited by apak

              @janjoh I use a simple macro to turn on and off the leds...

              Definition in config.g

              ; LEDS
              M950 P1 C"e1heat" Q500							;use heater 1 outupt for LED
              M42 P1 S1
              

              macro LED ON/OFF

              if state.gpOut[1].pwm == 1
                 M42 P1 S0
              else
                 M42 P1 S1
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA