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

    1LC v1.1 toolboard 5v control

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    15
    450
    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.
    • dc42undefined
      dc42 administrators @Marcossf
      last edited by

      @marcossf I expect you will configure the port that controls the motor as a GpOut port and then use M42 to turn it on/off. If you use the Zener diode, then you would use M42 P# S1 (where # is the GpIo port number you choose) to turn it on, and M42 P# S0 to turn it off. If you connect it directly then you would use M42 P# S0.4 to turn it on (S0.4 t give 40% PWM instead of S1).

      The PWM approach may work without using a LC filter; but using the LC filter may prolong the life of the motor. I can provide more details o the LC filter if you need it.

      HTH David

      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

      Marcossfundefined 1 Reply Last reply Reply Quote 1
      • Marcossfundefined
        Marcossf @dc42
        last edited by

        @dc42 Thank you David.

        Yes it will be controlled by M42 gcode. We are going to test the PWM approach proposed, as the client will not touch the configurations or parameters that we make in the code.

        However, I would like to know more about the LC filter to have an additional security alternative. We already have some suspicions about the supposed durability of these micro motors, with the additional handicap of vibration, which is never a good thing.

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

          @marcossf I suggest a 4.7mH inductor rated at 0.1A or higher between the OUT1_NEG pin and the negative motor terminal, and then a 10uF 25V capacitor connected in parallel with the motor. Don't use the capacitor without also using the inductor. Set the PWM frequency to 65000 in the M950 command.

          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

          Marcossfundefined 1 Reply Last reply Reply Quote 1
          • Marcossfundefined
            Marcossf @dc42
            last edited by

            @dc42 OK, thank you.

            I'll prototype a small PCB to fit these components inside printheads, and test it.
            I guess with this board between the 1LC and the motor it means we can use M42 S1 and will send full 12V to Out1 without any problems.

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

              @marcossf said in 1LC v1.1 toolboard 5v control:

              @dc42 OK, thank you.

              I'll prototype a small PCB to fit these components inside printheads, and test it.
              I guess with this board between the 1LC and the motor it means we can use M42 S1 and will send full 12V to Out1 without any problems.

              No, you would still need to use M42 S0.4.

              OTOH if you use the 6.8V Zener diode in series with the motor instead, you can use M42 S1. As the motor running current is only 40mA, the Zener diodes will only dissipate about 270mW after starting, so it is a reasonable solution. I still suggest you use a 1W Zener diode, not a 400mW one, to better handle the starting current surge.

              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

              Marcossfundefined 1 Reply Last reply Reply Quote 0
              • Marcossfundefined
                Marcossf @dc42
                last edited by

                @dc42 OK, so it looks more simple and safe enough use the diode solution then, isn't it?

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

                  @marcossf said in 1LC v1.1 toolboard 5v control:

                  @dc42 OK, so it looks more simple and safe enough use the diode solution then, isn't it?

                  Yes.

                  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

                  Marcossfundefined 1 Reply Last reply Reply Quote 1
                  • Marcossfundefined
                    Marcossf @dc42
                    last edited by

                    @dc42 OK, done. We are going to test it.

                    Just for double check, but I think all pins and diodes looks correct, isn't it.

                    0a6c872e-2051-4f9c-bb4b-daac2fc9cf7b-image.png

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

                      @marcossf it looks to me that the connections to the OUT1 port are wrong. Black should go to the OUT1_NEG pin, and red to the VOUT pin.

                      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

                      Marcossfundefined 1 Reply Last reply Reply Quote 0
                      • Marcossfundefined
                        Marcossf @dc42
                        last edited by

                        @dc42 OUT 1 block pins are marked like so in the schematics:

                        GND
                        +VOUT
                        out1.tach
                        out1

                        Do you mean we need to connect +VOUT to the motor positive and out1 to the negative?

                        It's confuse to me.

                        jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                        • jay_s_ukundefined
                          jay_s_uk @Marcossf
                          last edited by

                          @marcossf yes. All the outputs on duet boards switch to ground

                          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                          Marcossfundefined 1 Reply Last reply Reply Quote 2
                          • Marcossfundefined
                            Marcossf @jay_s_uk
                            last edited by

                            @jay_s_uk OK, thanks Jay.

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