Duet 2 Wifi Tronxy X5SA Z probe setup



  • Short questing: How?

    Longer question:
    I think I'm nearly there in setting up the Duet 2 Wifi board on my Tronxy X5SA, doing so because the original controller is flaking out and won't keep the hot end hot if the heated bed is in use.

    I've set up reprap firmware using the online configurator, and rewired my x and y endstops to work properly.

    But I have no idea what to do with z. I originally thought I'd set it up as a standard z endstop, but that didn't seem to work because either the stock inductive endstop isn't wired properly for the z endstop connector on the Duet 2 Wifi board, or I've misconfigured the setting in the configurator, or it's low voltage (The inductive sensor requires 6-25 volts).

    I don't know what to do from here and a quick search of the forum hasn't been terribly successful.

    Has anyone here set up a three pin inductive sensor with 6 to 25 volt input and no other z endstop ?

    I sure could use some help.

    Thanks.





  • I remember seeing that page before.

    It's taken me a bit of time to figure out which part of the document I need to work through but I've got it now. Wiring for power and ground are straight forward.

    Where is the z probe in pin?

    I don't know which pin is which on the sensor connector though.

    Sense I don't have a traditional z endstop should I disable it in config.h?

    Thanks for your help.



  • https://duet3d.dozuki.com/Wiki/Duet_Wiring_Diagrams

    That will show where all of the wiring pins are.

    I was looking at the other thread dealing with this printer. It looks to me like that's an inductive sensor (Though I could be wrong, the photos aren't very clear of this part.)



  • First of all you have to figure out which pin is which on sensor connector. Try to find datasheet for that sensor or something, cant help you here. On typical inductive sensor brown wire is +VIN, blue is ground and black is signal wire, but dont take it from my words only, you have to check it first.
    In config.g file you should define Z endstop controlled by probe, for example:
    M574 Z1 S2
    followed by probe defination, something like:
    M558 P5 H5 F120 A3 T6000 I1



  • @supraguy
    It's inductive, yes. It's not much fun to set up though since it's two set screws rather than a threaded mount.

    On my old controller I would set it up so the nozzle is a bit higher up than is useful for printing when homed, then go in to the z offset menu, set the gap from there then save the z offset. That seemed to work pretty well once I got the hang of it.



  • @aidar

    The wiring diagram on the side of the Tronxy bed sensor is in Chinese. 🙂 Though it does show the center pin going through a circuit of some sort to the power pin, and the ground pin being separate. It's a NPN NO sensor. I assume NPN refers to transistor wiring, at least that's what I learned about transistors in college way back in the early 80s, NO=Normally open.

    I'll see if I can track down the wiring diagram.



  • @aidar

    On mine either Black is ground or Brown is ground. Blue is the middle pin.

    That's assuming standard wiring. I'll look around a bit more.



  • @aidar
    I checked the silk screening on the F-Mini board that came with the X5SA printer. I held the three pin sensor connector in the correct orientation and using a magnifier I found out that the pinout you've suggested is 100%.

    Brown is 12/24dc, blue is ground, and black is signal.

    One step closer.

    Should I disable z end stop in config.h? I have it set to standard NO switching.



  • Hi again:

    I didn't have much time tonight to work on the printer, I had a meeting after work and it was getting kind of late to do much after dinner.

    That said, I've made good progress.

    I couldn't remove the pins from the Z probe like I'd done with the end stop connectors I had to re-wire so I ended up cutting the power side of the three pin connector off then plugging the ground and signal side of the cable in to the z probe connectors for ground and signal. I then took the bare 6 to 25 volt power lead and connected it to the positive power input.

    I'm still full of questions and perhaps they should be in a new subject, if so let me know and I'll post again.

    I can home x and y perfectly but my z probe is about 30 mm to the left and 20 mm ahead of the nozzle. Those are rough estimates but close enough for now.

    When homing all the axi x and y home first, which is good. But is it possible to have x move 30mm and y move 20mm before z homes? Otherwise my z sensor is not over the built plate and the build plate crashes in to the nozzle.

    Also when just homing z is it possible to have the printer verify x is => 30 and y is => 20??

    Some how the F-Mini board I'd had before was doing this.

    Is there a pin or other connector on the Duet 2 Wifi board which carries Vin? I'd like to wire the z sensor V connector to that rather than the input power connector even if I have to solder a pin in place to connect to.

    Thank you for your help. I'm not convinced I'd have ever gotten this far without it.



  • I have this working on my X5SA,

    I have my Sensor with + & - plugged into a always on fan with the 12v jumper on and the signal cable going into the Z probe in which is next to the PanelDue connector,

    Here is the Config for Z probe fron my config.g file

    ; Z-Probe
    M574 Z1 Z2 S2 ; Set endstops controlled by probe
    M558 P5 I1 H5 F120 T6000 A10 R0.5 S0.005 B0 ; Set Z probe type to modulated and the dive height + speeds
    G31 P500 X-35 Y0 Z0.26 ; Set Z probe trigger value, offset and trigger height
    M557 X10:300 Y20:310 S50 ; Define mesh grid



  • I connected my sensor + to heater2 + connector, that is E1 heater VIN on Duet wiring diagram. I dont use heater 2 and positive (VIN) side is always provided with VIN+, so works for me.
    For offset use G31 command as in exampe above. Use your own X and Y values of course.
    For homing it depends on your xoming files. After homing X and Y you can send your hotend wherever you want to be ( for example center of bed) before probing. You should really read https://duet3d.dozuki.com/Wiki/Step_by_step_guide


  • administrators

    @jamesadoty said in Duet 2 Wifi Tronxy X5SA Z probe setup:

    Should I disable z end stop in config.h? I have it set to standard NO switching.

    You mean in config.g? Yes, assuming you use a G30 command in your homez.g and homeall.g files to home Z. See https://duet3d.dozuki.com/Wiki/ConfiguringRepRapFirmwareCartesianPrinter#Section_Homing_Z.


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.