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

    NC Microswitch Z Probe with 3.2.2

    Scheduled Pinned Locked Moved
    General Discussion
    3
    7
    411
    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.
    • MakeStuffMakeStuffundefined
      MakeStuffMakeStuff
      last edited by

      I am having trouble figuring out how to use a normally closed Microswitch as a Z Probe on my DuetWiFi. So far I am thinking something like the following in my config.g

      M558 P8 C"zprobe.in" H5 F120 T3000
      

      Thus far it will show the Z Probe sensor on the main web interface, but I can't seem to get it to trigger. I have it plugged into the ZProbe In and Ground pins that are right next to each other.

      Any ideas on what I may be doing wrong here? This is for a Railcore 3 Z motor build, so I will need it to probe for bed leveling.

      Thanks

      1 Reply Last reply Reply Quote 0
      • alankilianundefined
        alankilian
        last edited by alankilian

        @MakeStuffMakeStuff said in NC Microswitch Z Probe with 3.2.2:

        M558 P8 C"zprobe.in" H5 F120 T3000

        Try turning on the pullup.

        • M558 P8 C"^zprobe.in" H5 F120 T3000

        And then test with M119

        SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

        MakeStuffMakeStuffundefined 1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          And you can experiment with inverting the signal with ! in front of the pin name.

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • MakeStuffMakeStuffundefined
            MakeStuffMakeStuff @alankilian
            last edited by

            @alankilian That worked perfectly! Thanks!

            Out of curiosity, what does the pull up resistor do that helps in this scenario?

            Phaedruxundefined alankilianundefined 2 Replies Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator @MakeStuffMakeStuff
              last edited by

              @MakeStuffMakeStuff said in NC Microswitch Z Probe with 3.2.2:

              Out of curiosity, what does the pull up resistor do that helps in this scenario?

              I'm unlikely to be able to explain it satisfactorily. Try this.

              https://en.wikipedia.org/wiki/Pull-up_resistor

              Z-Bot CoreXY Build | Thingiverse Profile

              1 Reply Last reply Reply Quote 0
              • alankilianundefined
                alankilian @MakeStuffMakeStuff
                last edited by alankilian

                @MakeStuffMakeStuff said in NC Microswitch Z Probe with 3.2.2:

                what does the pull up resistor do

                You have a switch connected from ground to an input pin on the CPU.

                The CPU reads the voltage at the pin.

                • If it's above a certain level, it returns a binary one.
                • If it's below a certain value, it returns a binary zero.

                When your switch is closed, it's connecting the pin to ground, and when the CPU reads the voltage at the pin, it's pretty close to zero and it returns a binary zero.

                When your switch is open, the pin is not connected to anything, and is just floating around. Sometimes, the CPU will read a low voltage and STILL return a binary zero.

                The "pull-up" resistor is a high-value resistor that connects to a positive voltage, so when your switch is open, it "pulls-up" the pin to a higher voltage and the CPU reads it as a high-enough voltage to return a binary one.

                When your switch is closed, the resistor still tries to "pull" the pin up to a higher voltage, but the resistor's value is too large to do that and your switch wins the fight and can drive the voltage at the pin close to zero.

                SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                Phaedruxundefined 1 Reply Last reply Reply Quote 3
                • Phaedruxundefined
                  Phaedrux Moderator @alankilian
                  last edited by

                  @alankilian Far better than I could ever do it justice.

                  Z-Bot CoreXY Build | Thingiverse Profile

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