Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    How fast are board interupts or polling speeds.

    General Discussion
    3
    7
    235
    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.
    • sinned6915
      sinned6915 last edited by sinned6915

      Hi all -

      I am trying to work out some homing speed and probing speed ideas. My notion is that there is an optimal speed for RRF to process the trigger signal for homing or probing..

      Is there a signal speed or buffer speed reaction time for the polling and intterupt signals? Is it limited by RRF or the MCU?

      I am trying to go through the source code and feel like I am on a hike and once i get a few feet into the woods, I just get hopelessly lost. I've gotten some notion of the speeds from DDARing and Steptimer.cpp but can't figureout where to look next.
      It seems that you need to know how the next timer works and how many steps it emits per interrupt.

      https://github.com/Duet3D/RepRapFirmware/blob/dev/src/Movement/StepTimer.cpp

      Any pointers or ideas out there?

      thanks in advance

      sinneD

      EDIT: Here are some plots of a series of tests I have run. I am trying to figure out fast I can probe and maintain accuracy. The vertical bars are for 1 stanrd of deviation. I am averaging anywhere from 0.0015 to 0.0024 for a deviation.

      00ae6a8a-d15d-4fd4-9e68-97c181598d19-image.png

      d9f64bd3-5274-4e1d-9425-4e4250a36171-image.png

      dc42 A Former User 2 Replies Last reply Reply Quote 0
      • dc42
        dc42 administrators @sinned6915 last edited by

        @sinned6915 the Z probe input is checked on every microstep (which limits the maximum step rate when homing ot probing). So if you use P8 or P9 in your M558 command then the response is very fast. If you use one of the analog modes (P1, P2 or P5) then the Z probe reading gets sampled by the ADC at intervals of about 1ms, then passed through a filter; so the response will be slower.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        sinned6915 1 Reply Last reply Reply Quote 0
        • sinned6915
          sinned6915 @dc42 last edited by

          @dc42 I am using P8 for the probe currently.

          1. So RRF is polling the status on every step?

          2. What is the maximum step rate that might be reasonably practical? I don't want to approach the bleeding edge, I want to hold the speed back to get reliable results. Am I in the right place with StepTimer? => ~940kHz for Arm, which is still freaking fast.

          thanks again

          sinneD

          dc42 1 Reply Last reply Reply Quote 0
          • dc42
            dc42 administrators @sinned6915 last edited by

            @sinned6915 said in How fast are board interupts or polling speeds.:

            @dc42 I am using P8 for the probe currently.

            1. So RRF is polling the status on every step?

            2. What is the maximum step rate that might be reasonably practical? I don't want to approach the bleeding edge, I want to hold the speed back to get reliable results. Am I in the right place with StepTimer? => ~940kHz for Arm, which is still freaking fast.

            thanks again

            sinneD

            1. Yes

            2. Do you mean the maximum step rate while executing a homing move? That depends on what microstepping you use, and which Duet it is.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

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

              @sinned6915 said in How fast are board interupts or polling speeds.:

              Hi all -
              ...

              Hi,
              very very impressive! What is your hardware-setup?
              Best regards

              1 Reply Last reply Reply Quote 0
              • sinned6915
                sinned6915 @dc42 last edited by

                @dc42 I am conclusing that I am not out-running the MCU in my tests.

                @lbi I am trying to test/prove some microswitches. I am using a custom built printer with 3 Z-lead screws and doing sucessive single probes and logging the data.

                Here for example is Panasonic switch. I think that if used as a probe, a probe height of 3.03mm would be sufficient. As an endstop, I can live with an error of 0.015mm.

                1eba06ec-2523-4a55-86a2-363e71fd82cd-image.png

                sinned6915 1 Reply Last reply Reply Quote 0
                • sinned6915
                  sinned6915 @sinned6915 last edited by

                  Here is an example summary of my probing results-
                  632d1cc0-88fe-4b32-ad17-4175388f87dc-image.png

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