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

change or add a ON/Off button instead of a slider

Scheduled Pinned Locked Moved
Duet Web Control wishlist
4
11
429
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 10 Dec 2020, 16:59 12 Oct 2020, 16:56

    under the dashboard/ fan control.

    can a new section be added or created Just to be an ON/OFF button for the led's hooked up to a fan port instead of a Slider bar ?

    so ultimatly where it says fan selection, and the "tool fan" tab, can that tab be made to be an on off button instead of a selection button ?

    1 Reply Last reply Reply Quote 0
    • undefined
      oliof
      last edited by 12 Oct 2020, 21:13

      Shouldn't you redefine the pins in question as general GPIO pins and then control them with M42? Then you'd get no fan entry (and no buttons -- but in my setup I have two macros "0_led on" and "1_led off" which run M42 P0 S255 and M42 P0 S0 respectively and due to their name they are at the top of the list of Macros. Suits me (-:

      <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

      undefined 1 Reply Last reply 12 Oct 2020, 21:35 Reply Quote 1
      • undefined
        fcwilt @oliof
        last edited by 12 Oct 2020, 21:35

        @oliof said in change or add a ON/Off button instead of a slider:

        Shouldn't you redefine the pins in question as general GPIO pins and then control them with M42?

        So it's possible to do that to what would normally be a fan connection?

        If that is what you are saying, could you post a example of the command(s) needed to do that?

        Thanks.

        Frederick

        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

        undefined 1 Reply Last reply 12 Oct 2020, 21:45 Reply Quote 0
        • undefined
          Phaedrux Moderator @fcwilt
          last edited by 12 Oct 2020, 21:45

          @fcwilt In RRF3 you use M950 to define your pins. So you could define a servo pin and then target it with M42.

          https://duet3d.dozuki.com/Wiki/Gcode#Section_M950_Create_heater_fan_or_GPIO_servo_pin

          https://duet3d.dozuki.com/Wiki/Gcode#Section_M42_Switch_I_O_pin

          M950 S0 C"fan0" Q500
          M42 P0 S255/S0

          If you were using a BLTouch I think you'd need to choose the next available servo number, so S1/P1

          Z-Bot CoreXY Build | Thingiverse Profile

          undefined 1 Reply Last reply 12 Oct 2020, 21:55 Reply Quote 1
          • undefined
            fcwilt @Phaedrux
            last edited by 12 Oct 2020, 21:55

            @Phaedrux

            Thanks.

            I have failed to realize what M950 can do.

            I was thinking that it just declared that you were going to use a specific heater, fan or servo as a heater, fan or servo.

            I didn't realize that it could change a fan connection into a servo connection. That is very useful.

            Frederick

            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

            undefined 1 Reply Last reply 12 Oct 2020, 22:03 Reply Quote 0
            • undefined
              Phaedrux Moderator @fcwilt
              last edited by 12 Oct 2020, 22:03

              @fcwilt said in change or add a ON/Off button instead of a slider:

              I didn't realize that it could change a fan connection into a servo connection. That is very useful.

              Yes that is one of the big reasons for RRF3 to make the I/O more generalized and easier to manage over the fixed function of RRF2. This is exemplified in the hardware design of Duet 3 where all specific ports have been replaced in favour of more general i/o leaving it up to the user to define.

              Z-Bot CoreXY Build | Thingiverse Profile

              undefined 1 Reply Last reply 12 Oct 2020, 22:14 Reply Quote 0
              • undefined
                fcwilt @Phaedrux
                last edited by 12 Oct 2020, 22:14

                @Phaedrux said in change or add a ON/Off button instead of a slider:

                Yes that is one of the big reasons for RRF3 to make the I/O more generalized and easier to manage over the fixed function of RRF2. This is exemplified in the hardware design of Duet 3 where all specific ports have been replaced in favour of more general i/o leaving it up to the user to define.

                I now see why the Duet 3 has more generic names - I like that.

                I think the use of specific names like fan0 is what led to my misunderstanding. My fault for not reading with greater comprehension.

                Thanks much.

                Frederick

                Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                1 Reply Last reply Reply Quote 0
                • undefined
                  tracar
                  last edited by tracar 13 Oct 2020, 00:37

                  neopixel button.png

                  Ok so from what i have read makes no sense to me, lol

                  the picture i have attached shows me clicking on the (Neopixels on/off) tab
                  Can this tab be an actual button to toggle on and off at full power, and remove the slider ?

                  this is what i have:

                  ; 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 ( connected to relay )
                  M106 P2 C"Neopixels ON/OFF" S0 H-1 ;set fan 2 name and value. Thermostatic control is turned off
                  M950 F3 C"fan2" Q20000 ; create fan 0 on pin fan0 and set its frequency ( connected to relay )
                  M106 P3 C"Relay 2 ON/OFF" S0 H-1

                  OR can io create a whole new section under the " fan Control " section just for led and stuff with buttons?

                  undefined 1 Reply Last reply 13 Oct 2020, 00:41 Reply Quote 0
                  • undefined
                    Phaedrux Moderator @tracar
                    last edited by 13 Oct 2020, 00:41

                    @tracar Sorry it's not currently that flexible. I can move this to the wish list.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    undefined 1 Reply Last reply 13 Oct 2020, 00:43 Reply Quote 0
                    • undefined
                      tracar @Phaedrux
                      last edited by 13 Oct 2020, 00:43

                      @Phaedrux
                      thanks for the reply. 🙂

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        Phaedrux Moderator
                        last edited by 13 Oct 2020, 00:46

                        What @oliof is talking about would put on/off buttons on the macros list on the right side of your photo and remove the LEDs listing from the fan control entirely.

                        Z-Bot CoreXY Build | Thingiverse Profile

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