24v LED Control from Web Interface.



  • 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



  • 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.



  • 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



  • 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).



  • 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


  • administrators

    @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.



  • Perfect guys. Thank you.


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.