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

    Low cost, public domain, stepper analyzer - season 2.

    Scheduled Pinned Locked Moved
    General Discussion
    17
    49
    3.2k
    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.
    • A Former User?
      A Former User
      last edited by

      Nice! Still haven't gotten the pcbs for the first one but I have a small pile of screens and teensys lol. Maybe time to place a third order of boards..

      zaptaundefined 1 Reply Last reply Reply Quote 0
      • zaptaundefined
        zapta @A Former User
        last edited by zapta

        @bearer said in Low cost, public domain, stepper analyzer - season 2.:

        Maybe time to place a third order of boards..

        Yes, this one is much smoother. The LVGL software is is more solid than the Nexion approach, display is crispier, and it costs less, unless if you want to wait for a 2022 model with a RPI Pico . 😉

        BTW, an interesting application is to measure the consistency of homing. I connect the analyzer to a stepper, home once, reset the steps counter, and then home again a few times and watch the step count after each homing. It should stay zero. Works unless your the uses senseless homing which causes it to lose a few steps when the driver detects a stall.

        Currently resolution is one full step but I think it's possible to compute also fractions of of full steps, from the ratio (coil1 current / coil 2 current).

        1 Reply Last reply Reply Quote 0
        • fmaundefined
          fma @PCR
          last edited by

          @PCR said in Low cost, public domain, stepper analyzer - season 2.:

          I will Order some pcbs and can Order some for Europe with all SMT components! Please upvote the Post If you want one!

          Thanks!

          Frédéric

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

            Pcbs orderd! Enough i Hope!

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

              The analyzer now can measure and show fractions of a full step in 1/100th of a step resolution.

              4c03e607-bca6-4704-a9d0-d050fb0fe96f-image.png

              The Allegro Microsystems datasheet such as this one (starting at page 16) https://www.allegromicro.com/-/media/files/datasheets/a5985-datasheet.ashx provide useful information about the relation between the current and the sub-step position.

              The current patters are divided into electric cycles or 'electric rotations', each representing 4 full steps and the position of the stepper within that electric rotation can be done by feeding the two coil currents into the standard trigonometric function atan2(current1, current2). It ended up simpler than I expected.

              I also updated the firmware and 4 steps diagram to reflect the new understanding that the centers of the full steps at the points where both coils have the exact same current (regardless of polarity, this happens at ~70% of peak current which is also the RMS current) and not when one is at its peak and the other at zero as I thought before.

              e194e7f5-0946-4fec-8c82-7129406629f7-image.png

              I tested it with a Pololu stepper driver, incrementing a 1/8 of a step every 2 seconds and watching the display. Works like a charm.

              1 Reply Last reply Reply Quote 0
              • Marcossfundefined
                Marcossf
                last edited by

                I am really interested in buying some when it is available. As a mounting kit or fully assembled. Any price is cheap just by saving time with this amazing idea.

                I'll keep an eye around here.

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

                  I am experimenting now with a new screen whose purpose is to evaluate the signal and phase cleanness. It takes the signals from the two coils and draw them as https://en.wikipedia.org/wiki/Lissajous_curve .

                  Here what you get from a well fed stepper with good microsteps interpolation, a balanced, large and smooth circle.
                  screenshot1.png

                  And this is what you see in a system where the supply is insufficient to drive the current at high movement speeds. Skinny and distored.
                  screenshot2.png

                  BTW, each rotation along the circle is equivalent to 4 full steps that make up a single 'electronic rotation'.

                  These patters are shown in real time while the printers operates. This screen is experimental, need to clean it up and include in the official release.

                  EDIT: here is an interesting animation from Wikipedia that shows how it works:

                  https://en.wikipedia.org/wiki/Lissajous_curve#/media/File:Circular_Lissajous.gif

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

                    PCBs are here,

                    i can supply the pcb, the two sensors and the eprom.
                    due too some family buisness i do not know if i can solder them in the next weeks. So selling the parts only would be the best for me. Best

                    1 Reply Last reply Reply Quote 1
                    • fmaundefined
                      fma
                      last edited by

                      No problem to sold them myself.
                      How do we proceed to pay you?

                      Frédéric

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

                        Contact me via PM

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

                          So for the price.

                          5 € the pcb
                          2,5€ for the sensors and eprom
                          1€ for 40 pin connector
                          1€ for resistors

                          due to a mistake at digikey the capacitors are to small.. So these have to be self sourced ( easy)

                          shipping with tracking 8€ without 4€ in europe
                          germany 3 € shipping

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

                            @PCR said in Low cost, public domain, stepper analyzer - season 2.:

                            So for the price.

                            5 € the pcb
                            2,5€ for the sensors and eprom
                            1€ for 40 pin connector
                            1€ for resistors

                            due to a mistake at digikey the capacitors are to small.. So these have to be self sourced ( easy)

                            shipping with tracking 8€ without 4€ in europe
                            germany 3 € shipping

                            Do you have any for sale?

                            Can you ship to the US?

                            Thanks.

                            Frederick

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

                              I have about 20pcbs and for 10 pieces parts

                              zaptaundefined 1 Reply Last reply Reply Quote 0
                              • fmaundefined
                                fma
                                last edited by

                                I sent you a message in the private chat; did you get it?

                                Frédéric

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

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • zaptaundefined
                                    zapta @PCR
                                    last edited by

                                    Hi @PCR, did you manage to get it working? Any problems with the design?

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

                                      where are you purchasing acs70331 ?! comet don't hold them, jlc don't have them, mouser offer only dev boards, digikey nothing on stock for ages and min order q is 6000 .. I was looking to get them for another project but ..

                                      PCRundefined zaptaundefined 2 Replies Last reply Reply Quote 0
                                      • PCRundefined
                                        PCR @arhi
                                        last edited by

                                        @arhi orderd them at digikey.

                                        Best

                                        Egon.Netundefined 1 Reply Last reply Reply Quote 0
                                        • zaptaundefined
                                          zapta @arhi
                                          last edited by zapta

                                          @arhi , this is the digikey part I used https://www.digikey.com/en/products/detail/allegro-microsystems/ACS70331EESATR-2P5B3/8120682

                                          Egon.Netundefined 1 Reply Last reply Reply Quote 0
                                          • Egon.Netundefined
                                            Egon.Net @PCR
                                            last edited by

                                            @PCR do you still have spare boards and parts?

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