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

    stepper precision

    Scheduled Pinned Locked Moved
    3D Printing General Chat
    6
    110
    6.4k
    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.
    • arhiundefined
      arhi
      last edited by arhi

      I managed to get S42B v1.0 to work (no clue how any more), now it's running in closedloop mode too so waiting for results... interesting - I have no clue what microstepping it is running at, lcd configured 1/32 but what it is actually doing - no clue, will run the original one direction full circle after this back-forth finish

      need to find my vallder (leadshine clone) .. dunno where I put the darn thing in this chaos

      1 Reply Last reply Reply Quote 0
      • arhiundefined
        arhi
        last edited by arhi

        S42B V1.0 - in closed loop mode def does not work ok .. having ton of issues with it, was not working at all, now it moves but .. the worse part is it's not even showing that there is an error here 😞 .. other ppl also report issues with it so won't waste more time on it 😞 ..

        eaeacdc8-460c-424c-b13b-d6fbe57fe014-image.png

        s42b-closedloop-back-forth.txt

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

          @arhi said in stepper precision:

          if you look how error is down to nothing when you just turn direction and how it rises... takes some 20+ steps in reverse for error to catch up the average values..

          If I'm understanding you correctly, that's probably the flexibility in your tape/ziptie connection causing "backlash"

          When I move datapoints around to fake-eliminate that backlash (if that's what it is) I get a very nice chart of error values.

          Untitled.png

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

          arhiundefined 1 Reply Last reply Reply Quote 0
          • arhiundefined
            arhi @alankilian
            last edited by

            @alankilian said in stepper precision:

            If I'm understanding you correctly, that's probably the flexibility in your tape/ziptie connection causing "backlash"

            very possible. I tested 10 steps back/forth and was getting values 0-2 for error so assumed that's it but looks like it's not holding water... darn encoder have shaft larger than nema17 and smaller than 8mm so none of my couplers fit.. ordered some new but..

            1 Reply Last reply Reply Quote 0
            • arhiundefined
              arhi
              last edited by arhi

              S42B, closed loop mode - changed menu to 1/16 (from 1/32) and let it calibrate again

              0bf952ee-09b7-404f-bfca-f8656f5306f0-image.png

              s42b-closedloop-back-forth-go2.txt

              1 Reply Last reply Reply Quote 0
              • arhiundefined
                arhi
                last edited by

                enough for now, need to stiffen this coupling

                1 Reply Last reply Reply Quote 1
                • DaBitundefined
                  DaBit
                  last edited by

                  If you have it available somewhere you can use some 6mm/8mm inner diameter petrol hose. The rubber kind with a (cotton?) braid as reinforcement embedded in the rubber. Due to the reinforcement that stuff is quite stiff in rotation, due to it being rubber a hose clamp clamps it stiffly around a shaft.

                  I stumbled over M569.1 in the G-code reference today. Is that already implemented?

                  In case you have to return the encoder before finishing you tests: I probably have some 2500-line incremental encoders with quadrature output (10000 pulses/rev) lying around over here somewhere. I can miss one or two. If I can find them..
                  (you may think your mancave is a mess, but I am fairly certain I win that battle)

                  arhiundefined 1 Reply Last reply Reply Quote 0
                  • arhiundefined
                    arhi @DaBit
                    last edited by

                    @DaBit said in stepper precision:

                    If you have it available somewhere you can use some 6mm/8mm inner diameter petrol hose. The rubber kind with a (cotton?) braid as reinforcement embedded in the rubber. Due to the reinforcement that stuff is quite stiff in rotation, due to it being rubber a hose clamp clamps it stiffly around a shaft.

                    no way to get it as most shops are closed but I expect monday to arrive the aluminium 5-5 that I'll drill on one side to 6mm should work ok I'll try to put it in a lathe

                    I stumbled over M569.1 in the G-code reference today. Is that already implemented?

                    no idea

                    In case you have to return the encoder before finishing you tests: I probably have some 2500-line incremental encoders with quadrature output (10000 pulses/rev) lying around over here somewhere. I can miss one or two. If I can find them..

                    Thanks :), the idea with 16bit was to get really precise data about microstepping, I think I'll manage to get all the testing I want before I return it

                    (you may think your mancave is a mess, but I am fairly certain I win that battle)

                    uh, I doubt, not 'cause my mancave is normally total chaos but because I purchased a house in 2019 and started renovating and it features a small 50m2 guest house (with 50m2 under roof storage too) in the yard that I planned to use as my new mancave, and since the plan was to move in summer 2020 I started converting my current mancave (a 20m2 room 5m high in appartment) into storage room, so I'm now working from something one could call storage and not mancave, stuff falls on me non stop, if I move too fast stuff falls of my desk, keyboard drawer etc .. very nasty place to work, not at all "artistic chaos", more like "garbage dump" 😞 ... and due to #$%^#^% we did not move yet so .. house is still being renovated and I work berried in "garbage" 😞 .. not something I am happy with 😞

                    1 Reply Last reply Reply Quote 0
                    • arhiundefined
                      arhi
                      last edited by

                      alu coupling mounted.. repeating the measurements..

                      1 Reply Last reply Reply Quote 0
                      • DaBitundefined
                        DaBit
                        last edited by

                        Fingers crossed...

                        arhiundefined 1 Reply Last reply Reply Quote 0
                        • arhiundefined
                          arhi @DaBit
                          last edited by arhi

                          @DaBit initially the "vibrations" are still there (1/16, closed loop, s42b)

                          AVERAGE:  449 ,  205.2
                          221
                          221
                          221
                          222
                          222
                          222
                          222
                          221
                          222
                          221
                          AVERAGE:  450 ,  221.5
                          234
                          234
                          234
                          234
                          234
                          235
                          234
                          235
                          234
                          234
                          AVERAGE:  451 ,  234.2
                          256
                          256
                          255
                          256
                          255
                          256
                          256
                          255
                          256
                          256
                          AVERAGE:  452 ,  255.7
                          

                          after it finish we'll check the positional error but.. imho this S42B is a complete and utter POS 😞

                          this is measured second after step!!! so the vibration is either $#^#@ motor or S42B dancing around the target location (same vibration 10sec after step too)

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

                            @arhi Do you mean that the values you are reading are changing by plus or minus one if you read the encoder a lot of times?

                            Because that's not unusual for such a high-resolution encoder where one count is 0.005-degrees of angle.

                            Also, it's possible to get a +/- 1 oscillation if you stop RIGHT ON the edge of a line and move an infinitesimally-small angle. But I wouldn't expect that on every step. You showed three steps where it was doing it, so I think it's the controller.

                            Hey, depending on how the s42b reads the TLE5012B angle sensor it can really only get either 15 bits or 16 bits of value from the angle of the magnet, so your encoder might have twice the resolution of the controller.

                            15 bit representation of absolute angle value on the output (resolution of 0.01°)

                            16 bit representation of sine / cosine values on the interface

                            So I think the controller is doing about as well as it can.

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

                            arhiundefined 1 Reply Last reply Reply Quote 0
                            • arhiundefined
                              arhi
                              last edited by

                              e122b982-443e-4008-9ef9-f7770789fd0f-image.png

                              1 Reply Last reply Reply Quote 0
                              • arhiundefined
                                arhi @alankilian
                                last edited by

                                @alankilian said in stepper precision:

                                @arhi Do you mean that the values you are reading are changing by plus or minus one if you read the encoder a lot of times?

                                Yes. But if I turn motor off that does not happen.

                                Also, it's possible to get a +/- 1 oscillation if you stop RIGHT ON the edge of a line and move an infinitesimally-small angle. But I wouldn't expect that on every step. You showed three steps where it was doing it, so I think it's the controller.

                                Exactly, happens almost every time, and with TLC for e.g. it was not happening (we'll see how it will behave with alu coupler) and when I turn the driver off it does not happen so it's def "dancing", not by much but..

                                So I think the controller is doing about as well as it can.

                                WRT "dancing", probably. WRT "position", not really 😞
                                The LCD is not showing errors, the "error" led (lost step) is off .. and 800 steps in forward and then 800 back we have error of 0.75° .. that's HUGE IMHO especially considering 1step/second speed

                                fcwiltundefined 1 Reply Last reply Reply Quote 0
                                • fcwiltundefined
                                  fcwilt @arhi
                                  last edited by

                                  @arhi said in stepper precision:

                                  The LCD is not showing errors, the "error" led (lost step) is off .. and 800 steps in forward and then 800 back we have error of 0.75° .. that's HUGE IMHO especially considering 1step/second speed

                                  If you were to configure the stepper (if possible) to only use whole steps would the error go away?

                                  Frederick

                                  Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                                  arhiundefined 1 Reply Last reply Reply Quote 0
                                  • DaBitundefined
                                    DaBit
                                    last edited by

                                    That's half a step. I would expect a simple open-loop motor to perform better.

                                    On the other hand, I am sure you can interpolate a single rotating magnet with 15 bit resolution, but resolution != precision.
                                    A long time ago I did approximately the same for a customer, but back then it was an entire board with an FPGA, Burr-Brown ADC's and discrete analog frontend. We got ~9 bits of accuracy, the rest got lost in noise and nonlinearities.

                                    arhiundefined 1 Reply Last reply Reply Quote 0
                                    • arhiundefined
                                      arhi @fcwilt
                                      last edited by

                                      @fcwilt said in stepper precision:

                                      @arhi said in stepper precision:

                                      The LCD is not showing errors, the "error" led (lost step) is off .. and 800 steps in forward and then 800 back we have error of 0.75° .. that's HUGE IMHO especially considering 1step/second speed

                                      If you were to configure the stepper (if possible) to only use whole steps would the error go away?

                                      Frederick

                                      with S42B - not that I know ... I'll do as much tests with S42B first (open and closed loop) then moving to 2208 with different motors ... I'll add graphs as I go trough different tests but as you can see it is all rather slow as I'm doing 1step/sec

                                      1 Reply Last reply Reply Quote 0
                                      • arhiundefined
                                        arhi @DaBit
                                        last edited by

                                        @DaBit said in stepper precision:

                                        That's half a step. I would expect a simple open-loop motor to perform better.

                                        I heard from some ppl S42B is awesome, but from some other I heard they are POS .. so I decided to try them out .. so far I already decided I will not be using them in my projects

                                        On the other hand, I am sure you can interpolate a single rotating magnet with 15 bit resolution, but resolution != precision.

                                        yeah but it does "calibration", moves a circle and records magnet readings at halfsteps I think so the resolution here should help a lot with precision.. but..

                                        1 Reply Last reply Reply Quote 0
                                        • arhiundefined
                                          arhi
                                          last edited by

                                          what I seen on number of reports on-line, open-loop works better than closed loop with S42B 😞

                                          cdebd7b1-9760-4f6b-bc65-9d9109036837-image.png

                                          1 Reply Last reply Reply Quote 0
                                          • DaBitundefined
                                            DaBit
                                            last edited by

                                            That calibration only cancels fixed nonlinearities (and adds stepper imprecision). A slight magnetic short after calibration of changing operating point of the sensor due to temperature is not cancelled.

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