pwm fan2 on the duet2 wifi



  • ; LED Lights - Duex5
    M307 H6 A-1 C-1 D-1 ; Use heater 5 for LED lights on Duex5
    M106 P6 S1.0 C"LEDs" A6 ; Map to fan control, name and set to full bright

    the above was taken from another posting.

    what needs to be modified for this to work on the duet2 wifi mainboard pins
    so the output is on pwm fan2.

    3.11


  • Moderator



  • @tracar said in pwm fan2 on the duet2 wifi:

    ed for this to work on the due

    just looking for an easy way to control some rgb led strips


  • Moderator

    @tracar said in pwm fan2 on the duet2 wifi:

    3.11

    Does this mean you're using firmware 3.1.1?

    If so, M307 H6 A-1 C-1 D-1 isn't needed anymore, but you will need an M950 command to define the pin you want to use.

    I understand what you want to do, but you haven't given much context about your setup at all and I'm not going to guess.


  • Moderator

    @tracar How much current do your LED strips draw? The fan fuse is 1A, and the PWM fan outputs on Duet 2 WiFi only support up to 1.5A. Much better to use a heater output, though this will be VIN, so you'll need to use a 12V buck converter if your VIN is 24V.

    Ian



  • @Phaedrux said in pwm fan2 on the duet2 wifi:

    but you haven't given much context about your setup at all and I'

    Yes Sorry for the confusion..

    3.1.1
    duet2 wifi

    so as you probably could guess, yes im looking for a way to control a led strip ( at least power some from a single pin .
    so need to configure a pin to be an on and off signal/voltage and have this output connected to a isolation voltage converter then to the led controller.
    my current setup:

    ; Fans
    M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
    M106 P0 C"Tool fan" P1 S0 H-1 T45 ; set fan 0 value. Thermostatic control is turned on "H-1 disables thermostatic mode" or H1 enables. "S" parameter turns that fan on or off S0 or S1 T45 is fan on at 45 degrees
    M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
    M106 P1 C"Parts cooling fan" S0 H-1 ; set fan 1 value. Thermostatic control is turned on
    M950 F2 C"fan2" Q20000 ; create fan 2 on pin fan2 and set its frequency
    M106 P2 C"LED's Brightness" S0 H-1 ;set fan 2 name and value. Thermostatic control is turned off

    with the above i can control Via the web interface with a slider to turn it on and off,
    trying to get it to turn on and off with macros..



  • @droftarts said in pwm fan2 on the duet2 wifi:

    @tracar How much current do your LED strips draw? The fan fuse is 1A, and the PWM fan outputs on Duet 2 WiFi only support up to 1.5A. Much better to use a heater output,

    i only need a on off signal that can be controlled with the web interface and macros.
    it doesnot matter the current or voltage output, i will be running that thru converters to match required for the led's

    so with the above , how do i change it E1 heater , with web gui/macro control



  • think i got it

    ; Fans
    M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
    M106 P0 C"Tool fan" P1 S0 H-1 T45 ; set fan 0 value. Thermostatic control is turned on "H-1 disables thermostatic mode" or H1 enables. "S" parameter turns that fan on or off S0 or S1 T45 is fan on at 45 degrees
    M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
    M106 P1 C"Parts cooling fan" S0 H-1 ; set fan 1 value. Thermostatic control is turned on
    M950 F2 C"e1heat" Q20000 ; create fan 2 on pin e1heat and set its frequency
    M106 P2 C"LED's" S0 H-1 ;set fan 2 name and value. Thermostatic control is turned off

    this part:
    M950 F2 C"e1heat" Q20000 ; create fan 2 on pin e1heat and set its frequency
    M106 P2 C"LED's" S0 H-1 ;set fan 2 name and value. Thermostatic control is turned off

    gives me a button and a slider on the web interface, where 0 is off and gets brighter as i slide it to full.

    what is the Max current i can pull from the e1heater pins @24v


  • Moderator

    @tracar said in pwm fan2 on the duet2 wifi:

    i only need a on off signal that can be controlled with the web interface and macros.
    it doesnot matter the current or voltage output, i will be running that thru converters to match required for the led's
    so with the above , how do i change it E1 heater , with web gui/macro control

    In that case, should be okay to run it off a fan header, if you need the heater for something else.

    what is the Max current i can pull from the e1heater pins @24v

    You can use the +ve fan pin for 24V, as it's always on (the heater are switched on the -ve/GND pin and is MOSFET controlled), and with a 7.5A fuse on the supply for heaters and motors. 7.5A at 24V is 180 watts, but you'll need to calculate how much of that you have spare after other hot end heaters and motors.

    Depending on the buck converter you're using for the LED lights, it may accept a PWM input (like an SSR), so could be powered directly from 24V, and use heater output (or fan output, as current draw would be low) to control it.

    Ian


Log in to reply