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

Adding a TronXY XY-08N Inductive Sensor MIN Z Stop

Scheduled Pinned Locked Moved
Duet Hardware and wiring
3
17
4.8k
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
    DennisHall
    last edited by 11 Apr 2019, 22:59

    Hi all:

    I'm trying to make use of my TronXY XY-08N inductive sensor.
    This sensor works fine on my other Printer (RAMPS1.6 - 3 wire hookup), but relative to the Duet2 Wifi the instructions are a bit rough for me to translate for this sensor model. There really is nothing on the internet beyondhte Duet3D doc.

    This 6-36V sensor model contains 3 wires as follows:
    Black: VIN
    Blue: GND
    Brown: V+

    Here is the exact model: TronXY XY-08N Probe
    Here is the "closet to correct" schematic I can find for it: XY-08N Schematic
    Here are my connections on the DuetV2 Wifi board (by wire color): My Connections

    I know everyone seems to push the BLTouch, but I'm really partial to this model of sensor and have never had issues with it on other 3D printer motherboards. I'm sure it will work on the DuetV2 Wifi as well, but I suspect I need to move a wire to some other pin elseware on the board. I have an image with my current wire connections (by wire color), but no joy.

    Any advice would be golden.

    Best Regards,

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 12 Apr 2019, 08:21

      See https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_NPN_output_normally_open_inductive_or_capacitive_sensor.

      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
      • undefined
        DennisHall
        last edited by DennisHall 4 Dec 2019, 12:00 12 Apr 2019, 11:55

        @dc42 Thanks for the input.
        I was expecting to need to use other pins on the DuetV2 board, but would it be an option to use the 3.3+ and GRD from the Z-Stop head then use the Z Probe pin from the Probe head?

        I would prefer to not connect directly to PWR IN if I can avoid it.

        Also, is that diode on the Z Probe pin one I would need to add to the circuit?

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 12 Apr 2019, 12:00

          3.3V isn't enough for that sensor, it says it needs 6V minimum. You can use an always-on fan output to provide the 6 to 36V supply, if the fan voltage jumper is set to VIN.

          I guess with the RAMPS you were giving it 5V.

          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

          undefined 2 Replies Last reply 12 Apr 2019, 12:03 Reply Quote 0
          • undefined
            DennisHall @dc42
            last edited by 12 Apr 2019, 12:03

            @dc42 Oh, of course, sorry for my wake-up response 😉

            Coffee (or in American... Cofifee).

            Right, it does need more than 3.3V.
            Will do.

            Best Regards,

            1 Reply Last reply Reply Quote 0
            • undefined
              DennisHall @dc42
              last edited by DennisHall 4 Dec 2019, 12:10 12 Apr 2019, 12:05

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • undefined
                DennisHall
                last edited by 12 Apr 2019, 12:12

                Deleted my last reply as I see the following diagram has no diode so expect the previous link is using the built-in diode.
                Better Diagram

                1 Reply Last reply Reply Quote 0
                • undefined
                  dc42 administrators
                  last edited by 12 Apr 2019, 12:35

                  The diode is recommended when using Duet WiFi/Ethernet boards earlier than revision 1.04.

                  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

                  undefined 2 Replies Last reply 12 Apr 2019, 12:40 Reply Quote 0
                  • undefined
                    DennisHall @dc42
                    last edited by 12 Apr 2019, 12:40

                    @dc42 Got it.

                    I've connected up per the last diagram I posted and the sensor is responsive in all the right ways 🙂

                    Now I need to focus on my G-Code to make Home at bed center and set the probe.

                    Thanks for all the valuable feedback and support you provide in this forum.
                    I'm very grateful.

                    Best Regards,

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      DennisHall @dc42
                      last edited by DennisHall 17 Apr 2019, 15:02

                      @dc42 I'm at the point now where I'm testing my gcode for this and found that my TronXY XY-08N inductive z-probe is not working properly with my Duet2 WiFi using my Ultrabase hetbed by AnyCubic.

                      With my RAMPS systems this combination works.

                      I'm wondering if my cgode could be tuned better.
                      Here is my z-probe gcode in the config.g file:
                      ; Z-Probe
                      M574 Z1 S2
                      M558 P5 I1 H5 F100 T36000
                      G31 P250 X-32 Y-10 Z-0.5
                      M557 X20:200 Y20:200 S40

                      As a test, I threw another aluminum bed on top of the AnyCubic hetbed and did a Home Z test and it worked fine, but with the AnyCubic, it seems the ability to sense the metal below is not working with my Duet2 WiFi controller.

                      I have tried different T and F settings with M558 and also tried different P settings with G31.

                      Any suggestions?

                      Best Regards,

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        dc42 administrators
                        last edited by dc42 18 Apr 2019, 10:34

                        Please run the static test decribed at https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe and tell us the results.

                        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

                        undefined 1 Reply Last reply 18 Apr 2019, 14:27 Reply Quote 0
                        • undefined
                          DennisHall @dc42
                          last edited by 18 Apr 2019, 14:27

                          @dc42 Thanks for your reply.
                          My Z-Probe is inductive, so no retraction, etc...

                          Here are my results for each test item using my metal bed with 3mm glass on it:

                          Z-Probe static test:
                          Test item 1: With the Z probe deployed (if applicable) but not close enough to the bed to trigger it, check that the Z probe reading in Duet Web Control is zero or close to zero.
                          Response for glass: Probe reads "0"
                          Response for Ultrabase: Probe reads "0"

                          Test item 2: If your Z probe is of a type that produces a continuous output when triggered (for example IR, inductive, capacitive and switch-type probes), hold a surface below the Z probe to cause it to trigger (or jog the nozzle towards the bed until it is close enough to trigger). Check that the Z probe reading in DWC is correct (about 537 for the Mini Differential IR probe, and about 1000 for most other types).
                          Response for glass: My probe reads "1000"
                          Response for Ultrabase: My Probe reads "0"

                          PanelDue test sending G31: Results read same as above.
                          I also sent M119 and read TRIGGERED for glass and OPEN for Ultrabase.

                          Z-Probe dynamic test:
                          Test item HomeAll: X and Y trigger correctly for both bed types.
                          Response for glass: Probe reads "1000"
                          Response for Ultrabase: Probe reads "0"

                          Z-Probe calibration trigger height:
                          Here is my final - working - Z-Probe configuration that works with my 3mm glass bed:
                          ; Z-Probe
                          M574 Z1 S2
                          M558 P5 I1 H1 F100 T36000
                          G31 P250 X-32 Y-10 Z1.0
                          M557 X20:200 Y20:200 S40

                          The settings above work perfectly with the glass bed.
                          Using these settings with the Ultrabase, the Z-Probe never triggers using the Duet2 WiFi, but it does when I replace the controller with my RAMPS1.6.

                          My question / concern is not if the Z-Probe works with the Duet2 WiFi, I have proven that is does work with my glass bed.
                          I am trying to find the right g-code solution to have my Z-Probe work with the Ultrabase as it did using the RAMPS boards and Marlin F/W.
                          As previously mentioned, I have tried various g-code settings for:
                          M558 F and T, as well as for
                          G31 Z

                          Best Regards,

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            dc42 administrators
                            last edited by 18 Apr 2019, 21:21

                            Does your probe have a LED that lights up when it is triggered? If so, does it light up when you trigger it with the glass bed? What about with the Ultrabase bed?

                            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

                            undefined 1 Reply Last reply 18 Apr 2019, 23:07 Reply Quote 0
                            • undefined
                              DennisHall @dc42
                              last edited by DennisHall 18 Apr 2019, 23:07

                              @dc42 Yup, it has the red light. M119 also registers TRIGGERED coincidentally when the red light is on 🙂

                              With my glass bed, the lights are on and everyone's home.
                              With the Ultrabase, the lights are off and nobody's home.

                              In my opinion, I'm seeing the Ultrabase must be blocking out enough of the return signal to have it not register. So either a timing issue (maybe a gcode setting) or power level to the sensor.

                              It's not the end of the world as I actually like my glass bed more than the Ultrabase because glass is easy to clean without accetone, but I'm researching hotbeds for a new printer and really just perplexed why this combination works with RAMPS, but not Duet.

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                dc42 administrators
                                last edited by 25 Apr 2019, 21:05

                                I am perplexed too. As I said before, the only difference reason I can think of why the trigger height would differ is if the supply voltage is different.

                                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

                                undefined 1 Reply Last reply 29 Apr 2019, 19:17 Reply Quote 0
                                • undefined
                                  DennisHall @dc42
                                  last edited by 29 Apr 2019, 19:17

                                  @dc42 Sorry for the delayed response. My son was married over the weekend.
                                  My thoughts are the same as yours. Is How would I test the output voltage of the Duet2 WiFi for this specific setup?

                                  ? 1 Reply Last reply 19 Jun 2022, 13:03 Reply Quote 0
                                  • ?
                                    A Former User @DennisHall
                                    last edited by 19 Jun 2022, 13:03

                                    @dennishall what did the correct wiring for your blue tronxy sensor turn out to be?

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