• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    Arkadiusz
    last edited by 30 Oct 2020, 15:55

    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

    ? 1 Reply Last reply 30 Oct 2020, 16:11 Reply Quote 0
    • undefined
      taconite
      last edited by taconite 30 Oct 2020, 16:09

      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

      undefined 1 Reply Last reply 30 Oct 2020, 16:17 Reply Quote 0
      • ?
        A Former User @Arkadiusz
        last edited by 30 Oct 2020, 16:11

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

        undefined 1 Reply Last reply 30 Oct 2020, 16:19 Reply Quote 0
        • undefined
          Arkadiusz @taconite
          last edited by 30 Oct 2020, 16:17

          @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
          • undefined
            Arkadiusz @A Former User
            last edited by Arkadiusz 30 Oct 2020, 16:19

            @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
              last edited by 30 Oct 2020, 16:22

              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
              • undefined
                Arkadiusz
                last edited by 3 Nov 2020, 11:47

                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
                  last edited by 3 Nov 2020, 12:17

                  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
                  • undefined
                    dc42 administrators
                    last edited by 3 Nov 2020, 13:14

                    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

                    undefined 1 Reply Last reply 3 Nov 2020, 13:17 Reply Quote 0
                    • undefined
                      Arkadiusz
                      last edited by 3 Nov 2020, 13:14

                      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
                      • undefined
                        Arkadiusz @dc42
                        last edited by Arkadiusz 11 Mar 2020, 13:46 3 Nov 2020, 13:17

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

                        undefined 1 Reply Last reply 3 Nov 2020, 15:39 Reply Quote 0
                        • undefined
                          dc42 administrators @Arkadiusz
                          last edited by 3 Nov 2020, 15:39

                          @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
                          10 out of 12
                          • First post
                            10/12
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA