-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: Inverting probe pin stopped working after 3.7.12 #1180
Comments
I think that I've tracked down the commit that is causing these problems: Edit: I compiled and tested each commit up to this and the probing stopped working. I found that this function never got triggered when an probe input was triggered: FluidNC/FluidNC/src/Machine/EventPin.cpp Line 10 in 7cf191e
If I triggered the probe then a limit pin the status report was updated correctly with the probe status. |
I have a fix that needs testing. I will PR it as time permits. I am traveling so my development time is limited for a few days. |
My fix has the good side effect of allowing probes to be remoted over I/O expanders. I suspect that the fix will have similar or perhaps even better latency than the gpio-only status quo but it needs to be tested in real world situations on hardware that I do not have with me away from the office. |
Excellent, and no stress! I have seen questions about this starting to popup in different forums so I gave it a shot figure out the problem. But I am unfamiliar with the code, have no debugging capabilities and my time to spend on this ran out... Once you have a branch up I can give it a quick test as well. |
PR #1181 |
Thanks, I've given it a try and it seems to work better now. It was never an issue with probe pin being inverted like the title of the issue said, but I tried a couple of those scenarios as well and it is also working as it should. Here it is doing a XYZ corner probe: I did notice one detail which is different compared with version 3.7.12. If I use a switch (normally open) connecting to GND with config |
Try it now. The pin state was not being initialized properly. |
That didn't make any difference, still get the probe input on a cold boot. Ignore the Y limit switch, it has always behaved this way.
I don't know how much time we should put on this as it only occurs if I leave the input floating (using the internal pull up) and it doesn't effect the usability of the machine. I only reacted to this as it was a new behavior. It could lead to questions from other users, but could be solved with some documentation. |
I would like to understand why it happens. Can you show the indications that it occurred? All I see is the Y thing that you said to ignore. |
I tried simplifying how to reproduce the problem by just connecting to a stand alone ESP module and could no longer reproduce it. So the problem with it reporting inputs as active is only present when the ESP32 is on the controller board. Not sure why it behaves like this looking through the schematics of the board (https://github.com/bdring/Grbl_ESP32_Development_Controller/blob/master/docs/V4p1/esp32_cnc_test_v4.1_schm.pdf). I am also not sure why the behavior is different in version 3.7.12. 🤷🏻♂️ But this is good enough for me and from my end this issue is resolved, thanks Mitch! |
I’m seing the same symptoms probe not working with pullup and inverted added. Tried with different ports on both 6x board as well as a wemos D1 with same result. Used both 3.7.15 and 3.7.16 releases during my tests. Happy to run additional tests if needed. Thanks/Per. |
@lytke create a new issue, using your 6x config. give details on the probe type too. |
Wiki Search Terms
N/A
Controller Board
ESP32 CNC Dev Controller v4.1
Machine Description
Just the control board with a switch to the probe input
Input Circuits
Switch (NO) acting as probe connected to GPIO.32 and GND
Configuration file
Startup Messages
User Interface Software
UGS and FluidNC Web Installer terminal
What happened?
With versions up to 3.7.12 the following works. I have a button that is normally open and connects to GND with this configuration:
gpio.32:low:pu
. When I press the button it will report the probe in the status report:With the same configuration on versions after it will not register the probe input. The behaviour only effects the probe functionality. If I instead configure this pin as a limit switch to
gpio.32:low:pu
it will correctly register the limit switch input.I have not studied the details in #1169 and #1125 but they could be related.
GCode File
No response
Other Information
No response
The text was updated successfully, but these errors were encountered: