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

    Pulse-generating Hall-E sensor / sparklab FTS

    Scheduled Pinned Locked Moved
    Filament Monitor
    2
    14
    2.0k
    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
      last edited by

      I don't see why the existing support for pulse-generating filament sensors won't work with that type of sensor, if you set the E parameter to slightly less than the L parameter.

      A fundamental problem with that type of filament monitor is that they can't distinguish between forward and backwards motion of the filament. So if the Hall sensor has just triggered and there is then a retraction that is long enough to un-trigger it followed by more forward motion, it will produce extra pulses. Whereas both types of Duet3d filament monitor sense the direction of rotation as well as the amount.

      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
      • themelleundefined
        themelle
        last edited by

        Thank you for your quick response, David.

        The problem is that the existing implementation does not take extruder steps into account, but only extruded length, and in turn lacks precision to be useful with the described type of sensor.
        If it would take extruder steps into account it could also distinguish extrude from retract motion (as the firmware should always know the commanded direction of the steppers), and therefore easily know that those extra pulses are caused by extrude/retract/extrude moves around the turning point of the 0/1 measurement curve. Those could be masked by some "minimum steps" parameter obtained through calibration or by a fixed percentage of the "regular steps per revolution".

        Maybe I'm doing something wrong, but I yet have to see a proper configuration for this type of sensor working in RRF to a usable degree.

        Will try your suggestion (parameter E < L) as soon as I have time to - will report back happily 🙂

        Thanks,
        Andreas

        1 Reply Last reply Reply Quote 0
        • themelleundefined
          themelle
          last edited by

          Okay, testing went through.
          Results are somewhat surprising, though.

          Configuration was done using

          M591 D0 P7 C3 S0 R50:150 E4.8 L5
          

          Test results are

          M591 D0
          Pulse-type filament monitor on endstop input 3, disabled, sensitivity 5.00mm/pulse, allowed movement 50% to 150%, check every 4.8mm, current position 0.0, measured sensitivity 245.812mm/pulse, measured minimum 0%, maximum 88% over 491.6mm
          

          which leave me somewhat puzzled ...

          Any thoughts on those results?
          Thanks again!

          1 Reply Last reply Reply Quote 0
          • themelleundefined
            themelle
            last edited by

            Another, longer test print results in

            M591 D0
            Pulse-type filament monitor on endstop input 3, disabled, sensitivity 5.00mm/pulse, allowed movement 50% to 150%, check every 4.8mm, current position 0.0, measured sensitivity 2132.568mm/pulse, measured minimum 0%, maximum 87% over 4265.1mm
            
            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators
              last edited by dc42

              Could it be that the sink current of the Hall sensor isn't sufficient to pull the endstop pin close enough to 0V, so most of the pulses don't get registered by the Duet?

              What happens if you increase the sample distance from 4.8mm to e.g. 50mm or 100mm? Obviously that isn't practical for real use, but it would help to pin down whether there is a firmware issue when using sensors with very low pulses-per-mm values.

              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
              • themelleundefined
                themelle
                last edited by

                I'll try to get a test print done following your suggestion within the next few days.

                Does it matter which of your proposed values I chose for testing?
                Does either value have some clear advantages in testing over the other?

                1 Reply Last reply Reply Quote 0
                • themelleundefined
                  themelle
                  last edited by

                  Same test print as before, just with an E value of 100 in M591.

                  Result:

                  M591 D0
                  Pulse-type filament monitor on endstop input 3, disabled, sensitivity 5.00mm/pulse, allowed movement 50% to 150%, check every 100.0mm, current position 0.0, no calibration data
                  
                  1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators
                    last edited by

                    Can you use a multimeter to measure the voltage between the two outside pins of the endstop input connector you are using for the filament sensor, with the sensor wheel in positions that do and don't illuminate the endstop LED?

                    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
                    • themelleundefined
                      themelle
                      last edited by

                      Did the measurement.

                      Had a "magic moment" when trying the first measurement, as I must have shorted E0 signal pin and one of the erase jumper pins during a print. Print came to stop, web interface was not reachable - I thought I fried the Duet. But it did respond to bossac, so in no time I was gladly running again 😉

                      As far as I can tell you the sensor outputs signal HIGH and signal LOW each for half a revolution of the sensor wheels - if this is of any relevance.

                      HIGH signal level is a stable 3.11V, LOW signal level is stable at 0.81V.

                      1 Reply Last reply Reply Quote 0
                      • themelleundefined
                        themelle
                        last edited by

                        .... just a gentle bump to this topic ... 😉

                        1 Reply Last reply Reply Quote 0
                        • themelleundefined
                          themelle
                          last edited by

                          @dc42 I don't want to bug you, but rather have you just not forget about this topic 😉
                          Many thanks in advance, David!

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

                            It's on my list, but it's unlikely that I will have time to look into it this year. I have a huge amount of development work on my plate right now.

                            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
                            • themelleundefined
                              themelle
                              last edited by

                              Thanks for the quick response!

                              I understand that there are plenty of other things to be done first - I just wanted to be sure you noticed the voltage levels measurement you requested.

                              Thanks again!

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