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

    Anybody wants a stepper motor analyzer?

    Scheduled Pinned Locked Moved
    General Discussion
    56
    281
    31.6k
    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.
    • CCS86undefined
      CCS86 @zapta
      last edited by

      @zapta said in Anybody wants a stepper motor analyzer?:

      Hi @ccs86, thanks for the feedback.

      I created a release candidate with that include a third scale 0-200 steps. Please try to flash to your device and see if it works.

      To flash, disconnect the usb connector, press and hold the button at the back (through the hole) and connect to your computer. This should add a new disk drive to your computer. Download and copy APPLICATION.uf2 from the link below to that disk, wait a second or two until it completes and you are doen.

      https://github.com/zapta/simple_stepper_motor_analyzer/blob/main/temp/APPLICATION.uf2

      If it will work, I will make it an official release.

      As for the time scale, how important is it to have it faster (e.g. 5 secs)? This change is slightly more involved if different Y scales need different time scale but doable.

      EDIT: this is how the scale definitions looks now. If you have change suggestion for the other two scales please let me know.

      https://github.com/zapta/simple_stepper_motor_analyzer/blob/main/platformio/src/ui/steps_chart_screen.cpp#L24

      @zapta Thanks my man!

      It works great!

      The shorter times scale (I think) would be cool, but if it's a big pain don't worry about it. Here is a simple pressure advance test, 20 - 80 mm/s, 3mm retracts.

      Going to first off an actual print to see how that looks.

      75b9f9c5-38c0-4e1d-bb41-0551b403332c-image.png

      zaptaundefined 1 Reply Last reply Reply Quote 0
      • zaptaundefined
        zapta @CCS86
        last edited by

        @ccs86, I published a new release with this change https://github.com/zapta/simple_stepper_motor_analyzer/releases/tag/F1.0.4

        The graph looks interesting. If I understand it correctly the pressure advance doesn't start immediate after the retraction/traction, and it extrudes a little bit before it increases slope. is it so?

        CCS86undefined 1 Reply Last reply Reply Quote 1
        • CCS86undefined
          CCS86 @zapta
          last edited by CCS86

          @zapta said in Anybody wants a stepper motor analyzer?:

          @ccs86, I published a new release with this change https://github.com/zapta/simple_stepper_motor_analyzer/releases/tag/F1.0.4

          The graph looks interesting. If I understand it correctly the pressure advance doesn't start immediate after the retraction/traction, and it extrudes a little bit before it increases slope. is it so?

          I think you have it right.

          Here is a video that will probably illustrate it much better than I can explain.

          It starts with some alignment marks, then does a pass with no pressure advance, then PA turns on and increases for each line, and then off again for the last line.

          https://photos.app.goo.gl/VvjoMEUo68r8pisLA

          zaptaundefined 1 Reply Last reply Reply Quote 0
          • zaptaundefined
            zapta @CCS86
            last edited by

            @ccs86, the link didn't work for me.

            34939459-9112-45be-b0df-d5ea1bf0e91c-2021-09-06_20-27-17.png

            CCS86undefined 1 Reply Last reply Reply Quote 0
            • CCS86undefined
              CCS86 @zapta
              last edited by

              @zapta said in Anybody wants a stepper motor analyzer?:

              @ccs86, the link didn't work for me.

              34939459-9112-45be-b0df-d5ea1bf0e91c-2021-09-06_20-27-17.png

              Link updated. Try again.

              zaptaundefined 1 Reply Last reply Reply Quote 0
              • zaptaundefined
                zapta @CCS86
                last edited by zapta

                @ccs86, very interesting. Those PA 'pulses' is not how I imagined PA.

                It explains the extreme noises I got at the time when I tried high PA values with a 600mm bowden printer. The stepper was so erratic that I had to install it on RC rubber dumpers. Eventually I switched to a direct drive and the problem solved.

                I wonder if PA has one 'natural' profile or if different firmware developers come with different profiles. There are many degrees of freedom in shaping the profile which we reduce to a single number.

                CCS86undefined 1 Reply Last reply Reply Quote 0
                • CCS86undefined
                  CCS86 @zapta
                  last edited by

                  @zapta said in Anybody wants a stepper motor analyzer?:

                  @ccs86, very interesting. Those PA 'pulses' is not how I imagined PA.

                  It explains the extreme noises I got at the time when I tried high PA values with a 600mm bowden printer. The stepper was so erratic that I had to install it on RC rubber dumpers. Eventually I switched to a direct drive and the problem solved.

                  I wonder if PA has one 'natural' profile or if different firmware developers come with different profiles. There are many degrees of freedom in shaping the profile which we reduce to a single number.

                  I have found that the current PA implementation is not useful at all on my bowden printer, and I think it's about as well-tuned as a bowden gets. I have a few thoughts on why it is missing the mark that I posted here:

                  https://forum.duet3d.com/topic/17752/pressure-advance-discussion-for-future-development

                  There are certainly different ways to implement PA, but the same basic principle is a the base: increasing volumetric extrusion rate, requires increased nozzle pressure (filament drive force). The filament drive system acts like a spring, so you can increase pressure/force with an increased spring preload (being a certain number of steps "ahead").

                  Klipper has a PA "smoothing" algorithm that I think would be really helpful in calming down the extruder motion. But I think bowden machines need more,

                  On the steps chart, you can think of the green line here as PA=0. The orange area is the steps boost for 20mm/s, and the red area the additional steps for 80 mm/s

                  6d24058b-0ebd-4869-bdff-bddbac01fcec-image.png

                  1 Reply Last reply Reply Quote 1
                  • Webhunterundefined
                    Webhunter
                    last edited by

                    Hi Zapta - nice work with the Stepper analyzer.

                    I would like to buy one - do you send to Denmark? And what will it cost?

                    many greetings

                    zaptaundefined 1 Reply Last reply Reply Quote 0
                    • zaptaundefined
                      zapta @Webhunter
                      last edited by

                      Hi @webhunter, build 30 units and gave to people here at cost. Currently I don't plan to build additional ones but all the files are in public domain and anybody is invited to build, including commercially.

                      1 Reply Last reply Reply Quote 0
                      • Webhunterundefined
                        Webhunter
                        last edited by

                        Hi @zapta

                        Where can i buy PCB ?

                        Greetings

                        Luke'sLaboratoryundefined zaptaundefined 2 Replies Last reply Reply Quote 0
                        • Luke'sLaboratoryundefined
                          Luke'sLaboratory @Webhunter
                          last edited by

                          @webhunter You can certainly get your own pcb (note, not assembled with components) from a place like JLCPCB or OshPark and build it yourself, or source assembled units from JLCPCB using the source files.

                          Luke
                          http://lukeslab.online

                          1 Reply Last reply Reply Quote 0
                          • zaptaundefined
                            zapta @Webhunter
                            last edited by zapta

                            @webhunter, I used the files here to order the boards from JLCPCB with SMD service.

                            https://github.com/zapta/simple_stepper_motor_analyzer/tree/main/kicad/JLCPCB

                            It includes only the components they support which means that some parts you will need to order and solder yourself (the two current sensors, the two connectors, the Raspberry Pico module, and then you will need to attach and connect the TFT module). Make sure to get the exact TFT module for compatibility with the hardware and firmware.

                            Of course you can get bare boards and solder everything yourself but it depends on your SMD soldering skills. The TFT connectors have 0.5mm pitch and it's easy to bridge adjacent pins (and it's possible to fix if you or JLCPCB happened to bridge them).

                            Let me know if you have further questions.

                            Edit:

                            • When ordering from JLCPCB with SMD service, they will fix the orientation of a few components. That's normal since they assume different footprints.
                            • PCBWAY may provide a more complete service (with current sensors and Pico board soldered) but ordering SMD service from them is slightly more involved.
                            PCRundefined 1 Reply Last reply Reply Quote 1
                            • PCRundefined
                              PCR @zapta
                              last edited by

                              @zapta one Idea would be to integrate the RP2040 directly. Will Look Into that Option If i have any time

                              zaptaundefined 1 Reply Last reply Reply Quote 0
                              • Th0mpyundefined
                                Th0mpy
                                last edited by

                                Hello everyone.

                                Just a quick update. I finally got time to build a couple of the analyzers. I will go in tonight and do some testing. Once I'm done I will have a couple available. Send me a message and let me know if you're interested.

                                Usually the team that scores the most points wins the game.

                                1 Reply Last reply Reply Quote 0
                                • zaptaundefined
                                  zapta @PCR
                                  last edited by

                                  @pcr, yes, using rp2040 directly would be a good move forward, considering that JLCP now carries it as a standard SMD service part.

                                  Dustin Watts, the designer of ESP32 Tochdown (which which I copied the form factor and TFT model) mentioned recently doing something similar to his product and may have schematics to share (he is available on his Discord channel and is very open source friendly).

                                  https://www.tindie.com/products/dustinwattsnl/esp32-touchdown/

                                  Another good move would be to switch to a current sensor that JLCPCB carries (I found an allegro +/-5A with 5V supply and lower bandwidth one that may fit with some adaptations). Or, placing the SMD service order with PCBWAY which has access to more parts (Dustin Watt order from them and they also sponsor his YT channel)

                                  @Th0mpy , that's awesome.

                                  PCRundefined 1 Reply Last reply Reply Quote 0
                                  • PCRundefined
                                    PCR @zapta
                                    last edited by

                                    I have some sensors from the legacy one left. So i will build some of the pico ones.

                                    Anyone wants one in europe

                                    1 Reply Last reply Reply Quote 0
                                    • jackantubisundefined
                                      jackantubis
                                      last edited by

                                      IMG_20210928_122445.jpg

                                      I'm working on battery powered one. Consumtion is 220mAh so around 2H autonomy. Charge and use as the same time when USB plugged. Small Housing redesign, 1mm thicker.
                                      Still waiting sensors from china (hard to find them in europe!)

                                      zaptaundefined 1 Reply Last reply Reply Quote 0
                                      • zaptaundefined
                                        zapta @jackantubis
                                        last edited by

                                        The current sensors that used to cost $1.39 each are now $6.12, from the same vendor, due to the global semiconductor shortage.

                                        https://www.aliexpress.com/item/4001123087424.html

                                        zaptaundefined rjenkinsgbundefined 2 Replies Last reply Reply Quote 0
                                        • zaptaundefined
                                          zapta @zapta
                                          last edited by zapta

                                          A side note, if you want to make a stepper extension cable or need for any other reason connectors that mate with the Duet's 4 pin kk connectors, these DigiKey part numbers seems to fit

                                          WM13471-ND ; housing
                                          WM2330CT-ND ; pins

                                          da835ed3-2f58-43ad-a666-705bfda849f8-image.png

                                          JoergS5undefined 1 Reply Last reply Reply Quote 3
                                          • JoergS5undefined
                                            JoergS5 @zapta
                                            last edited by JoergS5

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