Optical Endstop Noob
-
@gumby the optical endstops are normally closed and the signal is broken when the IR is blocked
-
@gumby Have you got a link for the endstops, or are did they come with the Anycubic?
Yes, it sounds like they are 'Normally open', which means that the voltage is floating when the 'switch' is not activated. Only activating the switch sets the actual state, in this case 'high' (5V). 'Normally closed' switches actively set the state of the switch (usually to ground) meaning that interference is less likely to cause a false trigger. From memory, the Mini 5+ has pullup resistors on the IO input pins, so it shouldn't be too susceptible to interference when using Normally Open endstops.
See notes on optical endstops here (which I've just updated): https://docs.duet3d.com/User_manual/Connecting_hardware/Sensors_endstops#h-33v-compatible-optical-endstop
Set the M574 as type switch, with active high input (not using
!
to invert the pin), eg
M574 X1 S1 P"io1.in"
Ian
-
Thanks for the responses already... Here is an image of the type of endstop.
It's the ubiquitous Geeetech ones...
I still have to digest pull up resistors when I would think that would "pull up" the voltage...
But shows my ignorance, and I have more research to do.
One more question. I cannot find "Voltage" information on this switch. I am using 5V, but is there a reason I would use 3.3? I am not sure if I am doing that correctly.
Thanks,
Gumby -
@gumby 5v is fine with those
here's a link to my (ancient) predator config.g https://github.com/jaysuk/Anycubic-Predator-Duet/blob/SmartEffectorRRF3/config.g -
Since you have done a Predator mod, do you have any insight on the bed heater? I know there is a daughter board for the Bed heater on the Predator and I wondered if Bang/Bang, or PID is an issue with a daughter board.
I would like to try PID, but I am not sure if that will cause issues with the daughter board.
Thanks in advance.
H
-
@gumby its not a daughter board just an external mosfet as the bed draws a higher wattage than mainboards can provide.
PID is fine -
Thank you
-
I have been officially testing, and my endstops must need to be inverted. Where does the ! go in the syntax to do that?
Would it be X1 S1 P"!io1.in"?
Or would I change S1 to S0?
Sorry to ask, I am having a hard time finding this info.
Thanks,
Gumby -
-
Thanks again for the assist.
I found out what my issue was... The flags I put in for the endstops were about 1/64 of an inch from blocking the light. I needed a small spacer to place them slightly further out.
It's all working now and homing... on to more tasks.
Cheers,
Gumby -
-