Can't Get Inductive Probe to Trigger

Basic Information:

Printer Model: V Core 3.1
MCU / Printerboard: BTT Octopus Pro
klippy.log (1.9 MB)

Hello Again!

I have a 5V Normally Open NPN inductive probe and I cant get Klipper to trigger. Plugged into Probe Socket, sense pin PB7. Have also tried plugged into endstop (PG10)

Sense pin is logic high (3.2V) and pulled low when triggered, but klipper status doesn’t change.

Have tried all 4 permutations (normal, !, ^, ^!) without any difference.

Any ideas?

You tried the probe manually with the print bed?

grafik

from here:

Yes, bed is 6mm thick aluminium, with magnetic flex plate so more than enough metal to trigger probe.
Probe has indicator LED on the top of the housing with operates as expected

1 Like

That sounds like a wiring problem.

Can you put a voltmeter on the output pin of the sensor? Also, how are you powering the sensor and did you put in the diode to prevent high voltages from being sent back to the controller?

3 pin jst plug of probe plugged into probe socket on octopus pro 446 board. Vcc, gnd, signal.

signal pin to gnd measures 3.2v when probe open and 0v when triggered (which is the same as the now working x and y endstops).

I haven’t put in a diode.

What pin are you connected to now? If it’s the Octopus pro, do you have any jumpers in J16 to J23 (these are the DIAG pins for the TMC drivers sensorless homing and if they are in place, then you will have problems with switches like the inductive probe)?

In any case, I highly recommend that you put a diode in series with the signal pin, as is shown in the following diagrams:

image

The purpose of the diode is to ensure that the high voltage output of the inductive sensor doesn’t blow the input pins of the controller board’s MCU.

Such an ordinary 5 V inductive sensor can be easily connected to a 3 pin endstop connector providing 5 V.
I never had issues there without the Zener diode.
If the sensor does not respond in my cases the wires were connected in the wrong order…
Most sensors should have a LED showing activity.

Hi mykepredko,

Plugged into dedicated probe socket on octopus pro, and configured in ratos as PB7 for the probe signal.

No jumpers installed in J16-J23.

Hi LifeOfBrian

Probe activity, as shown by LED on probe is operating correctly, the LED lights up when close to metal.

Same probe works flawlessly on my CR10S running marlin, connected into z end stop.

I can’t get klipper to trigger though

Does the input pin trigger with a mechanical switch?

1 Like

On my KP3S there is a SuperPINDA installed that lights all the time except it approximates a metal surface.
And it does not use any inverting or other stuff:

[probe]
pin: PA11

But yes it is not an OctopusPro board…

Hi EddyMI3D

I haven’t tried that (yet!) and I was thinking the same a while ago.

While going slightly mad over my x,y & Z endstops.

The z probe is configured as a probe: virtual end stop. Is this correct?

The probe is a switch which pulls the probe pin low, the same as the microswitch end stops.

Yes, in the respective Z-stepper section you have to declare it as follows:

endstop_pin: probe: z_virtual_endstop

Thanks,

I was hoping that at it is an actual switch that the virtual bit was wrong!

I will keep investigating

Since you have the Octopus Pro there is no need for a diode when using the probe port - see page 12:

However they say that the probe input pin is PC5 but you mentioned completely different pins in your original post?!
And again please check the wiring for probe port J40 on page 13!

As you are using a NPN probe please have a look here as well: BIGTREETECH-OCTOPUS-Pro/board.jpg at master · bigtreetech/BIGTREETECH-OCTOPUS-Pro · GitHub

If you hit the refresh button under Endstops in the Machine tab on Mainsail does it toggle the state in any kind for a free probe and one with a metal surface right under it?
image
Does it even look like in the image?

1 Like

Hi LifeOfBrian,

Thankyou for your research, it is much appreciated.

So, ratOS for the btt octopus pro defines it as PB7, and i’m sure if seen that same pin ref elsewhere. The btt github page, you kindly linked, is the most detailed i’ve seen and it says PC5.

Refreshing the endstops in the macine tab appears as your graphic and it doesn’t change the endstop z or probe when probe triggered (x and y endstops work correctly and show as open / triggered correctly).

In a couple of hours, when home from work, I will modify to PC5 and i will report back

If I remember right, the octopus non-pro used PB7, while the octopus pro changed it to PC5 (and also added an optocoupler)

That would make sense.

If it works later, I will inform ratrig of the config error.

Does anyone have experience of RatOS?

The probe pin assignment is in a config file which is read only, and at the top of the file it states you can make modifications in the printer.cfg file.

In the [Probe] section I’m trying to change the probe pin from PB7 to PC5.
probe_pin=PC5 or probe_pin: PC5 isn’t accepted and pin: PC5 is ignored.

I’ve tried numerous alternatives and klipper log show probe pin as PB7