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

    Non PWM Led

    Scheduled Pinned Locked Moved
    General Discussion
    4
    12
    563
    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.
    • Arkadiuszundefined
      Arkadiusz
      last edited by

      I'm using duet wifi to build pick and place machine with bottom vision camera and led ring around it.

      I have problem with horizontal lines on camera image and I suspect it might be caused by Led controlled by PWM from Fan2 output.

      Is there any way to switch off PWM on fan and just have plain voltage control instead?

      Thanks
      Arkadiusz

      A Former User? 1 Reply Last reply Reply Quote 0
      • taconiteundefined
        taconite
        last edited by taconite

        why dont you just get the 24V or 5V from the Powersupply or a respective pin? see Duet pinout

        https://duet3d.dozuki.com/Wiki/Duet_Wiring_Diagrams

        and the answer is yes of course. What you could do aswell is increase the pwm frequency

        Custom ANET A8
        Custom Delta: D-PATCH (Delta Printer with Automatic Tool CHanging) https://forum.duet3d.com/topic/16082/d-patch?_=1596131234754

        All I do here is under this license: CC BY-NC-SA

        Arkadiuszundefined 1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User @Arkadiusz
          last edited by

          @Arkadiusz said in Non PWM Led:

          Is there any way to switch off PWM on fan and just have plain voltage control instead?

          using 0 and 100% should not flicker unless you have a LED driver after the Duet, if you need to dim the leds without using PWM then no, not without basically buying or building a high end LED driver.

          Arkadiuszundefined 1 Reply Last reply Reply Quote 0
          • Arkadiuszundefined
            Arkadiusz @taconite
            last edited by

            @taconite I cannot have this LED always on, I need to be able to switch in on and off with m106 commands.

            1 Reply Last reply Reply Quote 0
            • Arkadiuszundefined
              Arkadiusz @A Former User
              last edited by Arkadiusz

              @bearer I tried all sorts of PWM values, I don't really need to dim them but I have to be able to turn it on and off with G-code commands. And I don't have any driver after duet, just a resistor

              1 Reply Last reply Reply Quote 0
              • A Former User?
                A Former User
                last edited by

                Using S0 and S1 is all on or all off, as should S0 and S255 (how it differentiates beween S1 and S1 i do not know..)

                you're using https://duet3d.dozuki.com/Wiki/Gcode#Section_M42_Switch_I_O_pin ?

                1 Reply Last reply Reply Quote 0
                • Arkadiuszundefined
                  Arkadiusz
                  last edited by

                  Yes S1 and S0 works for me but Led it too bright I needed to dim it.

                  Anyways got this issue solved, I added step down DC converter between Duet and Led, now flickering is gone.

                  1 Reply Last reply Reply Quote 0
                  • A Former User?
                    A Former User
                    last edited by

                    Huh, would have thought dc/dc is switch mode and would also flicker, otherwise I'd suggest that. Probably got lucky with the switching frequency, but if it works, why is less important:D

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

                      The flickering was probably caused by the supply voltage varying as the bed heater is PWM'd.

                      To use a DC-DC converted with the LED (or a fan), connect the input of the converter to VIN (or an always-on fan output to get the benefit of fuse protection), and connect the LED between the positive output of the converter and the FAN- or HEAT_ pin of your chosen heater or fan output. Never connect the input of a DC-DC converter to a heater or fan output.

                      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

                      Arkadiuszundefined 1 Reply Last reply Reply Quote 0
                      • Arkadiuszundefined
                        Arkadiusz
                        last edited by

                        I guess I got lucky, 1st rule of engineering: If it ain't broke, don't fix it 🙂

                        1 Reply Last reply Reply Quote 0
                        • Arkadiuszundefined
                          Arkadiusz @dc42
                          last edited by Arkadiusz

                          @dc42 Never connect the input of a DC-DC converter to a heater or fan output. - I did exactly that, what might be consequences?

                          I will follow your advice, thanks for letting me know.

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

                            @Arkadiusz said in Non PWM Led:

                            @dc42 Never connect the input of a DC-DC converter to a heater or fan output. - I did exactly that, what might be consequences?

                            I will follow your advice, thanks for letting me know.

                            It's likely to blow the mosfet that controls the heater or fan output, because of the surge current to charge the input capacitor of the buck regulator every time it turns on. A heater output might last a while, but a fan output is likely to fail quite quickly.

                            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 1
                            • First post
                              Last post
                            Unless otherwise noted, all forum content is licensed under CC-BY-SA