Secondary Tool move breaks Z homing
-
@dc42
1, The led is off i checked it to ensure it is not triggered.
2, i wil give it a try this might be the cause of the issue, however the board is still reading not trigged even when the T1 is energenized. In past i checked the voltage with voltmeter. this time i will try to check it with osciloscope to ensure there is not some ripple there.
3, I have tested i previouse attempts to switch to different io with the same result. I will try it again.echo sensors.endstops[2].triggered; Before T1 energized false echo sensors.endstops[2].triggered; After T1 energized false
-
After investigating with the Voltmeter it appears that the T1 energized pushes the voltages to lower level so i expect that the additional movement of the Z combined with the T1 energization pushes the level into active region.
I will try to add aditional pull up.
-
That's interesting! What voltages are lower with T1 energised?
-
Voltage levels:
Idle(No motors energised): 4.12V
Z motor Energised: 4.12V
Z + T0: 4.06V
Z + T1: 3.60VI have tried to add 3.9K pull up to 5V.
Which moved:
Z + T1: 3.6V -> 4.4V.The interesting thing is that the voltage level is not lowering at least on my voltmeter. I would assume the voltmeter does not have the range to see the ripple causing the end stop to trigger.
If i disconnect the T1 motor the homing sequence finishes successfully. It must be the reason you specified with number 2.
-
However it is a little bit strange that the movement of the Z motor would effect the endstop only when the T1 motor is energized and it is not moving.
-
Which voltage are you measuring that gives those reasons?
@optical said in Secondary Tool move breaks Z homing:
However it is a little bit strange that the movement of the Z motor would effect the endstop only when the T1 motor is energized and it is not moving.
It's not strange. The motor will still be energised after the move, unless you use M18 or M84 to de-energise it. As long as it is energised, the chopper in the driver chip will operate, and there will be 12-24V square wave at about 40kHz on all four stepper motor wires.
If the inductive sensor output runs in the same cable bundle as any stepper motor wires, then I suggest you use shielded cable for the inductive sensor output wire; or alternatively 2-core+shield cable to handle all three connections to the sensor.
-
@dc42 do you think that low pass filter is also an option here ? For example with cut off 1khz ?
-
@optical said in Secondary Tool move breaks Z homing:
@dc42 do you think that low pass filter is also an option here ? For example with cut off 1khz ?
Yes, but there are better solutions. Do the sensor wires run in the same cable bundle as the wires to the stepper motor that is causing the problem? If so then I recommend you use shielded cable for either the sensor wires or the stepper motor wires, unless you can separate them.
-
@dc42 So the problem is indeed that the endstop wires runs in the same wire bundle as the motor. I have temporarly solved the issue with low pass filter with cut off frequency 1Khz.
I'm currently working on having expansion boards and D-Sub cables which should ease my assembly of the Pick and Place machine. I will address this issue in the new revision of the cableing.
I'm deeply sorry for my lousy cableing which caused so much trouble. I wasn't expecting this issue because both two steppers didn't caused the issue.
Thank you very much for helping me find the issue in my machine.
-
I'm glad you solved it! Bear n mind that the Duet 3 has 27K pullup resistors on the inputs, so any low pass filter you add should have a low enough resistance so as not to affect the low-level voltage significantly. A 1nF capacitor connected between the input pin and ground would probably be sufficient, but then the output transistor in the NPN sensor will discharge this rapidly when it turns on. That is unlikely to harm the sensor, but if you want to avoid it then I suggest a series resistor in the range 100R to 1K between the sensor output and the capacitor/IOx_IN pin.