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

    [3.6.0-rc.3] sticky probe with 1HCL board

    Scheduled Pinned Locked Moved
    Beta Firmware
    2
    53
    1.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.
    • dc42undefined
      dc42 administrators @ironhydroxide
      last edited by dc42

      @ironhydroxide it's likely that we could solve this using a R-C network to filter the input from the probe; but we should be able to solve this in software too. There is a debounce facility available in the MCU that I will try enabling if necessary.

      We're hoping to release 3.6.0 stable later this week. It would be good to get this issue fixed first.

      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

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

        @dc42 Well I'm willing to work with you on it if you feel like it'd be beneficial for the project as a whole. I don't know how many people will have such a dirty probe input/debounce as this one probably is (i really need to get a scope setup on this to see just how bad it is)

        As for a debounce facility, that's likely going to expect going from open to closed and staying closed. I can't guarantee this "probe" will do that, as the blade is removing material.
        So it's almost as if (for this setup alone) I need something that'll fire the interrupt on first cross of the setpoint, but not fire again until the next probe command is sent. I'm not sure what that might do for/against accuracy, if it even is feasible to setup in such a way.

        Tested with the rc3+1, still stuck the probe after a while. I have the event log from it, though didn't take the extra steps after stuck as last time.

        I'm down for whatever tests you'd like me to try.

        dc42undefined 2 Replies Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators @ironhydroxide
          last edited by

          @ironhydroxide thanks for testing rc3+1. I'd really like to get this solved in time for the 3.6 stable release, so I'll keep working on it. Expect another test version tomorrow.

          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

          1 Reply Last reply Reply Quote 1
          • dc42undefined
            dc42 administrators @ironhydroxide
            last edited by

            @ironhydroxide thanks again for your patience. Please try the latest firmware at https://www.dropbox.com/scl/fo/dumsdufoej44q97ek9joo/AIBRnU-wtKfMrbWPzZwH_XY?rlkey=idmyinvvcuiwmycbb1l2obz38&dl=0. After installing it, M115 B50 should report the build date as today.

            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

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

              @dc42 said in [3.6.0-rc.3] sticky probe with 1HCL board:

              M115 B50

              Duet EXP1HCL rev 1.0a or earlier firmware version 3.6.0-rc.3+1 (2025-05-13 11:00:29)

              Looks like yesterday is what I'm getting reported... Guess it is grabbing from the "old" folder in the zip.
              I unzipped, removed that folder, and rezipped. now I get

              Duet EXP1HCL rev 1.0a or earlier firmware version 3.6.0-rc.3+1 (2025-05-14 08:29:27)

              Is there any specific outputs you want tested? or just that I don't encounter a sticky probe again?

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

                @ironhydroxide just test whether the probe gets stuck again please.

                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

                ironhydroxideundefined 2 Replies Last reply Reply Quote 0
                • ironhydroxideundefined
                  ironhydroxide @dc42
                  last edited by

                  @dc42
                  Interesting results.

                  It seems as if the probe stuck, but reset itself without power cycle of mainboard.

                  Confirmed it was stuck, then decided to see if the green LED was still flashing or not, and manually triggering the probe caused LED to flash, after which it was no longer stuck.

                  Doing more testing to see if I get the same result again.

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

                    @dc42 Yup, second time did the exact same thing.

                    Stuck probe, but on the first "retrigger" the probe came back to life.

                    My probe is inverted, so that might be a pertinent factor in this.
                    when voltage at pin is low, probe triggered.

                    dc42undefined 2 Replies Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators @ironhydroxide
                      last edited by

                      @ironhydroxide do you mean that it failed to trigger when it made contact, but when you broke and remade contact then it did trigger?

                      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

                      ironhydroxideundefined 1 Reply Last reply Reply Quote 0
                      • dc42undefined
                        dc42 administrators @ironhydroxide
                        last edited by dc42

                        @ironhydroxide please try this EXP1HCL binary, which has debouncing enabled. After installation, M115 B50 should report the build date/time as 2025-05-13 11:05:26.

                        Duet3Firmware_EXP1HCL.bin

                        The debouncing in this build adds a latency of about 250us to the trigger detection. If this build fixes the issue then i can try reducing the latency.

                        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

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

                          @dc42 said in [3.6.0-rc.3] sticky probe with 1HCL board:

                          do you mean that it failed to trigger when it made contact, but when you broke and remade contact then it did trigger?

                          that it remained triggered after a probe was completed, and my script went through 5 instances of probe, seeing the probe triggered and backing off more from the tube. then it aborts the print if the probe points aren't close enough together.

                          So, probe success,
                          probe stays triggered,
                          probe commanded but errors due to already contacted,
                          backs off the tube a bit,
                          Probe commanded but errors due to already contacted
                          repeat 4x more.
                          Abort print,

                          I find probe in triggered state after abort
                          confirm voltage at pin is high (~3v)
                          manually ground the pin and watch the green light on 1HCL show up.
                          unground the pin and watch the green light go out, as well as probe status in DWC go from 1000 to 0.

                          I'll test that bin and let you know.

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

                            @dc42 said in [3.6.0-rc.3] sticky probe with 1HCL board:

                            M115 B50 should report the build date/time as 2025-05-13 11:05:26.

                            I'm getting
                            Duet EXP1HCL rev 1.0a or earlier firmware version 3.6.0-rc.3+1 (2025-05-14 08:29:27)

                            Downloaded twice, and loaded rc1, then this download just to make sure it's loaded correct.

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

                              @ironhydroxide I'm sorry, that was the correct firmware but I sent the M115 to the wrong board to check it, also the build date was being updated but not the build time. Here's another one, this time with build date 2025-05-15 08:01:41.

                              Duet3Firmware_EXP1HCL.bin

                              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

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

                                @dc42 Ah, no worries.

                                Loaded the latest, 5/15 build date,
                                Almost immediately the same symptoms.
                                Probe is good, then probe remains triggered,
                                next probe errors for already triggered,

                                Stays triggered until I manually trigger the probe and it resets.

                                Ran this 3x, symptoms the same each time.

                                and subjectively felt the occurrence to be much earlier in the run.

                                dc42undefined 2 Replies Last reply Reply Quote 0
                                • dc42undefined
                                  dc42 administrators @ironhydroxide
                                  last edited by

                                  @ironhydroxide thanks. It looks like there were two issues:

                                  1. Interrupt system getting locked up so that it doesn't detect further state changes. The last few builds have fixed this.

                                  2. The remaining issue is that t doesn't detect a transition (i.e. probe contact) so you have to break contact, then it will detect the next contact. I think I have worked out what causes this, and how to fix it. I expect to have another firmware build to test this afternoon.

                                  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

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

                                    @ironhydroxide please try this build. The build time is 09:23 today.

                                    Duet3Firmware_EXP1HCL.bin

                                    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

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

                                      @ironhydroxide did you have a chance to try this build? We plan to release 3.6.0-stable this week and I would like to include a fix for this issue in it.

                                      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

                                      ironhydroxideundefined 3 Replies Last reply Reply Quote 0
                                      • ironhydroxideundefined
                                        ironhydroxide @dc42
                                        last edited by

                                        @dc42 Sorry, been out the last 4 days on holiday. I'll test that build today and let you know asap.

                                        1 Reply Last reply Reply Quote 1
                                        • ironhydroxideundefined
                                          ironhydroxide @dc42
                                          last edited by

                                          @dc42
                                          I am tentatively calling this one fixed.
                                          A complete run of my test and no sticky probe. 5810 probes in succession, not a single "Probe already triggered" error as well.

                                          I have started another run, but all things point to the sticky probe issue being fixed.

                                          Z drift on the other hand.... seems to potentially be a further issue. I will address that in the other post, to keep things clean.

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

                                            @dc42 Ran a second test through,
                                            Finished without sticky probe making it now 11,656 probes without "Probe already triggered"

                                            Though however in this run I did get a single instance of "failed to enable probe" directly after a Can Response timeout.
                                            Below is the eventlog of that section.
                                            luckily my macro calls M122 B50.0 just after probing, so it did just that and the result is logged

                                            that said, still didn't have a problem, so... fixed, unless you feel the failed to enable probe could be indicative of a larger problem.

                                            025-05-20 11:22:51 [warn] Error: CAN response timeout: board 50, req type 6061, RID 1051
                                            2025-05-20 11:22:52 [warn] Error: G30: Failed to enable probe
                                            2025-05-20 11:22:52 [warn] Warning: Discarded std reply src=50 RID=1051 exp=1052 ""
                                            2025-05-20 11:22:52 [debug] Diagnostics for board 50:
                                            2025-05-20 11:22:52 [debug] Duet EXP1HCL rev 1.0a or earlier firmware version 3.6.0-rc.3+1 (2025-05-16 09:23:09)
                                            Bootloader ID: SAME5x bootloader version 2.4 (2021-12-10)
                                            All averaging filters OK
                                            2025-05-20 11:22:52 [debug] Never used RAM 51300, free system stack 154 words
                                            Tasks: EncCal(1,nWait 6,0.0%,469) Move(3,nWait 7,0.0%,124) CLSend(3,nWait 6,3.0%,125) TMC(2,nWait 6,65.0%,313) HEAT(2,nWait 6,1.3%,105) CanAsync(5,nWait 4,0.0%,66) CanRecv(3,nWait 1,0.0%,31) CanClock(5,nWait 1,0.0%,63) MAIN(1,running,14.5%,249) IDLE(0,ready,15.3%,29) AIN(2,nWait 2,0.9%,255), total 100.0%
                                            Owned mutexes:
                                            Last reset 05:16:46 ago, cause: software
                                            2025-05-20 11:22:52 [debug] Last software reset time unknown, reason: HardFault zeroDiv, available RAM 51444, slot 2
                                            Software reset code 0x0060 HFSR 0x40000000 CFSR 0x02000000 ICSR 0x00000803 BFAR 0xe000ed38 SP 0x20002cc0 Task TMC Freestk 366 ok
                                            2025-05-20 11:22:52 [debug] Stack: 00000000 20002d2f 00000000 00000000 00000000 00026359 00026368 41000000 0018a715 00024de3 20019948 20019948 00000001 00025d53 00025d3d 2001a874 001ceac9 00027c73 01601008 a0180030 08004d84 41c31e52 05c80021 3a341809 002ad181 2001a7c0 001ceac9
                                            2025-05-20 11:22:52 [debug] Moves scheduled 37991, hiccups 0 (0.00/0.00ms), segs 3, step errors 0 (types 0x0), maxLate 0 maxPrep 12, ebfmin 0.00 max 0.00
                                            Phase step loop runtime (us): min=6, max=102, frequency (Hz): min=5813, max=17857
                                            Sync err accum 91, peak jitter 1/3, peak Rx delay 174, resyncs 0/0, next timer interrupt due in 7 ticks, enabled, next step interrupt due in 4293675087 ticks, disabled
                                            VIN voltage: min 24.4, current 24.4, max 24.4
                                            V12 voltage: min 12.2, current 12.2, max 12.2
                                            MCU temperature: min 32.5C, curr
                                            2025-05-20 11:22:52 [debug] Driver 0: pos -7187, 10060.2 steps/mm, standstill, SG min 0, mspos 888, reads 33820, writes 0 timeouts 0
                                            2025-05-20 11:22:52 [debug] Last sensors broadcast 0x00000000 found 0 57 ticks ago, 0 ordering errs, loop time 0
                                            CAN messages queued 3346, send timeouts 0, received 27, lost 0, ignored 0, errs 0, boc 0, free buffers 38, min 37, error reg 0
                                            dup 0, oos 0/0/0/0, rxMotionDelay 288, adv 36164/37169
                                            2025-05-20 11:22:52 [debug] Closed loop driver 0 mode: open loop, pre-error threshold: 7.50, error threshold: 50.00, encoder type linearComposite, position 1696
                                            Shaft: Encoder reverse polarity: yes, full rotations 2, last angle 9974, minCorrection=-15.4, maxCorrection=10.9, agc 15, mag 4604, no error
                                            Lin: Encoder reverse polarity: no, raw count 1693
                                            Accelerometer: none
                                            I2C bus errors 0, naks 0, contentions 0, other errors 0
                                            
                                            dc42undefined 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA