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

    TCRT5000 IR sensor with M591

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    10
    446
    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.
    • tekstyleundefined
      tekstyle
      last edited by

      is it possible to use this sensor as a filament sensor? ERCF filament sensor uses this method to sense movement of filament similar to a encoder wheel I assume. I tried all the P1 to 7 and it is giving me a "error: unsuitable pin" in console.

      any help or insight would be greatly appreciated.

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

        @tekstyle which Duet are you using, and which pin are you trying to use?

        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

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

          @dc42 duet2 with duex5

          duex.e2stop is the pin I am using.

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

            @tekstyle I don't know how you are trying to use that IR sensor as a filament monitor. However, for most types of filament monitor, RRF requires a low latency interrupt to be available on the pin that they are connected to. The endstop and gpio inputs on the DueX board do not provide a low latency interrupt, hence the error message.

            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

            tekstyleundefined 2 Replies Last reply Reply Quote 0
            • tekstyleundefined
              tekstyle @dc42
              last edited by tekstyle

              @dc42

              thank you for looking into this, really appreciate it. the sensor monitor the movement of a bondtech gear. when I push a filament through pass the gear, I can see the monitoring led on both the sensor and the duex board light up and off just like an optical sensor would with an encoder wheel. I figured the normal 591 P7 would work because of that. that's all I know. I unfamiliar with latency in regards to how it relates to the sensor.

              this is the sensor I am using:
              https://amzn.to/3qXuh9q

              tekstyleundefined 1 Reply Last reply Reply Quote 0
              • tekstyleundefined
                tekstyle @tekstyle
                last edited by tekstyle

                @tekstyle

                interesting enough, it works fine when i change duex.e3stop to e0stop. below is copy and pasted from console.

                9/9/2023, 2:26:24 PM	M591 D3
                Pulse-type filament monitor on pin e0stop, disabled, sensitivity 5.000mm/pulse, allowed movement 5% to 1000%, check every 20.0mm, no data received
                9/9/2023, 2:26:20 PM	M591 D3 P7 C"e0stop" S0 R5:1000 L5 E20 A0
                9/9/2023, 2:26:07 PM	M591 D3
                Extruder 3 has no filament sensor
                9/9/2023, 2:20:45 PM	M591 D3 P7 C"duex.e3stop" S0 R5:1000 L5 E20 A0
                Error: M591: unsuitable pin
                
                1 Reply Last reply Reply Quote 0
                • tekstyleundefined
                  tekstyle @dc42
                  last edited by

                  @dc42

                  damn. i think i found my issue.
                  https://docs.duet3d.com/User_manual/Connecting_hardware/Sensors_filament

                  so i have to move my endstops for XYZ and probe (my probe uses the Z end stop) to the duex.e[2-6]stop and reassign all the zstop,xstop, ystop, e0stop and e1stop for my filament sensors?

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

                    @tekstyle if you don't have a daughter board plugged into the DueX then you can also use the cs5 thru cs8 pins on the DueX daughterboard connector for filament monitors.

                    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

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

                      @dc42 said in TCRT5000 IR sensor with M591:

                      @tekstyle if you don't have a daughter board plugged into the DueX then you can also use the cs5 thru cs8 pins on the DueX daughterboard connector for filament monitors.

                      does that allow for pulse monitoring?

                      I was able to reassign all my endstops but just for my knowledge in the future if I want to use the daughter board for filament sensing as I might want to implement a switch in addition to pulse sensing to differentiate filament runout vs jam or clog.

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

                        @tekstyle yes those pins support low latency interrupt.

                        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
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA