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

    24v LED Control from Web Interface.

    Scheduled Pinned Locked Moved
    General Discussion
    3
    7
    792
    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.
    • Karimundefined
      Karim
      last edited by

      Hey Guys how can I control my 24v Led strip with the software, Like a slider in the interface. I have it hooked up direct to the 24 Power supply.

      Thank you

      1 Reply Last reply Reply Quote 0
      • nhofundefined
        nhof
        last edited by

        Use a fan output to PWM it if the current draw is low enough. Assuming it is just a single color two-wire strip.

        If the current draw is too high use the pwm to drive a mosfet or something to do the switching.

        1 Reply Last reply Reply Quote 0
        • Karimundefined
          Karim
          last edited by Karim

          This is the led I have install I only use only 2 feet, The roll is 5 meters, which is about 16 feet.

          Specifications:
          -Led Strip
          -Color: Cool white
          Color temperature: 6000-6500K
          -LED Type: 5050 LED (IP65 Waterproof)
          -Working Input Voltage: 24V DC
          -Output power: 40W /5 Meter
          -LED Quantity: 300leds/5 Meter or 60 leds/Meter
          -Size: L500cm (5M) x W1.0cm x T0.3cm
          -Package: 1 X 5 Meters / Roll
          -View angle:120°
          -Working Tempreture:-20°to 50°
          -Drive Mode:Contant Voltage

          Features:
          *Low power consumption,Super-bright but running with low temperature
          *All the light spread and completely smooth,luminous very even
          *Every 6-LEDS cuttable without damaging the rest strips, according to your requirement
          *Self-adhesive back with Adhesive tape for secure and easy application
          *LED Type: High Quality 5050 SMD LED, high intensity and reliability, Long lifespan 30,000 hours

          1 Reply Last reply Reply Quote 0
          • nhofundefined
            nhof
            last edited by nhof

            That's not a lot of power consumption. 40W/5 meter is only like 5W / 2 feet. The fan output should be able to handle that no problem.

            Connect + and - from the LED strip to one of the PWM fan outputs, then set up your config.g with a line something like this: M106 Pn C"LEDs" B0 where n is the fan output you hooked up the LEDs to.

            It'll show up on the duet web control labeled "LEDs" with a slider you can drag up and down to set the brightness.

            Then you can use the following command to turn the LEDs on and off, like to turn it on with the printer in config.g or change it with a macro.

            M106 Pn Sddd where n is the fan number set up earlier with M106 and ddd is the brightness value from 0-255 (0 being off, 255 on full).

            1 Reply Last reply Reply Quote 0
            • Karimundefined
              Karim
              last edited by Karim

              I added P2 to my Fan config. How does that look.

              ; Fans
              M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
              M106 P1 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
              M106 P2 C"LEDs" B0 ; LED strip to P2 PWM fan outputs
              M106 P2 S255 ; brightness value

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

                @karim said in 24v LED Control from Web Interface.:

                I added P2 to my Fan config. How does that look.

                ; Fans
                M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
                M106 P1 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
                M106 P2 C"LEDs" B0 ; LED strip to P2 PWM fan outputs
                M106 P2 S255 ; brightness value

                That looks good to me, although you might want to add L0 to the first M106 P2 command to make sure that you can get down to very low brightness levels.

                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
                • Karimundefined
                  Karim
                  last edited by

                  Perfect guys. Thank you.

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