Arduino uno with cnc v3 - z probe not working

Hi all

I have built myself a cnc machine, using the Arduino uno with the cnc v3 hat.
It uses 2x y motors, 1x and 1x z motor with end stops and wired emergency stop switch.

It works well in all respects, but i cannot get it to operate the z height probe. I have tested it with several programs and none seem to "see" the status of the probe change. the wires are connected to the SCL and GND connectors on the top right socket of the cnc v3.

The Uno runs GRBL 0.9f with the modded line for the z height stop - which also works well.

I have searched all over the internet to try and find if it needs extra code in the GRBL build? But am not making any progress.

I would appreciate any help in this respect as I have rather limited knowledge of Arduino.

I have not yet tried newer GRBL builds as i do not want to potentially break my machine, that is otherwise pretty well dialed in.

@theunisvisser, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project :wink: See About the Installation & Troubleshooting category.

I'm not familiar with CNC etc so can't help.

Please post a picture showing how the motor wires are connected to the shield.
Is it that red and yellow Prootooner shield?

cnc v3

Hi it is similar to this pic.

This is a pic of the actual board with all the current connections.

Top left in the photo, you will see the purple probe wire (SCL socket) and the Grey to its right (GND socket).

Good!

That's the board I'm using. Look at the white strip of connectors, near the blue-yellow ones! There You have pins for the probes. Try and use them instead, for failing end switch.

I can't tell for sure but I think (?) Grbl 0.9 and Grbl 1.1 might be using different pins, for some signals. If this is the reason or not, I can't tell.

One good, knowing, helper, maybe @groundFungus, once sent a pin mapping of this shield. I have it printed on papper somewhere. Maybe gF will be notified by this posting.....

iIs this the one?

cnc shield Uno pins

But this does not show the probe pin (A5 or SCL).

Exactly! I thought this mapping could bring some light over the darkness...

Thanks a lot!

Saved the picture now!

To use the probe, connect the probe to the SCL pin on the CNC shield (Uno pin A5). I sometimes just clip a lead onto the tool that I am going to be using from the SCL pin on the CNC shield. Test the setup first by issuing a G38.2 Z-25 F100 and touch the probe with a grounded wire. The Z stepper should stop on contact.

To use the probe send the desired version of the G38 straight probe command.

The command contains the axis to be probed and the speed.

For example, G38.2 Z-25 F100
G38.2 is a probe command which means, seek until the probe circuit is closed (Arduino ground to
pin A5). Z-25 means drop the Z axis down a maximum of 25mm (metric in this case). Of course, this
travel should be interrupted by probe contacting the plate surface. F100 is the probe travel speed.
You may want to slow yours down, but 100 works fine.

Outstanding reply. Way beyond what I could provide.

Hi GorundFungus

Thank you for the reply.

I have the positive lead on the SCL pin and thr negative lead on GND which isc2 pins lower on the shield.

What other ground would you advise I try as.so far itcdoes nothing.

Is there settingscin Grbl that I need to change/uncomment out to enable it?

All of the pins on the black header opposite the limit switch connections go to ground and there is a ground right near the SCL pin. The pins in the green boxes go to ground.

Not that I know of.

What Gcode sender are you using?

What is the Gcode command that you are using to test?

Does that mean that the designated motor does not even move when the G38 is issued? Or does the motor move but will not stop when the probe (connection to SCL pin) is grounded?

I have tried the probe command in inventables easel (I usually use this program for drawing and cutting projects).

I have also tried jscnc which I used when I built the machine and had little access to anything else, as vectric is way to expensive for a hobbyist like me).

I recon one can send an online command in jscnc as well as it allows something like command prompt in windows that one can send direct commands like Ubiversal gcode sender ( which I have not yet been able to successfully install).

I asked about the ground as I was wondering if a dry joint on the ground pin could cause the issue, as I have looked at the soldering on these boards, and some look pretty weak.

Thanks for all the response

I will try your suggestions and report back.

If you have Grbl installed, you can enter commands using serial monitor. Set baud to 115200.

Hi. I tested it just now.

There is 5volt between the probe and ground.

Touching the 2 wires should cause the status in the software to react right? It has a test option before doing the actual probe.

This does not change when touching scl to ground.

You must install Python first.

CNCjs probe works fine for me.

Can you tell me what or where that line is and what you changed? To what did you change that setting?

Do the motors run when regular Gcode is sent? Like G0X20, does the X motor move 20mm?

If you issue the command, G38.2 Z-20 F100 does the Z axis motor run at all?