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

    Safe to add capacitor to smooth LED powered by PWMed bed output?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    7
    585
    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.
    • norbs12undefined
      norbs12
      last edited by

      So I'm using klipper with a duet ethernet and because of the recommended limits on the PWM frequency in Klipper, it's a bit irritating to look at. Would it be safe to add a capacitor to the LED bar (i'm using the bed output pins)? If so what spec capacitor is recommended for a 24v system?

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

        If you add a capacitor then there will be high peak currents every time the bed heatert mosfet turns on and the capacitor charges. So I don't advise doing this.

        It seems odd to me that Klipper should care about the PWM frequency. Maybe it doesn't use the hardware PWM that all Duet heater and fan outputs provide.

        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

        norbs12undefined 1 Reply Last reply Reply Quote 0
        • norbs12undefined
          norbs12
          last edited by

          OK, kind of thought it would would not be that simple. Though I was thinking I could maybe get around that issue by using a smaller cap.

          Klipper does have option for hardware PWM but maybe just not on the heater bed port. Is it only the fan ports that support hardware PWM?

          dc42undefined 1 Reply Last reply Reply Quote 0
          • norbs12undefined
            norbs12 @dc42
            last edited by

            @dc42 said in Safe to add capacitor to smooth LED powered by PWMed bed output?:

            ..all Duet heater and fan outputs provide.

            Sorry missed the first time around.

            I ended up moving to E0 pin and klipper allowed me to enable hardware PWM there. Not sure why the bed didn't work but this works fine too.

            Thank you for the info.

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

              @norbs12 said in Safe to add capacitor to smooth LED powered by PWMed bed output?:

              OK, kind of thought it would would not be that simple. Though I was thinking I could maybe get around that issue by using a smaller cap.

              Klipper does have option for hardware PWM but maybe just not on the heater bed port. Is it only the fan ports that support hardware PWM?

              All Duets (right from version 0.6) support hardware PWM on all heater and fan ports. It's part of our "no compromises" design philosophy. RRF for Duets has no software PWM function.

              Duet 3 boards support PWM on some of the general purpose I/O ports too.

              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
              • deckingmanundefined
                deckingman @norbs12
                last edited by

                @norbs12 said in Safe to add capacitor to smooth LED powered by PWMed bed output?:

                ........................Not sure why the bed didn't work but this works fine too.

                Depending on which board/firmware version you are using, it used to be the case that the bed heater default PWM frequency was around 10Hz (to suit SSRs and the like), whilst other heater and fan outputs would default to much higher values. So that might explain why heater 0 acted differently.

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

                norbs12undefined 1 Reply Last reply Reply Quote 0
                • norbs12undefined
                  norbs12 @deckingman
                  last edited by norbs12

                  I'll have to toy around with it more later. I actually found out today I had a faulty PSU causing most of my headaches. On any load change it was causing my lighting to flicker a little. It was not enough to cause printing issues but it was noticable in the lighting and the main reason I was trying to get hardware PWM working (so I could do higher PWM frequencies and avoid the communication from klipper). But now that I got hardware PWM on the lights and the issue persisted, I realized it could be a bad PSU. I finally tried a different PSU and everything is perfect. Working on RMA now.

                  Either way, I appreciate all the info and quick responses as always.

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