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

pwm fan2 on the duet2 wifi

Scheduled Pinned Locked Moved Solved
General Discussion
3
9
590
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.
  • undefined
    tracar
    last edited by tracar 20 Sept 2020, 04:31

    ; 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

    undefined 1 Reply Last reply 23 Sept 2020, 06:59 Reply Quote 0
    • undefined
      Phaedrux Moderator
      last edited by 21 Sept 2020, 22:31

      Perhaps some more information and context?

      https://forum.duet3d.com/topic/5909/guide-for-posting-requests-for-help

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • undefined
        tracar
        last edited by 23 Sept 2020, 03:50

        @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

        undefined 1 Reply Last reply 23 Sept 2020, 14:06 Reply Quote 0
        • undefined
          Phaedrux Moderator @tracar
          last edited by 23 Sept 2020, 06:59

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

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • undefined
            droftarts administrators @tracar
            last edited by 23 Sept 2020, 14:06

            @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

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            1 Reply Last reply Reply Quote 0
            • undefined
              tracar
              last edited by 23 Sept 2020, 14:14

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

              1 Reply Last reply Reply Quote 1
              • undefined
                tracar
                last edited by tracar 23 Sept 2020, 14:17

                @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

                undefined 1 Reply Last reply 23 Sept 2020, 15:07 Reply Quote 0
                • undefined
                  tracar
                  last edited by tracar 23 Sept 2020, 14:39

                  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

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    droftarts administrators @tracar
                    last edited by 23 Sept 2020, 15:07

                    @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

                    Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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