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

Automatic bed levelling using 2 or 3 Z motors

Scheduled Pinned Locked Moved
Tuning and tweaking
10
31
6.9k
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
    educa
    last edited by 13 Apr 2017, 06:47

    This thread is called automatic bed leveling using 2 or 3 z motors so my post is totally relevant. The main goal of my post was to illustrate that that 1 mm out of sync is not needed and does in any case (rigid or not) make more stress than needed. Thats because it does the whole thing even if a bed was allready level. And even the most rigid machines may need some leveling, even if it is only to take 0.1mm of uneven leveling away. That can be done easily in auto leveling.
    Regarding connecting 3 axes with 1 belt, that is a possibility to not go out of sync, but if this technique is used then you can't use auto leveling and belts can also stretch over time… . That is why my post here is totally relevant. Even the most expensive cnc machinery with 2 or more motors which should run in sync use some kind or techniques to sync these motors, and mostly it is not by belts.

    If you do it, do it good.

    1 Reply Last reply Reply Quote 0
    • undefined
      deckingman
      last edited by 13 Apr 2017, 10:00

      I didn't say that you post was irrelevant. In fact if you re-read it, I didn't use the word at all. David started this thread as an example of what he was thinking of doing and asking for feedback. Various people have put forward suggestions, as have you. No need to rant.

      Ian
      https://somei3deas.wordpress.com/
      https://www.youtube.com/@deckingman

      1 Reply Last reply Reply Quote 0
      • undefined
        dc42 administrators
        last edited by 13 Apr 2017, 10:33

        I agree that it's better to move the whole bed when probing all the points and make the correction at the end. The purpose of my post was to point out that it may be possible to do this type of bed levelling already without any firmware changes.

        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
        • undefined
          educa
          last edited by 13 Apr 2017, 13:21

          Deckingman, I also didn't mean to rant or whatever. Sorry if it came over like that. We all want to build the most perfect solutions possible, thats all.

          David, I still don't really understand how it would be possible with current firmware. I don't know the firmware as good as you of course , but the demo code you gave above (with all 3 motors on or not) it capable of detecting the z probe distance at for example 3 points.

          So suppose you probe the bed at 3 places with these gcode commands. What then? I guess you need to calculate the offsets manually and have to adjust each z motor individually to level ?

          Using that technique, I would guess that a leveling is these steps

          1. With all 3 motors on, lower the z bed for example 10mm
          2. position probe closest zo z1 motor and do a homing on Z with all 3 motors on . (take note of the distance needed to home)
          3. Set Z bed down again and move probe to the position closest to z2 screw
          4. probe again and take note of the distance there.
          5. do the same for Z3 motor.

          But then….

          After that you have the 3 offsets. I guess then you have to calculate the average of the 3 offsets manually by yourself and then 1 by one enable the Z motors and set them to the calculated offset position ?

          This process should be repeated a couple of times, so as far as I understand at this point, this is not fully automated and required me to take note of offsets, calculate averages and position individual z motors multiple times by hand ?

          Or is there some kind of scripting language or system implemented on the duet which enables me to program this to be happening automatically ?

          Bart

          If you do it, do it good.

          1 Reply Last reply Reply Quote 0
          • undefined
            deckingman
            last edited by 13 Apr 2017, 15:32

            Hi Bart,

            No problem. I think the idea that David is putting forward is this. Probe the bed in the centre. i.e. enable all 3 motors then home the bed to the trigger height - for the sake of argument, lets say it's 2mm. Then move close to one of the screws, disable the other 2 Z motors then using just the one motor, drop the bed by 1mm (to ensure that it is below the trigger height, then probe the bed at this point - i.e using just one motor adjust the bed back to the trigger height of 2mm. If the bed was level to start with, this would be the same position, otherwise it will be adjusted. Repeat this process for the other two screws. A second iteration might be necessary but after that, in theory the bed should be level as long as the motors remain in sync (and nobody turns one of the screws when the machine is switched off).

            So there aren't any offsets to remember and a macro could be created which would run this process automatically.

            HTH

            Ian

            Ian
            https://somei3deas.wordpress.com/
            https://www.youtube.com/@deckingman

            1 Reply Last reply Reply Quote 0
            • undefined
              educa
              last edited by 13 Apr 2017, 15:55

              That could indeed work. It will end up with a leveled bed.

              Only negative I see is that on an allready leveled bed this is moving 1 z motor while others are not moving, so producing tear on the axis which is unneeded.

              I do agree that most systems will not see a lot of problems in this. It is just something that bothers me a bit, but its not the end of the world.

              I plan on leveling my 326x326x8mm aluplate (pei coated) with 3 T8x1 leadscrews (like you use too on your corexy) and then mount the plate RIGID onto the frame that connects to the 3 nuts. I don't plan on implementing leveling screws between the z stage and the buildplate itself since technically speaking this solution should be able to level the plate to 0,01mm anyway and thereafter you can do a mesh bed leveling to factor out al unevenness.

              I still think engineeringwise the best option is to probe the 3 points with all motors on, then calculate offsets and reposition the motors. An already leveled bed will need no adjustments and leveling procedure will be very fast and even on a unleveled bed (which we make this calibration for) the out of sync movements which are more or less harmful for the guide system will only move the least possible (calculated) offset.

              PS. While I have your attention. On your printer what do you use for guiding your Z table so it can't have horizontal wiggle room? I see wheels. Are these special types ? I plan un using 16mm precision shaft and LMF16UU bearings.

              If you do it, do it good.

              1 Reply Last reply Reply Quote 0
              • undefined
                dc42 administrators
                last edited by 13 Apr 2017, 16:31

                @educa:

                I still think engineeringwise the best option is to probe the 3 points with all motors on, then calculate offsets and reposition the motors. An already leveled bed will need no adjustments and leveling procedure will be very fast and even on a unleveled bed (which we make this calibration for) the out of sync movements which are more or less harmful for the guide system will only move the least possible (calculated) offset.

                I already agreed with you, see my previous post.

                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
                • undefined
                  educa
                  last edited by 13 Apr 2017, 16:40

                  Yes I understood that David. It was more an answer to Ian actually.

                  Is something like this planned to be implemented in firmware anytime soon ?

                  I would make a difference on which boards I have to buy for my build. Normally I would buy a duet wifi, connect X, Y, Extruder1 and Extruder 2 to the duet wifi and then map the z drive on expansion header to do my own stuff with it.

                  If it is working in firmware, then I will need to buy at least an extra duex-2 so I can hook the X and Y + the 3 Z motors to die duet wifi and then the 2 extruder motors to the expansion board. At east that is what I think I have read that it is best to have 1 axis on the same board, so for 3 z motors that would possibly be my best bet?

                  If you do it, do it good.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    dc42 administrators
                    last edited by 13 Apr 2017, 17:04

                    It doesn't make any difference whether you have the 3 Z motors on one of the boards or split between them.

                    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
                    • undefined
                      educa
                      last edited by 13 Apr 2017, 18:56

                      Ah ok. I thought I read that somewhere. So if I need X, Y, 3 times Z and 2 extruders, I just need to make sure that I have a DUET + a Duex2 and it doesn't matter how I map them. Nice 😉

                      If you do it, do it good.

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        deckingman
                        last edited by 13 Apr 2017, 19:40

                        @educa:

                        T….............................

                        PS. While I have your attention. On your printer what do you use for guiding your Z table so it can't have horizontal wiggle room? I see wheels. Are these special types ? I plan un using 16mm precision shaft and LMF16UU bearings.

                        Hi Bart,

                        The best way to answer that is to give you this shareable link to my google drive folder that has pics of the lead screw and Z axis mounting arrangement. https://drive.google.com/drive/folders/0B_MwtHtQR_ZvdHY1dXdxb2RQVm8?usp=sharing

                        As with the rest of the printer, the guides are open builds V slot (2020 in this case). However, I started with 2 only guides but when I built it, I found it was possible to "rotate" the bed slightly by hand. Closer inspection revealed that the guides were able to twist because, being 2020 it is only possible to use 1 bolt where they fix to the horizontal rails. The easiest fix at that stage was to install a 3rd guide but if I was starting from scratch, I'd have used 2040 with 2 bolts at each vertical to horizontal intersection.

                        I used open builds mini gantry plates and twin bearing Delrin wheels. The coupling between the guide and the plate mount is via a rod end rose joint which allows the vertical bolt itself to swivel to allow for any misalignment whilst still constraining the bed from any "wobble". Then I fitted "O" rings between the brass lead screw nut and the bed mounting plate. The bolts are tightened to just slightly compress the "O" ring and nyloc nuts prevent them from coming loose. This arrangement allows the bed to be tilted slightly without putting any twisting forces on the guides (which I know you are concerned about).

                        As I mentioned earlier, I originally planned to use 3 motors for the automatic levelling feature when it became available - that's why I designed the printer this way. I don't have any form of levelling other than by slackening the pulleys at the bottom of the lead screw and rotating the screw. Now that it's built and running, I've found that I adjusted the bed initially, then again after the initial settling in period of a few hours, but since then I've never had to adjust the bed level. So, I've abandoned all plans to change to 3 motors.

                        In fact, I don't use any form of compensation either, levelling, flatness or orthogonality (is that a word?). I have "home all" as part of my slicer start code along with bed and tool heating, so when I want to print something, I just turn on the printer, select the file, hit print, and walk away. Now that I've got it all dialled in, it's as easy as printing a document on my PC's printer (takes s bit longer though 🙂 )

                        In case you haven't seen it, here is a link to a video that I have shameless bragging rights to. It's printing a 300mm x 300mm square without using any form of bed compensation.https://www.youtube.com/watch?v=U733PMTou7M

                        HTH

                        Ian

                        Ian
                        https://somei3deas.wordpress.com/
                        https://www.youtube.com/@deckingman

                        1 Reply Last reply Reply Quote 0
                        • DjDemonDundefined
                          DjDemonD
                          last edited by 13 Apr 2017, 22:51

                          That looks great Ian. It's great when a machine is well built, sturdy and reliably level, but these aren't really the machines that auto levelling is aimed at. Once you have a machine like yours it all seems a bit pointless. I can't really see it appealing to people with a z axis with multiple leadscrew with multiple guides, these things are sturdy and once set by manually turning screws relative to one another, it's set for good long while. It's really the cheap more mass produced machines that need it. The bed has to be level/orthogonal, and the easiest way to do this on a cheapo printer would be to have a bed with 2 tiny motors driving small screws to adjust 2 points with a third fixed point and a sensor. DC motors would work if the screws were quite fine pitch.

                          I started with ABL on my corexy, then improved the mecahnics, then got rid of ABL as it never went out of level.

                          Simon. Precision Piezo Z-Probe Technology
                          www.precisionpiezo.co.uk
                          PT1000 cartridge sensors NOW IN, just attach to your Duet board directly!

                          1 Reply Last reply Reply Quote 0
                          • DocTruckerundefined
                            DocTrucker
                            last edited by 5 Sept 2017, 08:17

                            I'm running a duet 0.6. Upgrade to DuetWifi|Ethernet would require me to get the new board and expansion card. I can't see the Due4 for the Duet 0.6 for sale anywhere.

                            Is this card suitable for this feature?

                            Can't see why not, but rather ask a question and get a seemingly obvious answer as opposed to getting a surprise after I try it out!

                            Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              dc42 administrators
                              last edited by 5 Sept 2017, 14:15

                              Yes that should work if 6 drivers is enough. I can't remember what driver numbers the 2 extra drivers are, possibly 5 and 6 instead of 4 and 5.

                              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
                              • DocTruckerundefined
                                DocTrucker
                                last edited by 6 Sept 2017, 08:03

                                Thanks. I'll bare the numbering in mind!

                                Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

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