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

Anybody wants a stepper motor analyzer?

Scheduled Pinned Locked Moved
General Discussion
56
281
31.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.
  • undefined
    oliof @zapta
    last edited by 2 May 2022, 09:49

    @zapta I'll take five.

    <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

    undefined 1 Reply Last reply 3 May 2022, 14:52 Reply Quote 0
    • undefined
      zapta @oliof
      last edited by 3 May 2022, 14:52

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

      @zapta I'll take five.

      Will keep it in mind. My preference would be to provide it to a few developers that will build real apps (for desktop, mobile, or web bluetooth).

      One challenge I hit is how to calibrate zero current if the MCU is not powered when the current is zero. 😉

      undefined 1 Reply Last reply 8 May 2022, 23:04 Reply Quote 0
      • undefined
        zapta @zapta
        last edited by 8 May 2022, 23:04

        Had more progress with the BLE stepper probe and was able to display on a PC a real time step and speed graphs over BLE (using python/Bleak/Pyqtgraph and the PC side). Sill need to do some tests, e.g. of the energy harvesting, but it feels feasible. The MCU and the radio consumes about 3ma and the current sensors about 5ma each (all at 3.3v), for a total of ~40mw. This is the current schematic (not tested):

        If anybody thinks that I am doing something terribly wrong (e.g. damaging the Duet's driver) now it's the time to speak 😉

        c3f9698d-0364-4b8b-bc57-2316979d7ef7-image.png

        1 Reply Last reply Reply Quote 0
        • undefined
          rickykwongwm @zapta
          last edited by 6 Jul 2022, 09:11

          @zapta
          I come from Hong Kong, I would like to order a PCB , how can I contact you and place a order?

          undefined 1 Reply Last reply 6 Jul 2022, 16:01 Reply Quote 0
          • undefined
            zapta @rickykwongwm
            last edited by 6 Jul 2022, 16:01

            @rickykwongwm, PCB of what version, the one with touch screen or the experimental one with bluetooth?

            undefined 1 Reply Last reply 6 Jul 2022, 23:01 Reply Quote 0
            • undefined
              rickykwongwm @zapta
              last edited by 6 Jul 2022, 23:01

              @zapta
              I prefer a set of PCB with touch screen, but experimental one only is also acceptable .
              could u leave your contact to me with quotation ?

              1 Reply Last reply Reply Quote 0
              • undefined
                brucedewald
                last edited by 17 Jul 2022, 14:42

                I wonder if you have the stepper motor analyzer with touch screen. If you do, can you send me a quotation for the cost including shipping? I am from Winnipeg, Canada.
                Yours sincerely,
                Bruce Dewald.

                undefined undefined 2 Replies Last reply 17 Jul 2022, 14:50 Reply Quote 0
                • undefined
                  zapta @brucedewald
                  last edited by 17 Jul 2022, 14:50

                  @brucedewald , sorry, I don't have any left. The goal of this project was to put a reference design in the public domain rather than actually producing them.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    Th0mpy @brucedewald
                    last edited by 18 Jul 2022, 12:17

                    @brucedewald I still have some available from my original batch. If you're interested send me a direct message.

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

                    undefined 1 Reply Last reply 18 Jul 2022, 20:25 Reply Quote 0
                    • undefined
                      Adamfilip @Th0mpy
                      last edited by 18 Jul 2022, 20:25

                      This post is deleted!
                      undefined 1 Reply Last reply 18 Jul 2022, 20:40 Reply Quote 0
                      • undefined
                        Th0mpy @Adamfilip
                        last edited by 18 Jul 2022, 20:40

                        @adamfilip I suggest you read the thread above 🙂

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

                        undefined 1 Reply Last reply 19 Jul 2022, 02:33 Reply Quote 0
                        • undefined
                          zapta @Th0mpy
                          last edited by zapta 19 Jul 2022, 02:33

                          The second iteration of the Bluetooth version went out to JLCPCB. They install all the SMD parts except for the bluetooth module and the two current sensors. Still working on it but the core functionality already works. This version doesn't need external power, just connection to the stepper wires.

                          0bb4851d-59ae-4c7e-9a0b-382ce6a69cc1-image.png

                          https://github.com/zapta/ble_stepper_monitor

                          undefined 1 Reply Last reply 31 Jul 2022, 17:53 Reply Quote 1
                          • undefined
                            nyaru
                            last edited by 26 Jul 2022, 03:51

                            Hi.
                            I am planning to sell a small quantity of this analyzer in Japan for CNC users.
                            I found a cheap current sensor CC6920BSO-5A made in China at LCSC and tested it. LCSC Part No: #C2880430
                            This sensor also drive in 3.3V.
                            With this, the current sensor can also be mounted on the board in JLCPCB.

                            I want to share you the test result.
                            There appears noises on the signal. But I think It is not a problem to get rough forms of waveform.

                            PXL_20220726_032108435.MP.jpg
                            179680932-dae3d1af-28b3-442d-83f9-191e55b93c32.jpg

                            movies:
                            https://youtu.be/GVSU9TVF_7k
                            https://youtu.be/dTQMCF_6i5k

                            undefined 2 Replies Last reply 26 Jul 2022, 14:21 Reply Quote 0
                            • undefined
                              zapta @nyaru
                              last edited by zapta 26 Jul 2022, 14:21

                              @nyaru, that's very useful, especially the availability from JLCPCB. Thanks.

                              I have hard time downloading the datasheet from LCPCB. Do you happen to have it?

                              If the sensitivity of this chip is lower, e.g. 200mv/A instead of 400mv/A, it can be compensated in firmware.

                              Do CNC users typically need higher current range than 3D printers?

                              Edit: The firmware does basic signal filtering which reduces the impact of the noise. https://github.com/zapta/simple_stepper_motor_analyzer/blob/main/platformio/src/acquisition/analyzer.cpp#L323

                              undefined 1 Reply Last reply 26 Jul 2022, 16:13 Reply Quote 0
                              • undefined
                                nyaru @zapta
                                last edited by 26 Jul 2022, 16:13

                                @zapta

                                I have hard time downloading the datasheet from LCPCB. Do you happen to have it?

                                You can see it from another current value sensor page.
                                https://www.lcsc.com/product-detail/Current-Sensors_Cross-chip-CC6920BSO-10A_C2880431.html

                                I already changed sensitivity to 264mV/A in firmware. and it works well.

                                Do CNC users typically need higher current range than 3D printers?

                                Yes. Milling and Cutting something in CNC machine need more power than 3D printer. I used 3A stepper motor in my CNC machine.

                                The firmware does basic signal filtering which reduces the impact of the noise.

                                Thanks for telling it! This may be the reason why analyzers are less noises than oscilloscopes.

                                undefined 1 Reply Last reply 26 Jul 2022, 16:25 Reply Quote 0
                                • undefined
                                  zapta @nyaru
                                  last edited by 26 Jul 2022, 16:25

                                  @nyaru, thanks for the datasheet link. It does work.

                                  BTW, the design has some support for sensor selection using configuration resistors. May or may not be useful for you.

                                  3b71736a-5067-4961-b52b-faa3ed563387-image.png

                                  https://github.com/zapta/simple_stepper_motor_analyzer/blob/main/platformio/src/misc/hardware_config.cpp#L53

                                  1 Reply Last reply Reply Quote 1
                                  • undefined
                                    zapta @zapta
                                    last edited by zapta 31 Jul 2022, 17:53

                                    Here is a sample screenshot of a Windows/python client that talks with the experimental BLE stepper monitor and displays the data in real time. In this example the stepper runs on 12V which causes current reduction in higher speed (shown by the arrows). This is reflected in the current graph, the current vs speed histogram, and the oscilloscope view.

                                    The Python client is here https://github.com/zapta/ble_stepper_monitor/tree/main/python . Hopefully somebody can write a similar one for mobile devices.

                                    The probe is powered from the stepper signals and thus can be left embedded in the printer and be connected to any time. Each probe has a unique address which is shown at the upper left part of the picture.

                                    7d05b3fd-4260-4f2b-925d-11bafe2fa438-image.png

                                    1 Reply Last reply Reply Quote 1
                                    • undefined
                                      zapta @nyaru
                                      last edited by 8 Aug 2022, 19:56

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

                                      There appears noises on the signal. But I think It is not a problem to get rough forms of waveform.

                                      Here is a noise comparison between the Alegro ACS70331EOLCTR-2P5B3 (blue) and the TI TMCS1108A4BQDT (yellow). I don't have yet the JLCPCB CC6920BSO-5A sensor to compare, but may guess is that it's similar to the TI.

                                      I tested it by disconnecting the stepper connectors, on the new BLE stepper probe which samples at 40khz instead of 100khz.

                                      50a88695-4378-48cf-a094-3dd4f7b21f05-image.png

                                      The Alegro datasheet says " It incorporates giant magneto-resistive (GMR) technology that is 25 times more sensitive than traditional Hall-effect sensors to sense the magnetic field generated by the current flowing through the low resistance, integrated primary conductor. " such that is needs less gain and thus has less noise.

                                      undefined 1 Reply Last reply 9 Aug 2022, 03:53 Reply Quote 0
                                      • undefined
                                        nyaru @zapta
                                        last edited by 9 Aug 2022, 03:53

                                        @zapta
                                        Thanks for letting me know.

                                        The Alegro datasheet says " It incorporates giant magneto-resistive (GMR) technology that is 25 times more sensitive than traditional Hall-effect sensors to sense the magnetic field generated by the current flowing through the low resistance, integrated primary conductor. " such that is needs less gain and thus has less noise.

                                        It seems that a large part of the problem is the performance of the IC.

                                        I have also built an analyzer with the TMCS1108A4B, but I think the CC6920BSO is noisier.

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

                                        Hi.
                                        I have made the analyzer using TMCS1101A4B.

                                        When using the CC6920BSO for an analyzer, it may be better to set LPF stronger.

                                        undefined 2 Replies Last reply 14 Aug 2022, 19:34 Reply Quote 0
                                        • undefined
                                          gnydick
                                          last edited by 9 Aug 2022, 15:34

                                          definitely interested to know more. what are the practical uses, etc.? I'm keen to build my own if your production run is over.

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