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

    Servo control from Z_Probe_Mod pin for probe.

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    7
    889
    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.
    • brunofportoundefined
      brunofporto
      last edited by

      Hello,

      I designed this ZProbe that I am using since then with good reliability and results. It uses a simple 9g servo for deploy and retract of the probe and a simple optical endstop to trigger it.

      I did not test it yet but by searching and reading about I am confident that both, servo and endstop, can be powered by 3.3v. I use four wires for my probe: +v, ground, servo signal and probe signal that I plan to connect directly to the dedicated probe connector of the Duet Ethernet (not delivered yet).

      My questions are:

      Is it possible to control the servo from the "Z_Probe_Mod" pin?
      There is enough current to power a small 9g servo from the +3.3v pin? Is it risky to test it?

      Thank you very much!

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

        1. The Z probe MOD pin cannot be used to control a servo because it is not a PWM- or timer-capable pin. See https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins for the pins you can use.

        2. It would be very risky to run a servo from the 3.3V supply, not only because of the current draw but also because of the energy that servos feed back into the power supply when decelerating. However, many 5V servos will work if they are powered from 5V but given a 3.3V control signal.

        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
        • brunofportoundefined
          brunofporto
          last edited by

          Thank you very much!!

          Then I'll connect the endstop wires to the Z endstop plug and wire the servo to the correct 5v supply and signal pin.

          I would prefer a nice and clean one plug solution though 😄

          Would you recommend an external 5V supply due to the servo load (My Arduino could not handle it) or the 5v regulator from the Duet can handle the current of one 9g servo?

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

            By "9g servo", do you mean the servo weighs 9 grammes?

            The 5V regulator on the Duet can easily provide enough current for a small servo. The servo I test with weights around 50g. The Duet powers that easily enough, but that servo delivers a big kick into the 5V power rail when it stops.

            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
            • brunofportoundefined
              brunofporto
              last edited by

              Not sure if the 9g refers to the weight or torque of these small servos. But it is a "SG90 tower pro" micro servo that people refer to them as 9g servos.

              Is there any recommendations to protect the 5v rail from the big kick when it stops?

              Thank you very much!

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

                @brunofporto said in Servo control from Z_Probe_Mod pin for probe.:

                Is there any recommendations to protect the 5v rail from the big kick when it stops?

                Yes, connect a 220uF capacitor across the 5V supply to the servo.

                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
                • brunofportoundefined
                  brunofporto
                  last edited by

                  Thank you! Will do.

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