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

    LED control like Fans

    Scheduled Pinned Locked Moved Solved
    Duet Web Control
    leds duet wifi duet web control
    4
    10
    943
    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.
    • Beersonundefined
      Beerson
      last edited by

      Hi there,
      I have a 4 Channel Mosfet Board with which I can control e RGBW LED strip. I connected it to the GPIO heater4...7 and can control it perfectly with the M42 gcode.

      Is it possible to configure the Outputs like a Fan output? I would like to control the colors by temperature like a fan.
      This way I would also have the Fan slider to control the different colors.

      Is this possible? How can I achieve that?

      1 Reply Last reply Reply Quote 1
      • littlehobbyshopundefined
        littlehobbyshop
        last edited by littlehobbyshop

        In Firmware version 3.0 and later you can define the use of pins. Pretty sure you could do it with M950. Assuming Fan 0 is your hotend fan and Fan 1 is your layer fan, you can define Fan 3 onwards. Not tried it but it would look something like this:

        M950 F3 C"exp.heater3" Q500 ; RGB Red
        M950 F4 C"exp.heater4" Q500 ; RGB Green
        M950 F5 C"exp.heater5" Q500 ; RGB Blue
        M950 F6 C"exp.heater6" Q500 ; RGB White

        You would probably have to play with the Q (frequency) parameter. you can then control the LEDs with fan sliders in DWC or with M106.

        I'm mid build of a new printer and might actually try this myself

        BLV MGN Cube w/Hemera, K8200, Sunlu S8

        Beersonundefined 1 Reply Last reply Reply Quote 0
        • Beersonundefined
          Beerson @littlehobbyshop
          last edited by

          Thank you for the answer this is exactly what I did but it didnt work...
          I also implied the M307 to deactivate the heaters like it is described.
          If it would have worked would it still be possible to control it via M42?

          1 Reply Last reply Reply Quote 0
          • Danalundefined
            Danal
            last edited by

            @Beerson said in LED control like Fans:

            If it would have worked would it still be possible to control it via M42?

            No. You would need to vary fan speeds, by web or Gcode.

            Thank you for the answer this is exactly what I did but it didnt work...

            The fans appeared in the web interface, but moving the sliders did not make the LEDs light? Or something else?

            Delta / Kossel printer fanatic

            Beersonundefined 1 Reply Last reply Reply Quote 0
            • Beersonundefined
              Beerson @Danal
              last edited by Beerson

              No. You would need to vary fan speeds, by web or Gcode.

              so it seems the M950 didnt work because i can still control them via M42

              The fans appeared in the web interface, but moving the sliders did not make the LEDs light? Or something else?

              exactly the sliders did show up but they coulen not control the LEDs

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

                Which firmware version are you using? M950 only works in RRF3.

                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

                Beersonundefined 1 Reply Last reply Reply Quote 0
                • Beersonundefined
                  Beerson @dc42
                  last edited by

                  @dc42 RRF3

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

                    Send M950 F3 with no additional parameters, to see whether the M950 command worked. Same for F4, F5, F6.

                    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

                    Beersonundefined 1 Reply Last reply Reply Quote 0
                    • Beersonundefined
                      Beerson @dc42
                      last edited by

                      @dc42

                      M950 F4
                      Warning: M950 command is not supported
                      
                      ; Configuration file for Duet WiFi (firmware version 3)
                      ; executed by the firmware on start-up
                      ;
                      ; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun Feb 16 2020 14:21:00 GMT+0100 (Mitteleuropäische Normalzeit)
                      
                      ; General preferences
                      
                      1 Reply Last reply Reply Quote 0
                      • Beersonundefined
                        Beerson
                        last edited by

                        Aaaaah!! Thank you very much, now it works with RRF3!
                        Thanks for the support!!

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