Skip to content
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

Add FluidNC probe support #2058

Merged
merged 1 commit into from
Nov 22, 2022
Merged

Add FluidNC probe support #2058

merged 1 commit into from
Nov 22, 2022

Conversation

nickmayer
Copy link
Contributor

Update FluidNC controller to invoke probeCoordinates on listeners on PRB messages.

@daxliniere
Copy link

Is this part of the auto-levelling system?

@nickmayer
Copy link
Contributor Author

This isn't directly part of the auto-leveling system, but is needed by it. Without this the probing would happen but the values wouldn't be reported resulting in it going through the motions but not actually building the heightmap.

IIRC it is also used by some other plugins (I think there is a probe plugin)

@daxliniere
Copy link

Thanks @nickmayer. Was it you who had recently gotten the autoleveling feature to work in their own fork of UGS?

@daxliniere
Copy link

Ahh yes, it was you: #2022 (comment)

(I left a question on that post about how to compile this for Windows.)

@nickmayer
Copy link
Contributor Author

Thanks @nickmayer. Was it you who had recently gotten the autoleveling feature to work in their own fork of UGS?

Yes, I've been using it successfully to carve traces in a PCB using my branch (which I have a PR for #2022).

There is also https://github.com/nickmayer/Universal-G-Code-Sender/tree/scanner-updates which is a bit less stable. I'm making the auto level data editable (for when the probe doesn't trigger properly and I want to just tweak the one point instead of redoing the entire routine). I am also thinking about tweaking the pattern to go back & forth and allow some other tweaks (like picking the # of points to probe).

I honestly don't know how to build it for Windows. I tried and failed as well, and ended up just building it in an Ubuntu VM. I can take the output from that and run it on my Windows machine (though I had to munge some things in order to get it to find the JVM since it didn't get bundled like the "real" releases do for some reason).

@daxliniere
Copy link

daxliniere commented Nov 28, 2022

There is also https://github.com/nickmayer/Universal-G-Code-Sender/tree/scanner-updates which is a bit less stable. I'm making the auto level data editable (for when the probe doesn't trigger properly and I want to just tweak the one point instead of redoing the entire routine). I am also thinking about tweaking the pattern to go back & forth and allow some other tweaks (like picking the # of points to probe).

You may be interested in knowing about a low-cost, high precision proximity sensor that I've recently learned about. It has 0.01mm accuracy with +/- 0.005mm repeatability and is $37 https://www.pandapi3d.com/product-page/bed-distance-sensor
I'm talking with Mark of PandaPi at the moment and should have one in the new year, maybe sooner.

Something very cool about the sensor is that it outputs a measurement as opposed to a binary "touch/no touch" signal. In future, that might be able to be integrated somehow, but in the meantime, I can probably whip up a quick Arduino program to output a binary signal based on a hard-coded proximity value. Then it would act like a standard touch probe.

@daxliniere
Copy link

I honestly don't know how to build it for Windows. I tried and failed as well, and ended up just building it in an Ubuntu VM. I can take the output from that and run it on my Windows machine (though I had to munge some things in order to get it to find the JVM since it didn't get bundled like the "real" releases do for some reason).

Hopefully @winder or @breiler can point us in the direction of a tutorial for jFrog or some other means of compiling?

@daxliniere
Copy link

@nickmayer, is there a way to send you a PM? Are you on the FluidNC Discord server, by any chance?
I have something I'd like to share with you.

@Tigeruno
Copy link

I have FluidNC in use for my Rong Fu 30 mill. The resistance from quill/tool to vice/table is less than 2 ohms so probe with UCS (universal code sender) did not work. I just found a post with EEF (electronic edge finder by R, G. Sparber) https://vdocuments.mx/a-precision-electronic-cutter-touch-down-detector.html. I built the last schematic in this link using the leds. I found that if you connect 5v from esp32 for power and gnd, and instead of LEDS connect probe leads to LM324 pin 14 to 1k resistor to gnd on esp32, LM324 pin 8 to probe pin (for me gpio32 low pullup). This EEF circuit can detect touch below 2 ohms resistance. Works a charm for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants