Reed switch endstops. Anybody else using them?
monster last edited by monster
@bearer said in Reed switch endstops. Anybody else using them?:
My problem for the moment is I can't get Duet 3 to see them. I'm sure I did not right connection
I did plug them in IO_0, IO_1, IO_2
1 wire to 3.3 another wire to io.in - that seemed logical (to me ) as switch closes 3.3 volts comes to io.in and controller can sense that end point reached.
firstly you'll need to know what type of switch it is; but if i goes "indefinite resistance to almost zero" lets assume it functions as an normally open* switch. in that case you need to connect it between ground and the input pin.
*)suppose it could be normally closed, depends on the state your description started off in
Ah! It is ground and input pin!?
Well that might explain everything!!! I didn't know it works that way!
You see how bad am I
A Former User last edited by
Wooohooo! Got it!
End stops are working now!
- I did reconnect as @bearer said
- I did some googling/reading and find out that "M574 X1 Y1 Z1 S1 " is depricated. Added separate lines for each.
- UI was replying that pins need names and then I found an example on forum with names like P"xstop" - used it
- Then UI was replying that names are wrong. I was banging my head for a bit
And then found: https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_Pin_names_for_Duet_Num_3
Here is how it looks
; Endstops ;M574 X1 Y1 Z1 S1 ; set active low and disabled endstops M574 X1 S1 P"!io0.in" M574 Y1 S1 P"!io1.in" M574 Z1 S1 P"!io2.in"
NitroFreak last edited by NitroFreak
I found this repeatability test
which suggests a repeatability of +0.01-0.03 mm.
However, using stronger magnets absolutely does NOT improve the repeatability because the switch just triggers farther away. The magnetic field isn´t any more "defined" at the triggering distance.
I´d like to know how differing environmental influences affect the triggering distance, i could imagine EMI could drastically change that.
All in all it would be too much of a risk for my liking only to get the novel factor.
I think it would be interesting to see how it behaves when it's mounted close to a stepper that is actively stepping. You'd think the motor design would contain the field from the coils/magnets fairly well, but it probably doesn't take too much "leakage" to close a reed switch.
@EasyTarget said in Reed switch endstops. Anybody else using them?:
The printer which I'm working on has end switches that looks exactly same.
They are triggered by magnets. When magnet is away switch is open (infinite resistance). Magnet close - switch is closed (resistance under 1 ohm)
But how exactly did you plug them in the board?
I plugged mine to +3.3V and to io.in of IO_0, IO_1, IO_2 but somehow when I'm in "Machine specific" page Endstops table doesn't show Yes when it should...
I mean end switches on my BFB are exactly as on this topic picture:
Quite frankly I'm not sure is it reed or Hall effect, I just thought if that would be a Hall then it wouldn't be sharp step from indefinite resistance to almost zero. But anyway those switches were functioning very well under original BFB controller. And they look cool hehe and very nicely integrated into construction.
Can you imagine? Right after writing this good words about switches - one of them started to flicker (when no trigger/magnet around). In Endstops table only after attempt to park X axis it begins to flicker Yes-No. Before first homing attempt that doesn't happen.
Yesterday I spend whole evening tackling this. Using multi-meter it looks good, looks like normally opened, no sudden closings. But once used with controller and homing attempted - flickering happen (No/Yes) so homing stops 0-2 sec after start.
Wires of end switch are going very closely packed with relevant motor wires. Could there be an induction from motor wires? In the end when unplugged no such behavior noticed. And it is the only end switch with goes tightly packed with motor wires.
Danal last edited by
They know. Just like dogs can smell fear... or printers can smell deadlines...
@monster The motor leads should be twisted (two twisted pairs- one for each coil) as should the endstop leads. That helps prevent inductive coupling.
Could there be an induction from motor wires?
With normally-open endstop switches, capacitive (not inductive) coupling from stepper motors wires to endstop wires can cause false triggering. That's one of the reasons that normally-closed switches are preferred. If using normally-open switches, use shielded cable for the endstops.
Thank you for you answers!
I just came back to report that separating the wires did the trick! All good now!
And was enjoying (like a kid I was running X and Y motors for like half an hour) how calm this motors are now! Unbelievable!!! This board worth every penny!!!
I'll have to rewire (with twisting) everything - wish I know this trick right away - it would affect choice of parts.
I'll have to rewire (with twisting) everything - wish I know this trick right away
Twisted pair wiring is good for stepper motors (one pair per phase), for thermocouple wires, and for normally-closed endstop wires. For normally-open endstops, shielded cable is better; mono audio cable is OK if you use the shield for the ground connection.
mrehorstdmd last edited by mrehorstdmd
TP last edited by
I have unfortunately lost the magnet for the z axis reed sensor! I am struggling to find a replacement.... does anyone have a part number or a link please?
@TP Just about any magnet will do. If you have some earphones from an old cell phone laying around you can pull a small neodymium magnet out of one earpiece.
TP last edited by
@mrehorstdmd Thank you!! i don't suppose anyone has a parts list ?
fcwilt last edited by
EasyTarget last edited by
@TP The ones I used were linked above.
A year and a half later and everything is still working perfectly, Repeatability is obviously excellent since the machine always holds calibration perfectly; often for weeks across dozens of homing and print cycles after a single calibration on duet powerup.