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

    Triggers for bed leveling

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    9
    1.5k
    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.
    • iDeveloundefined
      iDevelo
      last edited by

      I want to use 2 microswitches to level my bed. I would attach one switch to the left of the X carriage and one to the right. The X carriage would move to the left edge of the glass and lower until it activates the right switch and report the Z height. It would then move right of the glass and use the left switch to measure the Z height. It would do this front and back. I would then end up with a set of 4 readings that i can adjust to level the bed.

      Would these work in a routine to do that?

      M581: Configure external trigger
      M582: Check external trigger

      Basically what the BCN guys do on the sigma

      https://youtu.be/SZ232J-dnkA

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

        If you use NC switches and wire them in series, you can use them just like a single switch Z probe.

        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 0
        • iDeveloundefined
          iDevelo
          last edited by

          Ok fair point. So if i have multiple Z switches how can i use those switches to read the Z height against 0. For example my printer starts with a Z height of 0. Then i move along the bed edge and probe with the switch but as soon as the switch hits the bed it reports 0 Z height.

          G1 Z-200 S1 F100 will stop fine when it hits the bed but this command sets the height to 0?. How do i read the actual height? If i can manage to read the height i can then do the simple math for adjustment.

          Thanks for your help!

          1 Reply Last reply Reply Quote 0
          • croadfeldtundefined
            croadfeldt
            last edited by

            When you say "How do I read the actual height?", is your intent to determine the Z probe offset from 0?

            1 Reply Last reply Reply Quote 0
            • StephenRCundefined
              StephenRC
              last edited by

              Sounds like he needs to make a macro to use G30: http://reprap.org/wiki/G-code#G30:_Single_Z-Probe

              1 Reply Last reply Reply Quote 0
              • iDeveloundefined
                iDevelo
                last edited by

                Thanks guys. I won't defend myself, I was thinking G30 is strictly for an IR probe…

                1 Reply Last reply Reply Quote 0
                • iDeveloundefined
                  iDevelo
                  last edited by

                  Just to confirm I can use P5 on the M558 command and use the pins on the IR probe connector for the switches is series instead of going the E0 route?

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

                    I normally recommend using E0 for a switch-type Z probe because it has filtering, an indicator LED and a lower value pullup resistor. However, using the GND and IN pins of the Z probe connector will probably work OK with NC switches.

                    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 0
                    • iDeveloundefined
                      iDevelo
                      last edited by

                      Thanks for all your help guys. I've now got a working bed leveling system. I'm just starting to write the Javascript now that reads the 4 point output and calculates how many turns in what direction of what knob to turn to level the bed 🙂

                      Thanks again!

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