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.
    • zaptaundefined
      zapta @o_lampe
      last edited by

      @o_lampe , PIO programming is like solving a puzzle and can be fun because it has a lot of room for creativity, for example, the stepper analyzer uses three programs for the same state machine and switches between them as needed (see the start_* labels in the program below)

      https://github.com/zapta/simple_stepper_motor_analyzer/blob/main/platformio/src/display/tft_driver.pio

      VisualGDB (commercial) is supposed to have a good PIO debugger but never used it.

      I highly recommend platformio over the SDK.

      1 Reply Last reply Reply Quote 2
      • Dogma2kundefined
        Dogma2k
        last edited by

        @zapta
        Is there an alternative for the ACS70331EOLCTR-2P5B3 that can be used? They are not really available at the moment and if only extremely overpriced

        rjenkinsgbundefined 1 Reply Last reply Reply Quote 1
        • rjenkinsgbundefined
          rjenkinsgb @Dogma2k
          last edited by

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

          Is there an alternative for the ACS70331EOLCTR-2P5B3 that can be used?

          I've been looking for some as well, as I have all the other parts.

          The Broadcom ACHS-7191 appears to be pin compatible and available, though rather less sensitive (10A full scale) and lower frequency response, only up to near 80 KHz..

          https://docs.broadcom.com/docs/ACHS-719x-DS

          https://www.mouser.co.uk/ProductDetail/Broadcom-Limited/ACHS-7191-000E?qs=sGAEpiMZZMv0NwlthflBi7EEbbt72Wx0J1IUc%252BxIF%2Fg%3D

          I have no idea it they are usable in the design as it is, or if some software changes would be needed to adjust sensitivity.

          And I'm not sure what impact the lower frequency response would have?

          Robert J.

          Printers: Overlord pro, Kossel XL+ with Duet 6HC and "Frankentron", TronXY X5SA Pro converted to E3D toolchange with Duet 6HC and 1LC toolboards.

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

            HELLO everyone!

            I've finally gotten a few more analyzers completed. I swapped out the current sensor with a TI TMCS1101, which is pin compatible and works with the correct voltages. Additionally, it's available 🙂

            I've modified the code to accept the new sensor, and made a couple modifications to the board. should more sensors be needed in the future.

            I will sell them for $65 a piece. The cost went up a bit due to the cost of the current sensors.

            If needed, I can include jumpers for a 5+ mini or 6hc (connect between the analyzer and the duet board). Prices for the 5+ is $5 (only 1 is needed) or $8 for the 6hc (two needed)

            Send me a private message if you want one. If you need jumpers please indicate that and what kind (5+ or 6hc). I accept payments only via PayPal and will give you my info when you message me.

            In total I have 8 available. There are a few who already asked in my messages so I will hit them up first and in the order they requested.

            The picture below is one of the actual units.

            54fad5e1-1387-45d1-91ec-ffda0cea651e-2ABD09C9-5CA4-4BE0-BDBD-5E475409DC17_1_105_c.jpeg

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

            PCRundefined zaptaundefined 3 Replies Last reply Reply Quote 1
            • PCRundefined
              PCR @Th0mpy
              last edited by

              @th0mpy

              i have 6 boards here aswell. But without sensors... can i get your code?

              BEst

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

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

                TI TMCS1101

                and every site i search they are not avaible ;(

                1 Reply Last reply Reply Quote 0
                • Dogma2kundefined
                  Dogma2k
                  last edited by

                  Hi @Th0mpy,

                  i also have 5 boards here without sensors and would also be interested in the adapted code like @PCR .

                  P.S. what is the exact name of the TMCS1101? (TMCS1101A3UQDRQ1 or TMCS1101A4UQDRQ1 etc.)

                  P.S. Which jumpers do you think are still needed? Do you mean the connections at J1 + J2?

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

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

                    The Broadcom ACHS-7191 appears to be pin compatible and available

                    The stock board assumes current sensors that operates on 3.3V. The ACHS-7191 seems to require 5V so will need some design changes.

                    Have you seen the recent post here that mentioned the TI TMCS1101 ?

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

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

                      and made a couple modifications to the board. should more sensors be needed in the future.

                      Can you release these modifications? It will be useful if we will 'standardize' the configuration such that we can share firmware between boards.

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

                        @zapta Yep, I'll reach out to you separately (this weekend) and go over my changes.

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

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

                          @pcr Let me get with @zapta and we'll update the main repo.

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

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

                            @dogma2k I had to re-use some of the code for the jumper. You can pull the option pin high, low, or float to get an option. I re-used the high option to add the TMCS1101. I did update the board to add 2 more option pins this way you could conceivably have up to 27 options for sensors, but the code hasn't been completely updated.

                            This is the one I'm using: TMCS1101A2BQDRQ1 which now when I look doesn't show stock until January 😕 I still have a few and have 10 more boards coming so my next batch will likely hit sometime in January.

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

                            Th0mpyundefined Dogma2kundefined 2 Replies Last reply Reply Quote 0
                            • Th0mpyundefined
                              Th0mpy @Th0mpy
                              last edited by

                              @th0mpy There is one other TMCS1101 which should work as well, the only difference is the 0A voltage, which doesn't matter since the code has a "reset zero" option. I'll test it out and report back. I have a few coming next week, as well I will get the update code posted somewhere after I coordinate with @zapta

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

                              1 Reply Last reply Reply Quote 0
                              • rjenkinsgbundefined
                                rjenkinsgb @zapta
                                last edited by

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

                                Have you seen the recent post here that mentioned the TI TMCS1101 ?

                                Just now, great find!

                                Mouser have a few TMCS1101A4BQDT in stock, which are the same symmetrical sense range with 400mV per amp output, as the original ACS70331EOLCTR-2P5B3

                                I've just ordered some.

                                Robert J.

                                Printers: Overlord pro, Kossel XL+ with Duet 6HC and "Frankentron", TronXY X5SA Pro converted to E3D toolchange with Duet 6HC and 1LC toolboards.

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

                                  @rjenkinsgb That's cool, I hadn't seen that one when I was searching. If I did it wasn't in stock.

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

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

                                    Hey all, just a quick update. I ran out of connectors, if you still want an analyzer I still have 3 but won't have any connectors to make jumpers. I have another batch on the way that I should see in January.

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

                                    o_lampeundefined 1 Reply Last reply Reply Quote 1
                                    • o_lampeundefined
                                      o_lampe @Th0mpy
                                      last edited by

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

                                      that I should see in January.

                                      ...which year? 😉
                                      It's frightening to see the supply-chains crash. Experts say, the shortage will last till end '22....

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

                                        @o_lampe It's crazy. The original sensors that I used, went away at a blink, then thee ones that @rjenkinsgb pointed out just magically appeared.. It's a crap shoot really.

                                        The boards that I've been having made are pretty reliable, they have about a 3 week turnaround and it's stayed pretty consistent.

                                        That said, I am working to publish my updates to the analyzer, I worked with @zapta and I will re-host my fork when I get it cleaned up. The benefit here is that we can start adding a lot more options for sensors, without too much rework in the code, we can just add the sensor specs and set the solder jumper as necessary. I'm hoping that we can eventually get to a point where we can reliably source just one sensor and standardize that. In the meantime we should be able to really get some good testing on whatever the market has available.

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

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

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

                                          and set the solder jumper

                                          Just a minor idea, If you will use a standard footprint and zero ohms resistors, SMD services such as JLCPCB will be able to populate them as well.

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

                                            @zapta Fair point 🙂 I did it with solder jumpers to make it easier if anyone wanted to change things in the future. I have to touch each one anyway, and it only takes 2 seconds to do, so for now I'm good with it.

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

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